query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
maybe a search method which adds everything to the next moves linked list. And then use that in this method just to remove it one at a time.
public void addToNextMoves(GameTile[][] visibleMap) { //Breadth First Search Code // WumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY); Queue<WumpusState> queue = new LinkedList<WumpusState>(); //use the queue in the same way HashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>(); //add all children to the queue, //add all the children to the hash and set values to true. //once all the children have been visited, generate children sequentially for the children that already been added WumpusState state = new WumpusState(visibleMap, playerX, playerY); long nodesExpanded = 0; queue.add(state); while(!queue.isEmpty()) { WumpusState currentState = queue.remove(); System.out.println(currentState.toString()); if(currentState.getPlayerX() == 4 && currentState.getPlayerY() == 1) { nodesExpanded = visitedStates.size(); System.out.println("Nodes Expanded: "+nodesExpanded); ArrayList<AgentAction> actions = currentState.getAllActions(); for(int i=1;i<actions.size(); i++) { System.out.println(actions.get(i)); nextMoves.add(actions.get(i)); } nextMoves.add(AgentAction.declareVictory); return; } if(visitedStates.containsKey(currentState.toString())) { continue; } else { visitedStates.put(currentState.toString(), true); WumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates(); for(int j=0; j<childrenOfCurrentChild.length; j++) { if(childrenOfCurrentChild[j]!=null) { queue.add(childrenOfCurrentChild[j]); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedList<Move> getPossibleMoves() {\n\t\tAIPossibleMoves.clear();\n\t\tint xOrigin = 0, yOrigin = 0, xMove1 = 0, xMove2 = 0, yMove1 = 0, yMove2 = 0;\n\t\tMove move = null;\t\n\t\t\tint type = 0;\n\t\t\tfor(Checker checker: model.whitePieces) {\n\t\t\t\t\n\t\t\t\txOrigin = checker.getCurrentXPosition();\n\t\t\t\tyOrigin = checker.getCurrentYPosition();\n\t\t\t\txMove1 = (checker.getCurrentXPosition() - 1);\n\t\t\t\txMove2 = (checker.getCurrentXPosition() + 1);\n\t\t\t\tyMove1 = (checker.getCurrentYPosition() - 1);\n\t\t\t\tyMove2 = (checker.getCurrentYPosition() + 1);\n\t\t\t\ttype = checker.getType();\n\t\t\t\tswitch(type) {\n\t\t\t\tcase 2:\n\n\t\t\t\t\tif((xMove1 < 0) || (yMove1 <0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t\t//System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \n\t\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t\t// System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 4:\n\t\t\t\t\t//Moving up and left isMovingRight,IsMovingDown\n\t\t\t\t\tif((xMove1 <0) || (yMove1 < 0)) {\n\t\t\t\t\t\t//continue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving up and right\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove1 < 0) || (yMove2 > 7)) {\n\t\t\t\t//\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving down and left isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove2, false, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove2, false, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove2 > 7)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\t//moving down and right isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove2, true, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove2, true, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tbreak;\t\n\t\t\t\t}\t\n\t\t\t\n\t\t\t}\n\n\t\t\treturn AIPossibleMoves;\n\t\t\t\n\t\t}", "@Override\n public void getMoves(ArrayList<Move> moves) {\n // WARNING: This function must not return duplicate moves\n moves.clear();\n\n for (int i = 0; i < 81; ++i) {\n if (board[i] == currentPlayer) {\n getMovesSingleStep(moves, i);\n getMovesJump(moves, i, i);\n }\n }\n }", "void moveRemoved(Move move);", "public abstract void removeMove(Move move, int indexOfMove, String label);", "private void deletePrevMoves() {\n this.prevMoves = \"\";\n }", "public void remove(){\n if(!isAfterNext)//flag false so next has not been called\n {\n throw new IllegalStateException();\n \n }\n if(position == first){\n removeFirst();//calls LL method because we re an inner class\n \n }\n else{\n previous.next = position.next;// move ref of previou to node after me \n }\n position = previous; \n isAfterNext= false;\n //first call to remove the current position reverts to the predecessor \n //of remove element thus predecessor is no longer known \n }", "private static LinkedList<Move> removeCheckMoves(BitBoard board, LinkedList<Move> moveList,\n\t\t\tint side) { Iterator has to be used to avoid concurrent modification exception\n\t\t// i.e. so that we can remove from the LinkedList as we loop through it\n\t\t//\n\t\tIterator<Move> iter = moveList.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tMove move = iter.next();\n\t\t\tint pieceSide = move.getPieceType() % 2;\n\t\t\tif (pieceSide == side) {\n\t\t\t\tboard.move(move);\n\t\t\t\t// If it results in check for the player's king\n\t\t\t\t// Or the king moves in the square surrounding another king\n\t\t\t\t// The move is invalid and hence removed\n\t\t\t\t// $\\label{code:listRemove}$\n\t\t\t\tboolean check = board.check(side);\n\t\t\t\tboolean kingInKingSquare = kingInKingSquare(board, side);\n\t\t\t\tboard.undo();\n\t\t\t\tif (check | kingInKingSquare) {\n\t\t\t\t\titer.remove();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn moveList;\n\t}", "private void movePhis(List<PhiMove> moves, com.debughelper.tools.r8.ir.code.InstructionListIterator it) {\n int topOfStack = 0;\n List<com.debughelper.tools.r8.ir.code.StackValue> temps = new ArrayList<>(moves.size());\n for (PhiMove move : moves) {\n com.debughelper.tools.r8.ir.code.StackValue tmp = createStackValue(move.phi, topOfStack++);\n add(load(tmp, move.operand), move.phi.getBlock(), com.debughelper.tools.r8.ir.code.Position.none(), it);\n temps.add(tmp);\n move.operand.removePhiUser(move.phi);\n }\n for (int i = moves.size() - 1; i >= 0; i--) {\n PhiMove move = moves.get(i);\n com.debughelper.tools.r8.ir.code.StackValue tmp = temps.get(i);\n FixedLocalValue out = new FixedLocalValue(move.phi);\n add(new Store(out, tmp), move.phi.getBlock(), com.debughelper.tools.r8.ir.code.Position.none(), it);\n move.phi.replaceUsers(out);\n }\n }", "void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}", "public void specialMove() {\n\t\tChessSquare initial = getSquare();\n\t\tChessSquare next;\n\t\t\n\t\tif(initial.getNorth() != null){\n\t\t\tnext = initial.getNorth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null && next.getWest().getOccupant() == null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t}\n\t\t\n\t\tif(initial.getSouth() != null){\n\t\t\tnext = initial.getSouth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\t\n\t\t}\n\t\t\n\t\tnext = initial.getEast();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tnext = initial.getWest();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tsetCountdown(9);\n\t}", "private void removeMoveIfExist(ActorRef actorRef) {\n for (int distance = 1; distance <= pointsMap.getLength(); distance++) {\n for (int lane = 1; lane <= pointsMap.getLanesNumber(); lane++) {\n if (!pointsMap.isMarked(distance, lane)) {\n pointsMap.putWithCondition(distance, lane, null, oldAct -> oldAct == actorRef);\n }\n }\n }\n }", "public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "void processNextMove(List<Coordinates> moves, Ball color);", "private void advance(Board board, List<Move> moves) {\n int x = location.x;\n int y = location.y;\n \n Piece pc;\n Point pt;\n int move;\n \n if (color == Color.White)\n move = -1;\n else\n move = 1;\n \n pt = new Point(x, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if(pc == null) {\n moves.add(new Move(this, pt, pc)); \n \n pt = new Point(x, y + move * 2);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt);\n if(pc == null && numMoves == 0)\n moves.add(new Move(this, pt, pc));\n }\n } \n }\n }", "void getMoves(ArrayList<Move> moves) {\n if (gameOver()) {\n return;\n }\n if (jumpPossible()) {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n getJumps(moves, k);\n }\n } else {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n getMoves(moves, k);\n }\n }\n }", "private void updateMoveList(Move m) {\n \t//first check for castling move\n \tif(m.getSource().getName().equals(\"King\")) {\n \tint sx = m.getSource().getLocation().getX();\n \tint dx = m.getDest().getLocation().getX();\n \t\n \t//castle king side\n \tif(dx - sx == 2) {\n \t\tmoveList.add(\"0-0\");\n \t\treturn;\n \t}\n \t//castle queen side\n \telse if(sx - dx == 2) {\n \t\tmoveList.add(\"0-0-0\");\n \t\treturn;\n \t}\n \t}\n \t\n \t//now do normal checks for moves\n \t//if no piece, normal notation\n \tif(m.getDest().getName().equals(\"None\")) {\n \t\t\n \t\t//check for en passant\n \t\tif(m.getSource().getName().equals(\"Pawn\")) {\n \t\t\t\n \t\t\t//it's only en passant if the pawn moves diagonally to an empty square \n \t\t\tif(m.getSource().getLocation().getX() != m.getDest().getLocation().getX()) {\n \t\t\t\tmoveList.add(m.getSource().getLocation().getFile()+ \"x\" + m.getDest().getLocation().getNotation());\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tmoveList.add(m.getSource().getID() + m.getDest().getLocation().getNotation());\n \t}\n \t//add \"x\" for capturing\n \t//for pawn, it's a bit different\n \telse if(m.getSource().getName().equals(\"Pawn\")) {\n \t\tmoveList.add(m.getSource().getLocation().getFile()+ \"x\" + m.getDest().getLocation().getNotation());\n \t}\n \telse {\n \t\tmoveList.add(m.getSource().getID() + \"x\" + m.getDest().getLocation().getNotation());\n \t}\n }", "public ArrayList<ArrayList<Move>> getMoves(int color){//TODO\n \tArrayList<ArrayList<Move>> moves = new ArrayList<ArrayList<Move>>();\n \tboolean jumpsExist = false;\n \t//look for jumps\n \t//search the board for pieces of your color\n for (int i=0; i<8; i++){\n \tfor(int j=0; j<8; j++){\n \t\t//if the piece is the right color\n \t\tif ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){\n// \t\t\tSystem.out.println(\"found a piece you own\");\n \t\t\t//find all jumps of that piece\n \t\t\t//get jumps\n \t\t\tArrayList<ArrayList<Move>> jumps = getJumps(color, i, j);\n \t\t\t//if there are jumps return only the jumps\n \t\t\tif (jumps.isEmpty() == false){\n \t\t\t\tmoves.addAll(jumps);\n \t\t\t\tjumpsExist = true;\n \t\t\t}\n \t\t}\n \t}\n }\n if (jumpsExist == false){\n\t //look for diagonals\n\t \t//search the board for pieces of your color\n\t for (int i=0; i<8; i++){\n\t \tfor(int j=0; j<8; j++){\n\t \t\t//if the piece is the right color\n\t \t\tif ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){\n//\t \t\t\tSystem.out.println(\"found a piece you own\");\n\t \t\t\t//get diagonals\n\t \t\t\t//try up right\n\t \t\t\tMove tryMove = new Move(i,j,i+1,j+1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try up left\n\t \t\t\ttryMove = new Move(i,j,i-1,j+1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try down right\n\t \t\t\ttryMove = new Move(i,j,i+1,j-1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try down left\n\t \t\t\ttryMove = new Move(i,j,i-1,j-1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t }\n\t }\n if (moves.isEmpty() == true){\n \tnoMoves = true;\n }\n \t\t\t//\n \treturn moves;\n }", "public void move()\n {\n if(!pause)\n {\n if(up)\n { \n list.remove(0); \n head = new Location(head.getA(),head.getB()-15); \n list.add(head); \n }\n else if(down)\n {\n list.remove(0); \n head = new Location(head.getA(),head.getB()+15); \n list.add(head); \n }\n else if(left)\n {\n list.remove(0); \n head = new Location(head.getA()-15,head.getB()); \n list.add(head);\n }\n else if(right)\n {\n list.remove(0); \n head = new Location(head.getA()+15,head.getB()); \n list.add(head); \n }\n \n repaint();\n }\n }", "public List<Blockade> move(PlayingPiece playingPiece, List<Card> cards, HexSpace moveTo) {\n System.out.println(\"Executing move\");\n System.out.println(myTurn());\n\n // is it the players turn\n if (!myTurn()) {\n return new ArrayList<>();\n }\n // are the cards in the hand\n for (Card card : cards) {\n if (!this.handPile.contains(card)) {\n System.out.println(\"hand wrong\");\n return new ArrayList<>();\n }\n }\n // does the player own this playingpiece\n if (!this.playingPieces.contains(playingPiece)) {\n return new ArrayList<>();\n }\n this.removableBlockades = new ArrayList<>(); // parentblockadesID the player can remove in this turn\n Memento memento = board.getMemento();\n // validates if cards and playingpieces are the same for wich the pathfinder was exectued, if not redo pathfinder\n if (!(playingPiece == memento.getPlayingPiece() && cards.equals(memento.getSelectedCards()))) {\n Pathfinder.getWay(board, cards, playingPiece);\n }\n Set<HexSpace> reachables = new HashSet<>(memento.getReachables());\n System.out.println(reachables);\n if (reachables.contains(moveTo)) {\n System.out.println(\"reachables Contains moveto\");\n HexSpace oldPosition = playingPiece.getStandsOn();\n playingPiece.setStandsOn(moveTo);\n for (Card card : cards) {\n card.moveAction(this, moveTo); // for history\n }\n for (HexSpace hexSpace : moveTo.getPrevious()) {\n if (hexSpace.getClass() == BlockadeSpace.class && hexSpace.getStrength() != 0) {\n // if you directly move over blockade\n autoRemoveBlockade(((BlockadeSpace) hexSpace).getParentBlockade());\n }\n }\n searchForRemovableBlockades(playingPiece, cards, moveTo, oldPosition);\n this.board.getMemento().reset(this.board); // reset memento after moving\n }\n if (playingPiece.getStandsOn().getColor() == COLOR.ENDFIELDJUNGLE ||\n playingPiece.getStandsOn().getColor() == COLOR.ENDFIELDRIVER) {\n if (board.getElDoradoSpaces().size() > 0) {\n playingPiece.setStandsOn(board.getElDoradoSpaces().get(0));\n board.getElDoradoSpaces().remove(board.getElDoradoSpaces().get(0));\n //List<HexSpace> newEldoradoSpaces = board.getElDoradoSpaces().subList(0,Math.max(board.getElDoradoSpaces().size()-2,0));\n //board.setElDoradoSpaces(newEldoradoSpaces);\n }\n boolean won = true;\n for (PlayingPiece piece : this.playingPieces) {\n won = won && (piece.getStandsOn().getColor() == COLOR.ELDORADO || piece == playingPiece);\n }\n if (won) {\n this.board.getWinners().add(this);\n }\n }\n return new ArrayList<>(blockadeIdsToBlockades(this.removableBlockades));\n }", "abstract public List<Move> getPossibleMoves();", "private void moveRemainingMhos() {\n\t\t\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\t\t\t\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\t\t\t\n\t\t\t//Check if there is a fence 1 block away from the mho\n\t\t\tif(newMap[mhoX][mhoY+1] instanceof Fence || newMap[mhoX][mhoY-1] instanceof Fence || newMap[mhoX-1][mhoY] instanceof Fence || newMap[mhoX-1][mhoY+1] instanceof Fence || newMap[mhoX-1][mhoY-1] instanceof Fence || newMap[mhoX+1][mhoY] instanceof Fence || newMap[mhoX+1][mhoY+1] instanceof Fence || newMap[mhoX+1][mhoY-1] instanceof Fence) {\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = Legend.SHRINK;\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveRemainingMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveRemainingMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "private void moveMatchingNodeToNextElement(Node tmp) {\n for (int i = 0; i < ALL_LINKED_LISTS.size();i++) {\n Node next = ALL_LINKED_LISTS.get(i);\n if (tmp.equals(next)) {\n next = next.next;\n ALL_LINKED_LISTS.put(i, next);\n break;\n }\n }\n }", "private void moveTiles(ArrayList<MahjongSolitaireTile> from, ArrayList<MahjongSolitaireTile> to)\n {\n // GO THROUGH ALL THE TILES, TOP TO BOTTOM\n for (int i = from.size()-1; i >= 0; i--)\n {\n MahjongSolitaireTile tile = from.remove(i);\n \n // ONLY ADD IT IF IT'S NOT THERE ALREADY\n if (!to.contains(tile))\n to.add(tile);\n } \n }", "public void updatePossibleMovesOther(){\n\t\tif( hasMoved){\n\t\t\tpossibleMovesOther = null;\n\t\t\treturn;\n\t\t}\n\t\t// Get left castle updateMoves first\n\t\tchar[] temp = AlgebraicNotationHelper.getAlgebraicNotationLeftOf( startingFile, startingRank);\n\t\ttemp = AlgebraicNotationHelper.getAlgebraicNotationLeftOf( temp[0], temp[1]);\n\t\ttemp = AlgebraicNotationHelper.getAlgebraicNotationLeftOf( temp[0], temp[1]);\n\t\t// Should be b1 for light color King (or b8 for dark color King)\n\t\tAlgebraicNotation tempAN = new AlgebraicNotation( temp[0], temp[1]);\n\t\tpossibleMovesOther.add( tempAN);\n\t\t// Get right castle updateMoves next\n\t\ttemp = AlgebraicNotationHelper.getAlgebraicNotationRightOf( startingFile, startingRank);\n\t\ttemp = AlgebraicNotationHelper.getAlgebraicNotationRightOf( temp[0], temp[1]);\n\t\t// Should be g1 for light color King (or g8 for dark color King)\n\t\ttempAN = new AlgebraicNotation( temp[0], temp[1]);\n\t\tpossibleMovesOther.add( tempAN);\t\n\t}", "private void getMoves(ArrayList<Move> moves, int k) {\n for (int i = -1; i <= 1; i += 1) {\n for (int j = -1; j <= 1; j += 1) {\n char nextCol = (char) (col(k) + i);\n char nextRow = (char) (row(k) + j);\n if (validSquare(nextCol, nextRow)) {\n Move rec = Move.move(col(k),\n row(k), nextCol, nextRow);\n if (legalMove(rec)) {\n moves.add(rec);\n }\n }\n }\n }\n }", "private void remove() {\n if (prev != null) {\n prev.next = next;\n }\n if (next != null) {\n next.prev = prev;\n }\n }", "private ArrayList<Coordinates> freeMoves(Maze maze) {\n\t\tArrayList<Coordinates> dirs = new ArrayList<>();\n\n\t\tfor (int x = -1; x <= 1; x++) {\n\t\t\tfor (int y = -1; y <= 1; y++) {\n\t\t\t\tif (x == 0 ^ y == 0) {\n\t\t\t\t\tCoordinates move = find().add(x, y);\n\t\t\t\t\tif (!maze.outOfRange(move)) {\n\t\t\t\t\t\tif (!maze.getMCell(move).wall()) {\n\t\t\t\t\t\t\tdirs.add(new Coordinates(x, y));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dirs;\n\t}", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "public void stripCheckMoves(List<Move> moves, Color color)\r\n\t{\r\n\t\tIterator<Move> moveIterator = moves.iterator();\r\n\t\twhile (moveIterator.hasNext())\r\n\t\t{\r\n\t\t\tMove move = moveIterator.next();\r\n\t\t\tapplyMove(move, false);\r\n\t\t\tif (isCheck(color)) \r\n\t\t\t{\r\n\t\t\t\tmoveIterator.remove();\r\n\t\t\t}\r\n\t\t\tunapplyMove();\r\n\t\t}\r\n\t}", "public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }", "public void trimRoutes(){\n Station firstStation = null;\n Station s = null;\n Link link = null;\n if (trainState instanceof TrainReady)\n s = ((TrainReady) trainState).getStation();\n if (trainState instanceof TrainArrive)\n link = ((TrainArrive) trainState).getLink();\n if (trainState instanceof TrainDepart)\n link = ((TrainDepart) trainState).getLink();\n\n if (trainState instanceof TrainReady){\n firstStation = s;\n } else if (trainState instanceof TrainArrive){\n firstStation = link.getTo();\n } else if (trainState instanceof TrainDepart){\n firstStation = link.getFrom();\n }\n\n Iterator<Route> routeIterator = routes.iterator();\n while (routeIterator.hasNext()) {\n Route route = routeIterator.next();\n Iterator<Link> iter = route.getLinkList().iterator();\n while (iter.hasNext()){\n Link track = iter.next();\n if (!track.getFrom().equals(firstStation))\n iter.remove();\n else\n break;\n }\n if (route.getLinkList().size() == 0) {\n routeIterator.remove();\n }\n }\n }", "private void addToMoveQueue() {\n\t\tSimulation.INSTANCE.getMoveQueue().offer(new Move(prevNode, currentNode));\n\t}", "public static void movingFromMill( int pos, LinkedList<Mill> checkedMills) {\n\n for (int i = 0; i < checkedMills.size(); i++) {\n Mill m = checkedMills.get(i);\n\n if (m.a == pos || m.b == pos || m.c == pos) {\n checkedMills.remove(i);\n }\n }\n\n\n }", "public List<Move> getMoves(ChessBoard chessBoard) {\r\n\t\tList<Move> moves = new ArrayList<>();\r\n\t\tfor (Direction direction : directions) {\r\n\t\t\tfor (int n = 1; n <= maxRange ; n++) {\r\n\t\t\t\tMove move = new Move(x, y, direction, n);\r\n\t\t\t\tif (chessBoard.allows(move)) {\r\n\t\t\t\t\tif (move.isTake(chessBoard)) {\r\n\t\t\t\t\t\tTakeMove takeMove = new TakeMove(x, y, direction, n);\r\n\t\t\t\t\t\ttakeMove.setPiece(this);\r\n\t\t\t\t\t\tPiece pieceAtDestination = chessBoard.pieceAtField(move.getToX(), move.getToY());\r\n\t\t\t\t\t\ttakeMove.setTaken(pieceAtDestination);\r\n\t\t\t\t\t\tmoves.add(takeMove);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmove.setPiece(this);\r\n\t\t\t\t\t\tmoves.add(move);\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\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn moves;\r\n\t}", "public Location remove() {\n\t\t//empty set\n\t\tif (head == null){\n\t\t\treturn null;\n\t\t}\n\n\t\t//removes and returns the SquarePosition object from the top of the set\n\t\tLocation removedLocation = head.getElement();\n\t\thead = head.next;\n\t\tsize --;\n\t\treturn removedLocation;\n\t}", "private void clearHighlightAfterMove() {\n //clear start\n getTileAt(start).clear();\n for (Move m : possibleMoves) {\n getTileAt(m.getDestination()).clear();\n }\n }", "static List<Move> generateLegalMoves(Position pos) {\n\t\tList<Move> moves = new ArrayList<>();\n\n\t\t// for (int square : pos.pieces) {\n\t\t// \tif (pos.pieces.size() > 32) {\n\t\t// \t\tSystem.out.println(\"problem\" + pos.pieces.size());\n\t\t// \t}\n\t\t// \tif (pos.at(square) != 0 && Piece.isColor(pos.at(square), pos.toMove)) {\n\t\t// \t\tint piece = pos.at(square);\n\t\t// \t\tint name = Piece.name(piece);\n\t\t// \t\tif (name == Piece.Pawn) {\n\t\t// \t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t// \t\t\tif (square + step >= 0 && square + step < 64) {\n\t\t// \t\t\t\t// 1 square\n\t\t// \t\t\t\tif (pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'q'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'b'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'n'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'r'));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step));\n\t\t// \t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// 2 squares\n\t\t// \t\t\t\tif ((square < 16 && pos.toMove == 'w') || square > 47 && pos.toMove == 'b') {\n\t\t// \t\t\t\t\tif (pos.board.squares[square + 2*step] == 0 && pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + 2*step));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t\t// capture\n\t\t// \t\t\t\t// right\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][3] > 0) {\n\t\t// \t\t\t\t\tint target = square + step + 1;\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t} \n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// left\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][2] > 0) {\n\t\t// \t\t\t\t\tint target = square + step - 1;\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\tfor (int offset : MoveData.KnightOffsets.get(square)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\tif (!Piece.isColor(pos.board.squares[square + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tMove move = new Move(square, square + offset);\n\t\t// \t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse {\n\t\t// \t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t// \t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t// \t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t// \t\t\t\tint maxDist = MoveData.DistanceToEdge[square][dir];\n\t\t// \t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\n\t\t// \t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t// \t\t\t\t\tint squareIdx = square + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, squareIdx));\n\t\t// \t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\t\tbreak;\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tbreak;\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\t\t\t\t\t\n\t\t// \t\t\t}\n\t\t// \t\t}\n\t\t// \t}\n\t\t// }\n\n\t\tfor (int i = 0; i < 64; i++) {\n\t\t\tif (pos.board.squares[i] != 0 && Piece.isColor(pos.board.squares[i], pos.toMove)) {\n\t\t\t\tint piece = pos.board.squares[i];\n\t\t\t\tint name = Piece.name(piece);\n\t\t\t\tif (name == Piece.Pawn) {\n\t\t\t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t\t\t\tif (i + step >= 0 && i + step < 64) {\n\t\t\t\t\t\t// 1 square\n\t\t\t\t\t\tif (pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'q'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'b'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'n'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'r'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// 2 squares\n\t\t\t\t\t\tif ((i < 16 && pos.toMove == 'w') || i > 47 && pos.toMove == 'b') {\n\t\t\t\t\t\t\tif (pos.board.squares[i + 2*step] == 0 && pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + 2*step));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t// capture\n\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][3] > 0) {\n\t\t\t\t\t\t\tint target = i + step + 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// left\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][2] > 0) {\n\t\t\t\t\t\t\tint target = i + step - 1;\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tfor (int offset : MoveData.KnightOffsets.get(i)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[i + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMove move = new Move(i, i + offset);\n\t\t\t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t\t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t\t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t\t\t\t\tint maxDist = MoveData.DistanceToEdge[i][dir];\n\t\t\t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\t\t\t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t\t\t\t\t\tint squareIdx = i + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, squareIdx));\n\t\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// castling\t\t\n\t\tif (pos.toMove == 'w' && !underAttack(pos, pos.whiteKing, 'b')) {\t\t\t\n\t\t\tif (pos.castlingRights.whiteKingSide && pos.at(Board.H1) == (Piece.Rook | Piece.White)) {\n\t\t\t\tif (pos.at(Board.F1) == Piece.Empty && pos.at(Board.G1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F1, 'b') && !underAttack(pos, Board.G1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.G1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tif (pos.castlingRights.whiteQueenSide && pos.at(Board.A1) == (Piece.Rook | Piece.White)) {\t\t\t\t\n\t\t\t\tif (pos.at(Board.B1) == Piece.Empty && pos.at(Board.C1) == Piece.Empty && pos.at(Board.D1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D1, 'b') && !underAttack(pos, Board.C1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.C1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse if (pos.toMove == 'b' && !underAttack(pos, pos.blackKing, 'w')){\n\t\t\tif (pos.castlingRights.blackKingSide && pos.at(Board.H8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.F8) == Piece.Empty && pos.at(Board.G8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F8, 'w') && !underAttack(pos, Board.G8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.G8));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pos.castlingRights.blackQueenSide && pos.at(Board.A8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.B8) == Piece.Empty && pos.at(Board.C8) == Piece.Empty && pos.at(Board.D8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D8, 'w') && !underAttack(pos, Board.C8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.C8));\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// filter illegal moves\n\t\tList<Move> legalMoves = new ArrayList<>();\n\t\tchar color = pos.toMove;\n\t\tfor (Move move : moves) {\n\t\t\tpos.makeMove(move);\n\t\t\tif (!kingInCheck(pos, color)) {\n\t\t\t\tlegalMoves.add(move);\n\t\t\t}\t\t\t\n\t\t\tpos.undoMove();\n\t\t}\n\n\t\treturn legalMoves;\n\t}", "public void removeNext()\r\n\t{\r\n\t\tremove(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t\t\r\n\t\tstate.setWaiting(false);\r\n\t}", "public LinkedList<GameState> successor(GameState a)\n\t{\n\t\t//temperary gamestates that will be used for the legal moves\n\t\tGameState w = new GameState();\n\t\tGameState x = new GameState();\n\t\tGameState y = new GameState();\n\t\tGameState z = new GameState();\n\t\t//System.out.println(\"THIS IS THE CURR NODE\");\n\t\t//a.printGameState();\n\t\t//System.out.println(a);\n\t\t//create a linked list to return all of the legal moves as game states\n\t\tLinkedList<GameState> ans = new LinkedList<GameState>();\n\t\t//these are arrays that will be used to populate gamestates above\n\t\tint[] d = a.moveDown();\n\t\tint[] r = a.moveRight();\n\t\tint[] u = a.moveUp();\n\t\tint[] l = a.moveLeft();\n\t\t//System.out.println(\"hello\");\n\t\t//this is for the down move\n\t\t//System.out.println(\"DOWN\");\n\t\tif(!same1(d,check)) //make sure that moving down is a legall move\n\t\t{\n\t\t\t//System.out.println(\"hello\");\n\t\t\t//if it is a legal move poplate the fieds with \n\t\t\tw.setBoard(d);\n\t\t\tw.setStateID(count);//giving unique id\n\t\t\tw.setG();\n\t\t\tw.setH(this.h(goalS.getBoard(), w));//passing in the empty space index of the goal node\n\t\t\tw.setF();\n\t\t\tw.setVisited(false);\n\t\t\tw.setParentStateID(a.getStateID());//set the parent id to that of the current game state\n\t\t\t//System.out.println(a.getStateID());\n\t\t\t//w.printGameState();\n\t\t\tw.setPriority(w.getF());//the priority is the f(n)\n\t\t\t \n\t\t\tans.add(w);//add new gamestate to the linked list of legal moves\n\t\t}\n\t\tcount++;//increment count so all the games states have unique ids\n\t\t//this is for the up move\n\t\t//System.out.println(\"UP\");\n\t\tif(!same1(u,check)) //make sure that moving up is a legall move\n\t\t{\n\t\t\tx.setBoard(u);\n\t\t\tx.setStateID(count);//giving unique id\n\t\t\tx.setG();\n\t\t\tx.setH(this.h(goalS.getBoard(), x));//passing in the empty space index of the goal node\n\t\t\tx.setF();\n\t\t\tx.setParentStateID(a.getStateID());//set the parent id to that of the current game state\n\t\t\tx.setVisited(false);\n\t\t\t//x.printGameState();\n\t\t\tx.setPriority(x.getF());//the priority is the f(n)\n\t\t\tans.add(x);//add new gamestate to the linked list of legal moves\n\t\t}\n\t\tcount++;//increment count so all the games states have unique ids\n\t\t//\tSystem.out.println(\"RIGHT\");\n\t\t//this is for the right move\n\t\tif(!same1(r,check)) //make sure that moving right is a legall move\n\t\t{\n\t\t\t//System.out.println(\"hello\");\n\t\t\ty.setBoard(r);\n\t\t\ty.setStateID(count);//giving unique id\n\t\t\ty.setG();\n\t\t\ty.setH(this.h(goalS.getBoard(), y));//passing in the empty space index of the goal node\n\t\t\ty.setF();\n\t\t\ty.setParentStateID(a.stateID);//set the parent id to that of the current game state\n\t\t\ty.setVisited(false);\n\t\t\t//y.printGameState();\n\t\t\ty.setPriority(y.getF());//the priority is the f(n)\n\t\t\tans.add(y);//add new gamestate to the linked list of legal moves\n\t\t}\n\t\tcount++;//increment count so all the games states have unique ids\n\t\t//this is for the left move\n\t\t//System.out.println(\"LEFT\");\n\t\tif(!same1(l,check)) //make sure that moving left is a legall move\n\t\t{\n\t\t\tz.setBoard(l);\n\t\t\tz.setStateID(count);//giving unique id\n\t\t\tz.setG();\n\t\t\tz.setH(this.h(goalS.getBoard(), z));//passing in the empty space index of the goal node\n\t\t\tz.setF();\n\t\t\tz.setVisited(false);\n\t\t\tz.setParentStateID(a.getStateID());//set the parent id to that of the current game state\n\t\t\t//z.printGameState();\n\t\t\tz.setPriority(z.getF());//the priority is the f(n)r\n\t\t\t//count++;\n\t\t\tans.add(z);//add new gamestate to the linked list of legal moves\n\t\t}\n\t\tcount++;//increment count so all the games states have unique ids\n\t\treturn ans;\n\t}", "public void getPossibleMoves() {\n\t\tGameWindow.potentialMoves.clear();\n\t}", "@Override\r\n public void remove() {\n Node current = exp.head;\r\n if( current.next == null ){\r\n exp.head = null;\r\n }\r\n\r\n while( current.next.next != null ){\r\n current = current.next;\r\n }\r\n current.next = null; // current.next son elemani gosterir.\r\n\r\n }", "private ArrayList<Move> whiteKing(){\n // obtain current co-ordinates\n int x = this.getX();\n int y = this.getY();\n\n // otherwise create a new vector to store legal whiteMoves\n ArrayList<Move> whiteMoves = new ArrayList<Move>();\n\n // set up m to refer to a Move object\n Move theMove = null;\n\n // first legal move is to go from x,y to x,y+1\n if (validNormalMove(x, y + 1)) {\n theMove = new Move(this, x, y, x, y + 1, false);\n if(takeOverCheck(x, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n // legal move is to go from x,y to x,y-1 if x,y-1 is unoccupied (bottom)\n if (validNormalMove(x, y - 1)) {\n theMove = new Move(this, x, y, x, y - 1, false);\n if(takeOverCheck(x, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //left\n // legal move to go left from x,y to x-1, y if x-1,y is unoccupied (left)\n\n if (validNormalMove(x-1, y)) {\n theMove = new Move(this, x, y, x-1, y, false);\n if(takeOverCheck(x-1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //right\n // legal move to go right from x,y to x+1, y if x+1,y is unoccupied (right)\n\n if (validNormalMove(x+1, y)) {\n theMove = new Move(this, x, y, x+1, y, false);\n\n if(takeOverCheck(x+1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n // legal move to diagonal top right for white king\n if (validNormalMove(x+1, y + 1)) {\n theMove = new Move(this, x, y, x+1, y + 1, false);\n if(takeOverCheck(x+1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom right\n\n if (validNormalMove(x+1, y -1)) {\n theMove = new Move(this, x, y, x+1, y - 1, false);\n if(takeOverCheck(x+1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom left\n if (validNormalMove(x-1, y -1)) {\n theMove = new Move(this, x, y, x-1, y - 1, false);\n if(takeOverCheck(x-1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal top left\n if (validNormalMove(x-1, y+1)) {\n theMove = new Move(this, x, y, x-1, y + 1, false);\n if(takeOverCheck(x-1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n if (whiteMoves.isEmpty())\n return null;\n return whiteMoves;\n }", "void removeFromAvailMoves(int x, int y) {\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tavailMoves[x][y][i] = false;\n\t\t}\n\t}", "public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }", "public abstract ArrayList<Move> possibleMoves(Board board);", "private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }", "private void insertMovesIntoMoveList(Unit unit, Moves[] moves) {\r\n\t\tfor (int i = 0; i < moves.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.moveList.length; j++) {\r\n\t\t\t\tif (moves[i] != null && this.moveList[j] == null) {\r\n\t\t\t\t\tthis.moveList[j] = new NewMove(unit, moves[i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<BoardPos> getMoves(BoardPos from) {\n List<BoardPos> result;\n\n // strike check\n if (board.get(from).isCrown())\n result = getStrikesCrown(from);\n else result = getStrikes(from);\n\n // regular moves\n final int[] shifts = {-1, 1};\n if (result.isEmpty() && !board.get(from).isEmpty()) {\n if (board.get(from).isCrown())\n for (int shiftX : shifts)\n for (int shiftY : shifts) {\n BoardPos to = from.add(shiftX, shiftY);\n while (to.inBounds(board.side()) && board.get(to).isEmpty()) {\n result.add(to);\n to = to.add(shiftX, shiftY);\n }\n }\n else for (int shift : shifts) { // add adjacent empty positions\n BoardPos move = from.add(new BoardPos(shift,\n board.get(from).color() ? 1 : -1));\n if (board.get(move) != null && board.get(move).isEmpty())\n result.add(new BoardPos(move));\n } }\n\n // complete by adding the start position to every legal route, so that\n // it will be cleared as well when the player will move\n for (BoardPos pos : result)\n pos.addToRoute(new BoardPos(from));\n\n return result;\n }", "private void cleanUpTile(ArrayList<Move> moves)\n {\n for(Move m1 : moves)\n {\n gb.getTile(m1.getX(),m1.getY()).setStyle(null);\n gb.getTile(m1.getX(),m1.getY()).setOnMouseClicked(null);\n }\n gb.setTurn(gb.getTurn() + 1);\n }", "public List<Move> getValidMoves(Board board, boolean checkKing) {\n List<Move> moves = new ArrayList<Move>();\n\n // if no board given, return empty list\n if (board == null)\n return moves;\n\n // checks moves where the pawn advances a rank\n advance(board, moves);\n // checks moves where the pawn captures another piece\n capture(board, moves);\n // checks en passant moves\n enPassant(board, moves);\n\n // check that move doesn't put own king in check\n if (checkKing)\n for(int i = 0; i < moves.size(); i++)\n if (board.movePutsKingInCheck(moves.get(i), this.color)) {\n // if move would put king it check, it is invalid and\n // is removed from the list\n moves.remove(moves.get(i));\n // iterator is decremented due to the size of the list\n // decreasing.\n i--;\n }\n return moves;\n }", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Point> moves() {\n\t\tmoves = new ArrayList<Point>();\n\t\tif (point.x > 0 && board.pieceAt(point.x - 1, point.y) == null)\n\t\t\tmoves.add(board.left(point));\n\t\tif (point.x < board.getXDim() - 1 && board.pieceAt(point.x + 1, point.y) == null)\n\t\t\tmoves.add(board.right(point));\n\t\tif (point.y > 0 && board.pieceAt(point.x, point.y - 1) == null)\n\t\t\tmoves.add(board.above(point));\n\t\tif (point.y < board.getYDim() - 1 && board.pieceAt(point.x, point.y + 1) == null)\n\t\t\tmoves.add(board.below(point));\n\t\treturn (ArrayList<Point>) moves.clone();\n\t}", "public Board move(int algo){\n //if the game has not been started and it is a black piece\n if (state.noMovesMade() == 0 && color == 1){\n state.increaseMoveCount();\n\n int [] arr= new int [] {1,4,5,8};\n\n int rand_int = rand.nextInt(4);\n System.out.println(\"Removed \" + color + \" Piece at index \"+ arr[rand_int] +\", \" + arr[rand_int] );\n\n state.remove(arr[rand_int],arr[rand_int]);\n\n return state;\n }\n\n //if it is white first move\n if(state.noMovesMade() == 1 && color == -1){\n state.increaseMoveCount();\n\n\n List<int []> adjPositions = state.getAdjacentSpots();\n int rand_int = rand.nextInt(adjPositions.size());\n System.out.println(\"Removed \" + color + \" Piece at index \"+ adjPositions.get(rand_int)[0] +\", \" + adjPositions.get(rand_int)[1] );\n\n state.remove(adjPositions.get(rand_int)[0],adjPositions.get(rand_int)[1]);\n return state;\n }\n\n Move action = new Move();\n if(algo == 1){\n action = alphaBetaHeurisitic();\n\n }\n else if (algo == 2){\n action = miniMaxHeurisitic();\n }\n else if (algo == 3){\n action = randomHeurisitic();\n\n }\n else if (algo == 4){\n\n }\n moveHelper(action);\n\n return state;\n }", "private List<SearchNode<T>> performMoves(final SearchNode<T> parent) {\n\t\tfinal List<SearchNode<T>> succesors = new ArrayList<SearchNode<T>>(Move.values().length);\n\t\tfor (Move direction : Move.values()) {\n\t\t\t// Get board to move empty tile on\n\t\t\tfinal Board<T> tmp = parent.getBoard()\n\t\t\t\t\t\t\t\t\t\t.clone();\n\t\t\ttry {\n\t\t\t\t// perform the moves\n\t\t\t\tswitch (direction) {\n\t\t\t\tcase UP:\n\t\t\t\t\ttmp.moveUp();\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\ttmp.moveDown();\n\t\t\t\t\tbreak;\n\t\t\t\tcase LEFT:\n\t\t\t\t\ttmp.moveLeft();\n\t\t\t\t\tbreak;\n\t\t\t\tcase RIGHT:\n\t\t\t\t\ttmp.moveRight();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new UnsupportedOperationException(\"Direction with name '\" + direction.name() + \"' cannot not handled\");\n\t\t\t\t}\n\t\t\t\t// Add found successor in case of valid move\n\t\t\t\tsuccesors.add(new SearchNode<T>(parent.getCostsFormStart() + 1, parent, tmp, goal, direction));\n\t\t\t} catch (InvalidMoveException e) {\n\t\t\t\t// do nothing on invalid move\n\t\t\t}\n\t\t}\n\n\t\treturn succesors;\n\t}", "public List<MovePath> getNextMoves(boolean backward, boolean forward) {\n final ArrayList<MovePath> result = new ArrayList<MovePath>();\n final MoveStep last = getLastStep();\n// if (isJumping()) {\n// final MovePath left = clone();\n// final MovePath right = clone();\n//\n// // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n// result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n// for (int turn = 0; turn < 2; turn++) {\n// left.addStep(MovePath.MoveStepType.TURN_LEFT);\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n// }\n// right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n// result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n//\n// // We've got all our next steps.\n// return result;\n// }\n\n // need to do a separate section here for Aeros.\n // just like jumping for now, but I could add some other stuff\n // here later\n if (getEntity() instanceof Aero) {\n MovePath left = clone();\n MovePath right = clone();\n\n // From here, we can move F, LF, RF, LLF, RRF, and RRRF.\n result.add((clone()).addStep(MovePath.MoveStepType.FORWARDS));\n for (int turn = 0; turn < 2; turn++) {\n left.addStep(MovePath.MoveStepType.TURN_LEFT);\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(left.clone().addStep(MovePath.MoveStepType.FORWARDS));\n result.add(right.clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n right.addStep(MovePath.MoveStepType.TURN_RIGHT);\n result.add(right.addStep(MovePath.MoveStepType.FORWARDS));\n\n // We've got all our next steps.\n return result;\n }\n\n // If the unit is prone or hull-down it limits movement options, unless\n // it's a tank; tanks can just drive out of hull-down and they cannot\n // be prone.\n if (getFinalProne() || (getFinalHullDown() && !(getEntity() instanceof Tank))) {\n if ((last != null) && (last.getType() != MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if ((last != null) && (last.getType() != MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n\n if (getEntity().isCarefulStand()) {\n result.add(clone().addStep(MovePath.MoveStepType.CAREFUL_STAND));\n } else {\n result.add(clone().addStep(MovePath.MoveStepType.GET_UP));\n }\n return result;\n }\n if (canShift()) {\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT)))) {\n result.add(clone().addStep(MoveStepType.LATERAL_RIGHT));\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS));\n }\n if (backward\n && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.LATERAL_RIGHT_BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.LATERAL_LEFT_BACKWARDS));\n }\n }\n if (forward && (!backward || ((last == null) || (last.getType() != MovePath.MoveStepType.BACKWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.FORWARDS));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_LEFT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_RIGHT));\n }\n if ((last == null) || (last.getType() != MovePath.MoveStepType.TURN_RIGHT)) {\n result.add(clone().addStep(MovePath.MoveStepType.TURN_LEFT));\n }\n if (backward && (!forward || ((last == null) || (last.getType() != MovePath.MoveStepType.FORWARDS)))) {\n result.add(clone().addStep(MovePath.MoveStepType.BACKWARDS));\n }\n return result;\n }", "public void makeMove() {\n ArrayList<Field> myFields = new ArrayList<>();\n for (Field[] fieldsRow : fields) {\n for (Field field : fieldsRow) {\n if(field != null && this.equals(field.getPlayer())) {\n myFields.add(field);\n }\n }\n }\n bestMove[0] = myFields.get(0);\n bestMove[1] = myFields.get(0);\n\n Random rand = new Random();\n for(Field destination : destinationFields) {\n if(canMove()) break;\n destinationField = destination;\n for (Field origin : myFields) {\n for(int i = 0; i < origin.getNeighbours().length; ++i) {\n Field neighbour = origin.getNeighbours()[i];\n if(neighbour != null) {\n if(neighbour.getPlayer() == null) {\n if(valueOfMove(origin, neighbour) > valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n } else if(valueOfMove(origin, neighbour) == valueOfMove(bestMove[0], bestMove[1])) {\n if(rand.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n }\n }\n } else {\n Field nextField = neighbour.getNeighbours()[i];\n if(nextField != null) {\n correctJumpPaths(origin,null, origin);\n }\n }\n }\n }\n }\n }\n }", "private void cleanUpAfterMove(Unit unit){\n\t\t\t//add current location\n\t\t\tpastLocations.add(unit.location().mapLocation());\n\t\t\t//get rid of oldest to maintain recent locations\n\t\t\tif (pastLocations.size()>9)\n\t\t\t\tpastLocations.remove(0);\t\n\t}", "public ArrayList<Move> getPossibleMoves() \n\t{\n\t\tArrayList<Move> possibleMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(int i = - 1; i <= 1; i += 2)\n\t\t{\n\t\t\tfor(int j = -1; j <= 1; j += 2)\n\t\t\t{\n\t\t\t\tLocation currentLoc = new Location(getLoc().getRow() + j, getLoc().getCol() + i);\n\t\t\t\t\n\t\t\t\tif(getBoard().isValid(currentLoc))\n\t\t\t\t{\n\t\t\t\t\tif(getBoard().getPiece(currentLoc) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tArrayList<Node> move = new ArrayList<Node>();\n\t\t\t\t\t\tmove.add(getNode());\n\t\t\t\t\t\tmove.add(getBoard().getNode(currentLoc));\n\t\t\t\t\t\t\n\t\t\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(ArrayList<Node> move : getNextJumps(getLoc(), new ArrayList<Location>()))\n\t\t{\n\t\t\tif(move.size() > 1)\n\t\t\t{\n\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Move> jumpMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(Move possibleMove : possibleMoves)\n\t\t{\n\t\t\tif(!possibleMove.getJumped().isEmpty())\n\t\t\t{\n\t\t\t\tjumpMoves.add(possibleMove);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!jumpMoves.isEmpty())\n\t\t{\n\t\t\treturn jumpMoves;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn possibleMoves;\n\t\t}\n\t}", "void clearUndo() {\r\n while (!listOfBoards.isEmpty()) {\r\n listOfMoves.pop();\r\n listOfBoards.pop();\r\n }\r\n }", "@Override\n\tpublic void updatePosition()\n\t{\n\t\tif(!fired && !pathfinding)\n\t\t{\n\t\t\tif(x == destX && y == destY)\n\t\t\t{\n\t\t\t\tfired = true;\n\t\t\t\tvehicle.msgAnimationDestinationReached();\n\t\t\t\tcurrentDirection = MovementDirection.None;\n\t\t\t\t\n\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\tif(cIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t\t{\n\t\t\t\t\t\tcity.permissions[current.y][current.x].release();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(nextIntersection == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(Pathfinder.isCrossWalk(current,city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t{\n\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(current.y).get(current.x);\n\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t{\n\t\t\t\t\t\twhile(guiList.contains(this))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tguiList.remove(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(allowedToMove || drunk)\n\t\t\t{\n\t\t\t\tswitch(currentDirection)\n\t\t\t\t{\n\t\t\t\t\tcase Right:\n\t\t\t\t\t\tx++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Up:\n\t\t\t\t\t\ty--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Down:\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Left:\n\t\t\t\t\t\tx--;\n\t\t\t\t\t\tbreak;\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\tif(x % CityPanel.GRID_SIZE == 0 && y % CityPanel.GRID_SIZE == 0 && !moves.isEmpty())\n\t\t\t{\t\n\t\t\t\tif(allowedToMove || drunk)\n\t\t\t\t{\n\t\t\t\t\tcurrentDirection = moves.pop();\n\t\t\t\t\n\t\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\t\t\n\t\t\t\t\tif(current != next)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cIntersection == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcity.permissions[current.y][current.x].release();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(nextIntersection == null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//**************************ADDED**************************//\n\t\t\t\t\t\tif(Pathfinder.isCrossWalk(current,city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(current.y).get(current.x);\n\t\t\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile(guiList.contains(this))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tguiList.remove(this);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//**************************END ADDED**************************//\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcurrent = next;\n\t\t\t\t\t\n\t\t\t\t\tswitch(currentDirection)\n\t\t\t\t\t{\n\t\t\t\t\tcase Down:next = new Point(current.x,current.y + 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Left:next = new Point(current.x - 1,current.y);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Right:next = new Point(current.x + 1,current.y);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Up:next = new Point(current.x,current.y - 1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:next = current;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\t\n\t\t\t\tif(nextIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(city.permissions[next.y][next.x].tryAcquire())\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(cIntersection == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//**************************ADDED**************************//\n\t\t\t\t\t\tList<Gui> guiList = city.crosswalkPermissions.get(next.y).get(next.x);\n\t\t\t\t\t\tsynchronized(guiList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Pathfinder.isCrossWalk(next, city.getWalkingMap(), city.getDrivingMap()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor(Gui g : guiList)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(g instanceof PassengerGui)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(nextIntersection.acquireIntersection())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnextIntersection.acquireAll();\n\t\t\t\t\t\t\t\t\tallowedToMove = true;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallowedToMove = false;\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tguiList.add(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//**************************END ADDED**************************//\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tallowedToMove = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!allowedToMove && drunk)\n\t\t{\n\t\t\tcity.addGui(new ExplosionGui(x,y));\n\t\t\tSystem.out.println(\"DESTROYING\");\n\t\t\tcity.removeGui(this);\n\t\t\tvehicle.stopThread();\n\t\t\tsetPresent(false);\n\t\t\t\n\t\t\tIntersection nextIntersection = city.getIntersection(next);\n\t\t\tIntersection cIntersection = city.getIntersection(current);\n\t\t\t\n\t\t\tif(cIntersection == null)\n\t\t\t{\n\t\t\t\tif(city.permissions[current.y][current.x].tryAcquire() || true)\n\t\t\t\t{\n\t\t\t\t\tcity.permissions[current.y][current.x].release();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(nextIntersection == null)\n\t\t\t\t{\n\t\t\t\t\tif(!cIntersection.acquireIntersection())\n\t\t\t\t\t{\n\t\t\t\t\t\tcIntersection.releaseAll();\n\t\t\t\t\t}\n\t\t\t\t\tcIntersection.releaseIntersection();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n myLinkedList list = new myLinkedList();\n list.add(10);\n list.add(15);\n list.add(12);\n list.add(13);\n list.add(20);\n list.add(14);\n list.printList();\n listNode temp = list.findprev(14);\n temp.next.next = temp;\n list.printList();\n System.out.println(list.detectAndRemoveLoop());\n //list.reverList();\n list.printList();\n //list.swapNodes(list, 15, 13);\n //list.printList();\n\n }", "public void remove(int pos) {\n \tNode2 currentLink = first;\n \tNode2 tempPrevLink = null;\n \tint temp=1;\n \t\n\t while(temp++ != pos) {\n\t \ttempPrevLink = currentLink;\n\t\t currentLink = currentLink.nextLink;\n\t }\n\t currentLink.nextLink.prevLink = tempPrevLink;\n\t tempPrevLink.nextLink = currentLink.nextLink; \n }", "public Player nextMove() {\n\t\treturn null;\n\t\t\n\t}", "public void unapplyMove()\r\n\t{\r\n\t\tif (appliedMoves == null || appliedMoves.isEmpty()) return;\r\n\t\t\r\n\t\tdecrementPositionCount();\r\n\t\t\r\n\t\tboolean lastMoveRochade = isLastMoveRochade(); //Check before any changes to the board are made\r\n\t\tboolean isLastMoveEnPassentCapture = !lastMoveRochade && isLastMoveEnPassentCapture();\r\n\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMoveRochade)\r\n\t\t{\r\n\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\tlastMove.to.piece = lastMove.capture;\r\n\t\t\t\r\n\t\t\tField kingFieldTo = lastMove.to;\r\n\t\t\tif (kingFieldTo.coordinate.x == 6)\r\n\t\t\t{\r\n\t\t\t\tField rookRochadeField = fields[5][kingFieldTo.coordinate.y];\r\n\t\t\t\tField rookBeforeRochadeField = fields[7][kingFieldTo.coordinate.y];\r\n\t\t\t\trookBeforeRochadeField.piece = rookRochadeField.piece;\r\n\t\t\t\trookRochadeField.piece = null;\r\n\t\t\t}\r\n\t\t\telse if (kingFieldTo.coordinate.x == 2)\r\n\t\t\t{\r\n\t\t\t\tField rookRochadeField = fields[3][kingFieldTo.coordinate.y];\r\n\t\t\t\tField rookBeforeRochadeField = fields[0][kingFieldTo.coordinate.y];\r\n\t\t\t\trookBeforeRochadeField.piece = rookRochadeField.piece;\r\n\t\t\t\trookRochadeField.piece = null;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if (isLastMoveEnPassentCapture)\r\n\t\t{\r\n\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\tlastMove.to.piece = null;\r\n\t\t\t\r\n\t\t\tMove beforeLastMove = appliedMoves.get(appliedMoves.size() - 2);\r\n\t\t\tbeforeLastMove.to.piece = lastMove.capture;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (lastMove.promotion != null)\r\n\t\t\t{\r\n\t\t\t\tlastMove.from.piece = new Pawn(lastMove.color);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlastMove.to.piece = lastMove.capture;\r\n\t\t}\r\n\t\t\r\n\t\tappliedMoves.remove(appliedMoves.size() - 1);\r\n\t}", "private void addMove(PossibleMove posMov) {\r\n\t\tassert posMov != null;\r\n\r\n\t\tboolean uniqueMove = true;\r\n\t\tfor (PossibleMove p : possibleMoves) {\r\n\t\t\tif (p.equals(posMov)) {\r\n\t\t\t\tuniqueMove = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (uniqueMove) {\r\n\t\t\tpossibleMoves.add(posMov);\r\n\t\t}\r\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "private void capture(Board board, List<Move> moves) {\n int x = location.x;\n int y = location.y;\n \n Piece pc;\n Point pt;\n int move;\n \n if (color == Color.White)\n move = -1;\n else\n move = 1;\n \n pt = new Point(x - 1, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if (pc != null)\n if(this.color != pc.getColor())\n moves.add(new Move(this, pt, pc)); \n }\n pt = new Point(x + 1, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if (pc != null)\n if(this.color != pc.getColor())\n moves.add(new Move(this, pt, pc)); \n }\n }", "public ArrayList<SlidingPuzzleState> getPossibleNextMoves(){\n\t\tArrayList<SlidingPuzzleState> moves = new ArrayList<SlidingPuzzleState>();\n\t\tint holeNum = 0;\n\t\tfor (Coordinate h: _holes){\n\t\t\t\n\t\t\t//for every hole, check if its not on the edges\n\t\t\t//of the puzzle and if his next position is not\n\t\t\t//already a hole\n\t\t\t\n\t\t\tif (h.getI() > 0 && _puzzle[h.getI()-1][h.getJ()]!=0){\n\t\t\t\t\n\t\t\t\tmoves.add(new SlidingPuzzleState(this).moveHole(holeNum, Dir.UP));\n\t\t\t}\n\t\t\t\n\t\t\tif (h.getI() < (_rows-1) && _puzzle[h.getI()+1][h.getJ()]!=0){\n\t\t\t\tmoves.add(new SlidingPuzzleState(this).moveHole(holeNum, Dir.DOWN));\n\t\t\t}\n\t\t\t\n\t\t\tif (h.getJ() > 0 && _puzzle[h.getI()][h.getJ()-1]!=0){\n\t\t\t\tmoves.add(new SlidingPuzzleState(this).moveHole(holeNum, Dir.LEFT));\n\t\t\t}\n\t\t\t\n\t\t\tif (h.getJ() < (_cols-1) && _puzzle[h.getI()][h.getJ()+1]!=0){\n\t\t\t\tmoves.add(new SlidingPuzzleState(this).moveHole(holeNum, Dir.RIGHT));\n\t\t\t}\n\t\t\tholeNum++;\n\t\t}\n\t\treturn moves;\n\t}", "public Stack<Move> getNextMoves(String color, Move move) {\n Square[] squares = new Square[64];\n for (int i = 0; i < squares.length; i++) {\n squares[i] = this.squares[i].copy();\n }\n Board boardCopy = new Board(squares);\n\n //for (int i=0; i<moves.size(); i++){\n //Move move = moves.pop();\n boardCopy.movePiece(move);\n\n //}\n\n Stack<Move> nextMoves = boardCopy.getMoves(color);\n //boardCopy.undoMove(move);\n\n return nextMoves;\n }", "@Override\n public Status move(){\n\n if(onNode.getNextNode(this)==null){\n return Status.NOT_EMPTY_CAR;\n }\n List<Train> on = onNode.getNextNode(this).getTrains();\n if(!on.isEmpty()) return Status.CRASHED;\n\n Node next = onNode.getNextNode(this);\n prevNode.removeTrain(this);\n next.addTrain(this);\n x=next.getX();\n y=next.getY();\n try {\n ((Station)next).setGetOff();\n }\n catch (Exception e) {}\n \n return nextCar.move();\n }", "@Override\n\tpublic Lista<Coordenada> getNextMovements() {\n\n\t\tLista<Coordenada> lista = new Lista<Coordenada>();\n\n\t\taddCoordenada(posicion.up(), lista);\n\t\taddCoordenada(posicion.right(), lista);\n\t\taddCoordenada(posicion.down(), lista);\n\t\taddCoordenada(posicion.left(), lista);\n\t\taddCoordenada(posicion.diagonalUpRight(), lista);\n\t\taddCoordenada(posicion.diagonalUpLeft(), lista);\n\t\taddCoordenada(posicion.diagonalDownRight(), lista);\n\t\taddCoordenada(posicion.diagonalDownLeft(), lista);\n\n\t\treturn lista;\n\t}", "void move_couple() {\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(dancers[i].soulmate == -1) continue;\n\t\t\tPoint curr = this.last_positions[i];\n\t\t\tPoint des = this.dancers[i].des_pos;\n\t\t\tthis.dancers[i].next_pos = findNextPosition(curr, des);\n\t\t}\n\t}", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "void retract() {\n assert movesMade() > 0;\n Move move = _moves.remove(_moves.size() - 1);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n Piece movedPiece = move.movedPiece();\n set(c1, r1, replaced);\n set(c0, r0, movedPiece);\n _turn = _turn.opposite();\n }", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "protected Set<ChessMove> getPossibleCastlingMoves(ChessModel model, Location location, Set<ChessMove> movesSoFar) {\n\t\tCastlingAvailability castlingAvailability = model.getCastlingAvailability();\n\t\tif ((location == E1) && (getColor() == White)) {\n\t\t\t// this is the white king in the starting position\n\t\t\tif (castlingAvailability.isWhiteCanCastleKingSide()) {\n\t\t\t\tif (model.isLocationEmpty(F1) && model.isLocationEmpty(G1)) {\n\t\t\t\t\tif (!isInCheckAtLocations(model, E1, F1, G1)) {\n\t\t\t\t\t\tChessMove move = new ChessMoveCastleKingSide(getPiece(), E1, G1);\n\t\t\t\t\t\tmovesSoFar.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (castlingAvailability.isWhiteCanCastleQueenSide()) {\n\t\t\t\tif (model.isLocationEmpty(B1) && model.isLocationEmpty(C1) && model.isLocationEmpty(D1)) {\n\t\t\t\t\tif (!isInCheckAtLocations(model, B1, C1, D1, E1)) {\n\t\t\t\t\t\tChessMove move = new ChessMoveCastleQueenSide(getPiece(), E1, C1);\n\t\t\t\t\t\tmovesSoFar.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if ((location == E8) && (getColor() == Black)) {\n\t\t\t// this is the black king in the starting position\n\t\t\tif (castlingAvailability.isBlackCanCastleKingSide()) {\n\t\t\t\tif (model.isLocationEmpty(F8) && model.isLocationEmpty(G8)) {\n\t\t\t\t\tif (!isInCheckAtLocations(model, E8, F8, G8)) {\n\t\t\t\t\t\tChessMove move = new ChessMoveCastleKingSide(getPiece(), E8, G8);\n\t\t\t\t\t\tmovesSoFar.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tif (castlingAvailability.isBlackCanCastleQueenSide()) {\n\t\t\t\tif (model.isLocationEmpty(B8) && model.isLocationEmpty(C8) && model.isLocationEmpty(D8)) {\n\t\t\t\t\tif (!isInCheckAtLocations(model, B8, C8, D8, E8)) {\n\t\t\t\t\t\tChessMove move = new ChessMoveCastleQueenSide(getPiece(), E8, C8);\n\t\t\t\t\t\tmovesSoFar.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn movesSoFar;\n\t}", "private ArrayList<Move> blackKing() {\n // obtain current co-ordinates\n int x = this.getX();\n int y = this.getY();\n\n ArrayList<Move> blackMoves = new ArrayList<Move>();\n\n // set up m to refer to a Move object\n Move theMove = null;\n\n\n // the top and bottom are opposites coordinates for the black and white kings and so are left and right\n // all Unoccupied moves\n\n // first legal move is to go from x,y to x,y-1 if x,y-1 is unoccupied (top)\n if (validNormalMove(x, y - 1)) {\n theMove = new Move(this, x, y, x, y - 1, false);\n if(takeOverCheck(x, y-1)){\n theMove.setOccupied(true);\n }\n\n blackMoves.add(theMove);\n }\n\n\n // legal move is to go from x,y to x,y+1 if x,y+1 is unoccupied (bottom)\n if (validNormalMove(x, y + 1)) {\n theMove = new Move(this, x, y, x, y + 1, false);\n if(takeOverCheck(x, y+1)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n //left\n // legal move to go left from x,y to x+1, y if x+1,y is unoccupied (left)\n\n if (validNormalMove(x+1, y)) {\n theMove = new Move(this, x, y, x+1, y, false);\n if(takeOverCheck(x+1, y)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n\n }\n\n //right\n // legal move to go right from x,y to x-1, y if x-1,y is unoccupied (right)\n\n if (validNormalMove(x-1, y)) {\n theMove = new Move(this, x, y, x-1, y, false);\n\n if(takeOverCheck(x-1, y)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n\n // legal move to diagonal top right for white king\n if (validNormalMove(x-1, y - 1)) {\n theMove = new Move(this, x, y, x-1, y - 1, false);\n if(takeOverCheck(x-1, y-1)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n // legal move to diagonal bottom left\n\n if (validNormalMove(x+1, y +1)) {\n theMove = new Move(this, x, y, x+1, y + 1, false);\n\n if(takeOverCheck(x+1, y+1)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n // legal move to diagonal bottom right\n if (validNormalMove(x-1, y +1)) {\n theMove = new Move(this, x, y, x-1, y + 1, false);\n if(takeOverCheck(x-1, y+1)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n // legal move to diagonal top left\n if (validNormalMove(x+1, y-1)) {\n theMove = new Move(this, x, y, x+1, y - 1, false);\n if(takeOverCheck(x+1, y-1)){\n theMove.setOccupied(true);\n }\n blackMoves.add(theMove);\n }\n\n\n\n\n\n if (blackMoves.isEmpty())\n return null;\n return blackMoves;\n }", "public ArrayList<Move> getPossibleMoves(int startx, int starty, Board b){//String startpos, Board b){\n\t\t//startpos is the position of the current piece,\n\t\t//so we know which one it is on the board\n\t\t\n\t\tArrayList<Move> moves = new ArrayList<Move>();\n\t\t\n\t\t\n\t\t\n\t\t//int startx = Main.converttoMove(String.valueOf(startpos.charAt(0)));\n\t\t//int starty = Integer.valueOf(String.valueOf(startpos.charAt(1)));\n\t\t\t\t\t\n\t\tPosition startpo = b.getElement(startx, starty);\n\t\tString startcol = startpo.getState().getColor();\n\t\tboolean color = true;//color: white is true, black if false\n\t\tif(startcol.equalsIgnoreCase(\"b\")) {\n\t\t\tcolor = false;\n\t\t}\n\t\t\n\t\t\n\t\t//go up and down\n\t\t//Number of spaces to move in X and Y direction\n //int numSpacesYUp = starty+1;//Not sure if this math is correct\n \n\t\tint numSpacesYUp = Math.abs(starty);\n int numSpacesYDown = Math.abs(8-(starty+1));//^\n\t\t\n \n //go left and right\n\t\tint numSpacesXLeft=Math.abs(startx);//TO DO: Add Math\n\t\t//int numSpacesXRight =Math.abs(8-(startx+1)); //old\n\t\tint numSpacesXRight =Math.abs(8-(startx+1));//new\n \n \n \n\t\t//go diagonal upper right\n \n\t\tint numtoTopRightCorner = Math.min(numSpacesXRight, numSpacesYUp);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoTopRightCorner;i++) {\n \tint endx = startx+i;\n \tint endy = starty-(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\t//System.out.println(\"\");\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n }\n\t\t\n\t\t\n\t\t\n\t\t//go diagonal upper left\n\t\tint numtoTopLeftCorner = Math.min(numSpacesXLeft, numSpacesYUp);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoTopLeftCorner;i++) {\n \tint endx = startx-(i);\n \tint endy = starty-(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n \t\n \t\n }\n \n \n \n\t\t//go diagonal lewer left\n\t\tint numtoLowerLeftCorner = Math.min(numSpacesXLeft, numSpacesYDown);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoLowerLeftCorner;i++) {\n \tint endx = startx-(i);\n \tint endy = starty+(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n }\n \n\t\t//go diagonal lower right\n\t\tint numtoLowerRightCorner = Math.min(numSpacesXRight, numSpacesYDown);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoLowerRightCorner;i++) {\n \tint endx = startx+(i);\n \tint endy = starty+(i);\n \t\n \t//System.out.println(\"num spaces x right:\" + numSpacesXRight);\n \t//System.out.println(\"num spaces y down:\" + numSpacesYDown);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;//should break cause you cant go more in that direction\n \t}\n \tbreak;//can't get any more in the lower right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n \t\n \t\n }\n\t\t\n\t\t\n\t\treturn moves;//Return all possible legal moves\n\t}", "@Override\n\tpublic void remove(){\n\t\tif(previous == null || current == null)\n//\t\t\tif the next method has not yet been called, or the remove method \n//\t\t\thas already been called after the last call to the next method\n\t\t\tthrow new IllegalStateException();\n\t\telse {\n\t\t\tprevious.setNext(current.getNext());\n\t\t\tcurrent = previous.getNext();\n\t\t\tthis.list.decLength();\n\t\t}\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "ArrayList<Move> getMoves() {\n ArrayList<Move> result = new ArrayList<>();\n getMoves(result);\n return result;\n }", "public void moveKangaroo (Kangaroo a){\n if (!kangaroosInPoint.isEmpty()){\n kangaroosInPoint.remove(a);\n }\n else {\n System.out.println(\"Kangaroo not found\");\n }\n }", "public void applyMove(Move move) {\r\n Piece piece = grid[move.getStart()];\r\n piece.setPosition(move.getEnd());\r\n\r\n grid[move.getStart()] = null;\r\n grid[move.getEnd()] = piece;\r\n if (move.getTakes() != null) {\r\n grid[move.getTakes().getPosition()] = null;\r\n pieces.get(move.getTakes().getPlayerColor()).remove(move.getTakes());\r\n }\r\n\r\n moveHistory.add(move);\r\n }", "@Override\n public T next() {\n setCurrent();\n T returnValue = current;\n current = null;\n elementToRemove = returnValue;\n return returnValue;\n }", "protected List<Move> getMoves() {\n return moves;\n }", "public void undoLastMove()\n {\n if (inProgress() && stackTiles.size() > 1)\n {\n // TAKE THE TOP 2 TILES\n MahjongSolitaireTile topTile = stackTiles.remove(stackTiles.size()-1);\n MahjongSolitaireTile nextToTopTile = stackTiles.remove(stackTiles.size() - 1);\n \n // SET THEIR DESTINATIONS\n float boundaryLeft = miniGame.getBoundaryLeft();\n float boundaryTop = miniGame.getBoundaryTop();\n \n // FIRST TILE 1\n int col = topTile.getGridColumn();\n int row = topTile.getGridRow();\n int z = tileGrid[col][row].size();\n float targetX = this.calculateTileXInGrid(col, z);\n float targetY = this.calculateTileYInGrid(row, z);\n topTile.setTarget(targetX, targetY);\n movingTiles.add(topTile);\n topTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(topTile);\n \n // AND THEN TILE 2\n col = nextToTopTile.getGridColumn();\n row = nextToTopTile.getGridRow();\n z = tileGrid[col][row].size();\n targetX = this.calculateTileXInGrid(col, z);\n targetY = this.calculateTileYInGrid(row, z);\n nextToTopTile.setTarget(targetX, targetY);\n movingTiles.add(nextToTopTile);\n nextToTopTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(nextToTopTile);\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.UNDO_AUDIO_CUE.toString(), false); \n }\n }", "public void move(Scramble scr) {\n ListIterator<Integer> iter = scr.getIterator();\n while(iter.hasNext()) {\n singleMove(iter.next());\n }\n }", "private ArrayList<Move> generatePossibleMovesFor(Player player) {\n ArrayList<Point> selfStonePlacements = new ArrayList<>();\n ArrayList<Point> opponentStonePlacements = new ArrayList<>();\n for (int x = 0; x < field.length; x++)\n for (int y = 0; y < field[x].length; y++) {\n if (field[x][y] == null)\n continue;\n if (field[x][y] == this.color)\n selfStonePlacements.add(new FieldPoint(x, y));\n if (field[x][y] == opponent.getColor())\n opponentStonePlacements.add(new FieldPoint(x, y));\n }\n\n ArrayList<Move> possibleMoves = new ArrayList<>();\n\n // Check if player is in set phase or only has three stones left\n if (!player.isDoneSetting()) {\n // Every free field is a possible move\n for (Point point : pointsOfMovement) {\n if (opponentStonePlacements.contains(point) || selfStonePlacements.contains(point))\n continue;\n possibleMoves.add(new StoneMove(null, point));\n }\n } else if (player.isDoneSetting() && getCountOfStonesFor(player) > 3) {\n // Move is only possible if the neighbour field of a stone is free\n for (Point point : player == opponent ? opponentStonePlacements : selfStonePlacements) {\n for (Point neighbour : neighbourPoints.get(point)) {\n if (opponentStonePlacements.contains(neighbour) || selfStonePlacements.contains(neighbour))\n continue;\n possibleMoves.add(new StoneMove(point, neighbour));\n }\n }\n } else {\n for (Point point : player == opponent ? opponentStonePlacements : selfStonePlacements) {\n for (Point another : pointsOfMovement) {\n if (opponentStonePlacements.contains(point) || selfStonePlacements.contains(point))\n continue;\n possibleMoves.add(new StoneMove(point, another));\n }\n }\n }\n\n Collections.shuffle(possibleMoves);\n return possibleMoves;\n }", "private static void remove(State state) {\n String rp, sp, u, tp, rn, sn, tn, spn;\n List<State> prevS;\n List<State> nextS;\n for (State previous : previousStates.get(state)) {\n\n if (previous == state)\n continue;\n rp = getLabel(previous, previous);\n sp = getLabel(previous, state);\n u = getLabel(state, state);\n tp = getLabel(state, previous);\n\n if (sp.equals(\"\"))\n continue;\n\n boolean empty = true;\n for (State next : nextStates.get(state)) {\n\n if (next == state)\n continue;\n empty = false;\n rn = getLabel(next, next);\n sn = getLabel(state, next);\n tn = getLabel(next, state);\n spn = getLabel(previous, next);\n\n if (spn.length() > 0)\n spn = \"(\" + spn + \")\" + \"|\" + \"(\" + sp + \")\" + \"(\" + u + \")*\" + \"(\" + sn + \")\";\n else\n spn = \"(\" + sp + \")\" + \"(\" + u + \")*\" + \"(\" + sn + \")\";\n if (tp.length() > 0) {\n if (rp.length() > 0)\n rp = \"(\" + rp + \")\" + \"|\" + \"(\" + sp + \")\" + \"(\" + u + \")*\"\n + \"(\" + tp + \")\";\n else\n rp = \"(\" + sp + \")\" + \"(\" + u + \")*\" + \"(\" + tp + \")\";\n }\n if (tn.length() > 0) {\n if (rn.length() > 0)\n rn = \"(\" + rn + \")\" + \"|\" + \"(\" + tn + \")\" + \"(\" + u + \")*\"\n + \"(\" + sn + \")\";\n else\n rn = \"(\" + tn + \")\" + \"(\" + u + \")*\" + \"(\" + sn + \")\";\n }\n\n nextS = nextStates.get(previous);\n nextS.add(next);\n nextStates.put(previous, nextS);\n\n prevS = previousStates.get(next);\n prevS.add(previous);\n previousStates.put(next, prevS);\n\n nextS = nextStates.get(next);\n if (nextS.contains(state)) {\n nextS.remove(state);\n nextStates.put(next, nextS);\n prevS = previousStates.get(next);\n prevS.remove(state);\n previousStates.put(next, prevS);\n transitionLabels.remove(hashOf(next, state));\n }\n\n transitionLabels.put(hashOf(previous, next), spn);\n transitionLabels.put(hashOf(previous, previous), rp);\n transitionLabels.put(hashOf(next, next), rn);\n }\n\n if (empty)\n continue;\n nextS = nextStates.get(previous);\n nextS.remove(state);\n nextStates.put(previous, nextS);\n transitionLabels.remove(hashOf(previous, state));\n }\n nextStates.remove(state);\n previousStates.remove(state);\n }", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public Collection<Key> getAllPossibleMoves(Key currentKey,\n\t\t\tint numberGeneratedSoFarLength) {\n\n\t\tif (KeyPad.isFirstTwoRows(currentKey)) {\n\t\t\tif (isFirstMove(numberGeneratedSoFarLength)) {\n\t\t\t\taddTwoStepForwardToPositionCache(currentKey);\n\t\t\t} else if (isSecondMove(numberGeneratedSoFarLength)) {\n\t\t\t\tremoveTwoStepForwardFromPositionCache(currentKey);\n\t\t\t}\n\t\t}\n\n\t\treturn positionCache.get(currentKey);\n\t}", "public void moveThroughList() {\n\t\tint choice = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\n\t\tSystem.out.println(\"1. \" + \"\\t\" + \"undo ( Move backwards through list)\");\n\t\tSystem.out.println(\"2. \" + \"\\t\" + \"redo ( Move forwards through list\");\n\t\tSystem.out.println(\"3. \" + \"\\t\" + \"Exit Method\");\n\t\t\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner input = new Scanner(System.in);\n\t\tMove test;\n\t\t\n\t\t\n\t\t\n\tdo {\n\t\ttry {\n\t\tchoice = input.nextInt();\n\t\t//Undo Move\n\t\tif (choice == 1) {\n\t\t\t\n\t\t\ti = (model.moves.size() - 1); \n\t\t//\tSystem.out.println(\"i is: \" + i);\n\t\t\tif(i == 0) {\n\t\t\t\tSystem.out.println(\"There are no more moves to undo\");\n\t\t\t}\n\t\t\t\n\t\t\ttest = model.moves.get(i);\n\t\t\tundoBoard(test);\n\t\t\tmodel.copy.add(test);\n\t\t\tmodel.moves.remove(test);\n\t\t\t System.out.println(\"Move has been removed \");\n\t\t//\tmodel.printList();\n\t\t\t\n\t\t\t//Redo Move\n\t\t} else if (choice == 2) {\n\n\t\t\tj = (model.copy.size() - 1);\n\t\t\t//System.out.println(\"J is: \" + j );\n\t\t\tif(j == -1) {\n\t\t\t\tSystem.out.println(\"There are no moves to copy\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\tMove copy = model.copy.get(j);\n\t\t\tmodel.moves.add(copy);\n\t\t\tmodel.copy.remove(copy);\n\t\t\ti = (model.moves.size() - 1);\n\t\t\t//System.out.println(\"i is: \" + i);\n\t\t\ttest = model.moves.get(i);\n\t\t\tredoBoard(test);\n\t\t\tSystem.out.println(\"move added\");\n\t\t//\tmodel.printList();\n\t\t\t}\n\t\t} \n\t\t}catch(InputMismatchException e) {\n\t\t\tSystem.out.println(\"Error in input. Please try again\");\n\t\t}\n\t\t//Exit method\n\t} while(choice != 3);\n\t\t\n\t\t\n\t}", "public void remove()\n {\n list.remove(cursor);\n cursor--;\n }", "private void addToMoves(char move) {\n this.prevMoves += move;\n }", "private void removeChildren(\n ReactShadowNode parentNode,\n @Nullable ReadableArray moveFrom,\n @Nullable ReadableArray moveTo,\n @Nullable ReadableArray removeFrom) {\n\n int prevIndex = Integer.MAX_VALUE;\n\n mMoveProxy.setup(moveFrom, moveTo);\n\n int moveFromIndex = mMoveProxy.size() - 1;\n int moveFromChildIndex = (moveFromIndex == -1) ? -1 : mMoveProxy.getMoveFrom(moveFromIndex);\n\n int numToRemove = removeFrom == null ? 0 : removeFrom.size();\n int[] indicesToRemove = new int[numToRemove];\n if (numToRemove > 0) {\n Assertions.assertNotNull(removeFrom);\n for (int i = 0; i < numToRemove; i++) {\n int indexToRemove = removeFrom.getInt(i);\n indicesToRemove[i] = indexToRemove;\n }\n }\n\n // this isn't guaranteed to be sorted actually\n Arrays.sort(indicesToRemove);\n\n int removeFromIndex;\n int removeFromChildIndex;\n if (removeFrom == null) {\n removeFromIndex = -1;\n removeFromChildIndex = -1;\n } else {\n removeFromIndex = indicesToRemove.length - 1;\n removeFromChildIndex = indicesToRemove[removeFromIndex];\n }\n\n // both moveFrom and removeFrom are already sorted, but combined order is not sorted. Use\n // a merge step from mergesort to walk over both arrays and extract elements in sorted order.\n\n while (true) {\n if (moveFromChildIndex > removeFromChildIndex) {\n moveChild(removeChildAt(parentNode, moveFromChildIndex, prevIndex), moveFromIndex);\n prevIndex = moveFromChildIndex;\n\n --moveFromIndex;\n moveFromChildIndex = (moveFromIndex == -1) ? -1 : mMoveProxy.getMoveFrom(moveFromIndex);\n } else if (removeFromChildIndex > moveFromChildIndex) {\n removeChild(removeChildAt(parentNode, removeFromChildIndex, prevIndex), parentNode);\n prevIndex = removeFromChildIndex;\n\n --removeFromIndex;\n removeFromChildIndex = (removeFromIndex == -1) ? -1 : indicesToRemove[removeFromIndex];\n } else {\n // moveFromChildIndex == removeFromChildIndex can only be if both are equal to -1\n // which means that we exhausted both arrays, and all children are removed.\n break;\n }\n }\n }", "public void performMove() {\n\t\tfor (int x = 0; x <= size-1; x++)\n\t\t\tfor (int y = 0; y <= size-1; y++)\n\t\t\t\tlocalBoard[y][x] = 0;\n\t\t\n\t\t//reset the flag that indicates if a move has been found that decreases the heuristic\n\t\tfoundBetterMove = false;\n\t\t\n\t\t//fill in the appropriate heuristic values\n\t\tpopulateHillValues();\n\t\tArrayList<PotentialMove> myBestList = new ArrayList<PotentialMove>();\n\n\t\t//Find the square with the lowest heuristic value. this should really write the values to an array. \n\t\tint squareDifferential = -1;\n\t\t//String outValue = \"\";\n\t\tfor (int y = 0; y <= size-1; y++) {\n\t\t\tfor (int x = 0; x <= size-1; x++){\n\t\t\t\t//outValue = outValue + localBoard[y][x];\n\t\t\t\tif (squareDifferential < 0) //lowestSquareFound not found yet \n\t\t\t\t{\n\t\t\t\t\tif ((NQueens.queens[x] != y) && //set if the current square isn't already occupied by a queen\n\t\t\t\t\t\t\t(localBoard[NQueens.queens[x]][x] >= localBoard[y][x])) {\n\t\t\t\t\t\tif (localBoard[y][x] == localBoard[NQueens.queens[x]][x])\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) > squareDifferential) { // find the square with the largest differential in value from the queen in the column\n\t\t\t\t\tmyBestList.clear();\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t}\n\t\t\t\telse if (((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) == squareDifferential) && // the differential is equal to the current best differential\n\t\t\t\t\t\t(NQueens.queens[x] != y)) { // and isn't already occupied by a queen\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t}\n\t\t\t\t//else the square is higher, has a queen or isn't marginally better than the current queen's position in the row\n\t\t\t}\n\t\t\t//outValue = outValue + \"\\n\";\n\t\t}\n\t\t//JOptionPane.showMessageDialog(null, outValue);\n\t\t\n\t\tif (myBestList.isEmpty())\n\t\t\treturn;\n\t\t\n\t\tint listSize = myBestList.size();\n\t\tPotentialMove bestMove;\n\t\t\n\t\t//grab the non-Sideways moves first\n\t\tfor (int i = 0; i < listSize; i++) {\n\t\t\tif (!(myBestList.get(i).isSideways)) {\n\t\t\t\tbestMove = myBestList.get(i);\n\t\t\t\tfoundBetterMove = true;\n\t\t\t\tsidewaysMoves = 0;\n\t\t\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sidewaysMoves > MAXSIDEWAYSMOVES) { // hit MAXSIDEWAYSMOVES consecutive sideways moves, mark as unsolvable\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//all available moves sideways moves, let's select one randomly\n\t\tRandom generator = new Random();\n\t\tint randomElement = generator.nextInt(listSize);\n\t\t\n\t\tbestMove = myBestList.get(randomElement);\n\t\tfoundBetterMove = true;\n\t\tsidewaysMoves++;\n\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t}", "private void calculatePossibleMoves(Tile orig, List<Tile> availableSpots) {\n for (Tile spot : orig.getConnectedTiles()) {\n if (spot != null) {\n if (!availableSpots.contains(spot)) {\n availableSpots.add(spot);\n this.calculatePossibleMoves(spot, availableSpots);\n }\n }\n }\n }" ]
[ "0.6524632", "0.6492453", "0.63604873", "0.63604015", "0.6225683", "0.6215696", "0.61656314", "0.60807765", "0.60528284", "0.6012279", "0.6000292", "0.595628", "0.58880734", "0.5867926", "0.5849853", "0.58181655", "0.58014154", "0.57809573", "0.5777177", "0.5769508", "0.57488537", "0.57444996", "0.57421094", "0.5718186", "0.5717952", "0.5713352", "0.570506", "0.5697782", "0.56676346", "0.5662442", "0.5661036", "0.5658459", "0.5656214", "0.5655855", "0.5653279", "0.5651997", "0.56449586", "0.56405336", "0.5632097", "0.55990577", "0.55985963", "0.55978185", "0.55966175", "0.55899245", "0.55888444", "0.55645543", "0.55635357", "0.5559774", "0.55444705", "0.5532074", "0.5530964", "0.5529031", "0.5519005", "0.5514741", "0.55127496", "0.54997635", "0.54986274", "0.54889727", "0.547842", "0.5477941", "0.54763365", "0.5464103", "0.54596037", "0.54590577", "0.5458112", "0.5455073", "0.54457206", "0.5443662", "0.5441061", "0.5436403", "0.54297835", "0.5427047", "0.54216427", "0.5412269", "0.54079974", "0.5403607", "0.5402398", "0.5389343", "0.53880787", "0.53857225", "0.537776", "0.5376481", "0.5375259", "0.5372747", "0.5367078", "0.5364546", "0.53633374", "0.53584576", "0.5346925", "0.5346156", "0.53451085", "0.5335551", "0.533447", "0.5330024", "0.5328811", "0.5327166", "0.5326774", "0.53245157", "0.5324099", "0.5322593" ]
0.54843074
58
breakthrough maybe since its a doing a new search every single time it is putting a new player every time take a look at that try making the search return only one move at a time. hunting the wumpus function copy of the function above. Need to return only one function and then call the earlier search function so it is shooting the wumpus but it isn't finding it's way back
public WumpusState huntTheWumpus(GameTile[][] visibleMap) { WumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY); Queue<WumpusState> queue = new LinkedList<WumpusState>(); //use the queue in the same way HashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>(); //add all children to the queue, queue.add(state); while(!queue.isEmpty()) { WumpusState currentState = queue.remove(); System.out.println(currentState.toString()); //check whether the wumpus can be shot if(canShootWumpus(currentState)) { //need a function to check where the agent needs to shoot his arrow ArrayList<AgentAction> actions = currentState.getAllActions(); //maybe just not run this for loop //we don't know for(int i=1;i<actions.size(); i++) { System.out.println(actions.get(i)); nextMoves.add(actions.get(i)); } nextMoves.add(shootTheWumpus(currentState)); wumpusHunted = true; return currentState; } if(visitedStates.containsKey(currentState.toString())) { continue; } else { visitedStates.put(currentState.toString(), true); WumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates(); for(int j=0; j<childrenOfCurrentChild.length; j++) { if(childrenOfCurrentChild[j]!=null) { queue.add(childrenOfCurrentChild[j]); } } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MahjongSolitaireMove findMove()\n {\n // MAKE A MOVE TO FILL IN \n MahjongSolitaireMove move = new MahjongSolitaireMove();\n\n // GO THROUGH THE ENTIRE GRID TO FIND A MATCH BETWEEN AVAILABLE TILES\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[i][j];\n if (stack1.size() > 0)\n {\n // GET THE FIRST TILE\n MahjongSolitaireTile testTile1 = stack1.get(stack1.size()-1);\n for (int k = 0; k < gridColumns; k++)\n {\n for (int l = 0; l < gridRows; l++)\n {\n if (!((i == k) && (j == l)))\n { \n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[k][l];\n if (stack2.size() > 0) \n {\n // AND TEST IT AGAINST THE SECOND TILE\n MahjongSolitaireTile testTile2 = stack2.get(stack2.size()-1);\n \n // DO THEY MATCH\n if (testTile1.match(testTile2))\n {\n // YES, FILL IN THE MOVE AND RETURN IT\n move.col1 = i;\n move.row1 = j;\n move.col2 = k;\n move.row2 = l;\n return move;\n }\n }\n }\n }\n }\n }\n }\n }\n // WE'VE SEARCHED THE ENTIRE GRID AND THERE\n // ARE NO POSSIBLE MOVES REMAINING\n return null;\n }", "private Worm getFirstWormInRangeSpecial() {\n \n int count = 0;\n Worm targetWorm = null;\n\n //Jika worm saat ini adalah Agent (bisa menggunakan Banana Bomb)\n if (gameState.myPlayer.worms[1].id == gameState.currentWormId) {\n count = gameState.myPlayer.worms[1].bananaBombs.count;\n int range = gameState.myPlayer.worms[1].bananaBombs.range;\n for (Worm enemyWorm : opponent.worms) {\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, enemyWorm.position.x, enemyWorm.position.y) > range) {\n continue;\n }\n if (enemyWorm.health <= 0) {\n continue;\n }\n //AUTO NYERANG WORM YANG PERTAMAKALI DITEMUKAN DI DALAM RANGE\n targetWorm = enemyWorm;\n break;\n }\n\n }\n\n //Jika worm saat ini adalah Technician (bisa menggunakan Snowball)\n if (gameState.myPlayer.worms[2].id == gameState.currentWormId) {\n count = gameState.myPlayer.worms[2].snowballs.count;\n int range = gameState.myPlayer.worms[2].snowballs.range;\n for (Worm enemyWorm : opponent.worms) {\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, enemyWorm.position.x, enemyWorm.position.y) > range) {\n continue;\n }\n if (enemyWorm.roundsUntilUnfrozen > 1) {\n continue;\n }\n //AUTO NYERANG WORM YANG PERTAMAKALI DITEMUKAN DI DALAM RANGE\n targetWorm = enemyWorm;\n break;\n }\n\n }\n \n return targetWorm;\n\n }", "public static String searchSmart(int player,int mode,int move){\n\tboolean flag = false;\r\n\tString inp = null;\r\n\tint row=0,col=0;\r\n\tint row1=-1,col1=-1;\r\nif(mode==3){\r\n\tif(move==2){\r\n\t\tif(gamebd[0][1]==2||gamebd[1][0]==2){\r\n\t\t\tinp=3+\" \"+3;\r\n\t\t\treturn inp;\r\n\t\t}\r\n\t\t\r\n\t\telse if(gamebd[2][1]==2||gamebd[1][2]==2){\r\n\t\t\tinp=1+\" \"+1;\r\n\t\t\treturn inp;\r\n\t\t}}\r\n}\r\nfor(int i=0;i<3;i++){//checks if any of the rows have 2 computer moves and third empty so as to fill it and win\r\n\tint count=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int j=0;j<3;j++){\r\n\t\tif(gamebd[i][j]==player){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif(gamebd[i][j]==0)\r\n\t\t\t\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=j;\r\n\t\t}\r\n\t}\r\n\r\n\tif(count==2&&row1>=0&&col1>=0){\r\n\t\t//System.out.println(\"rowon\");\r\n\t\trow=row1+1;\r\n\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}}\r\nfor(int j=0;j<3;j++){//checks if any of the columns have 2 computer moves and third empty so as to fill it and win\r\n\r\n\tint count=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=0;i<3;i++){\r\n\t\tif(gamebd[i][j]==player){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif(gamebd[i][j]==0)\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=j;\r\n\t\t}\r\n\t}\r\n\tif(count==2&&row1>=0&&col1>=0){\r\n\t\trow=row1+1;\r\n\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}}\r\n//The below code checks if any of the diagonals have 2 computer moves and third empty so as to fill it or 2 human moves and third empty so as to block it \r\nint count=0;\r\nint countopp=0;\r\nrow1=-1;\r\ncol1=-1;\r\nfor(int i=0;i<3;i++){\t\r\nif(gamebd[i][i]==player)\r\n\t\tcount ++;\t\r\nif(gamebd[i][i]==0)\r\n\t\trow1=col1=i;\r\n}\r\n\tif((count==2)&&row1>=0&&col1>=0)\r\n\t{\r\n\t\tcol=row=(row1+1);\r\n\tinp=row+\" \"+col;\r\n\tflag=true;\r\n\treturn inp;\r\n}\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=0;i<3;i++){\t\r\n\t\tif(gamebd[i][i]!=player&&gamebd[i][i]>0)\r\n\t\t\t\tcountopp ++;\t\r\n\t\tif(gamebd[i][i]==0)\r\n\t\t\t\trow1=col1=i;\r\n\t\t\t}\r\n\tif((countopp==2)&&row1>=0&&col1>=0)\r\n\t{\r\n\t\tcol=row=(row1+1);\r\n\tinp=row+\" \"+col;\r\n\tflag=true;\r\n\treturn inp;\r\n}\r\n\t count=0;\r\n\t countopp=0;\r\n\trow1=-1;\r\n\tcol1=-1;\r\n\tfor(int i=2;i>=0;i--){\r\n\t\tif(gamebd[i][2-i]==player)\r\n\t\t\tcount ++;\r\n\t\tif(gamebd[i][2-i]==0)\r\n\t\t{\r\n\t\t\trow1=i;\r\n\t\t\tcol1=2-i;\r\n\t\t}\r\n\t\t}\r\n\t\tif((count==2)&&row1>=0&&col1>=0)\r\n\t\t{\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\tinp=row+\" \"+col;\r\n\t\tflag=true;\r\n\t\treturn inp;\r\n\t}\r\n\t\trow1=-1;\r\n\t\tcol1=-1;\r\n\t\tfor(int i=2;i>=0;i--){\r\n\t\t\tif(gamebd[i][2-i]!=player&&gamebd[i][2-i]>0)\r\n\t\t\tcountopp++;\r\n\t\t\tif(gamebd[i][2-i]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=2-i;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tif((countopp==2)&&row1>=0&&col1>=0)\r\n\t\t\t{\r\n\t\t\t\trow=row1+1;\r\n\t\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}\r\n\tfor(int i=0;i<3;i++){//checks if any of the rows have 2 human moves and third empty so as to block it and not allow human to win\r\n\t\t countopp=0;\r\n\t\t row1=-1;\r\n\t\t\tcol1=-1;\r\n\t\tfor(int j=0;j<3;j++){\r\n\t\t\tif(gamebd[i][j]!=player&&gamebd[i][j]>0){\r\n\t\t\t\tcountopp++;\r\n\t\t\t}\r\n\t\t\tif(gamebd[i][j]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=j;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(countopp==2&&row1>=0&&col1>=0){\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}}\r\n\tfor(int j=0;j<3;j++){//checks if any of the columns have 2 human moves and third empty so as to block human and not allow to win\r\n\t\t countopp=0;\r\n\t\t row1=-1;\r\n\t\t\tcol1=-1;\r\n\t\tfor(int i=0;i<3;i++){\r\n\t\t\tif(gamebd[i][j]!=player&&gamebd[i][j]>0){\r\n\t\t\t\tcountopp++;\r\n\t\t\t}\r\n\t\t\tif(gamebd[i][j]==0)\r\n\t\t\t{\r\n\t\t\t\trow1=i;\r\n\t\t\t\tcol1=j;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(countopp==2&&row1>=0&&col1>=0){\r\n\t\t\trow=row1+1;\r\n\t\t\tcol=col1+1;\r\n\t\t\tinp=row+\" \"+col;\r\n\t\t\tflag=true;\r\n\t\t\treturn inp;\r\n\t\t}}\r\nif(flag==false){//Now since all cases are checked(of winning and not allowing human to win), computer will play a random move\r\nRandom rand = new Random();\r\nint min=0;\r\nint max=2;\r\nint a,b;\r\ndo{\r\n\t a = rand.nextInt(max-min+1)+min;\r\n\t b = rand.nextInt(max-min+1)+min;\r\n\t //System.out.println(a+\"\"+b);\r\n}while(gamebd[a][b]!=0);\r\ninp=(a+1)+\" \"+(b+1);\r\n}\r\nreturn inp;\r\n}", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "public PentagoMove alphabetaw(PentagoBoardState boardState){\n PentagoBoardState pbs = (PentagoBoardState) boardState.clone();\n ArrayList<PentagoMove> legalmoves = pbs.getAllLegalMoves();\n\n PentagoMove bestmove = legalmoves.get(0);\n PentagoMove bestopponentmove = new PentagoMove(0,0,0,0,0);\n int bestmovescore = -9999999;\n int bestwhitescore = 0;\n //ArrayList<Integer> scores = new ArrayList<Integer>();\n for(int i = 0;i<legalmoves.size()-1;i++){\n\n PentagoBoardState newboard = (PentagoBoardState) pbs.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove next = legalmoves.get(i);\n\n newboard.processMove(next);\n\n int score = evaluate(newboard);\n //scores.add(score);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n\n if(score > 100000){\n newboard.getWinner();\n newboard.printBoard();\n System.out.println(\"FOUND A WINNER\" + score);\n return next;\n }\n\n\n PentagoMove currentopponentmove;\n ArrayList<PentagoMove> opponentlegalmoves = newboard.getAllLegalMoves();\n if (opponentlegalmoves.size()!=0){\n currentopponentmove = opponentlegalmoves.get(0);\n }\n\n int minopponentmovescore = 999999;\n int thismovescore = -9999;\n ArrayList<PentagoMove> bestopponentmoves = new ArrayList<PentagoMove>();\n PentagoMove currentbestopponentmove = new PentagoMove(0,0,0,0,0);\n\n for(int a = 0;a<opponentlegalmoves.size()-1;a++){\n\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove opponentnext = opponentlegalmoves.get(a);\n\n pbsopponent.processMove(opponentnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int opponentscore = evaluate(pbsopponent);\n\n\n\n\n\n if (minopponentmovescore>opponentscore){\n //currentopponentmove = opponentnext;\n minopponentmovescore = opponentscore;\n bestopponentmoves.add(opponentnext);\n currentbestopponentmove = opponentnext;\n }\n\n\n }\n bestopponentmove = currentbestopponentmove;\n //lvl 3\n /*\n\n int lvl3minscore =99999;\n PentagoMove currentmaxmove;\n for (int r = 0;r<bestopponentmoves.size()-1;r++) {\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n pbsopponent.processMove(bestopponentmoves.get(r));\n\n ArrayList<PentagoMove> maxlegalmoves = pbsopponent.getAllLegalMoves();\n if (maxlegalmoves.size() != 0) {\n currentmaxmove = maxlegalmoves.get(0);\n }\n int opponentscore = evaluate(pbsopponent);\n int findminmaxmovescore = -99999;\n for (int s = 0; s < maxlegalmoves.size() - 1; s++) {\n\n PentagoBoardState maxboard = (PentagoBoardState) pbsopponent.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove maxnext = maxlegalmoves.get(s);\n\n maxboard.processMove(maxnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int maxnextscore = evaluate(pbsopponent);\n if (findminmaxmovescore < maxnextscore) {\n currentmaxmove = maxnext;\n findminmaxmovescore = maxnextscore;\n }\n }\n if (thismovescore<findminmaxmovescore){\n //currentopponentmove = opponentnext;\n thismovescore = findminmaxmovescore;\n }\n\n //opponentscore = maxmovescore;\n }\n\n //end experiment\n\n\n\n\n if (mycolour ==1){\n lvl3minscore =minopponentmovescore;\n }\n */\n if (minopponentmovescore>bestmovescore){//minopponentmovescore\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n\n }\n else if (minopponentmovescore == bestmovescore){\n if (score > bestwhitescore){\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n }\n\n\n\n }\n\n\n }\n System.out.println(\"final max player move score: \"+ bestmovescore + \"\\n My best move: \"+bestmove.toPrettyString() + \"\\n My best move: \"+ bestopponentmove.toPrettyString());\n return bestmove;\n }", "public void doAction()\n {\n \n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n \n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n \n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n //Test the environment\n /*if (w.hasBreeze(cX, cY))\n {\n System.out.println(\"I am in a Breeze\");\n }\n if (w.hasStench(cX, cY))\n {\n System.out.println(\"I am in a Stench\");\n }\n if (w.hasPit(cX, cY))\n {\n System.out.println(\"I am in a Pit\");\n }\n if (w.getDirection() == World.DIR_RIGHT)\n {\n System.out.println(\"I am facing Right\");\n }\n if (w.getDirection() == World.DIR_LEFT)\n {\n System.out.println(\"I am facing Left\");\n }\n if (w.getDirection() == World.DIR_UP)\n {\n System.out.println(\"I am facing Up\");\n }\n if (w.getDirection() == World.DIR_DOWN)\n {\n System.out.println(\"I am facing Down\");\n }\n */\n \n //decide next move\n if(w.hasStench(cX, cY)&&w.hasArrow())//Wumpus can be shot if located\n {\n if((w.hasStench(cX, cY+2))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX+2, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX, cY-1))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX, cY+1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX, cY-2))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX-2, cY))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX, cY+1))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX, cY-1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n else if(cX==1&&cY==1) //First tile. Shoot North. If wumpus still alive, store its location as (2,1) to avoid it\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n if(w.hasStench(cX, cY))\n {\n wumpusLoc[0] = 2;\n wumpusLoc[1] = 1;\n }\n }\n else if(cX==1&&cY==4) //Condition for corner\n {\n if(w.isVisited(1, 3))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(2, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==1) //Condition for corner\n {\n if(w.isVisited(3, 1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 2))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==4) //Condition for corner\n {\n if(w.isVisited(3, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 3))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if((cX==1)&&(w.isVisited(cX+1, cY-1))) //Condition for edge\n {\n \n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cX==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==1)&&(w.isVisited(cX-1, cY+1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else //Can't locate wumpus, go back to safe location\n {\n turnTo((w.getDirection()+2)%4);\n w.doAction(World.A_MOVE);\n }\n }\n else // No stench. Explore \n {\n if(w.isValidPosition(cX, cY-1)&&!w.isVisited(cX, cY-1)&&isSafe(cX, cY-1)) \n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY)&&!w.isVisited(cX+1, cY)&&isSafe(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY)&&!w.isVisited(cX-1, cY)&&isSafe(cX-1,cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n if(w.isValidPosition(cX, cY+1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n }\n \n }", "public AgentAction getNextMove(GameTile [][] visibleMap) {\r\n\t\t//Possible things to add to your moves\r\n//\t\tnextMove = AgentAction.doNothing;\r\n//\t\tnextMove = AgentAction.moveDown;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveLeft;\r\n//\t\tnextMove = AgentAction.pickupSomething;\r\n//\t\tnextMove = AgentAction.declareVictory;\r\n//\r\n//\t\tnextMove = AgentAction.shootArrowNorth;\r\n//\t\tnextMove = AgentAction.shootArrowSouth;\r\n//\t\tnextMove = AgentAction.shootArrowEast;\r\n//\t\tnextMove = AgentAction.shootArrowWest;\r\n//\t\tnextMove = AgentAction.quit\r\n\t\t\r\n\t\t\r\n\r\n\t\t//Ideally you would remove all this code, but I left it in so the keylistener would work\r\n\t\tif(keyboardPlayOnly) {\r\n\t\t\tif(nextMove == null) {\r\n\t\t\t\treturn AgentAction.doNothing;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tAgentAction tmp = nextMove;\r\n\t\t\t\tnextMove = null;\r\n\t\t\t\treturn tmp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//This code plays 5 \"games\" and then quits\r\n\t\t\t//Just does random things\r\n\t\t\tif(numGamesPlayed > 19) {\r\n\t\t\t\treturn AgentAction.quit;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(nextMoves.isEmpty()) {\r\n\t\t\t\t\tsetStartingPosition(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tWumpusState currentState = huntTheWumpus(visibleMap);\r\n//\t\t\t\t\tSystem.out.println(wumpusHunted);\r\n//\t\t\t\t\tif(wumpusHunted) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//this is the code to collect the gold\r\n//\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\tcurrentState = findTheGold(currentState);\r\n//\t\t\t\t\tif(currentState.getGoldCollected()) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif(!goldCollected) {\r\n\t\t\t\t\t\twellItsDarkNow(visibleMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(goldCollected) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n\t\t\t\t\t\taddToNextMoves(visibleMap);\r\n//\t\t\t\t\t\tgoldCollected = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(!nextMoves.isEmpty()) {\r\n\t\t\t\t\tSystem.out.println(nextMoves.peek());\r\n\t\t\t\t\tsetNextMove(nextMoves.remove());\r\n//\t\t\t\t\tSystem.out.println(nextMove);\r\n//\t\t\t\t\treturn nextMove;\r\n\t\t\t\t}\r\n\t\t\t\treturn nextMove;\r\n//\t\t\t\tcurrentNumMoves++;\r\n//\t\t\t\tif(currentNumMoves < 20) {\r\n//\t\t\t\t\treturn AgentAction.randomAction();\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\treturn AgentAction.declareVictory;\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\n if (getIntegers().contains(5) && (c < (r.length - 4)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3]) && (-1 != r[c + 4])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n ++r[c + 4];\n }\n\n if (getIntegers().contains(4) && (c < (r.length - 3)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n }\n if (getIntegers().contains(3) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(2) && (c < (r.length - 1)))\n if ((-1 != r[c]) && (-1 != r[c + 1])) {\n ++r[c];\n ++r[c + 1];\n }\n }\n }\n\n for (int c = 0; c < board[0].length; c++) {\n for (int r = 0; r < board.length; r++) {\n if (getIntegers().contains(5) && (r < (board.length - 4)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n\n if (getIntegers().contains(4) && (r < (board.length - 3)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n if (getIntegers().contains(3) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(2) && (r < (board.length - 1)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n }\n }\n } else {\n// System.out.println(\"Hitting\");\n\n for (final Location hit : getHits()) {\n final int r = hit.getRow();\n final int c = hit.getCol();\n\n if (getIntegers().contains(2)) {\n if ((0 <= (c - 1)) && (-1 != board[r][c]) && (-1 != board[r][c - 1])) {\n ++board[r][c];\n ++board[r][c - 1];\n }\n\n\n if (((c + 1) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1])) {\n ++board[r][c];\n ++board[r][c + 1];\n }\n\n if ((0 <= (r - 1)) && (-1 != board[r][c]) && (-1 != board[r - 1][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n }\n\n if (((r + 1) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n\n\n }\n if (getIntegers().contains(3)) {\n final int inc = Collections.frequency(getIntegers(), 3);\n\n if ((0 <= (c - 2)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2])) {\n board[r][c] += inc;\n board[r][c - 1] += inc;\n board[r][c - 2] += inc;\n }\n if (((c + 2) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2])) {\n board[r][c] += inc;\n board[r][c + 1] += inc;\n board[r][c + 2] += inc;\n }\n if ((0 <= (r - 2)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c])) {\n board[r][c] += inc;\n board[r - 1][c] += inc;\n board[r - 2][c] += inc;\n }\n if (((r + 2) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n board[r][c] += inc;\n board[r + 1][c] += inc;\n board[r + 2][c] += inc;\n }\n\n\n }\n if (getIntegers().contains(4)) {\n if ((0 <= (c - 3)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n }\n if (((c + 3) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n }\n if ((0 <= (r - 3)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n }\n if (((r + 3) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n\n\n }\n if (getIntegers().contains(5)) {\n if ((0 <= (c - 4)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3]) && (-1 != board[r][c - 4])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n ++board[r][c - 4];\n }\n if (((c + 4) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3]) && (-1 != board[r][c + 4])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n ++board[r][c + 4];\n }\n if ((0 <= (r - 4)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c]) && (-1 != board[r - 4][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n ++board[r - 4][c];\n }\n if (((r + 4) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n }\n }\n\n for (final Location hit : getHits()) {\n board[hit.getRow()][hit.getCol()] = 0;\n }\n }\n\n// for (int[] i : board)\n// System.out.println(Arrays.toString(i));\n return findLargest();\n }", "public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }", "public BattleSimulator findBattle(){\r\n\r\n List<Enemy> enemies = world.getEnemies();\r\n Character character = world.getCharacter();\r\n List<MovingEntity> activeStructures = world.getActiveStructures();\r\n List<MovingEntity> friendlyEntities = world.getFriendlyEntities();\r\n List<Ally> allies = world.getAllies();\r\n\r\n\r\n // Create potentialFighting list which begins with all enemies in the world\r\n ArrayList<MovingEntity> potentialFighting = new ArrayList<MovingEntity>(enemies);\r\n ArrayList<MovingEntity> fighters = new ArrayList<MovingEntity>();\r\n List<Pair<MovingEntity, Double>> pairEnemyDistance = new ArrayList<Pair<MovingEntity, Double>>();\r\n ArrayList<MovingEntity> structures = new ArrayList<MovingEntity>();\r\n\r\n // For each enemy in potentialFighting, find the distance from enemy to character \r\n // If character is in battle radius of enemy, add enemy to a pairEnemyDistance list, remove them from potentialFighting list\r\n for(MovingEntity enemy: enemies) {\r\n double distanceSquaredBR = inRangeOfCharacter(character, enemy, enemy.getBattleRadius());\r\n if(distanceSquaredBR >= 0){\r\n potentialFighting.remove(enemy);\r\n Pair<MovingEntity, Double> pairEnemy = new Pair<MovingEntity, Double>(enemy, distanceSquaredBR);\r\n pairEnemyDistance.add(pairEnemy);\r\n }\r\n }\r\n // if no enemies within battle radius, no battle happens\r\n if (pairEnemyDistance.size() == 0) {\r\n return null;\r\n \r\n // else a battle is about to begin!!!\r\n } else if(pairEnemyDistance.size() > 0) {\r\n // For remaining enemies in potentialFighting list, if fighters list size > 0 and if character is in support radius of that enemy\r\n // also add that enemy to pairEnemyDistance list\r\n for(MovingEntity enemy : potentialFighting){\r\n double distanceSquaredSR = inRangeOfCharacter(character, enemy, enemy.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n Pair<MovingEntity, Double> pairEnemy = new Pair<MovingEntity, Double>(enemy, distanceSquaredSR);\r\n pairEnemyDistance.add(pairEnemy);\r\n }\r\n }\r\n }\r\n\r\n // Sort pairEnemyDistance list by distance of enemy to character, so that the closest enemy is first, the furthest enemy is last\r\n Collections.sort(pairEnemyDistance, new Comparator<Pair<MovingEntity, Double>>() {\r\n @Override\r\n public int compare(final Pair<MovingEntity, Double> p1, final Pair<MovingEntity, Double> p2) {\r\n if(p1.getValue1() > p2.getValue1()) {\r\n return 1;\r\n } else {\r\n return -1;\r\n }\r\n }\r\n });\r\n\r\n // Take all enemies from sorted pairEnemyDistance and add to fighters list\r\n for(Pair<MovingEntity, Double> pairEnemy : pairEnemyDistance) {\r\n fighters.add(pairEnemy.getValue0());\r\n }\r\n \r\n // For each tower, find the distance from tower to character\r\n // If character is in the support radius of tower, add tower to structure list\r\n if(activeStructures.size() > 0){\r\n for(MovingEntity structure : activeStructures) {\r\n if(structure.getID().equals(\"TowerBattler\")) {\r\n double distanceSquaredSR = inRangeOfCharacter(character, structure, structure.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n structures.add(structure);\r\n }\r\n }\r\n }\r\n }\r\n // If character is in the support radius of friendly entities, add to fighters\r\n if(friendlyEntities.size() > 0){\r\n for(MovingEntity friendly : friendlyEntities) {\r\n double distanceSquaredSR = inRangeOfCharacter(character, friendly, friendly.getSupportRadius());\r\n if(distanceSquaredSR >= 0){\r\n fighters.add(friendly);\r\n }\r\n }\r\n }\r\n \r\n // Add all allies to fighters list\r\n for(Ally ally : allies) {\r\n fighters.add(ally);\r\n }\r\n\r\n // Construct BattleSimulator class with character, fighters, structures\r\n BattleSimulator battle = new BattleSimulator(character, fighters, structures);\r\n\r\n // battle is about to begin!\r\n return battle;\r\n }", "public String[] search() {\n\t\t\n\t\troot.setScore(0);\n\t\tleaves = 0;\n\t\t\n\t\t/*\n\t\t * Interrupt the think() thread so we can have the updated game tree\n\t\t */\n\t\t\n\t\tString[] move = new String[2];\n\t\t\n\t\t// Find the max or min value for the white or black player respectively\n\t\tfloat val = alphaBeta(root, max_depth, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, player);\n\t\t\n\t\t// Retrieve the move that has the min/max vlaue\n\t\tArrayList<Node> moves = root.getChildren();\n\t\tfor(Node n : moves) {\n\t\t\tif(Float.compare(n.value, val) == 0) {\n\t\t\t\tint[] m = new int[6];\n\t\t\t\tint encodedM = n.move;\n\t\t\t\t\n\t\t\t\t// Decode the move\n\t\t\t\tfor(int i = 0; i < 6; i++) {\n\t\t\t\t\tm[i] = encodedM & 0xf;\n\t\t\t\t\tencodedM >>= 4;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Convert the array into a string array with the format [0] => \"a7-b7\", [1] => \"b5\"\n\t\t\t\tmove[0] = ((char)(m[0] + 97)) + \"\" + (m[1]) + \"-\" + ((char)(m[2] + 97)) + \"\" + (m[3]);\n\t\t\t\tmove[1] = ((char)(m[4] + 97)) + \"\" + (m[5]);\n\t\t\t\t\n\t\t\t\t// Play the move on the AI's g_board, set the root to this node and break out of the loop\n\t\t\t\tg_board.doMove(n.move);\n\t\t\t\t\n\t\t\t\t// Reset the root rather than set it to a branch since we can currently only achieve a depth of 2-ply\n\t\t\t\troot.getChildren().clear();\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(leaves <= 2000) {\n\t\t\tmax_depth++;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Start the think() thread\n\t\t */\n\t\t\n\t\treturn move;\n\t}", "private void playerMoved(int currentPlayer, int currentUnit, boolean moved)\r\n {\r\n if(moved == true)//if player has made a legitimate move\r\n {\r\n worldPanel.repaint();\r\n int movesLeft = 0;\r\n if(currentPlayer == 1)\r\n {\r\n int myPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player2.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player2.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(1, currentUnit - 1, i);\r\n return;\r\n }\r\n }//end for\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player2.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player2.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(1,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int myPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player1.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player1.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(2, currentUnit - 1, i);\r\n return;\r\n }\r\n }\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player1.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player1.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(2,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n\r\n //worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n }\r\n\r\n if(movesLeft <= 0)//if unit has run out of moves\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n worldPanel.player1.units[currentUnit - 1].resetMovement();\r\n }\r\n if(currentPlayer == 2)\r\n {\r\n worldPanel.player2.units[currentUnit - 1].resetMovement();\r\n }\r\n currentUnit++;\r\n }//end if\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n\t\t\t\t\t\t{\r\n worldPanel.setCurrentPlayer(1);\r\n\t\t\t\t\t\t\t\tyear = unitPanel.getYear() + 20;//add 20 years to the game\r\n\t\t\t\t\t\t}\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n setInfoPanel();//set up the information panel\r\n }", "private boolean isMyWormInShootingRange(Direction d) {\n MyWorm currentWorm = getCurrentWorm(gameState);\n // direction N(0, -1), NE(1, -1), E(1, 0), SE(1, 1), S(0, 1), SW(-1, 1), W(-1,0), NW(-1, -1)\n Worm[] myWorms = player.worms;\n int i = 0;\n boolean found = false;\n while ((i < myWorms.length) && (!found)) {\n int weaponRange = currentWorm.weapon.range;\n if(myWorms[i].id != currentWorm.id && myWorms[i].health > 0){\n if ((d.name().equals(\"N\")) && (between(myWorms[i].position.y, currentWorm.position.y - weaponRange, currentWorm.position.y) && currentWorm.position.x == myWorms[i].position.x)) {\n found = true;\n }\n else if ((d.name().equals(\"E\")) && (between(myWorms[i].position.x, currentWorm.position.x + weaponRange, currentWorm.position.x) && currentWorm.position.y == myWorms[i].position.y)) {\n found = true;\n }\n else if ((d.name().equals(\"S\")) && (between(myWorms[i].position.y, currentWorm.position.y + weaponRange, currentWorm.position.y) && currentWorm.position.x == myWorms[i].position.x)) {\n found = true;\n }\n else if ((d.name().equals(\"W\")) && (between(myWorms[i].position.x, currentWorm.position.x - weaponRange, currentWorm.position.x) && currentWorm.position.y == myWorms[i].position.y)) {\n found = true;\n }\n else if ((d.name().equals(\"NE\")) && (between(myWorms[i].position.x, currentWorm.position.x + (int) (weaponRange/Math.sqrt(2)), currentWorm.position.x) && between(myWorms[i].position.y, currentWorm.position.y - (int) (weaponRange/Math.sqrt(2)), currentWorm.position.y) && isDiagonal(currentWorm, myWorms[i]))) {\n found = true;\n }\n else if ((d.name().equals(\"SE\")) && (between(myWorms[i].position.x, currentWorm.position.x + (int) (weaponRange/Math.sqrt(2)), currentWorm.position.x) && between(myWorms[i].position.y, currentWorm.position.y + (int) (weaponRange/Math.sqrt(2)), currentWorm.position.y) && isDiagonal(currentWorm, myWorms[i]))) {\n found = true;\n }\n else if ((d.name().equals(\"SW\")) && (between(myWorms[i].position.x, currentWorm.position.x - (int) (weaponRange/Math.sqrt(2)), currentWorm.position.x) && between(myWorms[i].position.y, currentWorm.position.y + (int) (weaponRange/Math.sqrt(2)), currentWorm.position.y) && isDiagonal(currentWorm, myWorms[i]))) {\n found = true;\n }\n else if ((d.name().equals(\"NW\")) && (between(myWorms[i].position.x, currentWorm.position.x - (int) (weaponRange/Math.sqrt(2)), currentWorm.position.x) && between(myWorms[i].position.y, currentWorm.position.y - (int) (weaponRange/Math.sqrt(2)), currentWorm.position.y) && isDiagonal(currentWorm, myWorms[i]))) {\n found = true;\n }\n\n }\n i++;\n }\n return found;\n }", "private static void soldierCode() throws GameActionException {\n\t\tRobotInfo[] visibleEnemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tfor(Signal s:incomingSignals){\n\t\t\tint[] message = s.getMessage();\n\t\t\tif(s.getTeam()==rc.getTeam()){\n\t\t\t\tif(message!=null){\n\t\t\t\t\tif(message[0]%10==0){\n\t\t\t\t\t\tint x = message[1]/100000;\n\t\t\t\t\t\tint y = message[1]%100000;\n\t\t\t\t\t\tcenter= new MapLocation(x,y);\n\t\t\t\t\t\tint r = message[0]/10;\n\t\t\t\t\t\tradius=r;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint dist = rc.getLocation().distanceSquaredTo(center);\n\t\tif (visibleEnemyArray.length==0) {\n\t\t\tif (goal!=null&&(rc.senseRubble(goal)<100 || rc.senseRobotAtLocation(goal)!=null)) {\n\t\t\t\tgoal = null;\n\t\t\t\trc.setIndicatorString(0, \"done clearing\");\n\t\t\t}\t\n\t\t\tif(goal==null) {\n\t\t\t\tMapLocation[] locs = MapLocation.getAllMapLocationsWithinRadiusSq(rc.getLocation(), 8);\n\t\t\t\tArrayList<MapLocation> inside = new ArrayList<MapLocation>();\n\t\t\t\tfor(MapLocation loc: locs) {\n\t\t\t\t\tif (loc.distanceSquaredTo(center)<=1.5*radius) {\n\t\t\t\t\t\tinside.add(loc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(MapLocation l: inside) {\n\t\t\t\t\tif (rc.senseRubble(l)>99 && rc.senseRobotAtLocation(l)==null) {\n\t\t\t\t\t\tgoal = l;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tUtility.tryToMove(goal);\n\t\t\t}\n\t\t\t\n\t\t\tif (dist>radius && dist< 4*radius) { //Explore\n\t\t\t\tMapLocation travel = soldierFind();\n\t\t\t\tUtility.tryToMove(travel);\n\t\t\t}else{ //Move back\n\t\t\t\tMapLocation loc = center.add(center.directionTo(rc.getLocation()), (int)Math.pow(radius, 0.5)+1);\n\t\t\t\tUtility.tryToMove(loc);\n\t\t\t}\n\t\t} else { //Kite\n\t\t\tkite(visibleEnemyArray);\n\t\t}\n\t}", "public List<Player> lookForShootPeople(Player player)\n {\n List<Player> playerList = new LinkedList<>();\n\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n\n /*\n * Now i have to check if the player is close to a door. In this case i can see all the players in this adiacent room.\n * I will implement the method in this way:\n * 1. I check if the player can move to a different room with a distance 1 using the method squareReachableNoWall\n * 2. If the player can effectively move to a different room it means it is close to a door\n * 3. I will add to the list all the players in this different room\n */\n\n for (Square square : player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX(), player.getSquare().getY(), 1))\n {\n if (!(player.getSquare().getColor().equals(square.getColor()))) // if the color of the reachable square is different from the color of the square\n // where the player is this means player can see in a different room\n {\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n }\n\n }\n\n Set<Player> playerSet = new HashSet<>();\n playerSet.addAll(playerList);\n\n playerList.clear();\n\n playerList.addAll(playerSet);\n playerList.remove(player);\n\n\n return playerList;\n }", "protected void wander() {\n\t\tfor(int i=3;i>0;){\n\t\t\tfindChest();\n\t\t\tint num = ((int) (Math.random()*100)) % 4;\n\t\t\tswitch (num+1){\n\t\t\t\tcase 1 :\n\t\t\t\t\tif(!(character.xOfFighter-1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())\n\t\t\t\t\t\t\t&&game.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter-1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter-1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter-1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter-1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tif(!(character.xOfFighter+1==game.getXofplayer()&&character.yOfFighter==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter+1,character.yOfFighter)){\n\t\t\t\t\t\tcharacter.xOfFighter = character.xOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\tif(!(character.xOfFighter==game.getXofplayer()&&character.yOfFighter+1==game.getYofplayer())&&\n\t\t\t\t\t\t\tgame.getPlayingmap().npcMove(character.xOfFighter,character.yOfFighter,character.xOfFighter,character.yOfFighter+1)){\n\t\t\t\t\t\tcharacter.yOfFighter = character.yOfFighter+1;\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfindChest();\n\t}", "public void find(int uMove, int cMove)\r\n { \r\n switch (uMove)\r\n {case 1 : //Scissors\r\n switch (cMove)\r\n {case 1: Win=1; //Tie with Scissors\r\n break;\r\n case 2: Win=4; //User wins with Scissors\r\n break;\r\n case 3: Win=9; //Comp wins with Rock\r\n break;\r\n }\r\n break;\r\n case 2 : //Paper\r\n switch (cMove)\r\n {case 1: Win=7; //Comp wins with Scissors\r\n break;\r\n case 2: Win=2; //Tie with Paper\r\n break;\r\n case 3: Win=5; //User wins with Paper\r\n break;\r\n }\r\n break;\r\n case 3 ://Rock\r\n switch (cMove)\r\n {case 1: Win=6; //User wins with Rock\r\n break;\r\n case 2: Win=8; //Comp wins with Paper\r\n break;\r\n case 3: Win=3; //Tie with Rock\r\n break;\r\n }\r\n break;\r\n default: JOptionPane.showMessageDialog(null,\r\n \"Error: Unknown Move Input - WinCalc.find 97\", \r\n \"digiRPS - Error\", \r\n JOptionPane.ERROR_MESSAGE);\r\n break;\r\n }\r\n \r\n //Update boolean trackers for last game result\r\n npcWin=((Win==7) ^ (Win==8) ^ (Win==9));\r\n tie=((Win==1) ^ (Win==2) ^ (Win==3));\r\n }", "@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }", "public int runFromMuckrakerMove() throws GameActionException {\n\n //flag indicates best direction to move, not direction I am moving...\n\n boolean foundEnemyMuckraker = false;\n double rewardOfStaying = 9999;\n\n int canMoveIndicesSize = 0;\n int idx = 0;\n for (Direction direction : Constants.DIRECTIONS) {\n moveRewards[idx] = 9998;\n moveLocs[idx] = Cache.CURRENT_LOCATION.add(direction);\n if (controller.canMove(direction)) {\n canMoveIndices[canMoveIndicesSize++] = idx;\n }\n ++idx;\n }\n\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_ENEMY_ROBOTS) {\n if (robotInfo.getType() == RobotType.MUCKRAKER) {\n foundEnemyMuckraker = true;\n MapLocation enemyLocation = robotInfo.location;\n //for all valid locations, find travelDistance...\n rewardOfStaying = Math.min(rewardOfStaying, Pathfinding.travelDistance(Cache.CURRENT_LOCATION, enemyLocation) + 0.01 * Cache.CURRENT_LOCATION.distanceSquaredTo(enemyLocation));\n for (int i = 0; i < idx; ++i) {\n moveRewards[i] = Math.min(moveRewards[i], Pathfinding.travelDistance(moveLocs[i], enemyLocation) + 0.01 * moveLocs[i].distanceSquaredTo(enemyLocation));\n }\n }\n }\n\n int flag = CommunicationMovement.encodeMovement(true, true, CommunicationMovement.MY_UNIT_TYPE.SL, CommunicationMovement.MOVEMENT_BOTS_DATA.NOT_MOVING, CommunicationMovement.COMMUNICATION_TO_OTHER_BOTS.NOOP, false, false, 0);\n int bestValidDirection = -1;\n double bestValidReward = rewardOfStaying;\n\n if (foundEnemyMuckraker) {\n int bestDirection = -1;\n double bestReward = rewardOfStaying;\n\n for (int i = 0; i < idx; ++i) {\n if (moveRewards[i] > bestReward) { //find the best direction based on the reward\n bestDirection = i;\n bestReward = moveRewards[i];\n }\n }\n\n /* MOVE TOWARDS ME IS SET SO POLITICANS CAN MOVE TOWARDS THIS BOT (NOT SLANDERERS) -> BE CAREFUL IF/WHEN PARSING THIS SETTING */\n flag = CommunicationMovement.encodeMovement(true, true, CommunicationMovement.MY_UNIT_TYPE.SL, CommunicationMovement.convert_DirectionInt_MovementBotsData(bestDirection), CommunicationMovement.COMMUNICATION_TO_OTHER_BOTS.MOVE_TOWARDS_ME, false, true, 0);\n\n for (int i = 0; i < canMoveIndicesSize; ++i) {\n if (moveRewards[canMoveIndices[i]] > bestValidReward) {\n bestValidDirection = canMoveIndices[i];\n bestValidReward = moveRewards[canMoveIndices[i]];\n }\n }\n }\n\n // if a politician or slanderer has both a muckraker and slanderer in range, then run away opposite of the danger direction\n int bestDirectionBasedOnPoliticianDangerIdx = -1;\n if (!foundEnemyMuckraker) {\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_FRIENDLY_ROBOTS) {\n if (robotInfo.getType() == RobotType.POLITICIAN || robotInfo.getType() == RobotType.MUCKRAKER) {\n\n if (controller.canGetFlag(robotInfo.ID)) {\n int encodedFlag = controller.getFlag(robotInfo.ID);\n if (CommunicationMovement.decodeIsSchemaType(encodedFlag) &&\n CommunicationMovement.decodeIsDangerBit(encodedFlag)) {\n\n if (CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.PO\n || CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.MU) {\n //A POLITICIAN OR MUCKRAKER WHO SAYS HE IS IN DANGER (enemy muckraker nearby)\n CommunicationMovement.MOVEMENT_BOTS_DATA badArea = CommunicationMovement.decodeMyPreferredMovement(encodedFlag);\n int badIdx = CommunicationMovement.convert_MovementBotData_DirectionInt(badArea);\n Direction bestDirection = Constants.DIRECTIONS[badIdx].opposite();\n bestDirectionBasedOnPoliticianDangerIdx = bestDirection.ordinal();\n break;\n }\n }\n }\n }\n }\n }\n\n /* Set communication for other slanderers if there is a muckraker within my range */\n if (!Comms.hasSetFlag && controller.canSetFlag(flag)) {\n Comms.hasSetFlag = true;\n controller.setFlag(flag);\n }\n\n /* Below is based on movement */\n if (!controller.isReady()) return 1;\n\n if (foundEnemyMuckraker) {\n if (bestValidDirection != -1) {\n controller.move(Constants.DIRECTIONS[bestValidDirection]);\n return 2;\n }\n return 1;\n }\n\n\n /* No muckrakers were found, so we need to check the flags of nearby slanderer units instead. */\n double closestLocation = 9998;\n int preferedMovementDirectionIdx = -1;\n\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_FRIENDLY_ROBOTS) {\n if (robotInfo.getType() == RobotType.POLITICIAN) { //SLANDERERS THINK ALL SLANDERERS ARE POLITICIANS, so we need to check politicians here...\n double dist = Pathfinding.travelDistance(Cache.CURRENT_LOCATION, robotInfo.location)\n + 0.01 * Cache.CURRENT_LOCATION.distanceSquaredTo(robotInfo.location);\n if (dist < closestLocation && controller.canGetFlag(robotInfo.ID)) { //the closest bot in danger to us is our biggest threat as well\n int encodedFlag = controller.getFlag(robotInfo.ID);\n\n if (CommunicationMovement.decodeIsSchemaType(encodedFlag)) {\n if (CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.SL && CommunicationMovement.decodeIsDangerBit(encodedFlag)) {\n CommunicationMovement.MOVEMENT_BOTS_DATA movementBotsData = CommunicationMovement.decodeMyPreferredMovement(encodedFlag);\n preferedMovementDirectionIdx = CommunicationMovement.convert_MovementBotData_DirectionInt(movementBotsData);\n closestLocation = dist;\n }\n }\n }\n }\n }\n\n if (preferedMovementDirectionIdx != -1) {\n Direction direction = Pathfinding.toMovePreferredDirection(Constants.DIRECTIONS[preferedMovementDirectionIdx], 1);\n if (direction != null) {\n controller.move(direction);\n return 2;\n }\n return 1;\n }\n\n if (bestDirectionBasedOnPoliticianDangerIdx != -1) {\n Direction direction = Pathfinding.toMovePreferredDirection(Constants.DIRECTIONS[bestDirectionBasedOnPoliticianDangerIdx], 1);\n if (direction != null) {\n controller.move(direction);\n return 2;\n }\n return 1;\n }\n\n return 0; // no reason whatsoever to move\n }", "@Override\n public Integer call() throws Exception {\n boolean stillLooking = true; // Keep checking spots if they are open by keeping keeping still looking if we find an x or o in a spot we just generated a random number for.\n Integer val = 0;\n\n // While loop -> looks for an empty space\n while(stillLooking ) { // Infinite loop\n Random r = new Random(); // Creating a random number form 1 - 9\n val = r.nextInt(9);\n if(board.get(val) == 'x' || board.get(val) == 'o') { // Check if the spot the random generator picked has a x or an o already?\n stillLooking = true;\n }\n else {stillLooking = false;} // Check if the spot the random generator picked is empty -> then kick out of while loop\n }\n // Once an empty space is found delay for 1 second, print out the found index that is free and return that valu\n Thread.sleep(150);\n System.out.println(\"\\n\" + \"player: \" + move + \" chooses index: \"+val);\n return val;\n }", "protected Entity findPlayerToAttack() {\n/* 339 */ double var1 = 8.0D;\n/* 340 */ return getIsSummoned() ? null : this.field_70170_p.func_72890_a(this, var1);\n/* */ }", "private Map<Square, List<Player>> checkRocketJump()\n {\n Player dummie = new Player(null,null,null,false);\n\n Map<Square, List<Player>> squareColorIdListHashMap = new HashMap<>();\n List<Player> playersSeen = new ArrayList<>();\n List<Player> playersSeenCopy = new ArrayList<>();\n\n List<Square> targetSquares = new ArrayList<>();\n targetSquares.addAll(player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX() , player.getSquare().getY(),2)); //Obtain all players that can be targets\n targetSquares.remove(player.getSquare());\n\n //i will set a dummie player in all the possible squares at distance 2 and i will check if there is still at least 1 target for the basic mode\n for(Square squareIterate : targetSquares)\n {\n playersSeen = new ArrayList<>();\n playersSeenCopy = new ArrayList<>();\n dummie.setSquare(squareIterate);\n\n playersSeen.addAll(dummie.playerThatSee(player.getSquare().getGameBoard()));\n playersSeen.remove(dummie);\n playersSeen.remove(player);\n\n playersSeenCopy.addAll(playersSeen);\n\n for (Player playerIterate : playersSeen)\n {\n if (playerIterate.getSquare() == dummie.getSquare())\n playersSeenCopy.remove(playerIterate);\n }\n\n if (!playersSeenCopy.isEmpty())\n {\n squareColorIdListHashMap.put(squareIterate, playersSeenCopy);\n }\n }\n\n return squareColorIdListHashMap; //Returns all targets\n\n }", "private void thinkAboutNext(ArrayList<Point> pos, boolean hit, boolean destroyedIt) {\n if (!searching && hit) {\n betweenTwo = false;\n System.out.println(\"WAS A NEW TARGET\");\n if(!destroyedIt) {\n int[] d = Direction.DOWN.getDirectionVector();\n Point n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.DOWN);\n\n d = Direction.UP.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.UP);\n\n d = Direction.LEFT.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.LEFT);\n\n d = Direction.RIGHT.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.RIGHT);\n\n directionLooking = directionsToGo.get(directionsToGo.size() - 1);\n }\n }\n else if (searching) {\n //FILTER OUT ALREADY ATTACKED\n\n System.out.println(\"WAS AN OLD TARGET\");\n\n //FAILED\n if(!hit) {\n justBefore = firstHit;\n int size = directionsToGo.size();\n\n for(int i = size - 1; i >= 0; i--){\n Point n = new Point(justBefore.x + directionsToGo.get(i).getDirectionVector()[0],\n justBefore.y + directionsToGo.get(i).getDirectionVector()[1]);\n if(!pos.contains(n))\n directionsToGo.remove(i);\n }\n directionLooking = directionsToGo.get(0);\n }\n else\n if(!pos.contains(pWD(justBefore, directionLooking))) {\n justBefore = firstHit;\n directionLooking = directionLooking.getOpposite();\n }\n\n }\n if(hit) {\n searching = !destroyedIt;\n }\n }", "public boolean startBattle()\n {\n if(a.getHealth() <= 0) //if the health is 0 then you lose\n {\n return false; //lose\n }\n if(b.getHealth() <= 0) //if AI is 0 you when\n {\n return true; //win\n }\n if(gotAway)\n {\n return false;\n }\n if(!init) //first time\n {\n System.out.println(\"Go \" + a.getName() + \"!\");\n init = true; //sets it so its not first time anymore\n }\n System.out.println(\"What will \" + a.getName() + \" do?\");\n System.out.println(\"1. Fight 2. Run\");\n Scanner scanner = new Scanner(System.in); //scan for user input, fight or run\n int choice = scanner.nextInt();\n switch(choice) //switch for choices of options\n {\n case 1:\n {\n // Display move options\n System.out.println(\"Fight!\");\n for(int i = 1; i < a.actions.length + 1; i++) //print out all of the possible moves\n {\n System.out.println(i + \". \" + a.actions[i - 1]);\n }\n int fightSelection = scanner.nextInt();\n if(fightSelection < 1 || fightSelection > 4) //keeps the selection within boundaries\n {\n System.out.println(\"INVALID CHOICE\");\n startBattle();\n } else\n {\n Actions current = a.actions[fightSelection - 1];\n if(hit(current.getAccuracy())) //if the attack hits\n {\n b.subtractHealth(current.getPower()); //AIHealth - power\n current.subtractPp(1); //-PP\n //Display stats\n System.out.println(a.getName() + \" used \" + current.getName());\n System.out.println(a.getName() + \" Health: \" + a.getHealth());\n System.out.println(b.getName() + \" Health: \" + b.getHealth());\n if(a.getHealth() <= 0)\n {\n return false;\n }\n if(b.getHealth() <= 0)\n {\n return true;\n }\n break;\n } else\n {\n System.out.println(a.getName() + \" missed!\");\n System.out.println(a.getName() + \" Health: \" + a.getHealth());\n System.out.println(b.getName() + \" Health: \" + b.getHealth());\n current.subtractPp(1);\n if(a.getHealth() <= 0)\n {\n return false;\n }\n if(b.getHealth() <= 0)\n {\n return true;\n }\n break;\n }\n }\n break;\n }\n case 2:\n {\n // Run\n if(hit(75))\n {\n // Run away successful\n System.out.println(\"Got away safely\");\n gotAway = true;\n break;\n } else\n {\n System.out.println(\"Can't escape!\");\n gotAway = false;\n break;\n }\n\n }\n default:\n {\n System.out.println(\"Please choose a valid choice.\");\n startBattle();\n }\n }\n if(a.getHealth() <= 0)\n {\n return false;\n }\n if(b.getHealth() <= 0)\n {\n return true;\n }\n\n if(!gotAway)\n {\n // AI Turn\n Random random = new Random();\n int move = random.nextInt(4);\n int counter = 0;\n while(b.actions[move].getPp() <= 0 && counter < 50)\n {\n move = random.nextInt(4); //picks a random move\n counter++;\n }\n Actions aiAction = b.actions[move];\n if(hit(aiAction.getAccuracy()))\n {\n a.subtractHealth(aiAction.getPower());\n aiAction.subtractPp(1);\n System.out.println(b.getName() + \" used \" + aiAction.getName());\n System.out.println(a.getName() + \" Health: \" + a.getHealth());\n System.out.println(b.getName() + \" Health: \" + b.getHealth());\n if(a.getHealth() <= 0)\n {\n return false;\n }\n if(b.getHealth() <= 0)\n {\n return true;\n }\n } else\n {\n System.out.println(b.getName() + \" missed!\");\n System.out.println(a.getName() + \" Health: \" + a.getHealth());\n System.out.println(b.getName() + \" Health: \" + b.getHealth());\n aiAction.subtractPp(1);\n if(a.getHealth() <= 0)\n {\n return false;\n }\n if(b.getHealth() <= 0)\n {\n return true;\n }\n }\n startBattle();\n return false;\n }\n return false;\n }", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public static boolean moveking() //returns false if valid move is there\n{ System.out.println(\"IN FUNCTION MOVE KING.....\");\n flag=0;\n int kx,ky;\n if(q==2)\n {\n kx=p2.ka.kbx; //WHITE KING....\n ky=p2.ka.kby;\n } \nelse\n {\n kx=p1.ka.kax; //BLACK KING....\n\tky=p1.ka.kay;\n }\n//CHECKS WHETHER KING CAN MOVE TO THE 8 adjacent places...\n if(kx-1>=0)\n {\n move2(kx,ky,kx-1,ky);\n \n if(flag==1)\n {\n revert(kx,ky,kx-1,ky);\n return false;\n }\n }\n //r\n if(kx+1<=7)\n { move2(kx,ky,kx+1,ky);\n if(flag==1)\n {revert(kx,ky,kx+1,ky);\n return false;\n \n }\n }\n \n //u\n if(ky-1>=0)\n {\n move2(kx,ky,kx,ky-1);\n \n if(flag==1)\n {revert(kx,ky,kx,ky-1);\n return false;\n \n }\n }\n //d\n if(ky+1<=7)\n {\n move2(kx,ky,kx,ky+1);\n \n if(flag==1)\n { revert(kx,ky,kx,ky+1);\n return false;\n \n }\n }\n //lu\n if(kx-1>=0&&ky-1>=0)\n {\n move2(kx,ky,kx-1,ky-1);\n \n if(flag==1)\n {revert(kx,ky,kx-1,ky-1);\n return false;\n \n }\n }\n //ld\n if(kx-1>=0&&ky+1<=7)\n {\n move2(kx,ky,kx-1,ky+1);\n \n if(flag==1)\n {revert(kx,ky,kx-1,ky+1);\n return false;\n \n }\n }\n //ru\n if(kx+1<=7&&ky-1>=0)\n {\n move2(kx,ky,kx+1,ky-1);\n \n if(flag==1)\n {revert(kx,ky,kx+1,ky-1);\n return false;\n \n }\n }\n //rd\n if(kx+1<=7&&ky+1<=7)\n {\n move2(kx,ky,kx+1,ky+1);\n \n if(flag==1)\n {revert(kx,ky,kx+1,ky+1);\n return false;\n \n }\n }\n return true; \n }", "public boolean plizMovePlayerForward(Player player)\n {\n\n //check if die was rolled\n if (getValue_from_die() > 0)\n {\n int x_cord = player.getX_cordinate();\n int y_cord = player.getY_cordinate();\n int steps = player.getSteps_moved();\n\n //try to get player from color home\n if (attempt2GetPlayerFromHomeSucceds(player))\n {\n return true;\n }\n\n //if player has already reached home do nothing\n if (player.getSteps_moved() >= 58)\n {\n return false;\n }\n //if player is inside home stretch he has to play exact number to go home\n else if (player.getSteps_moved() >= 52)\n {\n if (59 - player.getSteps_moved() <= value_from_die)\n {\n return false;\n }\n }\n\n //if player isnt at home move him\n if (player.getSteps_moved() > 0)\n {\n for (int i = 1; i <= (value_from_die); i++)\n {\n player.movePlayerForward();\n if (roadBlocked(player))\n {\n road_blocked = true;\n }\n player.setHas_not_been_drawn(true);\n }\n\n //roll back changes\n if (road_blocked)\n {\n player.setX_cordinate(x_cord);\n player.setY_cordinate(y_cord);\n player.setSteps_moved(steps);\n ludo.setDrawRoadBlockedSign(true);\n //println(\"ROAD BLOCKED\");\n road_blocked = false;\n return false;\n }\n playPlayerHasMovedMusic();\n //see if player eats someone\n if (getPerson_to_play() == 1)\n {\n BlueEatsPlayer(player);\n }\n else if (getPerson_to_play() == 2)\n {\n RedEatsPlayer(player);\n }\n else if (getPerson_to_play() == 3)\n {\n GreenEatsPlayer(player);\n }\n else if (getPerson_to_play() == 4)\n {\n YellowEatsPlayer(player);\n }\n if (value_from_die == 6)\n {\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n return true;\n }\n //reset variables and change person to play\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n changePersonToPlay();\n return true;\n }\n //occurs rarely at the begining of the game\n else\n {\n //println(\"steps less than 0\");\n return false;\n }\n }\n else\n {\n //println(\"PLIZ ROLL DIE FIRST THEN MOVE BUTTON\");\n return false;\n }\n }", "private Move defaultMoveInGoodPlace(PentagoBoard b0) {\n \tPentagoBoard b = (PentagoBoard)b0.clone();\n \tList<Move> moves = b.getMovesFor(getColor());\n \tfor(Move m: moves) {\n \t\tPentagoMove pM = (PentagoMove)m;\n \t\tif(havMyNeighbour(b,getColor(), pM.getPlaceX(), pM.getPlaceY()) == false)\n \t\t\tcontinue;\n \t\tif(canWinInRow(b,pM.getPlaceY(),getColor())) {\n \t\t\tb.doMove(m);\n \t\t\tif(canWinOpponentNow(b) != null) { // przeciwnik nie moze wygrac po moim ruchu\n \t\t\tb.undoMove(m);\n \t\t\tcontinue;\n \t\t}\n \t\t\treturn m;\n \t\t}\n \t\tif(canWinInColumn(b,pM.getPlaceX(),getColor())) {\n \t\t\tb.doMove(m);\n \t\t\tif(canWinOpponentNow(b) != null) { // przeciwnik nie moze wygrac po moim ruchu\n \t\t\tb.undoMove(m);\n \t\t\tcontinue;\n \t\t}\n \t\t\treturn m;\n \t\t}\n \t}\n \treturn null;\n }", "public Command run() {\n Worm enemyWormSpecial = getFirstWormInRangeSpecial();\n if (enemyWormSpecial != null) {\n if (gameState.myPlayer.worms[1].id == gameState.currentWormId) {\n if (gameState.myPlayer.worms[1].bananaBombs.count > 0) {\n return new BananaBombCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n if (gameState.myPlayer.worms[2].snowballs.count > 0) {\n return new SnowballCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n\n //PRIORITAS 2: NORMAL ATTACK (Shoot)\n Worm enemyWorm = getFirstWormInRange();\n if (enemyWorm != null) {\n Direction direction = resolveDirection(currentWorm.position, enemyWorm.position);\n return new ShootCommand(direction);\n }\n\n //PRIORITAS 3: MOVE (Karena sudah opsi serang tidak memungkinkan)\n\n //Ambil semua koordinat di cell Worm saat ini selain current cell\n List<Cell> surroundingBlocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n \n\n //Kalau Worm saat ini adalah Commander, masuk ke algoritma move khusus Commander\n if(gameState.currentWormId == 1){\n\n //Commander akan memprioritaskan untuk bergerak menuju Technician (Worm yang memiliki Snowball)\n Worm technicianWorm = gameState.myPlayer.worms[2];\n\n\n //Mencari cell yang akan menghasilkan jarak terpendek menuju Worm tujuan\n Cell shortestCellToTechnician = getShortestPath(surroundingBlocks, technicianWorm.position.x, technicianWorm.position.y);\n \n //Commander akan bergerak mendekati Technician sampai dengan jarak dia dan Technician paling dekat adalah 3 satuan\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, technicianWorm.position.x, technicianWorm.position.y) > 3) {\n if(shortestCellToTechnician.type == CellType.AIR) {\n return new MoveCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }else if (shortestCellToTechnician.type == CellType.DIRT) {\n return new DigCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }\n }\n\n //Apabila Commander dan Technician sudah berdekatan, maka Commander akan bergerak mencari musuh terdekat untuk melancarkan serangan\n int min = 10000000;\n Worm wormMusuhTerdekat = opponent.worms[0];\n for (Worm calonMusuh : opponent.worms) {\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y) < min) {\n min = euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y);\n wormMusuhTerdekat = calonMusuh;\n }\n }\n\n //Mencari cell yang paling dekat ke musuh yang sudah ditemukan\n Cell shortestCellToEnemy = getShortestPath(surroundingBlocks, wormMusuhTerdekat.position.x, wormMusuhTerdekat.position.y);\n if(shortestCellToEnemy.type == CellType.AIR) {\n return new MoveCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }else if (shortestCellToEnemy.type == CellType.DIRT) {\n return new DigCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }\n }\n\n //Command move untuk worm selain Commando. Worm selain commando akan mendekat menuju posisi worm Commando\n Worm commandoWorm = gameState.myPlayer.worms[0];\n \n //Selama Commando masih hidup, maka Worm lainnya akan mendekat menuju Commando\n if (commandoWorm.health > 0) {\n //Cell cellCommandoWorm = surroundingBlocks.get(0);\n\n //Mencari cell yang membuat jarak menuju Commando paling dekat\n Cell shortestCellToCommander = getShortestPath(surroundingBlocks, commandoWorm.position.x, commandoWorm.position.y);\n\n if(shortestCellToCommander.type == CellType.AIR) {\n return new MoveCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }else if (shortestCellToCommander.type == CellType.DIRT) {\n return new DigCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }\n }\n\n // PRIORITAS 4: Bergerak secara acak untuk memancing musuh mendekat\n int cellIdx = random.nextInt(surroundingBlocks.size());\n Cell block = surroundingBlocks.get(cellIdx);\n if (block.type == CellType.AIR) {\n return new MoveCommand(block.x, block.y);\n } else if (block.type == CellType.DIRT) {\n return new DigCommand(block.x, block.y);\n }\n // Kalau udah enggak bisa ngapa-ngapain.\n return new DoNothingCommand();\n \n }", "private void yourturn() {\n if (whosturn != 3) {\n whosturn = 3;\n displayTable();\n }\n\n // TODO mega duplication\n int top = 0;\n // testing is player has a card they can play\n if (pile.notEmpty()) {\n boolean canplay = false;\n if (hand.getCard(0) == null) { // if player only has card on the table\n if (hand.isFaceUp()) // if player has faceup card on the table\n {\n for (int n = 0; n < 3; n++) {\n if (hand.getFaceUp(n) != null) {\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (seven\n && pile.get(top).getValue() == 7\n && hand.getFaceUp(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (hand.getFaceUp(n).getValue() == 2\n || hand.getFaceUp(n).getValue() == 10) {\n canplay = true;\n break;\n } else if (nine && hand.getFaceUp(n).getValue() == 9) {\n canplay = true;\n break;\n } else if (!seven || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getFaceUp(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n } else // if player only has facedown cards\n canplay = true;\n } else {\n for (int n = 0; n < hand.length() - 1; n++) {\n if (hand.getCard(n) == null) break;\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (hand.getCard(n).getValue() == 2 || hand.getCard(n).getValue() == 10) {\n canplay = true;\n break;\n }\n if (nine && hand.getCard(n).getValue() == 9) {\n canplay = true;\n break;\n }\n if (seven && pile.get(top).getValue() == 7 && hand.getCard(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (seven != true || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getCard(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n if (canplay) {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n } else { // cant play then must pick up the pile\n sh.addMsg(\n \"The card played was a \"\n + pile.top().getStringValue()\n + \" you had to pick up the pile. BLAOW\");\n pile.moveToHand(hand);\n sendCommand(\"turn:pickup:\");\n nextTurn();\n displayTable();\n }\n } else {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n }\n }", "public String[] getNearestPlayer(Player p, PlayerData pd)\r\n/* 60: */ {\r\n/* 61:58 */ Game g = pd.getGame();\r\n/* 62: */ \r\n/* 63:60 */ int x = p.getLocation().getBlockX();\r\n/* 64:61 */ int y = p.getLocation().getBlockY();\r\n/* 65:62 */ int z = p.getLocation().getBlockZ();\r\n/* 66: */ \r\n/* 67:64 */ int i = 200000;\r\n/* 68: */ \r\n/* 69:66 */ Player player = null;\r\n/* 70:68 */ for (String s : g.getPlayers())\r\n/* 71: */ {\r\n/* 72:70 */ Player p2 = Bukkit.getPlayer(s);\r\n/* 73:72 */ if ((p2 != null) && (!p2.equals(p)) && (!pd.isOnTeam(s)))\r\n/* 74: */ {\r\n/* 75:74 */ Location l = p2.getLocation();\r\n/* 76: */ \r\n/* 77:76 */ int c = cal((int)(x - l.getX())) + cal((int)(y - l.getY())) + cal((int)(z - l.getZ()));\r\n/* 78:78 */ if (i > c)\r\n/* 79: */ {\r\n/* 80:79 */ player = p2;\r\n/* 81:80 */ i = c;\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85:84 */ if (player != null) {\r\n/* 86:84 */ p.setCompassTarget(player.getLocation());\r\n/* 87: */ }\r\n/* 88:86 */ return new String[] { player == null ? \"none\" : player.getName(), String.valueOf(i) };\r\n/* 89: */ }", "public void makeMove() {\n ArrayList<Field> myFields = new ArrayList<>();\n for (Field[] fieldsRow : fields) {\n for (Field field : fieldsRow) {\n if(field != null && this.equals(field.getPlayer())) {\n myFields.add(field);\n }\n }\n }\n bestMove[0] = myFields.get(0);\n bestMove[1] = myFields.get(0);\n\n Random rand = new Random();\n for(Field destination : destinationFields) {\n if(canMove()) break;\n destinationField = destination;\n for (Field origin : myFields) {\n for(int i = 0; i < origin.getNeighbours().length; ++i) {\n Field neighbour = origin.getNeighbours()[i];\n if(neighbour != null) {\n if(neighbour.getPlayer() == null) {\n if(valueOfMove(origin, neighbour) > valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n } else if(valueOfMove(origin, neighbour) == valueOfMove(bestMove[0], bestMove[1])) {\n if(rand.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n }\n }\n } else {\n Field nextField = neighbour.getNeighbours()[i];\n if(nextField != null) {\n correctJumpPaths(origin,null, origin);\n }\n }\n }\n }\n }\n }\n }", "public void Beginattack(HW10Trainer[] people, int numTrainer,Scanner scan)\n{\nString name1, name2;\nname1=scan.next();//reads the first part and sets it as a string \nname2=scan.next();//reads the second part and sets it as a string \nscan.nextLine();\nHW10Trainer a = new HW10Trainer();//pre set\nHW10Trainer b= new HW10Trainer(); \n\nfor (int i =0; i<numTrainer; i++)///matches the trainer with there name\n{\n\tif(name1.equals(people[i].getName()))//determines which trainer in the array goes with this name\n\t{\n\t\ta=people[i];\n\t}\n\tif(name2.equals(people[i].getName()))\n\t{\n\t\tb=people[i];\n\t}\n}\nint max1,max2;\nmax1=a.getNumMonsters();//gets the total amount of pokemen for that trainer\nmax2=b.getNumMonsters();\nint curr1,curr2; //acts as the index place value for the array \ncurr1=0;//starts the array at poistion 0\ncurr2=0;\nHW10Monster side1,side2;//sets the side for the battle \nside1= a.getMonster(curr1);//sets side one for all of the first trainers monsters\nside2=b.getMonster(curr2);//side two = all seconds trainers monsters\nSystem.out.println(a.getName() + \" is fighting \" + b.getName());\nSystem.out.println(\"Starting battle is \" + side1.name + \" versus \" + side2.name);\nwhile(curr1 < max1 && curr2<=max2)//if curr1 is less then max and curr2 is less then max2 then run\n{\n\t\n\tint result = fight(side1,side2,a,b);//sends the fight method the pokemon information and the Trainers information\nif(result==1)\n{\n\tSystem.out.println(b.getName() +\"'s \" + side2.name + \" lost\");\n\tcurr2++;//if side 2 is losing / below 1 then call next monster\n\tif(curr2<max2)\n\t\tside2=b.getMonster(curr2);\n\tSystem.out.println(b.getName() + \" is bringing out \" + side2.name);\n}\n else if(result == 2)\n{\n\tSystem.out.println(a.getName() +\"'s \" + side1.name + \" lost\");\n\tcurr1++;//if side 1 is losing/ below 1 the call next monster\n\tif(curr1<max1)\n\t\tside1=a.getMonster(curr1);\n\tSystem.out.println(a.getName() + \" is bringing out \" + side1.name);\n}\n else if(result == 3)\n{\n\tSystem.out.println(\"*Draw*\");\n\tSystem.out.println(a.getName() +\"'s \" + side1.name + \" lost\");\n\tcurr1++;//if side 1 is losing/ below 1 the call next monster\n\tif(curr1<max1)\n\t\tside1=a.getMonster(curr1);\n\t\n\tSystem.out.println(a.getName() + \" is bringing out \" + side1.name);\n\tSystem.out.println(b.getName() +\"'s \" + side2.name + \" lost\");\n\tcurr2++;//if side 2 is losing / below 1 then call next monster\n\t\n\tif(curr2 < max2)\n\t\tside2=b.getMonster(curr2);\n\tSystem.out.println(b.getName() + \" is bringing out \" + side2.name);\n\tSystem.out.println(\"* End Draw *\");\n}\n\n\n\t\n}\n\tif( curr1<max1 && curr2>max2)//if the first trainer still has pokemon and the second does not\n\t{\n\t\tSystem.out.println(a.getName() + \" won the match\");\n\t}\n\telse if (curr2<max2 && curr1>max1)//if the second trainer still has pokemon and the first does not\n\t{\n\t\t\n\t\tSystem.out.println(b.getName() + \" won the match\");\n\t}\n\telse if(curr2<max2 && curr1<max1)//if both sides dont have any pokemon left\n\t\tSystem.out.println(\"Battle is a draw\");\n\n}", "public int[] findMove(){\n int[] blackCheckerSpots = new int[12];\n int i =0;\n while(mCheckerBoard.indexOf(new Checker(1, false)) != -1){\n int startPosition = mCheckerBoard.indexOf(new Checker(1, false)); //need to override Checker equals method\n Checker current = mCheckerBoard.get(startPosition);\n int[] answer = jumpRight(startPosition, false, current);\n if(answer.length > 1)\n {\n //jumped right downwards\n return answer;\n }\n answer = jumpLeft(startPosition, false, current);\n if(answer.length > 1){\n //jumped left downwards\n return answer;\n }\n answer = moveDiagonalRight(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal right downwards\n return;\n }\n answer = moveDiagonalLeft(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal left downwards\n return;\n }\n\n //end of loop\n //these are the ones that need to be set back to black at the end\n current.setIsRed(true);\n blackCheckerSpots[i]=startPosition;\n i++;\n }\n\n for(int j =0; j<blackCheckerSpots.length; j++){\n Checker changed = mCheckerBoard.get(blackCheckerSpots[j]);\n changed.setIsRed(false);\n mCheckerBoard.set(blackCheckerSpots[j], changed);\n }\n\n }", "public void Move(){\n for(int i = 0; i < moveList.length; i++){\n playerString = \"\";\n switch(moveList[i]) {\n case 1: {\n //TODO: Visited points to others\n System.out.println(\"Moving up!\");\n //Logic for fitness score might need to be moved\n if(!(game.mazeArray[game.playerPosition.getPlayerY() -1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() - 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 10;\n }\n game.moveUp();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 2: {\n System.out.println(\"Moving left!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() -1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() -1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveLeft();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 3: {\n System.out.println(\"Moving right!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() +1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() +1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveRight();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 4: {\n System.out.println(\"Moving down!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY() +1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n freedomPoints += 1;\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveDown();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n default: {\n System.out.println(\"End of line\");\n break;\n //You shouldn't be here mate.\n }\n }\n }\n\n }", "Move getMove() {\r\n int[] p0 = new int[2];\r\n int[] p1 = new int[3];\r\n\r\n while (_playing) {\r\n while (_playing) {\r\n while (_playing) {\r\n _command.getMouse(p0);\r\n System.out.println(\"_command.getMouse 0\");\r\n if (p0[0] >= 0 && p0[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 0\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (_board.get(p0[0] + 1, p0[1] + 1) == _board.turn()) {\r\n System.out.print(\"Warning!!!\");\r\n break;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n while (_playing) {\r\n _command.getMouse(p1);\r\n System.out.println(\"_command.getMouse 1\");\r\n if (p1[0] >= 0 && p1[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 1\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (p0[0] == p1[0] || p0[1] == p1[1]\r\n || Math.abs(p1[0] - p0[0]) == Math.abs(p1[1] - p0[1])) {\r\n Move m = Move.create(p0[0] + 1, p0[1] + 1, p1[0] + 1, p1[1] + 1,\r\n _board);\r\n if (m != null && _board.isLegal(m)) {\r\n return m;\r\n }\r\n }\r\n }\r\n return null;\r\n }", "public ArrayList<Pair<Coord,Coord>> returnMoves(Board b) {\r\n\t\t//copy Piece grid\r\n\t\tPiece[][] g = b.getGrid();\r\n\t\t\r\n\t\t//return array of all the possible moves\r\n\t\tArrayList<Pair<Coord,Coord>> possibleMoves = new ArrayList<Pair<Coord,Coord>>();\r\n\r\n\t\t//System.out.println(team + \": (\" + c.y + \", \" + c.x + \")\");\r\n\t\t//if the team is moving north (white team)\r\n\t\tif(team) {\r\n\t\t\t//first move, two square pawn advance\r\n\t\t\tif(moves==0 && g[c.y-1][c.x] == null && g[c.y-2][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-2,c.x),null));\r\n\t\t\t\r\n\t\t\t//single square pawn advance\r\n\t\t\tif(g[c.y-1][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally west\r\n\t\t\tif(c.x-1>=0 && c.x-1<=7 && g[c.y-1][c.x-1]!=null && (!g[c.y-1][c.x-1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x-1),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally east\r\n\t\t\tif(c.x+1>=0 && c.x+1<=7 && g[c.y-1][c.x+1]!=null && (!g[c.y-1][c.x+1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x+1),null));\r\n\t\t\t\r\n\t\t\t//en passant west\r\n\t\t\tif(c.x-1>=0 && c.y==3 && g[c.y-1][c.x-1]==null && g[c.y][c.x-1]!=null && !g[c.y][c.x-1].team \r\n\t\t\t\t\t&& g[c.y][c.x-1].toString().equals(\"P\") && g[c.y][c.x-1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x-1),new Coord(c.y, c.x-1)));\r\n\t\t\t\r\n\t\t\t//en passant east\r\n\t\t\tif(c.x+1<=7 && c.y==3 && g[c.y-1][c.x+1]==null && g[c.y][c.x+1]!=null && !g[c.y][c.x+1].team\r\n\t\t\t\t\t&& g[c.y][c.x+1].toString().equals(\"P\") && g[c.y][c.x+1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x+1),new Coord(c.y, c.x+1)));\r\n\t\t\t\r\n\t\t//if the team is moving south (black team)\r\n\t\t} else {\r\n\t\t\t//first move, two square pawn advance\r\n\t\t\tif(moves==0 && g[c.y+1][c.x] == null && g[c.y+2][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+2,c.x),null));\r\n\r\n\t\t\t//single square pawn advance\r\n\t\t\tif(g[c.y+1][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally west\r\n\t\t\tif(c.x-1>=0 && c.x-1<=7 && g[c.y+1][c.x-1]!=null && (g[c.y+1][c.x-1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x-1),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally east\r\n\t\t\tif(c.x+1>=0 && c.x+1<=7 && g[c.y+1][c.x+1]!=null && (g[c.y+1][c.x+1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x+1),null));\r\n\t\t\t\r\n\t\t\t//en passant west\r\n\t\t\tif(c.x-1>=0 && c.y==4 && g[c.y+1][c.x-1]==null && g[c.y][c.x-1]!=null && g[c.y][c.x-1].team \r\n\t\t\t\t\t&& g[c.y][c.x-1].toString().equals(\"P\") && g[c.y][c.x-1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x-1),new Coord(c.y, c.x-1)));\r\n\t\t\t\r\n\t\t\t//en passant east\r\n\t\t\tif(c.x+1<=7 && c.y==4 && g[c.y-1][c.x+1]==null && g[c.y][c.x+1]!=null && g[c.y][c.x+1].team \r\n\t\t\t\t\t&& g[c.y][c.x+1].toString().equals(\"P\") && g[c.y][c.x+1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x+1),new Coord(c.y, c.x+1)));\r\n\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\treturn possibleMoves;\r\n\t}", "public void updateMoveRocks(int index) {\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tbucket[x].setPrevNumOfRocks();\n\t\t}\n\n\t\t// Keep turn if click an empty pit.\n\t\tif (bucket[index].getnumOfRocks() == 0) {\n\t\t\tint player;\n\t\t\tif (index > 7) {\n\t\t\t\tplayer = 2;\n\t\t\t} else {\n\t\t\t\tplayer = 1;\n\t\t\t}\n\t\t\tif (player == 1) {\n\t\t\t\tb.setTurn(false);\n\t\t\t\ta.setTurn(true);\n\t\t\t\ta.resetUndoIncrement();\n\t\t\t} else {\n\t\t\t\ta.setTurn(false);\n\t\t\t\tb.setTurn(true);\n\t\t\t\tb.resetUndoIncrement();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tint sIndex = index;\n\t\tint count = bucket[sIndex].getnumOfRocks();\n\t\tbucket[sIndex].setnumOfRocks(0, c);\n\t\tint eIndex = 0;\n\n\t\tif (sIndex == 0 || sIndex == 7)\n\t\t\treturn;\n\n\t\tint i = sIndex - 1;\n\t\twhile (!(count == 0)) {\n\t\t\tif (i == 7 && (sIndex == 1 || sIndex == 2 || sIndex == 3 || sIndex == 4 || sIndex == 5 || sIndex == 6)) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif (i == 0\n\t\t\t\t\t&& (sIndex == 13 || sIndex == 12 || sIndex == 11 || sIndex == 10 || sIndex == 9 || sIndex == 8)) {\n\t\t\t\ti = 13;\n\t\t\t}\n\n\t\t\tint t = bucket[i].getnumOfRocks() + 1;\n\t\t\tbucket[i].setnumOfRocks(t, c);\n\t\t\tcount--;\n\t\t\tif (count == 0) {\n\t\t\t\teIndex = i; // Gets the ending index so it can be checked for\n\t\t\t\t\t\t\t// capture and not reset if ends on 0.\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\ti = 14;\n\t\t\t}\n\t\t\ti--;\n\n\t\t}\n\n\t\t// extra turn logic\n\t\tcheckIfFreeTurn(index, eIndex);\n\n\t\t// Capture Stone function\n\t\tcheckCaptureRock(eIndex, sIndex);\n\n\t\t// end game scenario, when one side is out of stones.\n\t\tcheckEndGame();\n\n\t}", "public boolean movePlayer(MazePlayer p, Direction d) {\n//\t System.out.println(\"Player \"+p.name+\" requests to move in direction \"+d);\n// players can move through walls with some small probability!\n\t\t // calculate the new position after the move \n\t\t MazePosition oldPos = playerPosition.get(p.name);\n\t\t MazePosition newPos = theBoard.tryMove(oldPos,d);\n\n\t\t \n\t\t //make sure there is no other player at that position\n\t\t // and if there is someone there then just return without moving\n\t\t if (playerPosition.containsValue(newPos)){\n\t\t\t if (!newPos.equals(oldPos))\n\t\t\t\t if (debugging) System.out.println(\"player \"+p.name+\" tried to move into an occupied space.\");\n\t\t\t else\n\t\t\t\t if (debugging) System.out.println(p.name+\" stays at \"+oldPos);\n\t\t\t return false;\n\t\t }\n\t\t \n\t\t //otherwise, make the move\n\t\t playerPosition.put(p.name,newPos);\n\t\t if (debugging) System.out.println(p.name+\": \"+oldPos+\" -> \"+newPos);\n\t\t \n\t\t //take off points if you moved through a wall\n\t\t if (!theBoard.canMove(oldPos,d)){\n\t\t\t score.put(p.name,score.get(p.name)-2);\n\t\t\t if (debugging) System.out.println(p.name+\" moved through a wall\");\n\t\t }\n\t\t \n\t\t // mark that old space as \"free space\"\n\t\t freeSpace.add(0,oldPos);\n\t\t \n\t\t // check to see if there is a jewel in the new position.\n\t\t int i = jewelPosition.indexOf(newPos);\n\t\t if (i > -1) {\n\t\t\t // add 5 to the score\n\t\t\t score.put(p.name,score.get(p.name)+5);\n\t\t\t // remove the jewel\n\t\t\t jewelPosition.remove(i);\n\t\t\t if (debugging) System.out.println(\"and lands on a jewel!, score is now \" +score.get(p.name));\n\t\t\t // add another jewel\n\t\t\t MazePosition q = getEmptySpace();\n\t\t\t jewelPosition.add(q);\n\t\t\t if (debugging) System.out.println(\"adding a new jewel at \"+q);\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t // if no jewel, then remove the space from the freeSpace list\n\t\t\t freeSpace.remove(newPos);\n\t\t }\n\t\t return true;\n\n }", "public boolean checkWithFragmentingWarheadRocketJump ()\n {\n Map<Square, List<Player>> squarePlayerListMap = checkRocketJump();\n List<Player> playerList;\n\n for (Square squareIterate : squarePlayerListMap.keySet())\n {\n\n for (Player playerIterate : squarePlayerListMap.get(squareIterate))\n {\n playerList = new ArrayList<>();\n\n playerList.addAll(playerIterate.getSquare().getPlayerList());\n playerList.remove(player);\n\n if (playerList.size()>1)\n return true;\n\n }\n }\n\n return false;\n }", "public static int[] isMonsterInSight(Player curr) {\n int[] ans = {-1, -1};\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n String name = curr.getName();\n if (bodyDir == UP) {\n dirs.add(UP);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(DOWN);\n }\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(LEFT);\n }\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(UP);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(RIGHT);\n }\n }\n\n if (dirs == null || dirs.size() == 0)\n return ans; //{-1,-1}\n for (int m = 0; m < players.length; m++) { //skip player if Vehicle is not mind controlled and the player is not a monster\n //skip player if Vehicle is mind controlled and the player is a monster\n if (players[m] == null || players[m].getName().equals(\"NONE\") || curr == players[m] ||\n ((curr instanceof Vehicle && !((Vehicle) (curr)).isMindControlled()) && !(players[m] instanceof Monster)) ||\n ((curr instanceof Vehicle && ((Vehicle) (curr)).isMindControlled()) && (players[m] instanceof Monster)))\n continue;\n int mR = players[m].getRow();\n int mC = players[m].getCol();\n\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 0; r--) { //coastguard, destroyer, fighter planes and artillery have the monsters position known - the monster is not hidden by structures\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length; c++) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 0; c--) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n }\n if (skip)\n continue;\n }\n }\n return ans;\n }", "@Override\n\tpublic String runTurn() {\n\t\tif (possibleCords.isEmpty() && !isEndHuntMode) {\n\t\t\treset();\n\t\t\tisHuntMode = false;\n\t\t\tisEndHuntMode = true;\n\t\t}\n\t\t\n\t\tif (isHuntMode || isEndHuntMode) {\n\t\t\tlastCord = getCord();\n\t\t}\n\t\telse if (isSearchMode){\n\t\t\tString coordinate = null;\n\t\t\t// Get a non out of bounds coordinate \n\t\t\twhile (coordinate == null) {\n\t\t\t\tcoordinate = aroundCords[searchModeIter];\n\t\t\t\tif (coordinate == null)\n\t\t\t\t\tsearchModeIter++;\n\t\t\t}\n\t\t\tlastCord = coordinate;\n\t\t}\n\t\telse {// its in destroy mode\n\t\t\tString coordinate = cordFromIter(lastCord, searchModeIter);\n\t\t\tif (coordinate == null && isReverse) { // we've completely destroyed the ship and hit a wall\n\t\t\t\treset();\n\t\t\t\tlastCord = getCord();\n\t\t\t}\n\t\t\telse if (coordinate == null) { // hit wall in forward direction\n\t\t\t\tisReverse = true;\n\t\t\t\tchangeIterDirection();\n\t\t\t\tlastCord = cordFromIter(originalHit, searchModeIter);\n\t\t\t\tif (lastCord == null) { // ship is destroyed and hit a wall in the reverse direction\n\t\t\t\t\treset();\n\t\t\t\t\tlastCord = getCord();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlastCord = coordinate;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tpossibleCords.remove(lastCord);\n\t\totherCords.remove(lastCord);\n\t\treturn lastCord;\n\t}", "public static void findWumpus(GameTile[][] visibleMap) {\r\n\t\t//method to find the position of the Wumpus\r\n\t\t//this will be used to determine where the beast is and to kill it\r\n\t\tfor(int i=0; i<visibleMap.length; i++) {\r\n\t\t\tfor(int j=0; j<visibleMap[i].length; j++) {\r\n\t\t\t\tif(visibleMap[i][j].hasWumpus()) {\r\n\t\t\t\t\twumpusX = i;\r\n\t\t\t\t\twumpusY = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private synchronized Object[] getBestMove()\n/* */ {\n/* 580 */ while (this.workToDo)\n/* 581 */ synchronized (this) {\n/* 582 */ try { wait();\n/* */ } catch (InterruptedException e) {\n/* 584 */ e.printStackTrace(SingleThreadedTabuSearch.err); } } return this.bestMove;\n/* */ }", "void robPlayer(HexLocation location, int victimIndex);", "public UnoCard searchForMatch(UnoCard prev) {\r\n \r\n //case where previous card was a \r\n // special card(wild, or WD4)\r\n if(UnoSpecialCardsV2.unoSpecialCard(prev)) {\r\n //Tests to determine 1) which special card previous was; and\r\n if(UnoSpecialCardsV2.unoCardWild(prev)) {\r\n int unoCardTgtColor = UnoV2.getWildColor();\r\n // 2) does player have a card to match it. \r\n for (int i = hand.handSize()-1; i >=0; i--) {\r\n UnoCard unocard = hand.getCard(i);\r\n if (unocard.getColor() == unoCardTgtColor \r\n || (unocard.getRank() > 24)) { \r\n return hand.popCard(i);\r\n }\r\n }\r\n return null;\r\n \r\n }\r\n // Same comments as above\r\n if(UnoSpecialCardsV2.unoCardWildDrawFour(prev)) {\r\n int unoCardTgtColor = UnoV2.getWildColor();\r\n System.out.println(\"unoCardTgtColor into WD4 SearchForMatch \" \r\n + UnoCard.getColors()[unoCardTgtColor]);\r\n \r\n for (int i = hand.handSize()-1; i >=0;i--) {\r\n UnoCard unocard = hand.getCard(i);\r\n if ((unocard.getColor() == unoCardTgtColor) \r\n || unocard.getRank() > 24) {\r\n return hand.popCard(i); //had problem bug just because I forgot the 'i' in popCard...\r\n }\r\n }\r\n return null;\r\n } \r\n } //end special card prev, search for match\r\n \r\n for (int i = 0; i < hand.handSize(); i++) {\r\n UnoCard unocard = hand.getCard(i);\r\n \r\n/** Runs thru hand looks for regular wild cards, plays \r\n * them first*/\r\n if (unocard.getRank() > 24 && unocard.getRank() < 29) { \r\n return hand.popCard(i); \r\n/** Look for skip,reverse, D2, plays them next */\r\n } else if((unocard.getRank() > 18 && unocard.getRank() < 25) \r\n && UnoCard.unoCardsMatch(unocard, prev)) {\r\n return hand.popCard(i);\r\n }\r\n }\r\n/** After 'filters'\r\n * above, only cases are unocard < 19(normal cards 0 \r\n * to 9} or unocard wild Draw4. \r\n * Sort cards that are not special cards \r\n * or regular wild cards to play highest first \r\n */ \r\n UnoHand.insertionSortUnoHand(hand); \r\n \r\n // search from end of hand as hand sorted ascending\r\n for (int i = hand.handSize() - 1; i >= 0; i--) { \r\n UnoCard unocard = hand.getCard(i);\r\n if (unocard.getRank() <= 19 \r\n && UnoCard.unoCardsMatch(unocard, prev)) {\r\n return hand.popCard(i);\r\n // all else fails, play DrawFour\r\n }else if (unocard.getColor() > 3) { \r\n return hand.popCard(i);\r\n } \r\n }\r\n return null;\r\n }", "public ArrayList<Player> performShortAttack(String name) {\n\t\tArrayList<Player> killed \t= new ArrayList<Player>();\n\t\tPoint check\t\t\t\t\t= new Point();\n\t\tPoint p\t\t\t\t\t\t= new Point();\n\t\tPlayer player \t\t\t\t= findPlayer(name);\n\t\t\n\t\tp.x\t\t\t\t\t\t\t= player.getX();\n\t\tp.y\t\t\t\t\t\t\t= player.getY();\n\t\tcheck.x\t\t\t\t\t\t= player.getX();\n\t\tcheck.y\t\t\t\t\t\t= player.getY();\n\t\t\n\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\tcheck.y += y;\n\t\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\t\tcheck.x += x;\n\t\t\t\tfor(Player pl : playerList) {\n\t\t\t\t\tif(pl.getX() == check.x && pl.getY() == check.y)\n\t\t\t\t\t\tif(pl.getType() == PlayerType.Robot) {\n\t\t\t\t\t\t\tkilled.add(pl);\n\t\t\t\t\t\t\tplayerKilledRobot(player);\n\t\t\t\t\t\t\tremovePlayer(pl.getName()); \t\t// kill robot\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//restore values\n\t\t\t\tcheck.x\t= p.x;\n\t\t\t}\n\t\t\t//restore values\n\t\t\tcheck.y = p.y;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//send the new score to the player\n\t\tif(killed.size() > 0) { // if the player killed at least one robot \n\t\t\tserver.sendMessageToClient(name, \"@126@\" + highscore.get(player.getName()) + \"@\");\n\t\t\t\n\t\t\trewardPlayer(player);\n\t\t}\n\t\t\n\t\treturn killed;\n\t}", "private int getBestMove(int[] board, int depth, boolean turn) {\n int boardCopy[];\n if (depth <= 0) {\n return 0;\n }\n if (depth > STEP_BACK_DEPTH) {\n try {\n Thread.sleep(3);\n } catch (InterruptedException e) {\n e.printStackTrace();\n if (shouldStop()) {\n Log.d(Constants.MY_TAG,\"out CalculatingBot\");\n unlock();\n return 0;\n }\n }\n }\n if (turn) {\n int minimum = MAXIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 0; i < 5; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, ! turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n }\n int i = 10;\n if (board[2] < 2) {\n return minimum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n return minimum;\n } else {\n int maximum = MINIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 5; i < 10; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n }\n int i = 11;\n if (board[7] < 2) {\n return maximum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n return maximum;\n }\n }", "private void getKingJumpPos(Point kingPoint, Orientation or, Movement m, JumpPosition jumpPosit,Color c, boolean b) throws CloneNotSupportedException {\n Point foo = jumpPosit.jumpPosition.get(jumpPosit.jumpPosition.size()-1).to;\n Color oposite = c==Color.black?Color.red:Color.black;\n \n Point soldierPoint , nextPoint;\n for(OrientationMove orM:orientationMoveCombs){\n Point currentPoint = foo;\n for(int i=0;i<8;i++){\n if(i!=0) currentPoint = getXandYgivenOrientation(currentPoint, orM.or,orM.m);\n if( !isValidSquare(currentPoint.x, currentPoint.y)) \n break;\n if( !isEmpty(new Soldier(currentPoint.x, currentPoint.y, Color.white), gamePieces)) \n break;\n //soldierPoint = getXandYgivenOrientation(currentPoint, or,m);\n\n soldierPoint = getXandYgivenOrientation(currentPoint, orM.or,orM.m);\n nextPoint = getXandYgivenOrientation(soldierPoint, orM.or,orM.m);\n Soldier foe = new Soldier(soldierPoint.x, soldierPoint.y, oposite);\n if(isJumpable(soldierPoint, orM.or, orM.m, c , jumpPosit))\n addAllRelevantSquares(jumpPosit, foo, nextPoint, soldierPoint, orM.or, orM.m ,oposite );\n\n\n nextPoint = getXandYgivenOrientation(soldierPoint, or,m);\n if(!isEmpty(soldierPoint, gamePieces, jumpPosit.jumpPosition)\n &&!isEmpty(nextPoint, gamePieces, jumpPosit.jumpPosition)) break; \n }\n }\n \n \n \n //If it is, add it to the movement path\n// if(isJumpable(soldierPoint, or, m, c , jumpPositions)){ \n// addOnlyToTempJumpPositions(foo, getXandYgivenOrientation(soldierPoint, or,m) , soldierPoint ,jumpPosit , or, m);\n// }\n \n }", "protected Object[] getBestMove(Solution soln, Move[] moves, ObjectiveFunction objectiveFunction, TabuList tabuList, AspirationCriteria aspirationCriteria, boolean maximizing, boolean chooseFirstImprovingMove)\n/* */ {\n/* 260 */ int threads = getThreads();\n/* 261 */ if (threads == 1)\n/* */ {\n/* 263 */ return SingleThreadedTabuSearch.getBestMove(soln, moves, objectiveFunction, tabuList, aspirationCriteria, maximizing, chooseFirstImprovingMove, this);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 271 */ Move bestMove = null;\n/* 272 */ double[] bestMoveVal = null;\n/* 273 */ boolean bestMoveTabu = false;\n/* 274 */ NeighborhoodHelper[] helpers = getHelpers();\n/* */ \n/* */ \n/* 277 */ int numGroups = helpers.length;\n/* 278 */ int nominalSize = moves.length / numGroups;\n/* 279 */ Move[][] moveGroups = new Move[numGroups][];\n/* */ \n/* */ \n/* 282 */ for (int i = 0; i < numGroups - 1; i++)\n/* */ {\n/* 284 */ moveGroups[i] = new Move[nominalSize];\n/* 285 */ System.arraycopy(moves, i * nominalSize, moveGroups[i], 0, nominalSize);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 291 */ moveGroups[(numGroups - 1)] = new Move[nominalSize + moves.length % numGroups];\n/* 292 */ System.arraycopy(moves, (numGroups - 1) * nominalSize, moveGroups[(numGroups - 1)], 0, moveGroups[(numGroups - 1)].length);\n/* */ \n/* */ \n/* */ \n/* 296 */ for (int i = 0; i < numGroups; i++) {\n/* 297 */ helpers[i].setWork(soln, moveGroups[i], objectiveFunction, tabuList, aspirationCriteria, maximizing, chooseFirstImprovingMove, this);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 304 */ Object[][] bestMoves = new Object[numGroups][];\n/* 305 */ for (int i = 0; i < numGroups; i++)\n/* */ {\n/* */ \n/* 308 */ Object[] contender = helpers[i].getBestMove();\n/* */ \n/* */ \n/* 311 */ Move newMove = (Move)contender[0];\n/* 312 */ double[] newObjVal = (double[])contender[1];\n/* 313 */ boolean newMoveTabu = ((Boolean)contender[2]).booleanValue();\n/* */ \n/* */ \n/* */ \n/* 317 */ if (bestMove == null)\n/* */ {\n/* 319 */ bestMove = newMove;\n/* 320 */ bestMoveVal = newObjVal;\n/* 321 */ bestMoveTabu = newMoveTabu;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 327 */ else if (SingleThreadedTabuSearch.isFirstBetterThanSecond(newObjVal, bestMoveVal, maximizing))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 335 */ if ((bestMoveTabu) || (!newMoveTabu)) {\n/* 336 */ bestMove = newMove;\n/* 337 */ bestMoveVal = newObjVal;\n/* 338 */ bestMoveTabu = newMoveTabu;\n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 344 */ else if ((bestMoveTabu) && (newMoveTabu)) {\n/* 345 */ bestMove = newMove;\n/* 346 */ bestMoveVal = newObjVal;\n/* 347 */ bestMoveTabu = newMoveTabu;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 355 */ return new Object[] { bestMove, bestMoveVal, new Boolean(bestMoveTabu) };\n/* */ }", "private void searchFunction() {\n\t\t\r\n\t}", "public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }", "public abstract void makeBestMove();", "public static void userMover(){\n System.out.println(\"Where would you like to move? Please choose (R)ight, (L)eft, (U)p, or (D)own \");\n String move = input.next();\n\n while (!\"RLUD\".contains(move)) {\n System.out.println(\"Where would you like to move? Please choose (R)ight, (L)eft, (U)p, or (D)own \");\n move = input.next();\n }\n\n if (move.equals(\"R\") && (myMap.canIMoveRight())) {\n myMap.moveRight();\n } else if (move.equals(\"L\") && myMap.canIMoveLeft()) {\n myMap.moveLeft();\n } else if (move.equals(\"U\") && myMap.canIMoveUp()) {\n myMap.moveUp();\n } else if (move.equals(\"D\") && myMap.canIMoveDown()) {\n myMap.moveDown();\n } else if (myMap.isThereAPit(move)) {\n navigatePit(move);\n } else {\n System.out.println(\"Sorry, you’ve hit a wall.\");\n }\n\n myMap.printMap();\n }", "public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }", "static void play(Player player) {\n Scanner in = new Scanner(System.in);\n int count=0;\n while (in.hasNextLine()) {\n String cmd = in.nextLine();\n if (cmd.equals(\"quit\")) {\n System.out.println(\"Good bye.\");\n return;\n }\n else if (cmd.equals(\"stop\")){\n System.out.println(\"Good bye\");\n return;\n }\n else if (cmd.contains(\"north\")) {\n enter(player, player.getLocation().north()); \n }\n else if (cmd.contains(\"south\")) {\n enter(player, player.getLocation().south()); \n }\n else if (cmd.contains(\"east\")) {\n enter(player, player.getLocation().east()); \n }\n else if (cmd.contains(\"west\")) {\n enter(player, player.getLocation().west()); \n }\n else if (cmd.contains(\"look\")) {\n look(player);\n }\n else if (cmd.startsWith(\"pickup\") ) {\n \n pickup(player, cmd.substring(7));\n if(cmd.endsWith(\"treasure chest\"))\n {\n count++;\n }\n if(cmd.endsWith(\"sword\")){ \n count++;\n }\n if(cmd.endsWith(\"pearls\")){ \n count++;\n }\n if(count==3){\n System.out.println(\"You win!! GAME OVER\");\n return;\n }\n }\n \n // MAGIC NUMBER length of pickup plus a space\n \n else if (cmd.startsWith(\"drop\")) {\n drop(player, cmd.substring(5)); // MAGIC NUMBER lenght of drop plus a space \n }\n else if (cmd.contains(\"status\")) {\n System.out.println(player);\n }\n else if (cmd.startsWith(\"keep\")){\n Thing sword1= player.get(\"sword\");\n if (sword1==null){\n System.out.println(\"Sorry no sword\");\n }\n else{\n Sword sword= (Sword)sword1;\n sword.keep();\n }\n }\n else if (cmd.startsWith(\"lift\")){\n Thing tchest2= player.get(\"treasure chest\");\n if (tchest2==null){\n System.out.println(\"Sorry no chest\");\n }\n else{\n Chest tchest= (Chest)tchest2;\n tchest.lift();\n }\n }\n else if (cmd.startsWith(\"shine\")){\n Thing pearl1= player.get(\"pearls\");\n if (pearl1==null){\n System.out.println(\"Sorry no pearls\");\n }\n else{\n Pearls pearl2= (Pearls)pearl1;\n pearl2.shine();\n }\n }\n else {\n System.out.println(\"What?\");\n }\n \n }\n }", "Point2D getNextMove(Point2D target, boolean pursuit, Set<Point2D> map);", "public List<Piece> inCheck(int kingX, int kingY){ // returns list of attacking pieces.\n // Also have to look for opponent king to avoid moving into check.\n // In this case only care whether or not a check occurs, not how many so breaks still ok\n // for regular check tests, want to know if 1 or 2 checks, cannot have multiple diagonal checks.\n List<Piece> attackers = new ArrayList<>();\n // knights\n int knight = turn == WHITE ? BLACK_KNIGHT : WHITE_KNIGHT;\n knightSearch:\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (kingX + dx >= 0 && kingX + dx < 8 && kingY + dy >= 0 && kingY + dy < 8){\n if (board[kingY+dy][kingX+dx] == knight){\n attackers.add(new Piece(knight, kingX+dx, kingY+dy));\n break knightSearch; // can only be checked by 1 knight at a time\n }\n }\n if (kingX + dy >= 0 && kingX + dy < 8 && kingY + dx >= 0 && kingY + dx < 8){\n if (board[kingY+dx][kingX+dy] == knight){\n attackers.add(new Piece(knight, kingX+dy, kingY+dx));\n break knightSearch;\n }\n }\n }\n }\n // bishop/queen/pawn/king\n int pawn = turn == WHITE ? BLACK_PAWN : WHITE_PAWN;\n int bish = turn == WHITE ? BLACK_BISHOP : WHITE_BISHOP;\n int queen = turn == WHITE ? BLACK_QUEEN : WHITE_QUEEN;\n int king = turn == WHITE ? BLACK_KING : WHITE_KING;\n diagSearch:\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (kingX + dx*i >= 0 && kingX + dx*i < 8 && kingY + dy*i >= 0 && kingY + dy*i < 8){\n int piece = board[kingY + dy*i][kingX + dx*i];\n if (piece != 0){\n if (piece == bish || piece == queen || (piece == pawn && i == 1 && dy == turn)\n || (piece == king && i == 1)){\n attackers.add(new Piece(piece, kingX+dx*i, kingY+dy*i));\n break diagSearch;\n }\n break;\n }\n i++;\n }\n }\n }\n // rook/queen/king\n int rook = turn == WHITE ? BLACK_ROOK : WHITE_ROOK;\n straightSearch:\n for (int dx = -1; dx <= 1; dx += 2){\n int i = 1;\n while (kingX + i*dx >= 0 && kingX + i*dx < 8){\n int piece = board[kingY][kingX + dx*i];\n if (piece != 0){\n if (piece == rook || piece == queen || (piece == king && i == 1)){\n attackers.add(new Piece(piece, kingX+dx*i, kingY));\n break straightSearch;\n }\n break;\n }\n i++;\n }\n i = 1;\n while (kingY + i*dx >= 0 && kingY + i*dx < 8){\n int piece = board[kingY+dx*i][kingX];\n if (piece != 0){\n if (piece == rook || piece == queen || (piece == king && i == 1)){\n attackers.add(new Piece(piece, kingX, kingY+dx*i));\n break straightSearch;\n }\n break;\n }\n i++;\n }\n }\n return attackers;\n }", "@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}", "protected int winnable(Board b){\r\n\t\t//checks if two tiles are the same (and not empty) and checks if\r\n\t\t//the third tile required to win is empty for a winning condition\r\n\t\tint condition = 0;\r\n\t\tif ((b.getTile(1) == b.getTile(2)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\t\tcondition =3;\r\n\t\telse if ((b.getTile(1) == b.getTile(3)) && (b.getTile(2) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 2;\r\n\t\telse if ((b.getTile(2) == b.getTile(3)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(4) == b.getTile(5)) && (b.getTile(6) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(4) == this.getSymbol()))\r\n\t\t\tcondition = 6;\r\n\t\telse if ((b.getTile(4) == b.getTile(6)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(6)) && (b.getTile(4) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 4;\r\n\t\telse if ((b.getTile(7) == b.getTile(8)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(7) != ' ') && (b.getTile(7) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(7) == b.getTile(9)) && (b.getTile(8) == ' ')\r\n\t\t\t\t&& (b.getTile(7) != ' ') && (b.getTile(7) == this.getSymbol()))\r\n\t\t\tcondition = 8;\r\n\t\telse if ((b.getTile(8) == b.getTile(9)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(8) != ' ') && (b.getTile(8) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(1) == b.getTile(4)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(1) == b.getTile(7)) && (b.getTile(4) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 4;\r\n\t\telse if ((b.getTile(4) == b.getTile(7)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(4) != ' ') && (b.getTile(4) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(2) == b.getTile(5)) && (b.getTile(8) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 8;\r\n\t\telse if ((b.getTile(2) == b.getTile(8)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(2) != ' ') && (b.getTile(2) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(8)) && (b.getTile(2) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 2;\r\n\t\telse if ((b.getTile(3) == b.getTile(6)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(3) == b.getTile(9)) && (b.getTile(6) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 6;\r\n\t\telse if ((b.getTile(6) == b.getTile(9)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(6) != ' ') && (b.getTile(6) == this.getSymbol()))\r\n\t\t\tcondition = 3;\r\n\t\telse if ((b.getTile(1) == b.getTile(5)) && (b.getTile(9) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 9;\r\n\t\telse if ((b.getTile(1) == b.getTile(5)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(1) != ' ') && (b.getTile(1) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(9)) && (b.getTile(1) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 1;\r\n\t\telse if ((b.getTile(3) == b.getTile(5)) && (b.getTile(7) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 7;\r\n\t\telse if ((b.getTile(3) == b.getTile(7)) && (b.getTile(5) == ' ')\r\n\t\t\t\t&& (b.getTile(3) != ' ') && (b.getTile(3) == this.getSymbol()))\r\n\t\t\tcondition = 5;\r\n\t\telse if ((b.getTile(5) == b.getTile(7)) && (b.getTile(3) == ' ')\r\n\t\t\t\t&& (b.getTile(5) != ' ') && (b.getTile(5) == this.getSymbol()))\r\n\t\t\tcondition = 3;\r\n\t\treturn condition;\r\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public GameBoard jump(APlayer opponent, Piece piece, int x, int y) {\n GameBoard newBoard = new GameBoard();\n newBoard.getPlayer2().getCheckers().clear();\n newBoard.getPlayer1().getCheckers().clear();\n newBoard.getPlayer1().getCheckers().addAll(this.getCheckers());\n newBoard.getPlayer2().getCheckers().addAll(opponent.getCheckers());\n newBoard.setCurrentTurn(1);\n int row = piece.getRow();\n int column = piece.getColumn();\n Piece piece1 = new Piece(row+2,getColumn(column-2),piece.isKing());\n Piece piece2 = new Piece(row+2,getColumn(column+2),piece.isKing());\n if(piece.isKing() && x < row) {\n Piece piece3 = new Piece(row-2, getColumn(column-2), true);\n Piece piece4 = new Piece(row-2, getColumn(column+2), true);\n if(newBoard.getPlayer1().isValidJump(newBoard.getPlayer2(),piece3,x,y,4) || x==row-2 && y==getColumn(column-2) && hasPlayers(opponent, row-1, getColumn(column-1)) &&\n isEmpty(opponent, row-2, getColumn(column-2))) {\n newBoard.getPlayer2().getCheckers().remove(new Piece(row-1,getColumn(column-1)));\n newBoard.getPlayer1().getCheckers().remove(piece);\n newBoard.getPlayer1().getCheckers().add(piece3);\n return newBoard.getPlayer1().jump(newBoard.getPlayer2(), piece3, x, y);\n }\n if (newBoard.getPlayer1().isValidJump(newBoard.getPlayer2(),piece4,x,y,4) || x==row-2 && y==getColumn(column+2) && hasPlayers(opponent, row-1,getColumn(column+1)) &&\n isEmpty(opponent, row-2, getColumn(column+2))) {\n newBoard.getPlayer2().getCheckers().remove(new Piece(row-1, getColumn(column+1)));\n newBoard.getPlayer1().getCheckers().remove(piece);\n newBoard.getPlayer1().getCheckers().add(piece4);\n return newBoard.getPlayer1().jump(newBoard.getPlayer2(), piece4, x, y);\n }\n } else if (newBoard.getPlayer1().isValidJump(newBoard.getPlayer2(),piece1,x,y,4) || x==row+2 && y== getColumn(column-2) && hasPlayers(opponent, row +1, getColumn(column -1)) &&\n isEmpty(opponent, row +2, getColumn(column -2))) {\n newBoard.getPlayer2().getCheckers().remove(new Piece(row+1, getColumn(column-1)));\n newBoard.getPlayer1().getCheckers().remove(piece);\n if (x == 7) {\n piece1.setKing(true);\n }\n newBoard.getPlayer1().getCheckers().add(piece1);\n return newBoard.getPlayer1().jump(newBoard.getPlayer2(), piece1, x, y);\n } else if (newBoard.getPlayer1().isValidJump(newBoard.getPlayer2(),piece2,x,y,4) || x==row+2 && y== getColumn(column+2) && hasPlayers(opponent, row +1, getColumn(column +1)) &&\n isEmpty(opponent, row +2, getColumn(column +2))) {\n newBoard.getPlayer2().getCheckers().remove(new Piece(row+1, getColumn(column+1)));\n newBoard.getPlayer1().getCheckers().remove(piece);\n if (x == 7) {\n piece2.setKing(true);\n }\n newBoard.getPlayer1().getCheckers().add(piece2);\n return newBoard.getPlayer1().jump(newBoard.getPlayer2(), piece2, x, y);\n }\n newBoard.getPlayer1().getCheckers().remove(piece);\n if (x == 7) {\n piece.setKing(true);\n }\n newBoard.getPlayer1().getCheckers().add(new Piece(x,y,piece.isKing()));\n return newBoard;\n }", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "boolean attack(int sq, int s) {\n\tlong attackSq = (1L << sq);\n\tif (s == LIGHT) {\n\tlong moves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t& attackSq;\n\tif (moves != 0)\n\treturn true;\n\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7) & attackSq;\n\tif (moves != 0)\n\treturn true;\n\t} else {\n\tlong moves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& attackSq;\n\tif (moves != 0)\n\treturn true;\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9) & attackSq;\n\tif (moves != 0)\n\treturn true;\n\t}\n\tlong pieces = pieceBits[s] ^ pawnBits[s];\n\twhile (pieces != 0) {\n\tint i = getLBit(pieces);\n\tint p = piece[i];\n\tfor (int j = 0; j < offsets[p]; ++j)\n\tfor (int n = i;;) {\n\tn = mailbox[mailbox64[n] + offset[p][j]];\n\tif (n == -1)\n\tbreak;\n\tif (n == sq)\n\treturn true;\n\tif (color[n] != EMPTY)\n\tbreak;\n\tif (!slide[p])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\treturn false;\n\t}", "@Override\n\tpublic void nextTurn()\n\t{\n\t\tif (isInventoryFull())\n\t\t{\n\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\"[THE INVENTORY OF \" + myWorker.getId()\n\t\t\t\t\t\t\t+ \" IS FULL AND IS GONNA UNLOAD]\");\n\t\t\tdestBuilding.getWorkersInside().remove(myWorker);\n\t\t\tBuilding unloadBuilding = null;\n\t\t\tif (getMyPlayer().getStockpiles().size() > 0)\n\t\t\t{\n\t\t\t\tRandom random = new Random(100);\n\t\t\t\tint chosenStockpile = random.nextInt(getMyPlayer()\n\t\t\t\t\t\t.getStockpiles().size());\n\n\t\t\t\tunloadBuilding = getMyPlayer().getStockpiles().get(\n\t\t\t\t\t\tchosenStockpile);\n\t\t\t} else if (getMyPlayer().getMainBuildings().size() > 0)\n\t\t\t{\n\t\t\t\tunloadBuilding = getMyPlayer().getMainBuildings().get(0);\n\t\t\t}\n\n\t\t\tif (doIMoveToBuilding(unloadBuilding))\n\t\t\t{\n\t\t\t\tMoveAction move;\n\t\t\t\tPoint dest = getMoveDestination(unloadBuilding);\n\t\t\t\tif (dest != null)\n\t\t\t\t{\n\t\t\t\t\tmove = new MoveAction(getMyPlayer(), myWorker, dest);\n\t\t\t\t\tmove.doAction();\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\t\"[\" + myWorker.getId() + \" ADDED \"\n\t\t\t\t\t\t\t\t+ myWorker.getLoadInInventory()\n\t\t\t\t\t\t\t\t+ \" TO RESOURCES]\");\n\t\t\t\tif (destBuilding instanceof Farm)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getFoodInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof StoneMine)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getStoneInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof GoldMine)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getGoldInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof WoodCamp)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getLumberInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\tmyWorker.setOccupationType(OccupationType.IDLE);\n\t\t\t\tdestBuilding.getWorkersInside().remove(myWorker);\n\t\t\t\tmyWorker.setLoadInInventory(0);\n\t\t\t\tmyWorker.setActionController(null);\n\t\t\t}\n\t\t} else if (doIMoveToBuilding(destBuilding))\n\t\t{\n\t\t\tPoint dest = getMoveDestination(destBuilding);\n\t\t\tif (dest == null)\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"BuildController class:nextTurn(): dest is null! do something!!!!\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tMoveAction move = new MoveAction(getMyPlayer(), myWorker, dest);\n\t\t\t\tmove.doAction();\n\t\t\t}\n\t\t} else if (!isInventoryFull())\n\t\t{\n\t\t\tdestBuilding.getWorkersInside().add(myWorker);\n\t\t\tint collectResourcePerTurn = 0;\n\t\t\tif (destBuilding instanceof Farm)\n\t\t\t{\n\t\t\t\tmyWorker.setFoodCollectingExperience(myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getFood();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getFoodProductionRate()));\n\t\t\t} else if (destBuilding instanceof GoldMine)\n\t\t\t{\n\t\t\t\tmyWorker.setGoldMiningExperience(myWorker\n\t\t\t\t\t\t.getGoldMiningExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getGold();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getGoldMiningExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getGoldProductionRate()));\n\t\t\t} else if (destBuilding instanceof StoneMine)\n\t\t\t{\n\t\t\t\tmyWorker.setStoneMiningExperience(myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getStone();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getStoneMiningExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getStoneProductionRate()));\n\n\t\t\t} else if (destBuilding instanceof WoodCamp)\n\t\t\t{\n\t\t\t\tmyWorker.setWoodCampExperience(myWorker.getWoodCampExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()]\n\t\t\t\t\t\t\t\t.getLumber();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getWoodCampExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getWoodProductionRate()));\n\t\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\t\"[\" + myWorker.getId() + \" ADD \"\n\t\t\t\t\t\t\t\t+ collectResourcePerTurn\n\t\t\t\t\t\t\t\t+ \" OF RESOURCE THIS TURN]\");\n\t\t\t}\n\n\t\t\tmyWorker.setLoadInInventory(collectResourcePerTurn\n\t\t\t\t\t+ myWorker.getLoadInInventory());\n\t\t}\n\t}", "@Override\r\n public void war(int playerOne, int playerTwo, int plDeckPosition, \r\n PlayingCard plOne, PlayingCard plTwo){\r\n \r\n //check to see if any player has run out of cards\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n \r\n // if a player has run out of cards have the player who has cards\r\n // win war and give them the cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n this.giveCardToPlayer(plTwo, playerTwo, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerTwo, plDeckPosition+1);\r\n }\r\n else{\r\n this.giveCardToPlayer(plTwo, playerOne, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerOne, plDeckPosition+1);\r\n }\r\n this.currentAction.addActionReturnValue(plOne, plTwo);\r\n }\r\n\r\n else{\r\n \r\n // set a war flag to true, and add it to the action return values\r\n boolean hasWarOccured = true; \r\n this.currentAction.addActionReturnValue(plOne, plTwo, hasWarOccured);\r\n \r\n // initialize variables that will hold the playing cards that will\r\n // be inserted into an array \r\n PlayingCard plOneCard;\r\n PlayingCard plTwoCard;\r\n \r\n // create an array of PlayingCards that will hold the cards\r\n // that will be won by the winner of the war and array of cards to return\r\n // to acction return values\r\n ArrayList<PlayingCard> returnOneCards = new ArrayList<>();\r\n ArrayList<PlayingCard> returnTwoCards = new ArrayList<>();\r\n ArrayList<PlayingCard> plCardToReward = new ArrayList<>();\r\n \r\n // add the cards that triggered the war to the array of cards that\r\n // will be given to the winner of the war\r\n plCardToReward.add(plOne); \r\n plCardToReward.add(plTwo); \r\n \r\n // transfer cards from discard to deck if discard pile has cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerOne)){\r\n this.transferFromDiscard(plDeckPosition, playerOne);\r\n }\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerTwo)){\r\n this.transferFromDiscard(plDeckPosition, playerTwo);\r\n } \r\n \r\n // initialize length of war\r\n int lengthOfWar = 4;\r\n // add cards used in war into the arraylist of cards to be returned\r\n // to winner, and to the action return values\r\n for(int i = 0; i < lengthOfWar; i++){\r\n plOneCard = (PlayingCard)this.getPlayerCard(playerOne,\r\n plDeckPosition);\r\n plTwoCard = (PlayingCard)this.getPlayerCard(playerTwo,\r\n plDeckPosition);\r\n returnOneCards.add(plOneCard);\r\n returnTwoCards.add(plTwoCard);\r\n plCardToReward.add(plOneCard);\r\n plCardToReward.add(plTwoCard);\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n this.currentAction.addActionReturnValue(returnOneCards, \r\n returnTwoCards);\r\n break;\r\n }\r\n if(i == lengthOfWar - 1){\r\n if(!(this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() - 1),\r\n returnTwoCards.get(returnTwoCards.size() - 1)) \r\n instanceof Card)){\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards, hasWarOccured);\r\n returnOneCards = new ArrayList<>();\r\n returnTwoCards = new ArrayList<>();\r\n lengthOfWar += 4;\r\n }\r\n else{\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards);\r\n }\r\n }\r\n } \r\n\r\n // Compare the two player cards\r\n PlayingCard higherCard = this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() -1),\r\n returnTwoCards.get(returnTwoCards.size() -1));\r\n \r\n // See who owned that card and distribute cards accordingly or initialize\r\n if (higherCard == returnOneCards.get(returnOneCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n else if (higherCard == returnTwoCards.get(returnTwoCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1); \r\n }\r\n }\r\n else{\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1);\r\n }\r\n }\r\n else{\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n }\r\n }\r\n }", "public void battle(AbstractPokemon otherPokemon)\n {\n boolean capturedPokemon = false;\n AbstractPokemon myPokemon = caughtPokemon.get(0);\n while(caughtPokemon.size() > 0 && otherPokemon.getHealth() > 0 && myPokemon.getHealth() > 0 && capturedPokemon == false)\n {\n System.out.println(otherPokemon.toString() + \" has \" + otherPokemon.getHealth() + \" HP.\");\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has \" + myPokemon.getHealth() + \" HP.\");\n while (otherPokemon.getHealth() > 0 && myPokemon.getHealth() > 0 && capturedPokemon == false)\n {\n boolean willingToCapture = false;\n if(faveType == AbstractPokemon.Type.ANY_TYPE)\n willingToCapture = true;\n else if(otherPokemon.getType() == faveType)\n willingToCapture = true;\n if(!otherPokemon.canCapture() || !willingToCapture)\n {\n otherPokemon.takeDamage(myPokemon);\n if(otherPokemon.getHealth() < 0)\n otherPokemon.setHealth(0);\n System.out.println(otherPokemon.toString() + \" has \" + otherPokemon.getHealth() + \" HP.\");\n if(otherPokemon.getHealth() > 0)\n {\n myPokemon.takeDamage(otherPokemon);\n if(myPokemon.getHealth() < 0)\n myPokemon.setHealth(0);\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has \" + myPokemon.getHealth() + \" HP.\");\n }\n }\n else\n {\n if(throwPokeball(otherPokemon))\n {\n System.out.println(otherPokemon.toString() + \" has been captured!\");\n otherPokemon.setHealth(20);\n caughtPokemon.add(otherPokemon);\n otherPokemon.removeSelfFromGrid();\n capturedPokemon = true;\n }\n else\n {\n myPokemon.takeDamage(otherPokemon);\n if(myPokemon.getHealth() < 0)\n myPokemon.setHealth(0);\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has \" + myPokemon.getHealth() + \" HP.\");\n }\n }\n }\n if (myPokemon.getHealth() <= 0)\n {\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has fainted!\");\n caughtPokemon.remove(0);\n }\n if (caughtPokemon.size() > 0)\n {\n System.out.println(toString() + \" sent out \" + caughtPokemon.get(0).toString() + \".\");\n myPokemon = caughtPokemon.get(0);\n }\n }\n if(capturedPokemon == false)\n {\n if (otherPokemon.getHealth() <= 0)\n {\n System.out.println(otherPokemon.toString() + \" has fainted!\");\n otherPokemon.removeSelfFromGrid();\n myPokemon.setHealth(20);\n }\n else\n {\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n removeSelfFromGrid();\n otherPokemon.setHealth(20);\n }\n }\n System.out.println(\"\");\n }", "private void busquets() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -25;\n\t\tint yInit = -10;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit *selfPerception.getSide().value());\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tstate = State.ATTACKING;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\t//if(closer)\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public boolean DecideMove(Crazy8sBoard board){\n boolean haveAnEight = false;\n int locationOf8Card = 0;\n\n String topCard = board.GetTopTrashCard();\n String topFirstLetter = Character.toString(topCard.charAt(0));\n\n for(int i = 0; i < board.GetSizeOfComputerHand(); i++){\n\n String card = board.GetComputerCard(i);\n String firstLetter = Character.toString(card.charAt(0));\n\n if(topCard.contains(\"8\")){\n //Play whatever card, get to choose suite\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n\n if(card.contains(\"8\")){\n haveAnEight = true;\n locationOf8Card = i;\n }\n\n else {\n //the cards match in suite, doesn't matter what it is\n if (firstLetter.equals(topFirstLetter)) {\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n\n else {\n if (topFirstLetter.equals(\"c\")) {\n String temp = topCard.substring(5, topCard.length());\n System.out.println(\"TEMP \" + temp);\n\n if (card.contains(temp)) {\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n\n } else if (topFirstLetter.equals(\"h\")) {\n String temp = topCard.substring(6, topCard.length());\n System.out.println(\"TEMP \" + temp);\n\n if (card.contains(temp)) {\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n\n } else if (topFirstLetter.equals(\"d\")) {\n String temp = topCard.substring(8, topCard.length());\n System.out.println(\"TEMP \" + temp);\n\n if (card.contains(temp)) {\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n\n } else if (topFirstLetter.equals(\"s\")) {\n String temp = topCard.substring(6, topCard.length());\n System.out.println(\"TEMP \" + temp);\n\n if (card.contains(temp)) {\n board.ComputerUpdateTopCard(i);\n board.RemoveCardFromComputer(i);\n return true;\n }\n }\n }\n }\n }\n\n //Only play an 8 if all other cards are exhausted\n if(haveAnEight){\n //valid because 8s are wild cards, can place it\n board.ComputerUpdateTopCard(locationOf8Card);\n board.RemoveCardFromComputer(locationOf8Card);\n return true;\n }\n\n //couldn't play any card\n return false;\n }", "public void run() {\n if(_dest!=null) {\n approachDest();\n return;\n }\n if(Rand.d100(_frequency)) {\n MSpace m = in.b.getEnvironment().getMSpace();\n if(!m.isOccupied()) {\n Logger.global.severe(in.b+\" has come unstuck\");\n return;\n }\n MSpace[] sur = m.surrounding();\n int i = Rand.om.nextInt(sur.length);\n for(int j=0;j<sur.length;j++) {\n if(sur[i]!=null&&sur[i].isWalkable()&&accept(sur[i])) {\n in.b.getEnvironment().face(sur[i]);\n MSpace sp = in.b.getEnvironment().getMSpace().move(in.b.getEnvironment().getFacing());\n if(sp!=null&&(in.b.isBlind()||!sp.isOccupied())) {\n _move.setBot(in.b);\n _move.perform();\n }\n break;\n }\n if(++i==sur.length) {\n i = 0;\n }\n }\n }\n else if(_dest==null&&Rand.d100(_travel)) {\n _dest = findNewSpace();\n //System.err.println(in.b+\" DEST: \"+_dest);\n }\n }", "private Cell searchPowerUp() {\n for (Cell[] row : gameState.map) {\n for (Cell column : row) {\n if (column.powerUp != null)\n return column;\n }\n }\n\n return null;\n }", "public void actionPerformed(ActionEvent e) {\n timer.stop();\n //get all the available moves\n ArrayList<Point> possibleMoves = getCurrentlyValidMoves();\n canLastPlayerMove = false;\n try {\n //check if we can move\n if( possibleMoves.size() == 0 ){\n return;\n }\n //make an array to store the best moves available\n ArrayList<Point> bestMoves = new ArrayList<Point>();\n //the lower the level, the higher priority is assigned to the move\n //a move of level 10 is the absolute lowest\n //this heuristic follows the strategy I use, omitting situation-specific content\n int level = 10;\n for (Point p : possibleMoves) {\n int x = (int) p.getX();\n int y = (int) p.getY();\n if ((x == 0 || x == 7) && (y == 0 || y == 7)) {\n if (level > 0) {\n bestMoves.clear();\n level = 0;\n }\n bestMoves.add( p );\n } else if (level >= 1 && (x == 0 || y == 0 || x == 7 || y == 7)) {\n if (level > 1) {\n bestMoves.clear();\n level = 1;\n }\n bestMoves.add( p );\n } else if (level >= 2 && (x > 2 && x < 6 && y > 2 && y < 6)) {\n if ( level > 2) {\n bestMoves.clear();\n level = 2;\n }\n bestMoves.add( p );\n } else if (level >= 3 && x != 1 && x != 6 && y != 1 && y != 6) {\n if (level > 3) {\n bestMoves.clear();\n level = 3;\n }\n bestMoves.add(p);\n } else if (level >= 4) {\n bestMoves.add(p);\n }\n }\n //for debugging purposes, output the level of move chosen by the ai\n System.out.println(level);\n //select a random move from the pool of best moves\n Point move = bestMoves.get((int) (Math.random() * bestMoves.size()));\n int aix = (int) move.getX();\n int aiy = (int) move.getY();\n //move there\n attemptMove(aix, aiy);\n gamepieces[aix][aiy] = currentPlayer;\n //the ai moved, so this is true\n canLastPlayerMove = true;\n } finally { //if the ai moved or if it didn't\n //change the player\n currentPlayer = Color.WHITE;\n gameFrame.repaint();\n //if the human player has no moves left\n if( getCurrentlyValidMoves().size() == 0 ){\n if( canLastPlayerMove ){ //... and the ai could move\n //switch players, enable the ai to move again in 1 second\n currentPlayer = Color.BLACK;\n timer.start();\n }else{ //... and the ai couldn't move\n gameOver();\n }\n }\n }\n }", "private void moveUnitDown()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit down\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //if secondPlayer move unit down\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end if\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "private ArrayList<Move> whiteKing(){\n // obtain current co-ordinates\n int x = this.getX();\n int y = this.getY();\n\n // otherwise create a new vector to store legal whiteMoves\n ArrayList<Move> whiteMoves = new ArrayList<Move>();\n\n // set up m to refer to a Move object\n Move theMove = null;\n\n // first legal move is to go from x,y to x,y+1\n if (validNormalMove(x, y + 1)) {\n theMove = new Move(this, x, y, x, y + 1, false);\n if(takeOverCheck(x, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n // legal move is to go from x,y to x,y-1 if x,y-1 is unoccupied (bottom)\n if (validNormalMove(x, y - 1)) {\n theMove = new Move(this, x, y, x, y - 1, false);\n if(takeOverCheck(x, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //left\n // legal move to go left from x,y to x-1, y if x-1,y is unoccupied (left)\n\n if (validNormalMove(x-1, y)) {\n theMove = new Move(this, x, y, x-1, y, false);\n if(takeOverCheck(x-1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //right\n // legal move to go right from x,y to x+1, y if x+1,y is unoccupied (right)\n\n if (validNormalMove(x+1, y)) {\n theMove = new Move(this, x, y, x+1, y, false);\n\n if(takeOverCheck(x+1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n // legal move to diagonal top right for white king\n if (validNormalMove(x+1, y + 1)) {\n theMove = new Move(this, x, y, x+1, y + 1, false);\n if(takeOverCheck(x+1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom right\n\n if (validNormalMove(x+1, y -1)) {\n theMove = new Move(this, x, y, x+1, y - 1, false);\n if(takeOverCheck(x+1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom left\n if (validNormalMove(x-1, y -1)) {\n theMove = new Move(this, x, y, x-1, y - 1, false);\n if(takeOverCheck(x-1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal top left\n if (validNormalMove(x-1, y+1)) {\n theMove = new Move(this, x, y, x-1, y + 1, false);\n if(takeOverCheck(x-1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n if (whiteMoves.isEmpty())\n return null;\n return whiteMoves;\n }", "public void think_blocking()\r\n/* 37: */ {\r\n/* 38: 33 */ Scanner in = new Scanner(System.in);\r\n/* 39: */ Object localObject;\r\n/* 40:143 */ for (;; ((Iterator)localObject).hasNext())\r\n/* 41: */ {\r\n/* 42: 38 */ System.out.print(\"Next action ([move|land|attk] id; list; exit): \");\r\n/* 43: */ \r\n/* 44: 40 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 45: */ \r\n/* 46: 42 */ System.out.print(\"Processing command... \");\r\n/* 47: 43 */ System.out.flush();\r\n/* 48: */ \r\n/* 49: 45 */ this.game.updateSimFrame();\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 59: */ \r\n/* 60: 56 */ List<Command> coms = new ArrayList();\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 59 */ boolean recognized = true;\r\n/* 64: 60 */ switch ((localObject = cmd[0]).hashCode())\r\n/* 65: */ {\r\n/* 66: */ case 3004906: \r\n/* 67: 60 */ if (((String)localObject).equals(\"attk\")) {}\r\n/* 68: */ break;\r\n/* 69: */ case 3127582: \r\n/* 70: 60 */ if (((String)localObject).equals(\"exit\")) {\r\n/* 71: */ break label914;\r\n/* 72: */ }\r\n/* 73: */ break;\r\n/* 74: */ case 3314155: \r\n/* 75: 60 */ if (((String)localObject).equals(\"land\")) {\r\n/* 76: */ break;\r\n/* 77: */ }\r\n/* 78: */ break;\r\n/* 79: */ case 3322014: \r\n/* 80: 60 */ if (((String)localObject).equals(\"list\")) {}\r\n/* 81: */ case 3357649: \r\n/* 82: 60 */ if ((goto 793) && (((String)localObject).equals(\"move\")))\r\n/* 83: */ {\r\n/* 84: 64 */ if (cmd.length != 2) {\r\n/* 85: */ break label804;\r\n/* 86: */ }\r\n/* 87: 66 */ int id = Integer.parseInt(cmd[1]);\r\n/* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 89: 68 */ Coord.View c = null;\r\n/* 90: 70 */ if (b == null)\r\n/* 91: */ {\r\n/* 92: 71 */ if (this.game.getCountry().id() != id)\r\n/* 93: */ {\r\n/* 94: 73 */ System.err.println(\"This id isn't corresponding neither to a base nor your country\");\r\n/* 95: */ break label804;\r\n/* 96: */ }\r\n/* 97: 77 */ c = this.game.getCountry().position();\r\n/* 98: */ }\r\n/* 99: */ else\r\n/* 100: */ {\r\n/* 101: 79 */ c = b.position();\r\n/* 102: */ }\r\n/* 103: 81 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 104: 82 */ coms.add(new MoveCommand(p, c));\r\n/* 105: */ }\r\n/* 106: */ break label804;\r\n/* 107: 87 */ int id = Integer.parseInt(cmd[1]);\r\n/* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 109: 89 */ AbstractBase.View c = null;\r\n/* 110: 91 */ if (b == null)\r\n/* 111: */ {\r\n/* 112: 92 */ if (this.game.getCountry().id() != id)\r\n/* 113: */ {\r\n/* 114: 94 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 115: */ break label804;\r\n/* 116: */ }\r\n/* 117: 98 */ c = this.game.getCountry();\r\n/* 118: */ }\r\n/* 119: */ else\r\n/* 120: */ {\r\n/* 121:100 */ c = b;\r\n/* 122: */ }\r\n/* 123:102 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 124:103 */ coms.add(new LandCommand(p, c));\r\n/* 125: */ }\r\n/* 126: */ break label804;\r\n/* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 128:109 */ if (ep == null)\r\n/* 129: */ {\r\n/* 130:111 */ System.err.println(\"Bad id, this plane does not exists\");\r\n/* 131: */ }\r\n/* 132: */ else\r\n/* 133: */ {\r\n/* 134:114 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 135:115 */ coms.add(new AttackCommand(p, ep));\r\n/* 136: */ }\r\n/* 137: */ break label804;\r\n/* 138:118 */ System.out.println();\r\n/* 139:119 */ System.out.println(\">> My planes:\");\r\n/* 140:120 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 141:121 */ System.out.println(p);\r\n/* 142: */ }\r\n/* 143:122 */ System.out.println(\">> Ennemy planes:\");\r\n/* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) {\r\n/* 145:124 */ System.out.println(p);\r\n/* 146: */ }\r\n/* 147:125 */ System.out.println(\">> Visible bases :\");\r\n/* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) {\r\n/* 149:127 */ System.out.println(b);\r\n/* 150: */ }\r\n/* 151:128 */ System.out.println(\">> Your Country\");\r\n/* 152:129 */ System.out.println(this.game.getCountry());\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:130 */ break;\r\n/* 156: */ }\r\n/* 157:132 */ recognized = false;\r\n/* 158:133 */ System.err.println(\"Unrecognized command!\");\r\n/* 159: */ label804:\r\n/* 160:135 */ if (recognized) {\r\n/* 161:136 */ System.out.println(\"Processed\");\r\n/* 162: */ }\r\n/* 163: */ }\r\n/* 164: */ catch (IllegalArgumentException e)\r\n/* 165: */ {\r\n/* 166:139 */ System.out.println(\"Command failed: \" + e);\r\n/* 167:140 */ System.err.println(\"Command failed: \" + e);\r\n/* 168: */ }\r\n/* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next();\r\n/* 170:144 */ this.game.sendCommand(c);\r\n/* 171: */ }\r\n/* 172: */ label914:\r\n/* 173:148 */ in.close();\r\n/* 174:149 */ this.game.quit(0);\r\n/* 175: */ }", "static void startMatch()\n {\n // suggests that we should first use the pokedex menu\n if (Player.current.pokedex.isEmpty())\n {\n System.out.println(\"\\nYou have no pokemon to enter the match with kid. Use your pokedex and get some pokemon first.\");\n pause();\n return;\n }\n\n // print stuff\n clrscr();\n System.out.println(title());\n\n // print more stuff\n System.out.println(Player.opponent.name.toUpperCase() + \" IS PREPARING HIS POKEMON FOR BATTLE!\");\n \n // initialises the opponent logic - pokemon often enter evolved states\n Pokemon two = Opponent.init();\n\n System.out.println(\"\\n\"\n + Player.opponent.name.toUpperCase() + \" HAS CHOSEN \" + two +\"\\n\"\n + Player.current.name.toUpperCase() + \"! CHOOSE A POKEMON!!\");\n\n // displays the list of pokemon available for battle\n Player.current.showNamesPokedex();\n System.out.print(\"Gimme an index (Or type anything else to return)! \");\n int option = input.hasNextInt()? input.nextInt() - 1 : Player.current.pokedex.size();\n\n // sends back to mainMenu if option is out of bounds \n if (option >= Player.current.pokedex.size() || option < 0)\n {\n mainMenu();\n }\n\n // definitions, aliases for the two combatting pokemon\n Pokemon one = Player.current.pokedex.get(option);\n Pokemon.Move oneMove1 = one.listMoves.get(0);\n Pokemon.Move oneMove2 = one.listMoves.get(1);\n\n // if there's a bit of confusion regarding why two pokemon have the same nickname ...\n if (one.nickname.equals(two.nickname))\n System.out.println(one.nickname.toUpperCase() + \" vs ... \" + two.nickname.toUpperCase() + \"?? Okey-dokey, LET'S RUMBLE!!\");\n else // ... handle it\n System.out.println(one.nickname.toUpperCase() + \" vs \" + two.nickname.toUpperCase() + \"!! LET'S RUMBLE!!\");\n\n pause();\n clrscr();\n\n // Battle start!\n Pokemon winner = new Pokemon();\n // never give up!\n // unless it's addiction to narcotics \n boolean giveUp = false;\n while (one.getHp() > 0 && two.getHp() > 0 && !giveUp)\n {\n // returns stats of the pokemon\n System.out.println(\"\\nBATTLE STATS\\n\" + one + \"\\n\" + two);\n\n // 30% chance dictates whether the pokemon recover in a battle, but naturally so\n if (random.nextInt(101) + 1 < 30 && one.getHp() < one.maxHp)\n ++one.hp;\n\n if (random.nextInt(101) + 1 < 30 && two.getHp() < two.maxHp)\n ++two.hp;\n\n // the in-game selection menu\n System.out.print(\"\\n\"\n + Player.current.name.toUpperCase() + \"! WHAT WILL YOU HAVE \" + one.getFullName().toUpperCase() + \" DO?\\n\"\n + \"(a) Attack\\n\"\n + (oneMove1.isUsable? \"(1) Use \" + oneMove1.name.toUpperCase() + \"\\n\" : \"\")\n + (oneMove2.isUsable? \"(2) Use \" + oneMove2.name.toUpperCase() + \"\\n\" : \"\")\n + \"(f) Flee\\n\"\n + \"Enter the index from the brackets (E.g. (a) -> 'A' key): \");\n\n char choice = input.hasNext(\"[aAfF12]\")? input.next().charAt(0) : 'a';\n\n // a switch to handle the options supplied\n switch (choice)\n {\n case 'a': case 'A': default:\n one.attack(two);\n break;\n\n case 'f': case 'F':\n winner = two;\n giveUp = true;\n break;\n\n case '1':\n one.attack(two, oneMove1.name);\n break;\n\n case '2':\n one.attack(two, oneMove2.name);\n break;\n }\n\n // Opponent's turn, always second\n pause();\n clrscr();\n\n System.out.println(\"\\nBATTLE STATS\\n\" + one + \"\\n\" + two);\n Opponent.fight(one);\n pause();\n clrscr();\n }\n\n // find out the winner from combat or withdrawal\n winner = giveUp? two : one.getHp() > 0? one : two;\n System.out.println(\"\\nWINNER: \" + winner.getFullName() + \" of \" + winner.owner.name + \"!\\n\");\n\n if (winner == one)\n {\n // register the victory\n Player.current.gems += 100;\n System.out.println(\"You got 100 gems as a reward!\\n\");\n ++Player.current.wins;\n }\n else\n {\n // register the defeat\n ++Player.current.losses;\n System.out.println(\"Tough luck. Do not be worried! There's always a next time!\\n\");\n }\n\n pause();\n }", "public void startMatch() throws InterruptedException {\r\n\t\t//Get Active Pokemon\r\n\t\tfor (Pokemon selectedPokemon : yourPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tuser = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (Pokemon selectedPokemon : foesPokemon) {\r\n\t\t\tif (selectedPokemon != null) {\r\n\t\t\t\tfoe = selectedPokemon;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcalculateActivePokemon();\r\n\r\n\t\t//Start game loop\r\n\t\twhile (pokemonActiveUser > 0 && pokemonActiveFoe > 0) {\r\n\t\t\t\r\n\t\t\t//Is the user's Pokemon knocked out?\r\n\t\t\tif (user.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsUser = new ArrayList<Move_Recurring>();\r\n\t\t\t\tuser = yourPokemon[6 - pokemonActiveUser];\r\n\t\t\t\tSystem.out.println(\"Go \" + user.getName() + \"!\");\r\n\t\t\t\tuser.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsFoe.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsFoe.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsFoe.remove(i);\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//Is the foe Pokemon knocked out?\r\n\t\t\tif (foe.isKnockedOut()) {\r\n\t\t\t\tmoveEffectsFoe = new ArrayList<Move_Recurring>();\r\n\t\t\t\tfoe = foesPokemon[6 - pokemonActiveFoe];\r\n\t\t\t\tSystem.out.println(\"Go \" + foe.getName() + \"!\");\r\n\t\t\t\tfoe.resetStats();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < moveEffectsUser.size(); i++) {\r\n\t\t\t\t\tif (moveEffectsUser.get(i) instanceof LeechSeed) {\r\n\t\t\t\t\t\tmoveEffectsUser.remove(i);\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\tSystem.out.println(\"\");\r\n\t\t\t\r\n\t\t\t//Input selected move for the user's Pokemon to preform\r\n\t\t\tselectedMoveUser = null;\r\n\t\t\twhile (selectedMoveUser == null) {\r\n\t\t\t\t\r\n\t\t\t\t//Display Foe\r\n\t\t\t\tSystem.out.println(\"FOE Pokemon\");\r\n\t\t\t\tfoe.displayPokemon();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\t//Display User Pokemon\r\n\t\t\t\tSystem.out.println(\"YOUR Pokemon\");\r\n\t\t\t\tuser.displayPokemon();\r\n\t\t\t\t\r\n\t\t\t\t//Display active Pokemon's moves\r\n\t\t\t\tSystem.out.println(user.getMoveList());\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Select Move: \");\r\n\t\t\t\tString input = scanner.next().trim().toUpperCase();\r\n\t\t\t\t\r\n\t\t\t\tif (input.equals(\"1\") || input.equals(\"2\") || input.equals(\"3\") || input.equals(\"4\")) {\r\n\t\t\t\t\tselectedMoveUser = user.getMove(Integer.parseInt(input) - 1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int i = 0; i < user.getNumberOfMoves(); i++) {\r\n\t\t\t\t\t\tif (user.getMove(i).toString().trim().toUpperCase() == input) {\r\n\t\t\t\t\t\t\tselectedMoveUser = user.getMove(i);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Uses lazy evaluation\r\n\t\t\t\tif (selectedMoveUser != null && selectedMoveUser.getPP() < 1) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"That move is out of PP!\");\r\n\t\t\t\t\tselectedMoveUser = null;\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (selectedMoveUser == null) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Please enter valid input\");\r\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Is someone using Mirror Move?\r\n\t\t\tif (selectedMoveUser instanceof MirrorMove) {\r\n\t\t\t\tif (selectedMoveFoe == null) {\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" failed to use \" + selectedMoveUser.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveUser = selectedMoveFoe;\r\n\t\t\t\t\tSystem.out.println(user.getName() + \" copied \" + foe.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof MirrorMove) {\r\n\t\t\t\tif (usersLastMove == null) {\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" failed to use \" + selectedMoveFoe.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tselectedMoveFoe = usersLastMove;\r\n\t\t\t\t\tSystem.out.println(foe.getName() + \" copied \" + user.getName() + \"'s last move!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t//Select move for foe Pokemon\r\n\t\t\tRandom generator = new Random();\r\n\t\t\tselectedMoveFoe = foe.getMove(generator.nextInt(foe.getNumberOfMoves()));\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t//Who goes first?\r\n\t\t\tif (selectedMoveUser.isFast() && !(selectedMoveFoe.isFast())) {\r\n\t\t\t\tuserGoesFirst = true;\r\n\t\t\t} else if (selectedMoveFoe.isFast() && !(selectedMoveUser.isFast())) {\r\n\t\t\t\tuserGoesFirst = false;\r\n\t\t\t} else {\r\n\t\t\t\tuserGoesFirst = user.getSpeed() >= foe.getSpeed();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Run Turn\r\n\t\t\tif (userGoesFirst) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"The foe's Pokemon \" + foe.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveFoe.doMove(foe, user);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" started it's turn\");\r\n\t\t\t\tselectedMoveUser.doMove(user, foe);\r\n\t\t\t\tTimeUnit.MILLISECONDS.sleep(WAIT_TIME);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Is there any moves that have lasting effects?\r\n\t\t\tif (selectedMoveUser instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsUser.add((Move_Recurring) selectedMoveUser.clone());\r\n\t\t\t}\r\n\t\t\tif (selectedMoveFoe instanceof Move_Recurring) {\r\n\t\t\t\tmoveEffectsFoe.add((Move_Recurring) selectedMoveFoe.clone());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (Move_Recurring effect: moveEffectsUser) {\r\n\t\t\t\teffect.periodicEffect(user, foe);\r\n\t\t\t}\r\n\t\t\tfor (Move_Recurring effect: moveEffectsFoe) {\r\n\t\t\t\teffect.periodicEffect(foe, user);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tuser.getStatus().endOfTurn(user);\r\n\t\t\tfoe.getStatus().endOfTurn(foe);\r\n\t\t\t\r\n\t\t\t//Distribute experience\r\n\t\t\tif (foe.isKnockedOut() && user.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Foe's Pokemon \" + foe.getName() + \" was knocked out!\");\r\n\t\t\t\tuser = user.addExperience((int) (foe.getBaseExperienceYield() * 1.5 * foe.getLevel()));\r\n\t\t\t} else if (user.isKnockedOut() && foe.isKnockedOut() == false) {\r\n\t\t\t\tSystem.out.println(\"Your Pokemon \" + user.getName() + \" was knocked out!\");\r\n\t\t\t\t foe = foe.addExperience((int) (user.getBaseExperienceYield() * 1.5 * user.getLevel()));\r\n\t\t\t}\r\n\t\t\tcalculateActivePokemon();\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"----\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t\r\n\t\t//Output results\r\n\t\tif (pokemonActiveFoe < 1) {\r\n\t\t\t//Game won!\r\n\r\n\t\t\tSystem.out.println(\"YOU WIN!\");\r\n\t\t} else if (pokemonActiveUser < 1) {\r\n\t\t\t//Game lost\r\n\t\t\tSystem.out.println(\"All your Pokemon were knocked out...\");\r\n\t\t\tSystem.out.println(\"You Lose\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "public void warBattleHandling()\n\t{\n\t\tplayedCards.add(player1.draw());\n\t\tplayedCards.add(player2.draw());\n\t\t\n\t\tactivePlayerOneCard = player1.draw();\n\t\tactivePlayerTwoCard = player2.draw();\n\t\t\n\t\tplayedCards.add(activePlayerOneCard);\n\t\tplayedCards.add(activePlayerTwoCard);\n\t\t\n\t\tif(activePlayerOneCard.isEqual(activePlayerTwoCard))\n\t\t{\n\t\t\twarBattleHandling();\n\t\t}\n\t\tif(activePlayerOneCard.greaterThan(activePlayerTwoCard))\n\t\t{\n\t\t\tplayer1.winHandling(playedCards);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplayer2.winHandling(playedCards);\n\t\t}\n\t\t\n\t}", "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }", "@Override\n public DirType getMove(GameState state) {\n if (print) System.out.println(\"\\n\\n\");\n this.gb.update(state); // Must be done every turn\n this.findEnemySnake(); // Update Enemy Snake's head Location\n this.markDangerTiles(); // Mark tiles the Enemy Snake can reach and filled\n if (print) this.gb.printBoard();\n if (print) System.out.println(\"DIVEBOMB ENTER -> Us_X: \" + this.us_head_x + \", Us_Y: \" + this.us_head_y + \" -> \" + this.us_num);\n Tile target = this.diveBomb();\n if (print) System.out.print(\"DIVEBOMB EXIT -> Target_X: \" + target.getX() + \" Target_Y: \" + target.getY());\n DirType retVal = getDir(target);\n if (print) System.out.println(\" Dir: \" + retVal);\n\n\n if (this.us_num == 0) {\n System.out.println(\"\\n\\n\\n\");\n GameBoard gb= new GameBoard(state, 1,0);\n gb.update(state);\n float val = USuckUnless.grade(state, this.us_num, DirType.South);\n System.out.println(val);\n this.gb.printBoard();\n }\n return retVal;\n }", "void oppInCheck(Piece[] B,Player J2,boolean moveFound);", "public abstract String whichToMove(boolean[] available, String lastMove, int whoseTurn, Scanner scanner);", "public boolean repairPouchesWithSingleCall() {\n\n this.bank.close();\n this.game.openTab(Game.TAB_MAGIC);\n Timer repairTimer = new Timer(5000);\n if (this.inventory.getCount(true, RunePouchHandler.COSMIC_RUNE_ID) > 0 && this.inventory.getCount(true, RunePouchHandler.ASTRAL_RUNE_ID) > 0 && this.inventory.getCount(true, RunePouchHandler.AIR_RUNE_ID) > 1) {\n if (magic.castSpell(Magic.SPELL_NPC_CONTACT)) {\n this.superClass.sleep(2000, 3000);\n RSComponent scrollbar = interfaces.getComponent(88, 20).getComponent(1);\n Point p = new Point(this.superClass.random(scrollbar.getCenter().x, scrollbar.getCenter().x + 3), this.superClass.random(scrollbar.getCenter().y, scrollbar.getCenter().y + 3));\n this.mouse.move(p);\n this.mouse.drag(this.superClass.random(460, 465), this.superClass.random(210, 220));\n Point p2 = new Point(this.superClass.random(385, 425), this.superClass.random(175, 200));\n this.mouse.click(p2, true);\n this.superClass.sleep(150, 200);\n repairTimer.reset();\n while (repairTimer.isRunning() && this.superClass.getMyPlayer().getAnimation() == 4413) {\n this.superClass.sleep(150, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return false;\n }\n this.superClass.sleep(5000);\n for (int count = 0; count < 6; count++) {\n repairTimer.reset();\n while (repairTimer.isRunning() && !this.interfaces.clickContinue()) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return true;//??\n }\n this.superClass.sleep(678, 1234);\n }\n\n //Repair them\n repairTimer.reset();\n while (repairTimer.isRunning() && getComponentByString(\"Can you repair my pouches\") == null) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return true;//??\n } else {\n if (!getComponentByString(\"Can you repair my pouches\").doClick(true)) {\n return false; //?\n }\n }\n\n //click continue\n repairTimer.reset();\n while (repairTimer.isRunning() && !this.interfaces.clickContinue()) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return false;\n }\n }\n }\n return true;\n }", "public boolean walkReturns(){\n int count = 1;\n move();\n \n while((x!=0)||(y!=0)){\n move();\n count++;\n if(count>=safeguard){\n return false;\n }\n }\n return true;\n }", "public String computerMove() {\n\t\t// Look to win in a row\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (rowSum[r] == -2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int c = 0; c < 3; c++) {\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Look to win in a col\n\t\tfor (int c = 0; c < 3; c++) {\n\t\t\tif (colSum[c] == -2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int r = 0; r < 3; r++) {\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Look to win a diag\n\t\tfor (int d = 0; d < 2; d++) {\n\t\t\tif (diagSum[d] == -2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int r = 0; r < 3; r++) {\n\t\t\t\t\tint c = d == 0 ? r : 2 - r;\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Look to block a row\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tif (rowSum[r] == 2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int c = 0; c < 3; c++) {\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Look to block a col\n\t\tfor (int c = 0; c < 3; c++) {\n\t\t\tif (colSum[c] == 2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int r = 0; r < 3; r++) {\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Look to block a diag\n\t\tfor (int d = 0; d < 2; d++) {\n\t\t\tif (diagSum[d] == 2) {\n\t\t\t\t// Find the empty space\n\t\t\t\tfor (int r = 0; r < 3; r++) {\n\t\t\t\t\tint c = d == 0 ? r : 2 - r;\n\t\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\t\treturn done(r, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Find the non-full row and col w/ least val\n\t\tint bestR = -1;\n\t\tint bestC = -1;\n\t\tint minSum = 10;\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tfor (int c = 0; c < 3; c++) {\n\t\t\t\tif (board[r][c] == 0) {\n\t\t\t\t\tint sum = rowSum[r] + colSum[c];\n\t\t\t\t\tif (sum < minSum) {\n\t\t\t\t\t\tminSum = sum;\n\t\t\t\t\t\tbestR = r;\n\t\t\t\t\t\tbestC = c;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn done(bestR, bestC);\n\t}", "public boolean checkSight() {\r\n\t\tint x = (int) (creature.getXlocation()/Tile.TILEWIDTH);\r\n\t\tint y = (int) (creature.getYlocation()/Tile.TILEHEIGHT);\r\n\t\t//Facing Left\r\n\t\tif (creature.getLastDirection() == 1) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y)) {\r\n\t\t\t\treturn true; \r\n\t\t\t}else if (!checkCollision(x-1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y)) {\r\n\t\t\t\t\treturn true; \r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Right\r\n\t\t}else if (creature.getLastDirection() == 3) {\r\n\t\t\tif (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Up\r\n\t\t}else if (creature.getLastDirection() == 0) {\r\n\t\t\tif (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else if (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Down\r\n\t\t}else if (creature.getLastDirection() == 2) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void performMove() {\n\t\tfor (int x = 0; x <= size-1; x++)\n\t\t\tfor (int y = 0; y <= size-1; y++)\n\t\t\t\tlocalBoard[y][x] = 0;\n\t\t\n\t\t//reset the flag that indicates if a move has been found that decreases the heuristic\n\t\tfoundBetterMove = false;\n\t\t\n\t\t//fill in the appropriate heuristic values\n\t\tpopulateHillValues();\n\t\tArrayList<PotentialMove> myBestList = new ArrayList<PotentialMove>();\n\n\t\t//Find the square with the lowest heuristic value. this should really write the values to an array. \n\t\tint squareDifferential = -1;\n\t\t//String outValue = \"\";\n\t\tfor (int y = 0; y <= size-1; y++) {\n\t\t\tfor (int x = 0; x <= size-1; x++){\n\t\t\t\t//outValue = outValue + localBoard[y][x];\n\t\t\t\tif (squareDifferential < 0) //lowestSquareFound not found yet \n\t\t\t\t{\n\t\t\t\t\tif ((NQueens.queens[x] != y) && //set if the current square isn't already occupied by a queen\n\t\t\t\t\t\t\t(localBoard[NQueens.queens[x]][x] >= localBoard[y][x])) {\n\t\t\t\t\t\tif (localBoard[y][x] == localBoard[NQueens.queens[x]][x])\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) > squareDifferential) { // find the square with the largest differential in value from the queen in the column\n\t\t\t\t\tmyBestList.clear();\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, false));\n\t\t\t\t\tsquareDifferential = localBoard[NQueens.queens[x]][x] - localBoard[y][x];\n\t\t\t\t}\n\t\t\t\telse if (((localBoard[NQueens.queens[x]][x] - localBoard[y][x]) == squareDifferential) && // the differential is equal to the current best differential\n\t\t\t\t\t\t(NQueens.queens[x] != y)) { // and isn't already occupied by a queen\n\t\t\t\t\tmyBestList.add(new PotentialMove(x, y, true));\n\t\t\t\t}\n\t\t\t\t//else the square is higher, has a queen or isn't marginally better than the current queen's position in the row\n\t\t\t}\n\t\t\t//outValue = outValue + \"\\n\";\n\t\t}\n\t\t//JOptionPane.showMessageDialog(null, outValue);\n\t\t\n\t\tif (myBestList.isEmpty())\n\t\t\treturn;\n\t\t\n\t\tint listSize = myBestList.size();\n\t\tPotentialMove bestMove;\n\t\t\n\t\t//grab the non-Sideways moves first\n\t\tfor (int i = 0; i < listSize; i++) {\n\t\t\tif (!(myBestList.get(i).isSideways)) {\n\t\t\t\tbestMove = myBestList.get(i);\n\t\t\t\tfoundBetterMove = true;\n\t\t\t\tsidewaysMoves = 0;\n\t\t\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sidewaysMoves > MAXSIDEWAYSMOVES) { // hit MAXSIDEWAYSMOVES consecutive sideways moves, mark as unsolvable\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//all available moves sideways moves, let's select one randomly\n\t\tRandom generator = new Random();\n\t\tint randomElement = generator.nextInt(listSize);\n\t\t\n\t\tbestMove = myBestList.get(randomElement);\n\t\tfoundBetterMove = true;\n\t\tsidewaysMoves++;\n\t\tNQueens.queens[bestMove.xCoordinate] = bestMove.yCoordinate;\n\t}", "private static void playersMove() {\r\n\t\tPrint print = new Print(); \r\n\t\tprint.board(game); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Prints the entire gameBoard.\r\n\t\t\r\n\t\tboolean flag = false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//true = Get Gideon's move | false = Get User's move\r\n\t\r\n\t\tArrayList<Integer> moves = MoveGenerator.Gen(flag, gamePieces);\t\t\t\t\t\t\t//returns all the legal moves possible to make by the player.\r\n\t\tPrint.moves(moves);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Prints all the moves returned by the Gen method.\r\n\t\t\r\n\t\tSystem.out.print(\"\\n\\n Enter your move: \");\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tString userInput = kb.next();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Captures the players move\r\n\t\t\r\n\t\tboolean moveCheck = CheckUserInput.checkMove(userInput, moves);\t\t\t\t\t\t\t//Checks if the move entered by the player is in the legal move list\r\n\t\t\r\n\t\tString formattedUserInput = null;\r\n\t\t\r\n\t\tif(!moveCheck)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Recall the playersMove() method if the move entered by the user is illegal\r\n\t\t\tplayersMove();\r\n\r\n\t\tformattedUserInput = FormatInput.formatUserMove(userInput);\t\t\t\t\t\t\t//Formatting the user's move to make it as an executable move on the board\r\n\t\t\r\n\t\t//System.out.println(formattedUserInput);\r\n\t\t\r\n\t\tUpdateBoard boardUpdater = new UpdateBoard();\r\n\t\tgame = boardUpdater.playMove(formattedUserInput,game, gamePieces, flag, false, true); //Executing the legal move on the gameBoard\r\n\t\tgamePieces = game.getGamePiecesArray();\t\t\t\t\t\t\t\t\t\t\t\t\t//Getting the updated copy of the Game Pieces Array\r\n\t\tgame.updateGameBoard();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Updating the String copy of the game board (required to print the updated gameBoard)\r\n\t\t\r\n\t\tSystem.out.println(\"\\n ========================\");\r\n\t\tGideonsMove();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Gideon's turn to make a move\r\n\t\r\n\t}", "@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }", "private WeightedSampler<String> getPossibleLethalActions(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 WeightedOrderedSampler<>();\n List<Minion> minions = this.b.getMinions(team, false, true).collect(Collectors.toList());\n for (Minion m : minions) {\n if (p.canUnleashCard(m)) {\n double totalWeight = UNLEASH_TOTAL_WEIGHT + UNLEASH_WEIGHT_PER_PRESENCE * m.getTotalEffectValueOf(e -> e.getPresenceValue(5));\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(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n if (this.b.getMinions(team * -1, false, true).anyMatch(m -> m.finalStats.get(Stat.WARD) > 0)) {\n // find ways to break through the wards\n for (Minion m : minions) {\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n List<Minion> searchSpace = m.getAttackableTargets().collect(Collectors.toList());\n double weight = totalWeight / searchSpace.size();\n for (Minion target : searchSpace) {\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 * weight);\n }\n }\n }\n } else {\n // just go face\n this.b.getPlayer(team * -1).getLeader().ifPresent(l -> {\n for (Minion m : minions) {\n if (m.canAttack(l)) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n poss.add(new OrderAttackAction(m, l).toString().intern(), totalWeight);\n }\n }\n });\n }\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }", "private void battle(){\n\n while(!isBattleOver()){\n\n battleAllyAttack();\n if(isBattleOver()) return;\n\n battleEnemyAttack();\n if(isBattleOver()) return;\n\n readyNextAttackers();\n\n }\n System.out.println(\"battle over\");\n\n }", "private Player checkIfEatsRedPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);//player.x_cordinate;\n int y_cord = getMidPoint(player.y_cordinate);//player.y_cordinate;\n int redx1 = getMidPoint(getRed_player1().x_cordinate);\n int redx2 = getMidPoint(getRed_player2().x_cordinate);\n int redx3 = getMidPoint(getRed_player3().x_cordinate);\n int redx4 = getMidPoint(getRed_player4().x_cordinate);\n int redy1 = getMidPoint(getRed_player1().y_cordinate);\n int redy2 = getMidPoint(getRed_player2().y_cordinate);\n int redy3 = getMidPoint(getRed_player3().y_cordinate);\n int redy4 = getMidPoint(getRed_player4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, redx1, redy1) == 1)\n {\n return getRed_player1();\n }\n else if (collisionDetection(x_cord, y_cord, redx2, redy2) == 1)\n {\n return getRed_player2();\n }\n else if (collisionDetection(x_cord, y_cord, redx3, redy3) == 1)\n {\n return getRed_player3();\n }\n else if (collisionDetection(x_cord, y_cord, redx4, redy4) == 1)\n {\n return getRed_player4();\n }\n else\n {\n return null;\n }\n }", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "private void moveUnitUp()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit up\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit up\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "public static int[][] getPlayerFullMove(int[][] board, int player) {\r\n\t\t// Get first move/jump\r\n\t\tint fromRow = -1, fromCol = -1, toRow = -1, toCol = -1;\r\n\t\tboolean jumpingMove = canJump(board, player);\r\n\t\tboolean badMove = true;\r\n\t\tgetPlayerFullMoveScanner = new Scanner(System.in);//I've modified it\r\n\t\twhile (badMove) {\r\n\t\t\tif (player == 1){\r\n\t\t\t\tSystem.out.println(\"Red, Please play:\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Blue, Please play:\");\r\n\t\t\t}\r\n\r\n\t\t\tfromRow = getPlayerFullMoveScanner.nextInt();\r\n\t\t\tfromCol = getPlayerFullMoveScanner.nextInt();\r\n\r\n\t\t\tint[][] moves = jumpingMove ? getAllBasicJumps(board, player) : getAllBasicMoves(board, player);\r\n\t\t\tmarkPossibleMoves(board, moves, fromRow, fromCol, MARK);\r\n\t\t\ttoRow = getPlayerFullMoveScanner.nextInt();\r\n\t\t\ttoCol = getPlayerFullMoveScanner.nextInt();\r\n\t\t\tmarkPossibleMoves(board, moves, fromRow, fromCol, EMPTY);\r\n\r\n\t\t\tbadMove = !isMoveValid(board, player, fromRow, fromCol, toRow, toCol); \r\n\t\t\tif (badMove)\r\n\t\t\t\tSystem.out.println(\"\\nThis is an illegal move\");\r\n\t\t}\r\n\r\n\t\t// Apply move/jump\r\n\t\tboard = playMove(board, player, fromRow, fromCol, toRow, toCol);\r\n\t\tshowBoard(board);\r\n\r\n\t\t// Get extra jumps\r\n\t\tif (jumpingMove) {\r\n\t\t\tboolean longMove = (getRestrictedBasicJumps(board, player, toRow, toCol).length > 0);\r\n\t\t\twhile (longMove) {\r\n\t\t\t\tfromRow = toRow;\r\n\t\t\t\tfromCol = toCol;\r\n\r\n\t\t\t\tint[][] moves = getRestrictedBasicJumps(board, player, fromRow, fromCol);\r\n\r\n\t\t\t\tboolean badExtraMove = true;\r\n\t\t\t\twhile (badExtraMove) {\r\n\t\t\t\t\tmarkPossibleMoves(board, moves, fromRow, fromCol, MARK);\r\n\t\t\t\t\tSystem.out.println(\"Continue jump:\");\r\n\t\t\t\t\ttoRow = getPlayerFullMoveScanner.nextInt();\r\n\t\t\t\t\ttoCol = getPlayerFullMoveScanner.nextInt();\r\n\t\t\t\t\tmarkPossibleMoves(board, moves, fromRow, fromCol, EMPTY);\r\n\r\n\t\t\t\t\tbadExtraMove = !isMoveValid(board, player, fromRow, fromCol, toRow, toCol); \r\n\t\t\t\t\tif (badExtraMove)\r\n\t\t\t\t\t\tSystem.out.println(\"\\nThis is an illegal jump destination :(\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Apply extra jump\r\n\t\t\t\tboard = playMove(board, player, fromRow, fromCol, toRow, toCol);\r\n\t\t\t\tshowBoard(board);\r\n\r\n\t\t\t\tlongMove = (getRestrictedBasicJumps(board, player, toRow, toCol).length > 0);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn board;\r\n\t}", "private Move moveBlockingWin(PentagoBoard b0, Color who) {\n \tPentagoBoard b = (PentagoBoard)b0.clone();\n \tfor(Move m: b.getMovesFor(who)) {\n \t\t\n \t}\n \treturn null;\n }", "private boolean attempt2GetPlayerFromHomeSucceds(Player player)\n {\n boolean blu = false;\n boolean red = false;\n boolean green = false;\n boolean yellow = false;\n if (player.getSteps_moved() == 0 && getValue_from_die() == 6)\n {\n if (getPerson_to_play() == 1)\n {\n blu = try2GetBluePlayerFromHome(player);\n if (blu)\n {\n BlueEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 2)\n {\n red = try2GetRedPlayerFromHome(player);\n if (red)\n {\n RedEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 3)\n {\n green = try2GetGreenPlayerFromHome(player);\n if (green)\n {\n GreenEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 4)\n {\n yellow = try2GetYellowPlayerFromHome(player);\n if (yellow)\n {\n YellowEatsPlayer(player);\n }\n }\n\n\n if (blu || red || green || yellow)\n {\n value_from_die = 0;\n ludo.setDrawScoreAllowed(false);\n playPlayerHasMovedMusic();\n return true;\n }\n }\n return false;\n }", "@Override\n public FighterMatch fight(String id) {\n Tournament tournament = Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n\n if(tournament.getFightersRemaining().size() > 2){\n return tournament.fight();\n }\n else{\n FighterMatch winner = tournament.fight();\n saveTournament(tournament);\n tournamentCache.remove(id);\n System.out.println(winner);\n return winner;\n }\n }", "@Override\n public boolean isUsable(Game game) {\n// game.getCurrentPlayer().setInQue(true);\n availableSquare.clear();\n Boolean result = false;\n Worker worker = (Worker) game.getTargetInUse();\n if (game.getTargetSelected() != null) {\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }\n // if(game.getTargetSelected().getSquare().getWorker()==null) {\n for (Square s : worker.getSquare().getAdjacentSquares()) {\n if (s.getLevel() < 4 && (s.getWorker() == null || s.getWorker().getC() != worker.getC()) && ((worker.getCanMoveUp() && worker.getSquare().getLevel() == s.getLevel() - 1) || (worker.getSquare().getLevel() > s.getLevel() - 1)))\n availableSquare.add(s);\n }\n result = true;\n List<SquareToJson> availableSquares = new ArrayList<>();\n for (Square s1 : availableSquare)\n availableSquares.add(new SquareToJson(s1.getLevel(), \"\", s1.getCoordinateX(), s1.getCoordinateY()));\n\n SquareToJson[][] map = game.squareToJsonArrayGenerator();\n\n ChooseTarget chooseTarget = new ChooseTarget(\"Where do you want to move?\", availableSquares, map);\n UpdateEvent event = new UpdateEvent(map);\n game.notifyObservers(event);\n game.notifyCurrent(chooseTarget);\n\n //}\n /*else{\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }*/\n if (worker.getSquareNotAvailable() != null)\n availableSquare.remove(worker.getSquareNotAvailable());\n\n if (availableSquare.size() == 0) {\n game.getCurrentPlayer().setDefeat(true);\n result = false;\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(false);\n return result;\n }\n worker.setCanBeMoved(result);\n game.getCurrentPlayer().setInQue(true);\n game.getController().setGoOn(true);\n return result;\n }" ]
[ "0.64678603", "0.6398068", "0.636176", "0.6291425", "0.6158604", "0.6097308", "0.59930885", "0.59894586", "0.59359473", "0.5910914", "0.5897649", "0.5883964", "0.58720523", "0.58641785", "0.58518535", "0.58368903", "0.5826227", "0.5819011", "0.5812716", "0.5811734", "0.57894427", "0.577889", "0.57478374", "0.57276744", "0.57089764", "0.57052475", "0.5704697", "0.5692844", "0.5687662", "0.56712735", "0.5664907", "0.56599516", "0.56569225", "0.5655903", "0.5653077", "0.56344044", "0.5633308", "0.56100386", "0.56061196", "0.5606104", "0.5603631", "0.56034964", "0.55767757", "0.55689794", "0.5568667", "0.55672055", "0.555201", "0.55500525", "0.5537165", "0.5532358", "0.55210316", "0.5514137", "0.55022943", "0.54891235", "0.54772997", "0.54634565", "0.5450793", "0.5442225", "0.54419017", "0.5434433", "0.54287475", "0.5424975", "0.54222214", "0.54185575", "0.5414604", "0.54113513", "0.5408026", "0.5406988", "0.5406754", "0.540614", "0.54026896", "0.54013693", "0.54007125", "0.5399431", "0.5395658", "0.5395183", "0.53918195", "0.53907675", "0.53805095", "0.5379782", "0.5376849", "0.5373029", "0.5366958", "0.5366168", "0.5362278", "0.535966", "0.5353592", "0.53507787", "0.5342934", "0.53429085", "0.53393435", "0.5336853", "0.53323543", "0.5327982", "0.5317916", "0.53175074", "0.5313665", "0.5308791", "0.5305545", "0.5296264" ]
0.56386954
35
For wumpus world, we do one move at a time
public AgentAction getNextMove(GameTile [][] visibleMap) { //Possible things to add to your moves // nextMove = AgentAction.doNothing; // nextMove = AgentAction.moveDown; // nextMove = AgentAction.moveUp; // nextMove = AgentAction.moveUp; // nextMove = AgentAction.moveLeft; // nextMove = AgentAction.pickupSomething; // nextMove = AgentAction.declareVictory; // // nextMove = AgentAction.shootArrowNorth; // nextMove = AgentAction.shootArrowSouth; // nextMove = AgentAction.shootArrowEast; // nextMove = AgentAction.shootArrowWest; // nextMove = AgentAction.quit //Ideally you would remove all this code, but I left it in so the keylistener would work if(keyboardPlayOnly) { if(nextMove == null) { return AgentAction.doNothing; } else { AgentAction tmp = nextMove; nextMove = null; return tmp; } } else { //This code plays 5 "games" and then quits //Just does random things if(numGamesPlayed > 19) { return AgentAction.quit; } else { if(nextMoves.isEmpty()) { setStartingPosition(visibleMap); // findWumpus(visibleMap); // findWumpus(visibleMap); // WumpusState currentState = huntTheWumpus(visibleMap); // System.out.println(wumpusHunted); // if(wumpusHunted) { // currentState.setParent(null); // addToNextMoves(currentState); // } //this is the code to collect the gold // currentState.setParent(null); // currentState = findTheGold(currentState); // if(currentState.getGoldCollected()) { // currentState.setParent(null); // addToNextMoves(currentState); // } if(!goldCollected) { wellItsDarkNow(visibleMap); } if(goldCollected) { // currentState.setParent(null); addToNextMoves(visibleMap); // goldCollected = false; } } if(!nextMoves.isEmpty()) { System.out.println(nextMoves.peek()); setNextMove(nextMoves.remove()); // System.out.println(nextMove); // return nextMove; } return nextMove; // currentNumMoves++; // if(currentNumMoves < 20) { // return AgentAction.randomAction(); // } // else { // return AgentAction.declareVictory; // } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void doAction()\n {\n \n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n \n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n \n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n //Test the environment\n /*if (w.hasBreeze(cX, cY))\n {\n System.out.println(\"I am in a Breeze\");\n }\n if (w.hasStench(cX, cY))\n {\n System.out.println(\"I am in a Stench\");\n }\n if (w.hasPit(cX, cY))\n {\n System.out.println(\"I am in a Pit\");\n }\n if (w.getDirection() == World.DIR_RIGHT)\n {\n System.out.println(\"I am facing Right\");\n }\n if (w.getDirection() == World.DIR_LEFT)\n {\n System.out.println(\"I am facing Left\");\n }\n if (w.getDirection() == World.DIR_UP)\n {\n System.out.println(\"I am facing Up\");\n }\n if (w.getDirection() == World.DIR_DOWN)\n {\n System.out.println(\"I am facing Down\");\n }\n */\n \n //decide next move\n if(w.hasStench(cX, cY)&&w.hasArrow())//Wumpus can be shot if located\n {\n if((w.hasStench(cX, cY+2))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX+2, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX, cY-1))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX, cY+1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX, cY-2))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX-2, cY))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX, cY+1))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX, cY-1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n else if(cX==1&&cY==1) //First tile. Shoot North. If wumpus still alive, store its location as (2,1) to avoid it\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n if(w.hasStench(cX, cY))\n {\n wumpusLoc[0] = 2;\n wumpusLoc[1] = 1;\n }\n }\n else if(cX==1&&cY==4) //Condition for corner\n {\n if(w.isVisited(1, 3))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(2, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==1) //Condition for corner\n {\n if(w.isVisited(3, 1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 2))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==4) //Condition for corner\n {\n if(w.isVisited(3, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 3))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if((cX==1)&&(w.isVisited(cX+1, cY-1))) //Condition for edge\n {\n \n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cX==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==1)&&(w.isVisited(cX-1, cY+1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else //Can't locate wumpus, go back to safe location\n {\n turnTo((w.getDirection()+2)%4);\n w.doAction(World.A_MOVE);\n }\n }\n else // No stench. Explore \n {\n if(w.isValidPosition(cX, cY-1)&&!w.isVisited(cX, cY-1)&&isSafe(cX, cY-1)) \n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY)&&!w.isVisited(cX+1, cY)&&isSafe(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY)&&!w.isVisited(cX-1, cY)&&isSafe(cX-1,cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n if(w.isValidPosition(cX, cY+1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n }\n \n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void move()\n {\n move(WALKING_SPEED);\n }", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }", "public void move(){\n\t\t\n\t}", "@Override\n public final void move() {\n int x = getPosisi().getX();\n int y = getPosisi().getY();\n int dx = 0, dy = 0;\n\n if (getWaktu() % getDeltaTime() == 0) {\n do {\n do {\n Random randomGenerator = new Random();\n dx = randomGenerator.nextInt(N_RAND) - 1;\n dy = randomGenerator.nextInt(N_RAND) - 1;\n } while (dx == 0 && dy == 0);\n } while (x + dx < 0 || x + dx > getWorldSize() - 1\n || y + dy < 0 || y + dy > getWorldSize() - 1);\n }\n setPX(x + dx);\n setPY(y + dy);\n }", "public void run() {\n if(_dest!=null) {\n approachDest();\n return;\n }\n if(Rand.d100(_frequency)) {\n MSpace m = in.b.getEnvironment().getMSpace();\n if(!m.isOccupied()) {\n Logger.global.severe(in.b+\" has come unstuck\");\n return;\n }\n MSpace[] sur = m.surrounding();\n int i = Rand.om.nextInt(sur.length);\n for(int j=0;j<sur.length;j++) {\n if(sur[i]!=null&&sur[i].isWalkable()&&accept(sur[i])) {\n in.b.getEnvironment().face(sur[i]);\n MSpace sp = in.b.getEnvironment().getMSpace().move(in.b.getEnvironment().getFacing());\n if(sp!=null&&(in.b.isBlind()||!sp.isOccupied())) {\n _move.setBot(in.b);\n _move.perform();\n }\n break;\n }\n if(++i==sur.length) {\n i = 0;\n }\n }\n }\n else if(_dest==null&&Rand.d100(_travel)) {\n _dest = findNewSpace();\n //System.err.println(in.b+\" DEST: \"+_dest);\n }\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "public void move()\n {\n if (!alive) {\n return;\n }\n\n if (speedTimer > 0) {\n speedTimer --;\n } else if (speedTimer == 0 && speed != DEFAULT_SPEED) {\n speed = DEFAULT_SPEED;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n Location next = null;\n\n // For the speed, iterate x blocks between last and next\n\n if (direction == UPKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() - speed * getPixelSize()));\n } else if (direction == DOWNKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() + speed * getPixelSize()));\n } else if (direction == LEFTKEY)\n {\n next = getLocation((int)(last.getX() - speed * getPixelSize()), last.getY());\n } else if (direction == RIGHTKEY)\n {\n next = getLocation((int)(last.getX() + speed * getPixelSize()), last.getY());\n }\n\n ArrayList<Location> line = getLine(last, next);\n\n if (line.size() == 0) {\n gameOver();\n return;\n }\n\n for (Location loc : line) {\n if (checkCrash (loc)) {\n gameOver();\n return;\n } else {\n // Former bug: For some reason when a player eats a powerup a hole appears in the line where the powerup was.\n Location l2 = getLocation(loc.getX(), loc.getY());\n l2.setType(LocationType.PLAYER);\n l2.setColor(this.col);\n\n playerLocations.add(l2);\n getGridCache().add(l2);\n }\n }\n }", "public void 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}", "P applyMovement(M move);", "private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }", "public void singleMove(int move) {\n moveCO(move);\n moveCP(move);\n moveEO(move);\n moveEP(move);\n }", "void move(int steps);", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void move() {\n\r\n\t}", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }", "public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void move() {\n process(2);\n }", "void move();", "private void randomMove() {\n }", "private void moveMonsters() {\r\n\t\tfor (AreaOrMonster obj : areas) {\r\n\t\t\tif(obj.getLeftRight()) {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()+1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()+1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()-1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()-1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void handleMovement() {\n if (movements.isEmpty()) return;\n try {\n switch (movements.peek()) {\n case MOVE_UP:\n game.movePlayer(Direction.N);\n break;\n case MOVE_LEFT:\n game.movePlayer(Direction.W);\n break;\n case MOVE_DOWN:\n game.movePlayer(Direction.S);\n break;\n case MOVE_RIGHT:\n game.movePlayer(Direction.E);\n break;\n }\n } catch (Exception ignored) { }\n }", "public void move();", "public void move();", "public void move(int moveDirection) {\n //if same or opposite direction, check if movable\n if ((direction - moveDirection) % 6 == 0) {\n this.direction = moveDirection;\n if (moveable()) {\n if (direction == 12) {\n this.setLocation(new Point(this.getX(),\n this.getY() - speed));\n }\n //move right\n if (direction == 3) {\n this.setLocation(new Point(this.getX() + speed,\n this.getY()));\n\n }\n //move down\n if (direction == 6) {\n this.setLocation(new Point(this.getX(),\n this.getY() + speed));\n }\n //move left\n if (direction == 9) {\n this.setLocation(new Point(this.getX() - speed,\n this.getY()));\n }\n\n }\n } // if it is turning, check if can turn or not. If can turn then turn and move according to the direction before turn, otherwise, just leave the monster there\n else {\n Point snapToGridPoint = GameUtility.GameUtility.snapToGrid(\n this.getLocation());\n Point gridPoint = GameUtility.GameUtility.toGridCordinate(\n this.getLocation());\n Point nextPoint = new Point(gridPoint.x, gridPoint.y);\n //if the distance is acceptable\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 2.5) {\n\n if (moveDirection == 3) {\n int x = Math.max(0, gridPoint.x + 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 6) {\n int y = Math.max(0, gridPoint.y + 1);\n nextPoint = new Point(gridPoint.x, y);\n } else if (moveDirection == 9) {\n int x = Math.min(19, gridPoint.x - 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 12) {\n int y = Math.min(19, gridPoint.y - 1);\n nextPoint = new Point(gridPoint.x, y);\n }\n // if the turn is empty, then snap the monster to the grid location\n if (!(GameManager.getGameMap().getFromMap(nextPoint) instanceof Wall) && !(GameManager.getGameMap().getFromMap(\n nextPoint) instanceof Bomb)) {\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 10) {\n this.setLocation(snapToGridPoint);\n this.direction = moveDirection;\n } else {\n if (direction == 9 || direction == 3) {\n int directionOfMovement = (snapToGridPoint.x - getX());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX() + directionOfMovement * speed,\n this.getY()));\n } else if (direction == 12 || direction == 6) {\n int directionOfMovement = (snapToGridPoint.y - getY());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX(),\n this.getY() + directionOfMovement * speed));\n }\n }\n }\n }\n }\n }", "private void move()\r\n {\r\n int num = Game.random(4);\r\n String direction;\r\n if (num == 0)\r\n direction = \"north\";\r\n else if (num == 1)\r\n direction = \"east\";\r\n else if (num == 2)\r\n direction = \"south\";\r\n else //num == 3\r\n direction = \"west\";\r\n Room nextRoom = room.nextRoom(direction);\r\n if (nextRoom != null)\r\n {\r\n changeRoom(nextRoom);\r\n \r\n //Monster or Robot greets everyone was already in the room\r\n ArrayList<Person> peopleList = new ArrayList<Person>();\r\n \r\n peopleList = nextRoom.getPeople();\r\n peopleList.remove(name);\r\n \r\n String greetings =\"Hey \";\r\n for (int i=0; i<peopleList.size(); i++)\r\n \tgreetings += peopleList.get(i).getName() + \", \";\r\n\r\n if (!(peopleList.size()==0))\r\n \tsay(greetings);\r\n } \r\n \r\n }", "public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "boolean doMove();", "private Action doNextMove(Action move){\n\t\t// update east or north\n\t\tif (move == Action.East){\n\t\t\teast++;\n\t\t} else if (move == Action.West){\n\t\t\teast--;\n\t\t} else if (move == Action.North){\n\t\t\tnorth++;\n\t\t} else if (move == Action.South){\n\t\t\tnorth--;\n\t\t}\n\t\treturn move;\n\t}", "@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }", "@Override\r\n public void run() {\r\n move();\r\n }", "public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "public void go()\n {\n for( int i = 0; i<3; i++)m[i].setSpeed(720);\n step();\n for( int i = 0; i<3; i++)m[i].regulateSpeed(false);\n step();\n }", "public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}", "private void move(){\n \n currentAnimation = idleDown;\n \n if(playerKeyInput.allKeys[VK_W]){\n int ty = (int) (objectCoordinateY - speed + bounds.y) / 16;\n \n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY -= speed;\n currentAnimation = upWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_S]){\n int ty = (int) (objectCoordinateY + speed + bounds.y + bounds.height) / 16;\n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY += speed;\n currentAnimation = downWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_A]){\n int tx = (int) (objectCoordinateX - speed + bounds.x) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX -= speed;\n currentAnimation = sideWalkLeft;\n }\n } \n \n if(playerKeyInput.allKeys[VK_D]){\n int tx = (int) (objectCoordinateX + speed + bounds.x + bounds.width) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX += speed;\n currentAnimation = sideWalkRight;\n }\n } \n \n if(playerKeyInput.allKeys[VK_E]){\n currentAnimation = pickUp;\n } \n }", "public abstract void doPerMoveWork();", "private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "public void move() {\n\n }", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "@Override\n public void move() {\n switch (direction){\n case SOUTH:\n position.setY(position.getY() + currentSpeed);\n break;\n case NORTH:\n position.setY(position.getY() - currentSpeed);\n break;\n case WEST:\n position.setX(position.getX() - currentSpeed);\n break;\n case EAST:\n position.setX(position.getX() + currentSpeed);\n }\n }", "public void move ()\n\t{\n\t\t//Let's try this...\n\t\tchangeFallSpeed (turnInt);\n\t\t\n\t\t\n\t\tsetX_Pos (getX_Pos () + getHSpeed ());\t//hSpeed is added onto x_pos\n\t\t//The xDimensions are updated by having hSpeed added onto them.\n\t\txDimension1 += getHSpeed ();\n\t\txDimension2 += getHSpeed ();\n\t\txDimension3 += getHSpeed ();\n\t\t\n\t\t//The if statement below ensures that the PaperAirplane does not move\n\t\t//after reaching the 300 y point. The walls around the PaperAirplane,\n\t\t//however, start to move up, creating the illusion that the\n\t\t//PaperAirplane is still falling.\n\t\tif (getY_Pos () < 300)\n\t\t{\n\t\t\tsetY_Pos (getY_Pos () + getVSpeed ());//vSpeed is added onto y_pos\n\t\t\t//The yDimensions are updated by having vSpeed added onto them.\n\t\t\tyDimension1 += getVSpeed ();\n\t\t\tyDimension2 += getVSpeed ();\n\t\t\tyDimension3 += getVSpeed ();\n\t\t}\n\t}", "public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }", "public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }", "public void moving()\n {\n if(onPlatform()&&endPlatform()){\n direction();\n }\n if(onPlatform()&&!endPlatform()){\n changeDirection();\n direction();\n }\n collideMoveLocation(horzVelocity,1);\n //sharaz\n if(isTouching(PushObject.class)){\n changeDirection();\n direction();\n }\n \n \n }", "public void Move(){\n for(int i = 0; i < moveList.length; i++){\n playerString = \"\";\n switch(moveList[i]) {\n case 1: {\n //TODO: Visited points to others\n System.out.println(\"Moving up!\");\n //Logic for fitness score might need to be moved\n if(!(game.mazeArray[game.playerPosition.getPlayerY() -1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() - 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 10;\n }\n game.moveUp();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 2: {\n System.out.println(\"Moving left!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() -1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() -1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveLeft();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 3: {\n System.out.println(\"Moving right!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() +1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() +1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveRight();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 4: {\n System.out.println(\"Moving down!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY() +1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n freedomPoints += 1;\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveDown();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n default: {\n System.out.println(\"End of line\");\n break;\n //You shouldn't be here mate.\n }\n }\n }\n\n }", "@Override\n public void timePassed() {\n moveOneStep();\n }", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void explore() {\n\t\t\tif(getSpeed() < CAR_MAX_SPEED){ // Need speed to turn and progress toward the exit\n\t\t\t\tapplyForwardAcceleration(); // Tough luck if there's a wall in the way\n\t\t\t}\n\t\t\tif (isFollowingWall) {\n\t\t\t\t// if already been to this tile, stop following the wall\n\t\t\t\tif (travelled.contains(new Coordinate(getPosition()))) {\n\t\t\t\t\tisFollowingWall = false;\n\t\t\t\t} else {\n\t\t\t\t\tif(!checkFollowingWall(getOrientation(), map)) {\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If wall on left and wall straight ahead, turn right\n\t\t\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\t\t\tif (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tapplyReverseAcceleration();\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} else {\n\t\t\t\t// Start wall-following (with wall on left) as soon as we see a wall straight ahead\n\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\tif (!checkWallRight(getOrientation(), map) && !checkWallLeft(getOrientation(), map)) {\n\t\t\t\t\t\t// implementing some randomness so doesn't get stuck in loop\n\t\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\t\tint n = rand.nextInt(2);\n\t\t\t\t\t\tif (n==0) {\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapplyReverseAcceleration();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }", "public Command run() {\n Worm enemyWormSpecial = getFirstWormInRangeSpecial();\n if (enemyWormSpecial != null) {\n if (gameState.myPlayer.worms[1].id == gameState.currentWormId) {\n if (gameState.myPlayer.worms[1].bananaBombs.count > 0) {\n return new BananaBombCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n if (gameState.myPlayer.worms[2].snowballs.count > 0) {\n return new SnowballCommand(enemyWormSpecial.position.x, enemyWormSpecial.position.y);\n }\n }\n\n //PRIORITAS 2: NORMAL ATTACK (Shoot)\n Worm enemyWorm = getFirstWormInRange();\n if (enemyWorm != null) {\n Direction direction = resolveDirection(currentWorm.position, enemyWorm.position);\n return new ShootCommand(direction);\n }\n\n //PRIORITAS 3: MOVE (Karena sudah opsi serang tidak memungkinkan)\n\n //Ambil semua koordinat di cell Worm saat ini selain current cell\n List<Cell> surroundingBlocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n \n\n //Kalau Worm saat ini adalah Commander, masuk ke algoritma move khusus Commander\n if(gameState.currentWormId == 1){\n\n //Commander akan memprioritaskan untuk bergerak menuju Technician (Worm yang memiliki Snowball)\n Worm technicianWorm = gameState.myPlayer.worms[2];\n\n\n //Mencari cell yang akan menghasilkan jarak terpendek menuju Worm tujuan\n Cell shortestCellToTechnician = getShortestPath(surroundingBlocks, technicianWorm.position.x, technicianWorm.position.y);\n \n //Commander akan bergerak mendekati Technician sampai dengan jarak dia dan Technician paling dekat adalah 3 satuan\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, technicianWorm.position.x, technicianWorm.position.y) > 3) {\n if(shortestCellToTechnician.type == CellType.AIR) {\n return new MoveCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }else if (shortestCellToTechnician.type == CellType.DIRT) {\n return new DigCommand(shortestCellToTechnician.x, shortestCellToTechnician.y);\n }\n }\n\n //Apabila Commander dan Technician sudah berdekatan, maka Commander akan bergerak mencari musuh terdekat untuk melancarkan serangan\n int min = 10000000;\n Worm wormMusuhTerdekat = opponent.worms[0];\n for (Worm calonMusuh : opponent.worms) {\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y) < min) {\n min = euclideanDistance(currentWorm.position.x, currentWorm.position.y, calonMusuh.position.x, calonMusuh.position.y);\n wormMusuhTerdekat = calonMusuh;\n }\n }\n\n //Mencari cell yang paling dekat ke musuh yang sudah ditemukan\n Cell shortestCellToEnemy = getShortestPath(surroundingBlocks, wormMusuhTerdekat.position.x, wormMusuhTerdekat.position.y);\n if(shortestCellToEnemy.type == CellType.AIR) {\n return new MoveCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }else if (shortestCellToEnemy.type == CellType.DIRT) {\n return new DigCommand(shortestCellToEnemy.x, shortestCellToEnemy.y);\n }\n }\n\n //Command move untuk worm selain Commando. Worm selain commando akan mendekat menuju posisi worm Commando\n Worm commandoWorm = gameState.myPlayer.worms[0];\n \n //Selama Commando masih hidup, maka Worm lainnya akan mendekat menuju Commando\n if (commandoWorm.health > 0) {\n //Cell cellCommandoWorm = surroundingBlocks.get(0);\n\n //Mencari cell yang membuat jarak menuju Commando paling dekat\n Cell shortestCellToCommander = getShortestPath(surroundingBlocks, commandoWorm.position.x, commandoWorm.position.y);\n\n if(shortestCellToCommander.type == CellType.AIR) {\n return new MoveCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }else if (shortestCellToCommander.type == CellType.DIRT) {\n return new DigCommand(shortestCellToCommander.x, shortestCellToCommander.y);\n }\n }\n\n // PRIORITAS 4: Bergerak secara acak untuk memancing musuh mendekat\n int cellIdx = random.nextInt(surroundingBlocks.size());\n Cell block = surroundingBlocks.get(cellIdx);\n if (block.type == CellType.AIR) {\n return new MoveCommand(block.x, block.y);\n } else if (block.type == CellType.DIRT) {\n return new DigCommand(block.x, block.y);\n }\n // Kalau udah enggak bisa ngapa-ngapain.\n return new DoNothingCommand();\n \n }", "private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}", "private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }", "public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }", "public void moveInDirection(Direction dir, Unit unit){\n\t\t if(dir!=null){\n\t\t\t if(debug){\n\t\t\t\t System.out.println(\"about to move unit \"+unitID+\" \"+dir.name());\n\t\t\t\t System.out.println(\"currentLocation \"+unit.location().mapLocation());\n\t\t\t }\n if(dir.equals(Direction.Southwest)){\n \tif (gc.canMove(unitID, Direction.Southwest)) {\n gc.moveRobot(unitID, Direction.Southwest);\n System.out.println(\"moving south west\");\n \t}\n }else if(dir.equals(Direction.Southeast)){\n \tif (gc.canMove(unitID, Direction.Southeast)) {\n gc.moveRobot(unitID, Direction.Southeast);\n System.out.println(\"moving south east\");\n \t}\n }else if(dir.equals(Direction.South)){\n \tif (gc.canMove(unitID, Direction.South)) {\n gc.moveRobot(unitID, Direction.South);\n System.out.println(\"moving south\");\n \t}\n }\n else if(dir.equals(Direction.East)){\n \tif (gc.canMove(unitID, Direction.East)) {\n gc.moveRobot(unitID, Direction.East);\n System.out.println(\"moving east\");\n \t}\n }\n else if(dir.equals(Direction.West)){\n \tif (gc.canMove(unitID, Direction.West)) {\n gc.moveRobot(unitID, Direction.West);\n System.out.println(\"moving west\");\n \t}\n }else if(dir.equals(Direction.Northeast)){\n \tif (gc.canMove(unitID, Direction.Northeast)) {\n gc.moveRobot(unitID, Direction.Northeast);\n System.out.println(\"moving north east\");\n \t}\n }else if(dir.equals(Direction.Northwest)){\n \tif (gc.canMove(unitID, Direction.Northwest)) {\n gc.moveRobot(unitID, Direction.Northwest);\n System.out.println(\"moving north west\");\n \t}\n }else if(dir.equals(Direction.North)){\n \tif (gc.canMove(unitID, Direction.North)) {\n gc.moveRobot(unitID, Direction.North);\n System.out.println(\"moving north\");\n \t}\n }\n }\n\t\t\n\t}", "public void act() \n {\n movement();\n }", "void move() throws IOException, InterruptedException{\r\n \r\n // if current position and velocity are greater than 0 and less than the right edge of the screen\r\n if (x + xa > 0 && x + xa < 1280-w){\r\n // increase the character position by velocity\r\n x = x + xa;\r\n }\r\n \r\n // if current height and velocity are greater than zero and less than the floor of the game\r\n if (y + ya > 0 && y + ya < 500){\r\n // if jumping up\r\n if (y > 300){\r\n y = y + ya;\r\n } else{ // if falling down, increase velocity to 3\r\n ya = 3;\r\n y = y + ya;\r\n }\r\n }\r\n \r\n // if a collision is detected increase life counter\r\n if (game.collision()){\r\n // increase life counter\r\n count++;\r\n // call game over to load next image or to close game\r\n game.gameOver(count);\r\n } \r\n }", "protected final void run(int direction) {\n\t\tint temp_x = x_coord;\n\t\tint temp_y = y_coord;\n\t//Update location (*2 because we move twice in same direction)\t\n\t\tif (!hasMoved) {\n\t\t\ttemp_x += (x_directions[direction] * 2);\n\t\t\ttemp_x += Params.world_width;\n\t\t\ttemp_x %= Params.world_width;\n\t\t\ttemp_y += (y_directions[direction] * 2);\n\t\t\ttemp_y += Params.world_height;\n\t\t\ttemp_y %= Params.world_height;\n\t\t}\n\t//Specific to running during fight\n\t\tif (fightMode) {\n\t\t\tboolean critterInLocation = false;\n\t\t\tfor (Critter c: population) {\n\t\t\t\tif ((c.x_coord == temp_x) && (c.y_coord == temp_y)) {\n\t\t\t\t\tcritterInLocation = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!critterInLocation) {\n\t\t\t\tx_coord = temp_x;\n\t\t\t\ty_coord = temp_y;\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\t\t//Specific to walking in time step\n\t\t\tx_coord = temp_x;\n\t\t\ty_coord = temp_y;\n\t\t}\n\t//Update energy\n\t\tenergy -= Params.run_energy_cost;\n\t//Update hasMoved\n\t\thasMoved = true;\n\t}", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "private void moveGame() {\r\n\t\tmoveFireball1();\r\n\t\tmoveFireball2();\r\n\t\tmoveMehran();\r\n\t\tmoveLaser();\r\n\t\tmoveBullet();\r\n\t\tcheckPlayerCollisions();\r\n\t\tcheckForBulletCollisions();\r\n\t\tpause(DELAY);\r\n\t\tcount++;\r\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "@Override\n\tpublic void move() {\n\t\t\n\t}", "void move(Tile t);", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "public void doNextMove(Player player) {\r\n int newX = xCoord;\r\n int newY = yCoord;\r\n switch (currentDirection) {\r\n case 1:\r\n newX = xCoord + 1;\r\n break;\r\n case 2:\r\n newY = yCoord + 1;\r\n break;\r\n case -1:\r\n newX = xCoord - 1;\r\n break;\r\n case -2:\r\n newY = yCoord - 1;\r\n break;\r\n }\r\n if (checkValidMove(newX, newY)) {\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n // System.out.println(newX + \" \" + newY);\r\n moveTo(newX, newY);\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n\r\n } else {\r\n turnAround();\r\n doNextMove(player);\r\n }\r\n }", "@Override\n public void move() {\n System.out.println(\"I roam here and there\");\n }", "public void move(FightCell cell);", "private void easyMove(Board board) {\n\t\t\r\n\t}", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public void move(int distance);", "@Override\n\t\tpublic void run() {\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\tswitch(this.direct)\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t//说明坦克正在向上移动,坦克在一个方向上走30\n\t\t\t\t\t//再换方向\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y-=speed;\n\t\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x<360&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t x+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t break;\n\t\t\t\tcase 2:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(y<235&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t y+=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x>0&&!this.isTouchOtherEnemy())\n\t\t\t\t\t\t{\n\t\t\t\t\t x-=speed;\n\t\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//让敌人的额坦克可以连续打子弹\n\t\t\t\tthis.times++;\n\t\t\t\tif(times%2==0)\n\t\t\t\t{\n\t\t\t\t\tif(isLive)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hcShoot.size()<5)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t Shoot s=null;\n\t\t\t\t\t\t //没有子弹,添加\n\t\t\t\t\t\t\t\t\t\tswitch(direct)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y,0);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+30,y+10,1);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x+10,y+30,2);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t\ts=new Shoot(x,y+10,3);\n\t\t\t\t\t\t\t\t\t\t\thcShoot.add(s);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//启动子弹线程\n\t\t\t\t\t\t\t\t\t\tThread t=new Thread(s);\n\t\t\t\t\t\t\t\t\t\tt.start();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t//让坦克随机产生一个新的方向\n\t\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\t//判断敌人的坦克是否死亡\n\t\t\t\tif(this.isLive==false)\n\t\t\t\t{ \n\t\t\t\t\t//敌人的坦克死亡后退出线程\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t}", "public abstract void move(int direction, double speed);" ]
[ "0.75048465", "0.74915534", "0.7331837", "0.7314553", "0.7094466", "0.70800775", "0.7049123", "0.7017267", "0.7009483", "0.6987414", "0.6949657", "0.69361573", "0.6912714", "0.6905602", "0.6891326", "0.68871003", "0.68775856", "0.68752843", "0.6826517", "0.68227184", "0.68219364", "0.6818539", "0.68115526", "0.67980754", "0.6782589", "0.67818177", "0.6778551", "0.67673254", "0.67647797", "0.6747759", "0.6738567", "0.67122227", "0.6711553", "0.66951054", "0.6687712", "0.66876", "0.66811323", "0.66745365", "0.66686994", "0.66670376", "0.66670376", "0.66645944", "0.66639024", "0.66559577", "0.66506946", "0.6643696", "0.66390526", "0.66382754", "0.66335475", "0.66326416", "0.66177046", "0.6612435", "0.66116506", "0.66104925", "0.65855503", "0.6578062", "0.6572311", "0.6569988", "0.65608656", "0.6559865", "0.65588945", "0.65572476", "0.6555839", "0.65475357", "0.6536431", "0.65328985", "0.6532196", "0.65305", "0.6528805", "0.6528701", "0.6528242", "0.65253437", "0.6521064", "0.6518701", "0.6505893", "0.64970714", "0.64877963", "0.64872867", "0.6474487", "0.64708835", "0.64695245", "0.64572084", "0.6453398", "0.64501125", "0.64450586", "0.6442337", "0.6440178", "0.6435968", "0.6428147", "0.64274985", "0.6419043", "0.6409993", "0.6409091", "0.63982743", "0.6398134", "0.63925", "0.63855934", "0.63799876", "0.63795006", "0.63655126", "0.6359459" ]
0.0
-1
Add the ChatesFragment to the layout
private void initFragment(Fragment fragment) { FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction transaction = fragmentManager.beginTransaction(); transaction.add(R.id.contentFrame, fragment); transaction.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_donor_dash, container, false);\r\n\r\n\r\n\r\n return v;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_add_stamp, container, false);\n ButterKnife.bind(this, rootView);\n constraintLayout = rootView.findViewById(R.id.layout_header);\n init();\n return rootView;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_content, container, false);\n ButterKnife.bind(this, view);\n //面板分类\n getFragmentManager().beginTransaction().replace(R.id.categorylayout, new CategoryFragment()).commit();\n getData2();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feats, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView layout = inflater.inflate(R.layout.fragment_assistant, container, false);\r\n\t\tlayout.findViewById(R.id.kaniu).setOnClickListener(this);\r\n\t\tlayout.findViewById(R.id.img_add).setOnClickListener(this);\r\n\t\tinitListView(layout);\r\n\t\treturn layout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_forecast, container, false);\n// view.setBackgroundColor(0xFFE0E0FF);\n\n /*\n //practical work 4 start here\n LinearLayout fragment_container = view.findViewById(R.id.fragment_forecast);\n fragment_container.setOrientation(LinearLayout.VERTICAL);\n // add the button in fragment\n ImageView weather = new ImageView(getContext());\n weather.setImageResource(R.drawable.sunny);\n TextView day = new TextView(getContext());\n day.setText(\"Thursday\");\n day.setTextSize(34);\n day.setBackgroundColor(0xFF1ed7e8);\n day.setPadding(0, 10, 0, 10);\n fragment_container.addView(weather);\n fragment_container.addView(day);\n */\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wo_de, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_new_incident, container, false);\n\n initView(view);\n incidentData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sesion3, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_news, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_analytics, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_add_simple_dish, container, false);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(R.string.actionBar_addDish);\n data=sData.getdata();\n\n newDish=sData.getdata().getNewDish();\n name= (EditText)v.findViewById(R.id.nd_et_1);\n vegan=(CheckBox)v.findViewById(R.id.nd_ck_1);\n vegetarian=(CheckBox)v.findViewById(R.id.nd_ck_2);\n hot=(CheckBox)v.findViewById(R.id.nd_ck_3);\n glutenFree=(CheckBox)v.findViewById(R.id.nd_ck_4);\n\n TextView add_tags= (TextView) v.findViewById(R.id.editTags);\n add_tags.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Simple_menu_add_tags tags_frag=new Simple_menu_add_tags();\n getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.fragment_holder,tags_frag).commit();\n\n }\n });\n //showTags(v);\n Button add= (Button)v.findViewById(R.id.ad_add);\n add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n newDish.setName(name.getText().toString());\n newDish.setVegan(vegan.isChecked());\n newDish.setGlutenFree(glutenFree.isChecked());\n newDish.setVegetarian(vegetarian.isChecked());\n newDish.setSpicy(hot.isChecked());\n\n FirebaseDatabase db=FirebaseDatabase.getInstance();\n DatabaseReference ref=db.getReference(\"course\");\n ref.child(newDish.getCid()).setValue(newDish.toMap()).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n getFragmentManager().popBackStack();\n }\n });\n\n\n\n\n\n }\n });\n Spinner cuisine = (Spinner) v.findViewById(R.id.nd_type);\n cuisine.setAdapter(new ArrayAdapter<String>(getContext(),android.R.layout.simple_spinner_dropdown_item,getResources().getStringArray(R.array.cuisine)));\n Spinner type = (Spinner) v.findViewById(R.id.nd_type_2);\n type.setAdapter(new ArrayAdapter<String>(getContext(),android.R.layout.simple_spinner_dropdown_item,getResources().getStringArray(R.array.type)));\n view=v;\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myView = inflater.inflate(R.layout.fragment_my_region, container, false);\n listView = (ListView) myView.findViewById(R.id.myRegionList);\n addRegion = (FloatingActionButton) myView.findViewById(R.id.addRegion);\n addRegion.setOnClickListener(this);\n fillMyRegion();\n return myView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_visits, container, false);\n\n\n //fab\n FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addVisit();\n }\n });\n\n is_empty(view);\n return view;\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n getChildFragmentManager()\n .beginTransaction()\n .add(R.id.container_wifi_presenter, WifiMainFragment.newInstance(), Constant.TAG_WIFI_FRAGMENT)\n .commit();\n\n // declare var to register to broadcast receiver\n mWifiReciever = new ScanWifiBroadcastReceiver(this);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_add_meals, container, false);\n return view;\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_causale, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_admin_stations, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_chi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView mainView = inflater.inflate(R.layout.dayplanfragment_layout, container, false);\r\n\t\tlistView = (ListView)mainView.findViewById(android.R.id.list);\r\n\t\t\r\n\t\tmbtn_add = (Button)mainView.findViewById(R.id.btn_add_plan);\t\t\r\n\t\tmbtn_add.setOnClickListener(btn_add_l);\t\r\n\t\t\r\n\t\tdateTextView = (TextView)mainView.findViewById(R.id.date_textview);\r\n\t\tdateTextView.setOnClickListener(new OnClickListener() {\r\n\t\t\t//选择时间\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnew CreateTimeDialog( getActivity() , PlanFragment.this ).getDate();\r\n\t\t\t}\r\n\t\t});\r\n\t\tdateTextView.setText(dateString);\r\n\t\tnoteGlobal.getPlan(dateTextView.getText().toString());\r\n\t\t\r\n\t\taddPlan_View(); //加载计划\r\n\t\t\r\n\t\t//设置日期(显示今天的日期)\r\n\t\t\r\n\t\t\r\n\t\t\r\n \treturn mainView;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_today_weather, container, false);\n setUpView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_cases, container, false);\n Init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_near_peoples, container, false);\n getActivity().setTitle(\"Share Card\");\n initUI();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_today, container, false);\n initComponent(view);\n return view;\n\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n\n\n return inflater.inflate(R.layout.fragment_courses, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_firmy, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_site_progress_add, container, false);\n setHasOptionsMenu(true);\n ButterKnife.bind(this, view);\n\n initializeUI();\n bindData();\n return view;\n }", "private void addFragments() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\tif (onLargeScreen) {\n\t\t\tlessonListFragment = new LessonListFragment();\n\t\t\tft.add(R.id.fragmentContainer, lessonListFragment, MASTER_CONTAINER)\n\t\t\t\t\t.addToBackStack(null);\n\t\t} else { // else small screen\n\t\t\tft.add(R.id.fragmentContainer, getLessonFragment(), MASTER_CONTAINER)\n\t\t\t\t\t.addToBackStack(null);\n\t\t}\n\t\tft.commit();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_searce, container, false);\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_statics, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_group, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_comment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View retView = inflater.inflate(R.layout.fragment_food_list, container, false);\n\n\n //FragmentManager fragmentManager = this.getFragmentManager();\n //FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //FoodFragment foodFragment = (FoodFragment)fragmentManager.findFragmentById(R.id.foodFragment);\n // fragmentTransaction.hide(foodFragment);\n //fragmentTransaction.commit();\n\n ImageButton newFood = (ImageButton) retView.findViewById(R.id.fragmentFoodListAddFoodButton);\n newFood.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addFood(view);\n }\n });\n\n buildList(retView);\n return retView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_shouye, container, false);\n banner = view.findViewById(R.id.fly_banner);\n recy = view.findViewById(R.id.recy_view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NotNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_chats, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_buy, container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_admin_dash_board, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.frag_new_entries, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_conferencistas, container, false);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_destination, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_attendence, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kasus_harian, container, false);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_me, null);\n\t\t// 设置\n\t\tLinearLayout line_setting = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_setting);\n\t\t// 头像\n\t\timg_circle = (CircleImageView) view.findViewById(R.id.img_circle);\n\t\t// vip标志\n\t\tiv_vip = (ImageView) view.findViewById(R.id.iv_vip);\n\t\t// 昵称\n\t\tline_nicheng = (LinearLayout) view.findViewById(R.id.line_nicheng);\n\t\ttv_nicheng = (TextView) view.findViewById(R.id.tv_nicheng);\n\t\t// VIP时间\n\t\trel_viptime = (RelativeLayout) view.findViewById(R.id.rel_viptime);\n\t\ttv_viptime = (TextView) view.findViewById(R.id.tv_viptime);\n\t\tline_viptime = (LinearLayout) view.findViewById(R.id.line_viptime);\n\t\t// 续费\n\t\ttv_xufei = (TextView) view.findViewById(R.id.tv_xufei);\n\t\t// 已关联手机\n\t\tline_bangdingphone = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_bangdingphone);\n\t\ttv_bangdingphone = (TextView) view.findViewById(R.id.tv_bangdingphone);\n\t\t//升级成为vip\n\t\ttv_shengji = (TextView) view.findViewById(R.id.tv_shengji);\n\t\t// 默认收货地址\n\t\tline_morendizhi = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_morendizhi);\n\t\ttv_morendizhi = (TextView) view.findViewById(R.id.tv_morendizhi);\n\t\t// 餐餐券\n\t\tLinearLayout line_ccq = (LinearLayout) view.findViewById(R.id.line_ccq);\n\t\ttv_ccj = (TextView) view.findViewById(R.id.tv_ccj);\n\t\t// 收藏店铺\n\t\tLinearLayout line_scstore = (LinearLayout) view.findViewById(R.id.line_scstore);\n\t\ttv_scdp = (TextView) view.findViewById(R.id.tv_scdp);\n\t\t// 余额\n\t\tLinearLayout line_yue = (LinearLayout) view.findViewById(R.id.line_yue);\n\t\ttv_yue = (TextView) view.findViewById(R.id.tv_yue);\n\t\t// 云币\n\t\tLinearLayout line_yunbi = (LinearLayout) view.findViewById(R.id.line_yunbi);\n\t\ttv_yunbi = (TextView) view.findViewById(R.id.tv_yunbi);\n\t\t// 个人资料\n\t\tLinearLayout line_grzl = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_grzl);\n\t\t// 收货地址管理\n\t\tLinearLayout line_shdzgl = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_shdzgl);\n\t\t// 我的订单\n\t\tLinearLayout line_wddd = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_wddd);\n\t\t// 云币管理\n\t\tLinearLayout line_ybgl = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_ybgl);\n\t\t// 资金管理\n\t\tLinearLayout line_zjgl = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_zjgl);\n\t\t// 最新消息\n\t\tLinearLayout line_zxxx = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_zxxx);\n\t\tiv_zxxx = (ImageView) view.findViewById(R.id.iv_zxxx);\n\t\t\n\t\t// 自己入驻\n\t\tLinearLayout line_zjrz = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_zjrz);\n\t\t// 推荐朋友入驻\n\t\tLinearLayout line_tjpyrz = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_tjpyrz);\n\t\t// 和小伙伴分享\n\t\tLinearLayout line_hxhbfx = (LinearLayout) view\n\t\t\t\t.findViewById(R.id.line_hxhbfx);\n\n\t\tmyDB = new DBHelper(getActivity());\n\t\tif (isLogin()) {\n\t\t\tshowLoading();\n\t\t\tmyInfoHttpPost(getActivity());\n\t\t} else {\n\t\t\ttv_nicheng.setText(\"未登录\");\n\t\t}\n\t\timg_circle.setOnClickListener(this);\n\t\tline_nicheng.setOnClickListener(this);\n\t\tline_bangdingphone.setOnClickListener(this);\n\t\tline_viptime.setOnClickListener(this);\n\t\tline_setting.setOnClickListener(this);\n\t\ttv_xufei.setOnClickListener(this);\n\t\ttv_shengji.setOnClickListener(this);\n\t\tline_morendizhi.setOnClickListener(this);\n\t\tline_grzl.setOnClickListener(this);\n\t\tline_shdzgl.setOnClickListener(this);\n\t\tline_wddd.setOnClickListener(this);\n\t\tline_ybgl.setOnClickListener(this);\n\t\tline_zjgl.setOnClickListener(this);\n\t\tline_zxxx.setOnClickListener(this);\n\t\tline_zjrz.setOnClickListener(this);\n\t\tline_tjpyrz.setOnClickListener(this);\n\t\tline_hxhbfx.setOnClickListener(this);\n\t\tline_ccq.setOnClickListener(this);\n\t\tline_scstore.setOnClickListener(this);\n\t\tline_yue.setOnClickListener(this);\n\t\tline_yunbi.setOnClickListener(this);\n\t\treturn view;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_nearesthospitals, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_deviation, container, false);\n Constant.LAST_ACTIVITY = \"AttendanceDeviationActivity\";\n\n getData();\n findView(view);\n apicallsforAttendanceRegister();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_random_hf, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_facilities_home, container, false);\n BottomNavigationView navegacion = (BottomNavigationView) rootView.findViewById(R.id.navbartransporte);\n navegacion.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);\n CafeteriaFragment cafeteriaFragment = new CafeteriaFragment();\n FragmentManager fragmentManagerlatestNewsFragment = getChildFragmentManager();\n fragmentManagerlatestNewsFragment.beginTransaction().replace(R.id.espacioLineas, cafeteriaFragment).commit();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_add_account, container, false);\n initView(inflate);\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return secondfragmentLayout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_lecturers, container, false);\n Bundle bundle = getArguments();\n idST = bundle.getInt(\"ID_ST\");\n addControls(v);\n addEvents();\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_registeration, container, false);\n }", "private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n CL = (ConstraintLayout) inflater.inflate(R.layout.fragment_my_animals, container, false);\n initFirebase();\n initUI();\n\n addAnimalsBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getActivity(), AddAnimalToMyselfActivity.class));\n }\n });\n\n return CL;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_disease, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_conta, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my_houses, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.customer_book_fragment, container, false);\n inti(view);\n //clicks\n clicks();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_zakat, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_visitors, container, false);\n\n initViews(view);\n initListeners();\n getCurrentDateAndTime();\n setSpinner();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_expense, container, false);\n initializeComponents(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_new_diary, container, false);\n\n tradeData = view.findViewById(R.id.tradeData);\n clear();\n ioacc.add(\"對方帳戶  \");\n trade.add(\"交易方向  \");\n amount.add(\"金額  \");\n remain.add(\"餘額\");\n ConnectMySql connectMySql = new ConnectMySql();\n connectMySql.execute(\"\");\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater\n .inflate(R.layout.wether_fragment_main, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(com.smc.jobs4smcyouth.R.layout.fragment_scholarship, container, false);\n scholarshipRv = (RecyclerView)view.findViewById(com.smc.jobs4smcyouth.R.id.scholarship_rv);\n clickableContactUs(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_new_design, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_explore, container, false);\n PlantasInit(getContext());\n rv = layout.findViewById(R.id.homerv);\n rv.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayout.VERTICAL,false));\n return layout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_duel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_contacts, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_new_entry, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_comment_fra, container, false);\n findview();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_today_arrive, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_add_plant_from_database, container, false);\n mContext = getActivity();\n mongoDbSetup = MongoDbSetup.getInstance(mContext);\n findPlantsList();\n findWidgets(v);\n\n return v;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_travel_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_upload_new, container, false);\n findViewByIds(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getActivity().setTitle(\"اضافة اكلة\");\n return inflater.inflate(R.layout.fragment_add_meal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_advice1, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_dialog_add_hole, container, false);\n butOk = root.findViewById(R.id.butOk);\n butCancelar = root.findViewById(R.id.butCancelar);\n latLng = root.findViewById(R.id.lntLng);\n address = root.findViewById(R.id.ads);\n latLng.setText(latlng);\n address.setText(ad);\n\n butOk.setOnClickListener(this);\n butCancelar.setOnClickListener(this);\n\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_doctor_all_appointments, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_eh, null);\n resources = getResources();\n InitWidth(view);\n InitTextView(view);\n InitViewPager(view);\n TranslateAnimation animation = new TranslateAnimation(position_one, offset, 0, 0);\n\n animation.setFillAfter(true);\n animation.setDuration(300);\n ivBottomLine.startAnimation(animation);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_coat_of_arms, container, false);\n }" ]
[ "0.6358225", "0.62895215", "0.61767966", "0.61719227", "0.61459374", "0.6104038", "0.608988", "0.60758865", "0.6061545", "0.60388416", "0.602701", "0.5989416", "0.5965938", "0.59514946", "0.5948713", "0.5947826", "0.5945335", "0.59440345", "0.5942944", "0.5921184", "0.591734", "0.58995616", "0.58958894", "0.5891251", "0.58911633", "0.58808535", "0.5880684", "0.5879761", "0.587342", "0.5858561", "0.58577734", "0.58569", "0.5853695", "0.5843056", "0.5836545", "0.58305603", "0.5826453", "0.5826433", "0.58224916", "0.58218825", "0.58194894", "0.5817981", "0.5813126", "0.5809105", "0.58033955", "0.58022296", "0.5799917", "0.57981217", "0.57981205", "0.57945883", "0.5792487", "0.57909244", "0.5790377", "0.5789856", "0.5785986", "0.5782406", "0.57724774", "0.577238", "0.5771684", "0.57711136", "0.57697755", "0.5768231", "0.57603514", "0.57597226", "0.57575154", "0.5755231", "0.57549256", "0.5753448", "0.575051", "0.57498044", "0.574979", "0.5748923", "0.57488114", "0.5747458", "0.5746533", "0.57454807", "0.5743585", "0.5742813", "0.5741423", "0.57408804", "0.5739605", "0.57376647", "0.57367486", "0.5736505", "0.5736036", "0.57344556", "0.57320756", "0.5730003", "0.572971", "0.5728553", "0.5725974", "0.5725328", "0.57241", "0.5722599", "0.5719813", "0.5719426", "0.571929", "0.5717452", "0.5716759", "0.571549", "0.5713409" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // TODO sp.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); sp.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); sp.setFitToHeight(true); sp.setHmax(3); sp.setHvalue(0); sp.setDisable(false); RefreshP(); RefreshC(); // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
/ protected int startBit, mask; protected double multiplier, offset; protected String name;
public ULongParser(int startBit, int size, double multiplier, double offset, String name) { super(startBit, size, multiplier, offset, name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getField1281();", "private void mul() {\n\n\t}", "Double getMultiplier();", "Sum getMultiplier();", "public int getMultiplier() {\n return multiplier;\n }", "java.lang.String getField1128();", "private void SetZN16 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = ( Work >>> 8 );\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public double getMultiplier() {\r\n return multiplier;\r\n }", "java.lang.String getField1283();", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "public int\n setBitRate(int bitRate);", "public void setSpeed(double multiplier);", "public gb_Vector3 getModOffset(){\n\t\treturn modOffset;\n\t}", "void setOffset(double offset);", "protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "public void multiply() {\n\t\t\n\t}", "public void method_254(int var1, int var2, int var3, int var4, int var5) {\n boolean var52 = field_759;\n int var6 = this.field_723;\n int var7 = this.field_724;\n int var8;\n if(this.field_752 == null) {\n label303: {\n this.field_752 = new int[512];\n var8 = 0;\n if(var52) {\n int var53 = Utility.field_1009;\n ++var53;\n Utility.field_1009 = var53;\n } else if(var8 >= 256) {\n break label303;\n }\n\n do {\n this.field_752[var8] = (int)(Math.sin((double)var8 * 0.02454369D) * 32768.0D);\n this.field_752[var8 + 256] = (int)(Math.cos((double)var8 * 0.02454369D) * 32768.0D);\n ++var8;\n } while(var8 < 256);\n }\n }\n\n var8 = -this.spriteWidthFull[var3] / 2;\n int var9 = -this.field_741[var3] / 2;\n if(this.field_742[var3]) {\n var8 += this.field_738[var3];\n var9 += this.field_739[var3];\n }\n\n int var10;\n int var11;\n int var18;\n int var19;\n int var20;\n int var21;\n int var22;\n int var23;\n int var24;\n int var25;\n int var26;\n int var27;\n label292: {\n var10 = var8 + this.field_736[var3];\n var11 = var9 + this.field_737[var3];\n var4 &= 255;\n int var16 = this.field_752[var4] * var5;\n int var17 = this.field_752[var4 + 256] * var5;\n var18 = var1 + (var9 * var16 + var8 * var17 >> 22);\n var19 = var2 + (var9 * var17 - var8 * var16 >> 22);\n var20 = var1 + (var9 * var16 + var10 * var17 >> 22);\n var21 = var2 + (var9 * var17 - var10 * var16 >> 22);\n var22 = var1 + (var11 * var16 + var10 * var17 >> 22);\n var23 = var2 + (var11 * var17 - var10 * var16 >> 22);\n var24 = var1 + (var11 * var16 + var8 * var17 >> 22);\n var25 = var2 + (var11 * var17 - var8 * var16 >> 22);\n var26 = var19;\n var27 = var19;\n if(var21 < var19) {\n var26 = var21;\n if(!var52) {\n break label292;\n }\n }\n\n if(var21 > var19) {\n var27 = var21;\n }\n }\n\n label287: {\n if(var23 < var26) {\n var26 = var23;\n if(!var52) {\n break label287;\n }\n }\n\n if(var23 > var27) {\n var27 = var23;\n }\n }\n\n label282: {\n if(var25 < var26) {\n var26 = var25;\n if(!var52) {\n break label282;\n }\n }\n\n if(var25 > var27) {\n var27 = var25;\n }\n }\n\n if(var26 < this.field_743) {\n var26 = this.field_743;\n }\n\n if(var27 > this.field_744) {\n var27 = this.field_744;\n }\n\n if(this.field_753 == null || this.field_753.length != var7 + 1) {\n this.field_753 = new int[var7 + 1];\n this.field_754 = new int[var7 + 1];\n this.field_755 = new int[var7 + 1];\n this.field_756 = new int[var7 + 1];\n this.field_757 = new int[var7 + 1];\n this.field_758 = new int[var7 + 1];\n }\n\n int var28 = var26;\n if(var52) {\n this.field_753[var26] = 99999999;\n this.field_754[var26] = -99999999;\n var28 = var26 + 1;\n }\n\n while(var28 <= var27) {\n this.field_753[var28] = 99999999;\n this.field_754[var28] = -99999999;\n ++var28;\n }\n\n int var32 = 0;\n int var34 = 0;\n int var36 = 0;\n int var37 = this.field_736[var3];\n int var38 = this.field_737[var3];\n byte var54 = 0;\n byte var55 = 0;\n int var12 = var37 - 1;\n byte var13 = 0;\n var10 = var37 - 1;\n var11 = var38 - 1;\n byte var14 = 0;\n int var15 = var38 - 1;\n if(var25 != var19) {\n var32 = (var24 - var18 << 8) / (var25 - var19);\n var36 = (var15 - var55 << 8) / (var25 - var19);\n }\n\n int var29;\n int var30;\n int var31;\n int var35;\n label259: {\n if(var19 > var25) {\n var31 = var24 << 8;\n var35 = var15 << 8;\n var29 = var25;\n var30 = var19;\n if(!var52) {\n break label259;\n }\n }\n\n var31 = var18 << 8;\n var35 = var55 << 8;\n var29 = var19;\n var30 = var25;\n }\n\n if(var29 < 0) {\n var31 -= var32 * var29;\n var35 -= var36 * var29;\n var29 = 0;\n }\n\n if(var30 > var7 - 1) {\n var30 = var7 - 1;\n }\n\n int var39 = var29;\n if(var52) {\n this.field_753[var29] = this.field_754[var29] = var31;\n var31 += var32;\n this.field_755[var29] = this.field_756[var29] = 0;\n this.field_757[var29] = this.field_758[var29] = var35;\n var35 += var36;\n var39 = var29 + 1;\n }\n\n while(var39 <= var30) {\n this.field_753[var39] = this.field_754[var39] = var31;\n var31 += var32;\n this.field_755[var39] = this.field_756[var39] = 0;\n this.field_757[var39] = this.field_758[var39] = var35;\n var35 += var36;\n ++var39;\n }\n\n if(var21 != var19) {\n var32 = (var20 - var18 << 8) / (var21 - var19);\n var34 = (var12 - var54 << 8) / (var21 - var19);\n }\n\n int var33;\n label241: {\n if(var19 > var21) {\n var31 = var20 << 8;\n var33 = var12 << 8;\n var29 = var21;\n var30 = var19;\n if(!var52) {\n break label241;\n }\n }\n\n var31 = var18 << 8;\n var33 = var54 << 8;\n var29 = var19;\n var30 = var21;\n }\n\n if(var29 < 0) {\n var31 -= var32 * var29;\n var33 -= var34 * var29;\n var29 = 0;\n }\n\n if(var30 > var7 - 1) {\n var30 = var7 - 1;\n }\n\n int var40 = var29;\n if(var52) {\n if(var31 < this.field_753[var29]) {\n this.field_753[var29] = var31;\n this.field_755[var29] = var33;\n this.field_757[var29] = 0;\n }\n\n if(var31 > this.field_754[var29]) {\n this.field_754[var29] = var31;\n this.field_756[var29] = var33;\n this.field_758[var29] = 0;\n }\n\n var31 += var32;\n var33 += var34;\n var40 = var29 + 1;\n }\n\n while(var40 <= var30) {\n if(var31 < this.field_753[var40]) {\n this.field_753[var40] = var31;\n this.field_755[var40] = var33;\n this.field_757[var40] = 0;\n }\n\n if(var31 > this.field_754[var40]) {\n this.field_754[var40] = var31;\n this.field_756[var40] = var33;\n this.field_758[var40] = 0;\n }\n\n var31 += var32;\n var33 += var34;\n ++var40;\n }\n\n if(var23 != var21) {\n var32 = (var22 - var20 << 8) / (var23 - var21);\n var36 = (var11 - var13 << 8) / (var23 - var21);\n }\n\n label211: {\n if(var21 > var23) {\n var31 = var22 << 8;\n var33 = var10 << 8;\n var35 = var11 << 8;\n var29 = var23;\n var30 = var21;\n if(!var52) {\n break label211;\n }\n }\n\n var31 = var20 << 8;\n var33 = var12 << 8;\n var35 = var13 << 8;\n var29 = var21;\n var30 = var23;\n }\n\n if(var29 < 0) {\n var31 -= var32 * var29;\n var35 -= var36 * var29;\n var29 = 0;\n }\n\n if(var30 > var7 - 1) {\n var30 = var7 - 1;\n }\n\n int var41 = var29;\n if(var52) {\n if(var31 < this.field_753[var29]) {\n this.field_753[var29] = var31;\n this.field_755[var29] = var33;\n this.field_757[var29] = var35;\n }\n\n if(var31 > this.field_754[var29]) {\n this.field_754[var29] = var31;\n this.field_756[var29] = var33;\n this.field_758[var29] = var35;\n }\n\n var31 += var32;\n var35 += var36;\n var41 = var29 + 1;\n }\n\n while(var41 <= var30) {\n if(var31 < this.field_753[var41]) {\n this.field_753[var41] = var31;\n this.field_755[var41] = var33;\n this.field_757[var41] = var35;\n }\n\n if(var31 > this.field_754[var41]) {\n this.field_754[var41] = var31;\n this.field_756[var41] = var33;\n this.field_758[var41] = var35;\n }\n\n var31 += var32;\n var35 += var36;\n ++var41;\n }\n\n if(var25 != var23) {\n var32 = (var24 - var22 << 8) / (var25 - var23);\n var34 = (var14 - var10 << 8) / (var25 - var23);\n }\n\n label181: {\n if(var23 > var25) {\n var31 = var24 << 8;\n var33 = var14 << 8;\n var35 = var15 << 8;\n var29 = var25;\n var30 = var23;\n if(!var52) {\n break label181;\n }\n }\n\n var31 = var22 << 8;\n var33 = var10 << 8;\n var35 = var11 << 8;\n var29 = var23;\n var30 = var25;\n }\n\n if(var29 < 0) {\n var31 -= var32 * var29;\n var33 -= var34 * var29;\n var29 = 0;\n }\n\n if(var30 > var7 - 1) {\n var30 = var7 - 1;\n }\n\n int var42 = var29;\n if(var52 || var29 <= var30) {\n do {\n if(var31 < this.field_753[var42]) {\n this.field_753[var42] = var31;\n this.field_755[var42] = var33;\n this.field_757[var42] = var35;\n }\n\n if(var31 > this.field_754[var42]) {\n this.field_754[var42] = var31;\n this.field_756[var42] = var33;\n this.field_758[var42] = var35;\n }\n\n var31 += var32;\n var33 += var34;\n ++var42;\n } while(var42 <= var30);\n }\n\n int var43 = var26 * var6;\n int[] var44 = this.spritePixels[var3];\n int var45 = var26;\n if(var52 || var26 < var27) {\n do {\n label321: {\n int var46 = this.field_753[var45] >> 8;\n int var47 = this.field_754[var45] >> 8;\n if(var47 - var46 <= 0) {\n var43 += var6;\n if(!var52) {\n break label321;\n }\n }\n\n int var48 = this.field_755[var45] << 9;\n int var49 = ((this.field_756[var45] << 9) - var48) / (var47 - var46);\n int var50 = this.field_757[var45] << 9;\n int var51 = ((this.field_758[var45] << 9) - var50) / (var47 - var46);\n if(var46 < this.field_745) {\n var48 += (this.field_745 - var46) * var49;\n var50 += (this.field_745 - var46) * var51;\n var46 = this.field_745;\n }\n\n if(var47 > this.field_746) {\n var47 = this.field_746;\n }\n\n if(!this.interlace || (var45 & 1) == 0) {\n label319: {\n if(!this.field_742[var3]) {\n this.method_255(this.pixels, var44, 0, var43 + var46, var48, var50, var49, var51, var46 - var47, var37);\n if(!var52) {\n break label319;\n }\n }\n\n this.method_256(this.pixels, var44, 0, var43 + var46, var48, var50, var49, var51, var46 - var47, var37);\n }\n }\n\n var43 += var6;\n }\n\n ++var45;\n } while(var45 < var27);\n\n }\n }", "public interface Constants {\r\n\r\n /** The factory. */\r\n FieldFactory FACTORY = new FieldFactoryImpl();\r\n\r\n /** The 64 K chunk size */\r\n int _64K = 40 * 40 * 40;\r\n\r\n /** The Aligned 64 compiler */\r\n Aligned64Compiler ALIGNED64 = new Aligned64Compiler();\r\n\r\n /** Number of Elements to be READ */\r\n int ELEMENTS_READ = _64K;\r\n\r\n /** Number of Elements to be Written */\r\n int ELEMENTS_WRITTEN = _64K;\r\n\r\n /** The packed compiler*/\r\n CompilerBase PACKED = new PackedCompiler();\r\n\r\n /** The * iterations. */\r\n int _ITERATIONS = 20;\r\n\r\n /** The read iterations. */\r\n int READ_ITERATIONS = _ITERATIONS;\r\n\r\n /** The read union iterations. */\r\n int READ_ITERATIONS_UNION = _ITERATIONS;\r\n\r\n /** The write iterations non-transactional. */\r\n int WRITE_ITERATIONS_NON_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write iterations transactional. */\r\n int WRITE_ITERATIONS_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write union iterations non-transactional. */\r\n int WRITE_ITERATIONS_UNION_NON_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write union iterations transactional. */\r\n int WRITE_ITERATIONS_UNION_TRANSACTIONAL = _ITERATIONS;\r\n\r\n}", "public abstract void mo4379b(int i, zzwt zzwt);", "java.lang.String getField1101();", "@Override\n\tpublic String getName() {\n\t\treturn String.format(\"%s|%.1f|%d\", this.getClass().getName(), this.scale, this.targetContent);\n\t}", "protected AbstractDoubleSpliterator(long param1Long, int param1Int) {\n/* 1617 */ this.est = param1Long;\n/* 1618 */ this.characteristics = ((param1Int & 0x40) != 0) ? (param1Int | 0x4000) : param1Int;\n/* */ }", "public abstract int mo12583RW(int i);", "public GlobalInformation(){\n\t\tflag=0;\n\t\tflag|=1<<2;//第二位暂时不用\n\t\tpartion=1;flag|=1<<5;\n\t\tsampleLowerBound=10;flag|=1<<6 ;\n\t}", "private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}", "abstract void mulS();", "java.lang.String getField1601();", "public float getPowerMultiplier() { return 0.5F; }", "protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }", "public String getName() {\r\n return \"能量浮动\";\r\n }", "public double getXmultiplier()\n {\n return xmultiplier; \n }", "@Override\n public void setInMatlab(MatlabOperations ops, String name) throws MatlabInvocationException\n {\n \n if(_real instanceof Byte)\n {\n ops.eval(name + \"=int8(\" + _real.byteValue() + \"+\" + _imag.byteValue() + \"i);\");\n }\n else if(_real instanceof Short)\n {\n ops.eval(name + \"=int16(\" + _real.shortValue() + \"+\" + _imag.shortValue() + \"i);\");\n }\n else if(_real instanceof Integer)\n {\n ops.eval(name + \"=int32(\" + _real.intValue() + \"+\" + _imag.intValue() + \"i);\");\n }\n else if(_real instanceof Long)\n {\n ops.eval(name + \"=int64(\" + _real.longValue() + \"+\" + _imag.longValue() + \"i);\");\n }\n \n // Set value through an array to avoid values being converted to MATLAB double\n \n else if(_real instanceof Float)\n {\n ops.setVariable(name, new float[] { _real.floatValue(), _imag.floatValue() });\n ops.eval(name + \"=\" + name + \"(1)+\" + name + \"(2)*i;\");\n }\n else if(_real instanceof Double)\n {\n ops.setVariable(name, new double[] { _real.doubleValue(), _imag.doubleValue() });\n ops.eval(name + \"=\" + name + \"(1)+\" + name + \"(2)*i;\");\n }\n }", "public @UInt32 int getQuantizationBits();", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "void mo9704b(float f, float f2, int i);", "@Override\npublic void mul(int a, int b) {\n\t\n}", "static String power (String s, int p) {\r\n if (s==errorSignature) return errorSignature;\r\n if (p==1) return s;\r\n try {\r\n StringBuffer result = new StringBuffer();\r\n char type [] = new char[1];\r\n int pos [] = new int[1];\r\n int power[] = new int[1];\r\n int index[] = new int[1];\r\n int n = eatNumber (s, pos); // <n>(..dimensionReference)\r\n result.append (n);\r\n for (int i=0; i<n; i++) {\r\n String name = eatReference (s, pos, type, power, index);\r\n char c = type[0]; // 'D' or 'W' ...\r\n result.append (c);\r\n if (c=='D') {result.append (p*power[0]).append (name). append (';');}\r\n else if (c=='W') {result.append (p*power[0]).append ('V' ).append (index[0]).append (';');}\r\n else {throw new RuntimeException ();}\r\n }\r\n return result.toString();\r\n }\r\n catch (RuntimeException e) {\r\n throw new RuntimeException (\"INTERNAL ERROR: illegal dimension signature: \"+s);\r\n }\r\n }", "Multiply createMultiply();", "java.lang.String getField1608();", "java.lang.String getField1648();", "public double getUIMultiplier() {\n\treturn multiplier;\n}", "public\r\n\t\tTargetBiomeGroup( String prefix, float val )\r\n\t\t{\r\n\t\t\tsuper( -1, val );\r\n\t\t\tregistryNamePrefix = new ResourceLocation( prefix ).toString( );\r\n\t\t}", "public void mul()\n\t{\n\t\t\n\t\tSystem.out.println(\"Hey I am in base class********** and addition is 2500\");\n\t}", "public abstract float mo9744i();", "java.lang.String getField1100();", "public interface FixedDefOperations\n\textends org.omg.CORBA.IDLTypeOperations\n{\n\t/* constants */\n\t/* operations */\n\tshort digits();\n\tvoid digits(short arg);\n\tshort scale();\n\tvoid scale(short arg);\n}", "public static int offsetBits_cost() {\n return 56;\n }", "java.lang.String getField1680();", "protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }", "@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }", "java.lang.String getField1624();", "java.lang.String getField1602();", "@Override\n\tprotected void setMultiplier(DynamicMultiplier multiplier) {\n\t\tif (\"supportVectors\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor(numberOfSupportVectors);\n\t\t} else if (\"supportVectorsMinusOne\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor(numberOfSupportVectors - 1);\n\t\t} else if (\"supportVectorMachines\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor((numberOfClasses * (numberOfClasses - 1)) / 2);\n\t\t} else if (\"squareAndMultiplyDegree\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor((int) (2.0 * FastMath.floor(FastMath.log(2.0, ((Integer) kernelDegree.getValue())))));\n\t\t}\n\t}", "public SharpIR(double mul, double exp, AnalogInput input) {\n\t\tsetCustomFactors(mul, exp);\n\t\tthis.input = input;\n\t\tinput.setAverageBits(10);\n\t}", "java.lang.String getField1684();", "java.lang.String getField1010();", "public int getPower(String genEle);", "java.lang.String getField1628();", "java.lang.String getField1696();", "public abstract void setGen(int i, double value);", "java.lang.String getField1686();", "public abstract double[] roughOffsets();", "java.lang.String getField1603();", "public abstract void mo4378b(int i, zzud zzud);", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "protected abstract float getRequiredBaseOffset();", "java.lang.String getField1011();", "public static int offsetBits_dataType() {\n return 0;\n }", "java.lang.String getField1604();", "Double getOffset();", "public int getAmplifier()\r\n/* 75: */ {\r\n/* 76: 75 */ return this.amplifier;\r\n/* 77: */ }", "java.lang.String getField1627();", "public void MIPSme()\n {\n System.out.println(\"Took func from offset: \" + offset);\n TEMP label_address = TEMP_FACTORY.getInstance().getFreshTEMP();\n sir_MIPS_a_lot.getInstance().load(label_address, src);\n sir_MIPS_a_lot.getInstance().addi(label_address,label_address,4*offset);\n sir_MIPS_a_lot.getInstance().load(dst,label_address); //take the function address to dst\n }", "double getOffset();", "java.lang.String getField1663();", "public abstract void mo9816d(int i, int i2);", "public float sizeMultiplier();", "public static int offsetBits_sum_e() {\n return 104;\n }", "java.lang.String getField1023();", "public abstract double getGen(int i);", "@Override\n public void visitFieldInsn(int opcode, String owner, String name, String desc) {\n // GETFIELD I,F,L,D + B,S\n if ((opcode == Opcodes.GETFIELD)) {\n if (desc.equals(\"I\")) {\n if (this.shouldMutate(\"Incremented (++a) integer field \" + name)) {\n mv.visitInsn(Opcodes.DUP); // stack = .. [ref] [ref]\n mv.visitFieldInsn(opcode, owner, name, desc); // stack = ... [ref] [ref.field]\n mv.visitInsn(Opcodes.ICONST_1); // stack = ... [ref] [ref.field] [1]\n mv.visitInsn(Opcodes.IADD); // stack = ... [ref] [ref.field + 1]\n mv.visitInsn(Opcodes.DUP_X1); // stack = ... [ref.field +1] [ref] [ref.field +1]\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc); // stack = ... [ref.field +1]\n return;\n }\n }\n if (desc.equals(\"F\")) {\n if (this.shouldMutate(\"Incremented (++a) float field \" + name)) {\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.FCONST_1);\n mv.visitInsn(Opcodes.FADD);\n mv.visitInsn(Opcodes.DUP_X1);\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"J\")) {\n if (this.shouldMutate(\"Incremented (++a) long field \" + name)) {\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.LCONST_1);\n mv.visitInsn(Opcodes.LADD);\n mv.visitInsn(Opcodes.DUP2_X1);\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"D\")) {\n if (this.shouldMutate(\"Incremented (++a) double field \" + name)) {\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.DCONST_1);\n mv.visitInsn(Opcodes.DADD);\n mv.visitInsn(Opcodes.DUP2_X1);\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"B\")) {\n if (this.shouldMutate(\"Incremented (++a) byte field \" + name)) {\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.ICONST_1);\n mv.visitInsn(Opcodes.IADD);\n mv.visitInsn(Opcodes.I2B);\n mv.visitInsn(Opcodes.DUP_X1);\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"S\")) {\n if (this.shouldMutate(\"Incremented (++a) short field \" + name)) {\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.ICONST_1);\n mv.visitInsn(Opcodes.IADD);\n mv.visitInsn(Opcodes.I2S);\n mv.visitInsn(Opcodes.DUP_X1);\n mv.visitFieldInsn(Opcodes.PUTFIELD, owner, name, desc);\n return;\n }\n }\n }\n\n // GETSTATIC I,F,L,D + B,S\n if (opcode == Opcodes.GETSTATIC) {\n if (desc.equals(\"I\")) {\n if (this.shouldMutate(\"Incremented (++a) static integer field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.ICONST_1);\n mv.visitInsn(Opcodes.IADD);\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"F\")) {\n if (this.shouldMutate(\"Incremented (++a) static float field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.FCONST_1);\n mv.visitInsn(Opcodes.FADD);\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"J\")) {\n if (this.shouldMutate(\"Incremented (++a) static long field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.LCONST_1);\n mv.visitInsn(Opcodes.LADD);\n mv.visitInsn(Opcodes.DUP2);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"D\")) {\n if (this.shouldMutate(\"Incremented (++a) static double field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.DCONST_1);\n mv.visitInsn(Opcodes.DADD);\n mv.visitInsn(Opcodes.DUP2);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"B\")) {\n if (this.shouldMutate(\"Incremented (++a) static byte field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.ICONST_1);\n mv.visitInsn(Opcodes.IADD);\n mv.visitInsn(Opcodes.I2B);\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n if (desc.equals(\"S\")) {\n if (this.shouldMutate(\"Incremented (++a) static short field \" + name)) {\n mv.visitFieldInsn(opcode, owner, name, desc);\n mv.visitInsn(Opcodes.ICONST_1);\n mv.visitInsn(Opcodes.IADD);\n mv.visitInsn(Opcodes.I2S);\n mv.visitInsn(Opcodes.DUP);\n mv.visitFieldInsn(Opcodes.PUTSTATIC, owner, name, desc);\n return;\n }\n }\n }\n mv.visitFieldInsn(opcode, owner, name, desc);\n }", "public int m224a() {\n return 1;\n }", "public abstract int mo12574RN(int i);", "abstract void mo4366a(int i, zzwt zzwt, cu cuVar);", "public abstract GF2nElement increase();", "java.lang.String getField1690();", "java.lang.String getField1600();", "java.lang.String getField1110();", "public double getWeight(){return this.aWeight;}", "public abstract double GetRaw();", "public static int offsetBits_group() {\n return 24;\n }", "java.lang.String getField1629();", "java.lang.String getField1658();", "private Accumulator(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "java.lang.String getField1611();", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.680 -0500\", hash_original_method = \"4B0B8276597CEA521E1E338B4AADD471\", hash_generated_method = \"9283ED1C2044F4178961436920D7FF12\")\n \nstatic ImageDescriptor parse(byte[] rawData, int valueIndex) {\n ImageDescriptor d = new ImageDescriptor();\n try {\n d.width = rawData[valueIndex++] & 0xff;\n d.height = rawData[valueIndex++] & 0xff;\n d.codingScheme = rawData[valueIndex++] & 0xff;\n\n // parse image id\n d.imageId = (rawData[valueIndex++] & 0xff) << 8;\n d.imageId |= rawData[valueIndex++] & 0xff;\n // parse offset\n d.highOffset = (rawData[valueIndex++] & 0xff); // high byte offset\n d.lowOffset = rawData[valueIndex++] & 0xff; // low byte offset\n\n d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));\n } catch (IndexOutOfBoundsException e) {\n CatLog.d(\"ImageDescripter\", \"parse; failed parsing image descriptor\");\n d = null;\n }\n return d;\n }", "protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }", "public abstract double getFractionMultiplier();" ]
[ "0.5492402", "0.5440503", "0.54244083", "0.54023004", "0.5367835", "0.53539085", "0.5337495", "0.5301961", "0.5296569", "0.5292203", "0.52839226", "0.52762115", "0.5241461", "0.5238877", "0.522047", "0.52203745", "0.5213186", "0.5203527", "0.5186173", "0.5185563", "0.5173845", "0.5173506", "0.5172299", "0.5169561", "0.5168261", "0.51635885", "0.51574004", "0.5155492", "0.5144682", "0.5141319", "0.51410836", "0.5138757", "0.513678", "0.51290375", "0.51263624", "0.512088", "0.5120006", "0.511685", "0.5111796", "0.5107813", "0.5089857", "0.5080857", "0.50710005", "0.5066359", "0.50661874", "0.5058923", "0.5056541", "0.50531524", "0.50417453", "0.5041239", "0.5039048", "0.5029624", "0.5019944", "0.5018865", "0.50158584", "0.5012215", "0.50070095", "0.5006558", "0.50009525", "0.49917537", "0.49890536", "0.49829462", "0.49709222", "0.4967852", "0.4967471", "0.49591777", "0.4958848", "0.49537066", "0.4952162", "0.4950262", "0.49458", "0.49413222", "0.49407524", "0.4939611", "0.49367353", "0.493512", "0.49332756", "0.49330938", "0.49330133", "0.49322397", "0.49321553", "0.4924486", "0.4919692", "0.49178168", "0.49137187", "0.49132308", "0.4911902", "0.49108633", "0.49086627", "0.49084306", "0.49070293", "0.4906783", "0.49054298", "0.490501", "0.4898854", "0.48983455", "0.4894207", "0.48926875", "0.4889187", "0.48874795" ]
0.5955542
0
TODO Autogenerated method stub
@Override public String toString() { return name+" : "+ weight +" KG "+(isMale?", ─đ":", ┼«")+ ", "+education; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object target) { return name.equals(((Person)target).getName()); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public int hashCode() { return name.hashCode(); }
{ "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
the command has been executed, so extract extract the needed information from the application context.
public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IStructuredSelection structured = (IStructuredSelection) PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService().getSelection("org.eclipse.jdt.ui.PackageExplorer"); Object selected = structured.getFirstElement(); if (selected instanceof ICompilationUnit) { ICompilationUnit icu = (ICompilationUnit) selected; ClassParser classParser = new EclipseClassParser(); JavaClass javaClass = classParser.parse(icu); Renderer renderer = new FreeMarkerRenderer(); List<RendererResult> rendererResults = renderer.render(javaClass, RendererType.IBatis); RendererResult rendererResult = rendererResults.get(0); ClipboardUtil.copyTo(rendererResult.getResult()); MessageDialog.openInformation(window.getShell(), "SmartCNP", "Copy " + javaClass.getName() + " Success"); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n SubProcessExecDetails\n ( \n String cmd, \n Map<String,String> env\n )\n {\n pCommand = cmd; \n pEnvironment = new TreeMap<String,String>(env);\n }", "public interface AdminCommandContext extends ExecutionContext, Serializable {\n \n /**\n * Returns the Reporter for this action\n * @return ActionReport implementation suitable for the client\n */\n public ActionReport getActionReport();\n /**\n * Change the Reporter for this action\n * @param newReport The ActionReport to set.\n */\n public void setActionReport(ActionReport newReport);\n\n /**\n * Returns the Logger\n * @return the logger\n */\n public Logger getLogger();\n\n /**\n * Returns the inbound payload, from the admin client, that accompanied\n * the command request.\n *\n * @return the inbound payload\n */\n public Payload.Inbound getInboundPayload();\n\n /**\n * Changes the inbound payload for this action.\n *\n * @param newInboundPayload inbound payload to set.\n */\n public void setInboundPayload(Payload.Inbound newInboundPayload);\n\n /**\n * Returns a reference to the outbound payload so a command implementation\n * can populate the payload for return to the admin client.\n *\n * @return the outbound payload\n */\n public Payload.Outbound getOutboundPayload();\n\n /**\n * Changes the outbound payload for this action.\n *\n * @param newOutboundPayload outbound payload to set.\n */\n public void setOutboundPayload(Payload.Outbound newOutboundPayload);\n\n /**\n * Returns the Subject associated with this command context.\n *\n * @return the Subject\n */\n public Subject getSubject();\n\n /**\n * Sets the Subject to be associated with this command context.\n *\n * @param subject\n */\n public void setSubject(Subject subject);\n \n /** \n * ProgressStatus can be used to inform about step by step progress \n * of the command. It is always ready to use but propagated to \n * the client only if {@code @Progress} annotation is on the command\n * implementation.\n */\n public ProgressStatus getProgressStatus();\n \n /** Simple event broker for inter command communication mostly\n * from server to client. (Command to caller).\n */\n public AdminCommandEventBroker getEventBroker();\n \n \n /** Id of current job. Only managed commands has job id.\n */\n public String getJobId();\n\n}", "@Override\n public void execute() {\n this.context.setToken(new Token(context.getLexemeType(), context.getLexemeBuffer().toString()));\n this.context.getLexemeBuffer().setLength(0);\n if (command != null) {\n command.execute();\n }\n }", "@Override\n\tpublic void afterExecuteTask(Task t,Map context) {\n\t\tlog.info(\"Task Id:\"+t.getTaskId()+\"--Task Name:\"+t.getTaskName()+\"--Running result:\"+context);\n\t}", "public CommandInfo getInfo() {\n\t\treturn info;\n\t}", "private String[] getArgs()\n {\n return cmd.getArgs();\n }", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "private InfoCommand()\n\t{\n\t\t\n\t\t\n\t}", "@Override\n protected List<Object> getOperationArguments(AggregationOperationContext context) {\n return OperationOutput.this.getOperationArguments(context);\n }", "public String getRunInfo(){\n return runner.getRunInfo();\n }", "protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}", "public abstract void onCommand(MessageEvent context) throws Exception;", "public String getUserCommand();", "public String getCommand() { return command; }", "java.lang.String getCommand();", "public String getCommandReturned() {\n return commandReturned;\n }", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "protected void executeVmCommand() {\n }", "private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }", "public String getCommand(){\n return command;\n }", "@Override\n\tfinal public void execute(IContext context) {\n\t\tsuper.execute(context);\n\t}", "private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }", "private GetLCCommand() {\n initFields();\n }", "public abstract String getCommand();", "private void cmdInfoVars() throws NoSystemException {\n MSystem system = system();\n \n System.out.print(system.getVariableEnvironment());\n }", "public CommandDetail() {\n this.commandType = CommandType.UNKNOWN;\n commandData = new HashMap<String, Object>();\n }", "void execSetupContext(ExecProcess ctx);", "private void cmdInfo(String line) throws NoSystemException {\n StringTokenizer tokenizer = new StringTokenizer(line);\n try {\n String subCmd = tokenizer.nextToken();\n if (subCmd.equals(\"class\")) {\n String arg = tokenizer.nextToken();\n cmdInfoClass(arg);\n } else if (subCmd.equals(\"model\")) {\n cmdInfoModel();\n } else if (subCmd.equals(\"state\")) {\n cmdInfoState();\n } else if (subCmd.equals(\"opstack\")) {\n cmdInfoOpStack();\n } else if (subCmd.equals(\"prog\")) {\n cmdInfoProg();\n } else if (subCmd.equals(\"vars\")) {\n cmdInfoVars();\n } else\n Log.error(\"Syntax error in info command. Try `help'.\");\n } catch (NoSuchElementException ex) {\n Log.error(\"Missing argument to `info' command. Try `help'.\");\n }\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public String getCommand() {\r\n return command;\r\n }", "public String Command() {\n\treturn command;\n }", "public String getContext() { return context; }", "java.lang.String getContext();", "public String getCommand() {\n return this.command;\n }", "@TaskAction\n public void executeAction() {\n try {\n String xml = instantRunBuildContext.toXml();\n if (logger.isEnabled(LogLevel.DEBUG)) {\n logger.debug(\"build-id $1$l, build-info.xml : %2$s\",\n instantRunBuildContext.getBuildId(), xml);\n }\n Files.createParentDirs(buildInfoFile);\n Files.write(instantRunBuildContext.toXml(), buildInfoFile, Charsets.UTF_8);\n } catch (Exception e) {\n\n throw new RuntimeException(\n String.format(\"Exception while saving build-info.xml : %s\", e.getMessage()));\n }\n }", "public void execute(ProcessInstance processInstance, NMC context, Map<String, String> map) {\n\t}", "public String processCommand(Command command) //refactored\n {\n boolean wantToQuit = false;\n //System.out.println(\"hitter boolean\");\n commandWord = command.getAction();//fehler\n //System.out.println(command);\n //System.out.println(\"enum == null\" + (commandWord == null));\n String result = \"\";\n //System.out.println(\"heyho\");\n //System.out.println(result);\n switch(commandWord){\n //case UNKNOWN: return \"I don't know what you mean...\"; break;\n \n case HELP: result += printHelp(); break;\n case GO: result += goRoom(command); break;\n case QUIT: return quit(command);//refactored from refactoring\n default: result += \"I don't know what you mean...\";\n }\n return result;\n }", "String getCommand();", "@Override\r\n public void execute(Command command) {\n\r\n }", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n log.debug(START_COMMAND);\n String language = request.getParameter(Constant.LANGUAGE);\n log.debug(Constant.LANGUAGE + language);\n HttpSession session = request.getSession();\n session.setAttribute(Constant.LANGUAGE, language);\n log.debug(END_COMMAND);\n return Path.COMMAND_MASTER_SERVICES;\n }", "protected void execute() {\n\t\tSystem.out.println(\"Vision error: \" + RobotMap.VisionDistanceLeftPIDController.getError() + \" , \" + RobotMap.VisionDistanceRightPIDController.getError());\n\t\tSystem.out.println(\"vision, pidcontroller output: \" + RobotMap.VisionDistanceLeftPIDController.get() + \" , \" + RobotMap.VisionDistanceRightPIDController.get());\n\n\t}", "@Override\n\tpublic long getExecute() {\n\t\treturn _scienceApp.getExecute();\n\t}", "public abstract String getLaunchCommand();", "public void analyzeCommand(String cmd)\n {\n commandEntered(cmd);\n }", "ExperimentExecutionDetailsPropertiesRunInformation runInformation();", "@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}", "protected void execute() {}", "@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }", "@Override\n protected void execute() {\n \n }", "@Override\r\n\tpublic void command() {\n\t\tSystem.out.println(\"CommandAttack Process\");\r\n\t}", "protected void doExecute(String[] arguments, ContextStatus contextStatus) {\n // no action to do\n }", "private Command() {\n initFields();\n }", "void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }", "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 String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "protected void execute() {\n\n\t}", "private ExecuteMessage() {\n initFields();\n }", "public String getCommand() {\n return command;\n }", "public String getCommand() {\n return command;\n }", "@Override\n public void Execute() {\n\n }", "public Command getCurrentCommand();", "@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }", "private void getUserInfo() {\n\t}", "@Override\n\tpublic void executeAdapter() {\n\t\tthis.jobRowId = this.task.getTaskID();\n\t\tif (this.site != null){\n\t\t this.jobLocationId = this.site.getCustomerSurveySiteRowID();\n\t\t}\n\t\tthis.jobNo = this.task.getTaskCode();\n\t\t\n\t\tif (this.inspectDataSaved != null){\n\t\t\tthis.productId = this.inspectDataSaved.getProductID();\t\t\t\n\t\t\t\n\t\t\tthis.productQty = this.inspectDataSaved.getQty();\n\t\t\tthis.productUnit = this.inspectDataSaved.getProductAmountUnitText();\n\t\t\t\n\t\t\tthis.productPrice = this.inspectDataSaved.getMarketPrice();\n\t\t\tthis.productValue = this.inspectDataSaved.getValue();\n\t\t\t\n\t\t\tthis.inspectDataObjectID = this.inspectDataSaved.getInspectDataObjectID();\n\t\t\t\n\t\t\t/*\n\t\t\tif (this.getcOrder() == 3){\n\t\t\t this.inspectDataObjectID = this.inspectDataSaved.getInspectDataObjectID();\n\t\t\t}*/\n\t\t\t\n\t\t\tthis.productInfo = this.inspectDataSaved.getOpinionValue();\n\n\t\t\tthis.marketPriceID = this.inspectDataSaved.getMarketPriceID();\n\t\t\tthis.marketPrice = this.inspectDataSaved.getMarketPrice();\n\t\t\t\n\t\t\tthis.clusterControlFlag = (this.inspectDataSaved.isProductControlled())?\"Y\":\"N\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public Properties getCommandLineProperties()\n {\n return commandLineProps;\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "@Override\n public void recordCommandExecution(String commandInputString) {\n\n }", "public int getCommand() {\n return command_;\n }", "public Properties getCommandLineArgs()\n {\n return this.commandLineArgs;\n }", "protected void execute() {\n\t\t\n\t}", "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "protected void execute() {\r\n }", "public String getCommand(){\n return getCommand(null);\n }", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\n }", "public String getOriginalInput() {\n\t\treturn commandString;\n\t}", "public cl_context getContext() {\r\n return context;\r\n }", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "@Override\n\tpublic String execute() throws Exception {\n\t\tActionContext context = ActionContext.getContext();\n\t\t/*public Object get(Object key)\n\t\t * ActionContext类没有提供类似getRequest()这样的方法来获取封装了HttpServletRequest的Map对象。\n\t\t * 要得到Map对象,需要为get方法传递参数\"request\"*/\n\t\tMap request = (Map) context.get(\"request\");\n\t\tMap session = context.getSession();\n\t\tMap application = context.getApplication();\n\t\t\n//\t\t在请求中放置信息\n\t\trequest.put(\"r1\", \"r1\");\n//\t\t在session中保存user对象\n\t\tsession.put(\"user\", \"user\");\n//\t\t在application中保存信息\n\t\tapplication.put(\"appkey\", \"value\");\n\t\treturn \"success\";\n\t}" ]
[ "0.57161385", "0.56221956", "0.5565454", "0.55064636", "0.54805905", "0.54533446", "0.5428104", "0.5389963", "0.5320454", "0.5316146", "0.5305518", "0.5295063", "0.5274414", "0.52641356", "0.5247774", "0.5243216", "0.5241533", "0.52260023", "0.5224965", "0.5220645", "0.52079827", "0.5207077", "0.5185145", "0.51593167", "0.51352555", "0.5134032", "0.51297235", "0.5123859", "0.51200855", "0.50921136", "0.5073636", "0.50396556", "0.5032073", "0.5031052", "0.50212413", "0.50206804", "0.50203985", "0.501704", "0.5014533", "0.5014127", "0.5012493", "0.49918416", "0.49865237", "0.4968015", "0.49672917", "0.4954764", "0.4941633", "0.49349588", "0.4933154", "0.49322832", "0.4930723", "0.4927398", "0.492497", "0.49107534", "0.49039793", "0.4896645", "0.48814055", "0.48743775", "0.48716056", "0.48716056", "0.48651114", "0.48612013", "0.48514986", "0.4848813", "0.4848813", "0.4848813", "0.48451963", "0.48448315", "0.4839433", "0.4837815", "0.4831382", "0.4831382", "0.48277435", "0.48251936", "0.48206013", "0.48168656", "0.481627", "0.48110425", "0.48072731", "0.47997558", "0.4794179", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.47885025", "0.4780174", "0.47800767", "0.47797826", "0.47785887", "0.47740412", "0.47726482", "0.4772004", "0.4768613" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public DwiCtStationTpaDExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "public int getStationID() {\n\t\treturn stationID;\n\t}" ]
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.4916349", "0.48938504", "0.48672116", "0.4865042", "0.4861808", "0.48542616", "0.4837596", "0.48213503", "0.48021385", "0.4789821", "0.4787534", "0.47824973", "0.47760847", "0.47727922", "0.4762355", "0.4747605", "0.47372547", "0.47272193", "0.47246656", "0.47243452", "0.4723836", "0.47191477", "0.47176558", "0.47171888", "0.47116998", "0.47052908", "0.4700727", "0.4691616", "0.4670766", "0.46706322", "0.4664818", "0.46598354", "0.4657547", "0.46574923", "0.46562406", "0.46536076", "0.46392643", "0.4628221", "0.4621858", "0.46203038", "0.4612572", "0.46112624", "0.4600306", "0.45957184", "0.45884272", "0.45770156", "0.4575056", "0.45579147", "0.45576927", "0.45573372", "0.45557192", "0.4542493", "0.45399368", "0.45357463", "0.45303574", "0.45286962", "0.45265484", "0.45240164", "0.45219833", "0.45195487", "0.45191905", "0.45180368", "0.451803", "0.45166472", "0.45159253", "0.45141667", "0.45096073", "0.450923", "0.45041218", "0.44984385", "0.44983226", "0.4494434", "0.44899142", "0.44870183", "0.44847164", "0.44844744", "0.448119", "0.44787273", "0.4477149", "0.4469749", "0.4467169" ]
0.49214992
19
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract java.lang.String getTica_id();", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49168873", "0.4893348", "0.48653972", "0.48649335", "0.48635527", "0.4854156", "0.48385832", "0.48215306", "0.48043346", "0.47886643", "0.47871307", "0.47841963", "0.4775387", "0.4772153", "0.47634012", "0.47465953", "0.47366494", "0.47270155", "0.47261813", "0.4724125", "0.47236133", "0.47198057", "0.47197288", "0.47180328", "0.47119302", "0.47066265", "0.47019297", "0.4691938", "0.46705255", "0.46694311", "0.4665672", "0.4659229", "0.46584877", "0.4658438", "0.46563965", "0.46547505", "0.46403557", "0.46286407", "0.46220952", "0.46198988", "0.46140248", "0.46115735", "0.46013162", "0.45964605", "0.45890507", "0.4578233", "0.4574129", "0.45596778", "0.45578897", "0.4557505", "0.45557266", "0.454274", "0.45419607", "0.45378107", "0.4531602", "0.45288762", "0.45266974", "0.45248988", "0.45238906", "0.45194757", "0.45190093", "0.4518547", "0.45182797", "0.45163578", "0.45146912", "0.45137393", "0.45094568", "0.45080116", "0.45043203", "0.45001742", "0.44992256", "0.4494297", "0.448938", "0.44876096", "0.4485523", "0.44855177", "0.4481384", "0.44787633", "0.4477567", "0.44701314", "0.4466932" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "public String getToStation();", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "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 int getStation_ID() {\n\t\treturn station_ID;\n\t}", "TTC getSTART_STATION() {\n return START_STATION;\n }", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.49152112", "0.4892672", "0.48665872", "0.48632607", "0.48622605", "0.48541507", "0.48396102", "0.48214406", "0.48044857", "0.47893023", "0.47884983", "0.478225", "0.47719988", "0.47705632", "0.4764494", "0.4747673", "0.4734909", "0.47274178", "0.47238562", "0.47237775", "0.472249", "0.47201544", "0.4718971", "0.47161946", "0.47091162", "0.47059458", "0.47028902", "0.46895504", "0.46696234", "0.46694928", "0.46680176", "0.46606067", "0.46565977", "0.46557552", "0.4655414", "0.46551538", "0.46401232", "0.46292752", "0.4619515", "0.46192685", "0.46146142", "0.4611026", "0.46015546", "0.45971903", "0.45898247", "0.45757133", "0.45741257", "0.45609495", "0.4558105", "0.45564723", "0.45540312", "0.45431456", "0.45418277", "0.4533723", "0.4530175", "0.45289162", "0.45274106", "0.45244005", "0.45228225", "0.45202374", "0.45189837", "0.45178217", "0.45171925", "0.45167655", "0.45145333", "0.45144132", "0.4509602", "0.45091617", "0.45023054", "0.45004684", "0.44994622", "0.44956705", "0.44892752", "0.44875917", "0.4485497", "0.44824207", "0.44801652", "0.4479037", "0.4477184", "0.44682488", "0.44655102" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract java.lang.String getTica_id();", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public String getToStation();", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "public String getTableDbName() { return \"t_trxtypes\"; }", "java.lang.String getTransitAirport();", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public void storeRegularDayTripStationScheduleWithRS();", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "org.landxml.schema.landXML11.Station xgetStation();", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "public void setToStation(String toStation);", "public int getStationID() {\n\t\treturn stationID;\n\t}" ]
[ "0.591335", "0.5880227", "0.5618331", "0.5373254", "0.5276252", "0.52508575", "0.5247334", "0.52444965", "0.5158177", "0.5139137", "0.51171196", "0.50889933", "0.508064", "0.50659186", "0.5057405", "0.5011186", "0.49564764", "0.4949543", "0.49231407", "0.49218547", "0.49187163", "0.48966098", "0.486817", "0.48661312", "0.48631653", "0.4857928", "0.48402962", "0.4822771", "0.48050043", "0.47925484", "0.47902828", "0.47851637", "0.4776795", "0.4772872", "0.47650668", "0.47470367", "0.47392026", "0.47277388", "0.47260064", "0.47255692", "0.47251514", "0.4720887", "0.47199574", "0.47187617", "0.47123283", "0.47090596", "0.47004503", "0.46923772", "0.467212", "0.466851", "0.4666572", "0.46616885", "0.46599218", "0.46594357", "0.46577162", "0.4656303", "0.46444246", "0.46298915", "0.4624008", "0.46224767", "0.46154475", "0.46120012", "0.46024734", "0.4596904", "0.4589799", "0.45798188", "0.45774075", "0.45614275", "0.4560115", "0.45598018", "0.4557158", "0.4544432", "0.4541293", "0.4537866", "0.4534066", "0.4530384", "0.45281306", "0.45262867", "0.45232028", "0.45211482", "0.45210257", "0.45196337", "0.45193726", "0.451895", "0.45180848", "0.45159665", "0.45138717", "0.45103016", "0.45030615", "0.45009565", "0.4500802", "0.44980043", "0.4492877", "0.44881257", "0.44870695", "0.44868904", "0.4483224", "0.44815055", "0.44793707", "0.44702768", "0.44688615" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "public int getStationID() {\n\t\treturn stationID;\n\t}" ]
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.49214992", "0.4916349", "0.48938504", "0.48672116", "0.4865042", "0.4861808", "0.48542616", "0.4837596", "0.48213503", "0.48021385", "0.4789821", "0.4787534", "0.47824973", "0.47760847", "0.47727922", "0.4762355", "0.4747605", "0.47372547", "0.47272193", "0.47246656", "0.47243452", "0.4723836", "0.47191477", "0.47176558", "0.47171888", "0.47116998", "0.47052908", "0.4700727", "0.4691616", "0.4670766", "0.46706322", "0.4664818", "0.46598354", "0.4657547", "0.46574923", "0.46562406", "0.46536076", "0.46392643", "0.4628221", "0.4621858", "0.46203038", "0.4612572", "0.46112624", "0.4600306", "0.45957184", "0.45884272", "0.45770156", "0.4575056", "0.45579147", "0.45576927", "0.45573372", "0.45557192", "0.4542493", "0.45399368", "0.45357463", "0.45303574", "0.45286962", "0.45265484", "0.45240164", "0.45219833", "0.45195487", "0.45191905", "0.45180368", "0.451803", "0.45166472", "0.45159253", "0.45141667", "0.45096073", "0.450923", "0.45041218", "0.44984385", "0.44983226", "0.4494434", "0.44899142", "0.44870183", "0.44847164", "0.44844744", "0.448119", "0.44787273", "0.4477149", "0.4469749", "0.4467169" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract java.lang.String getTica_id();", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49168873", "0.4893348", "0.48653972", "0.48649335", "0.48635527", "0.4854156", "0.48385832", "0.48215306", "0.48043346", "0.47886643", "0.47871307", "0.47841963", "0.4775387", "0.4772153", "0.47634012", "0.47465953", "0.47366494", "0.47270155", "0.47261813", "0.4724125", "0.47236133", "0.47198057", "0.47197288", "0.47180328", "0.47119302", "0.47066265", "0.47019297", "0.4691938", "0.46705255", "0.46694311", "0.4665672", "0.4659229", "0.46584877", "0.4658438", "0.46563965", "0.46547505", "0.46403557", "0.46286407", "0.46220952", "0.46198988", "0.46140248", "0.46115735", "0.46013162", "0.45964605", "0.45890507", "0.4578233", "0.4574129", "0.45596778", "0.45578897", "0.4557505", "0.45557266", "0.454274", "0.45419607", "0.45378107", "0.4531602", "0.45288762", "0.45266974", "0.45248988", "0.45238906", "0.45194757", "0.45190093", "0.4518547", "0.45182797", "0.45163578", "0.45146912", "0.45137393", "0.45094568", "0.45080116", "0.45043203", "0.45001742", "0.44992256", "0.4494297", "0.448938", "0.44876096", "0.4485523", "0.44855177", "0.4481384", "0.44787633", "0.4477567", "0.44701314", "0.4466932" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "public String getToStation();", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "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 int getStation_ID() {\n\t\treturn station_ID;\n\t}", "TTC getSTART_STATION() {\n return START_STATION;\n }", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.49152112", "0.4892672", "0.48665872", "0.48632607", "0.48622605", "0.48541507", "0.48396102", "0.48214406", "0.48044857", "0.47893023", "0.47884983", "0.478225", "0.47719988", "0.47705632", "0.4764494", "0.4747673", "0.4734909", "0.47274178", "0.47238562", "0.47237775", "0.472249", "0.47201544", "0.4718971", "0.47161946", "0.47091162", "0.47059458", "0.47028902", "0.46895504", "0.46696234", "0.46694928", "0.46680176", "0.46606067", "0.46565977", "0.46557552", "0.4655414", "0.46551538", "0.46401232", "0.46292752", "0.4619515", "0.46192685", "0.46146142", "0.4611026", "0.46015546", "0.45971903", "0.45898247", "0.45757133", "0.45741257", "0.45609495", "0.4558105", "0.45564723", "0.45540312", "0.45431456", "0.45418277", "0.4533723", "0.4530175", "0.45289162", "0.45274106", "0.45244005", "0.45228225", "0.45202374", "0.45189837", "0.45178217", "0.45171925", "0.45167655", "0.45145333", "0.45144132", "0.4509602", "0.45091617", "0.45023054", "0.45004684", "0.44994622", "0.44956705", "0.44892752", "0.44875917", "0.4485497", "0.44824207", "0.44801652", "0.4479037", "0.4477184", "0.44682488", "0.44655102" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract java.lang.String getTica_id();", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public String getToStation();", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "public String getTableDbName() { return \"t_trxtypes\"; }", "java.lang.String getTransitAirport();", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public void storeRegularDayTripStationScheduleWithRS();", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "org.landxml.schema.landXML11.Station xgetStation();", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "public void setToStation(String toStation);", "public int getStationID() {\n\t\treturn stationID;\n\t}" ]
[ "0.591335", "0.5880227", "0.5618331", "0.5373254", "0.5276252", "0.52508575", "0.5247334", "0.52444965", "0.5158177", "0.5139137", "0.51171196", "0.50889933", "0.508064", "0.50659186", "0.5057405", "0.5011186", "0.49564764", "0.4949543", "0.49231407", "0.49218547", "0.49187163", "0.48966098", "0.486817", "0.48661312", "0.48631653", "0.4857928", "0.48402962", "0.4822771", "0.48050043", "0.47925484", "0.47902828", "0.47851637", "0.4776795", "0.4772872", "0.47650668", "0.47470367", "0.47392026", "0.47277388", "0.47260064", "0.47255692", "0.47251514", "0.4720887", "0.47199574", "0.47187617", "0.47123283", "0.47090596", "0.47004503", "0.46923772", "0.467212", "0.466851", "0.4666572", "0.46616885", "0.46599218", "0.46594357", "0.46577162", "0.4656303", "0.46444246", "0.46298915", "0.4624008", "0.46224767", "0.46154475", "0.46120012", "0.46024734", "0.4596904", "0.4589799", "0.45798188", "0.45774075", "0.45614275", "0.4560115", "0.45598018", "0.4557158", "0.4544432", "0.4541293", "0.4537866", "0.4534066", "0.4530384", "0.45281306", "0.45262867", "0.45232028", "0.45211482", "0.45210257", "0.45196337", "0.45193726", "0.451895", "0.45180848", "0.45159665", "0.45138717", "0.45103016", "0.45030615", "0.45009565", "0.4500802", "0.44980043", "0.4492877", "0.44881257", "0.44870695", "0.44868904", "0.4483224", "0.44815055", "0.44793707", "0.44702768", "0.44688615" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "public int getStationID() {\n\t\treturn stationID;\n\t}" ]
[ "0.5910757", "0.5878975", "0.5615024", "0.5370662", "0.5272959", "0.52477545", "0.5245158", "0.5241223", "0.51585937", "0.51369065", "0.5114784", "0.50870794", "0.50794065", "0.5063974", "0.50555295", "0.50101817", "0.49546438", "0.49456918", "0.49232027", "0.49214992", "0.4916349", "0.48938504", "0.48672116", "0.4865042", "0.4861808", "0.48542616", "0.4837596", "0.48213503", "0.48021385", "0.4789821", "0.4787534", "0.47824973", "0.47760847", "0.47727922", "0.4762355", "0.4747605", "0.47372547", "0.47272193", "0.47246656", "0.47243452", "0.4723836", "0.47191477", "0.47176558", "0.47171888", "0.47116998", "0.47052908", "0.4700727", "0.4691616", "0.4670766", "0.46706322", "0.4664818", "0.46598354", "0.4657547", "0.46574923", "0.46562406", "0.46536076", "0.46392643", "0.4628221", "0.4621858", "0.46203038", "0.4612572", "0.46112624", "0.4600306", "0.45957184", "0.45884272", "0.45770156", "0.4575056", "0.45579147", "0.45576927", "0.45573372", "0.45557192", "0.4542493", "0.45399368", "0.45357463", "0.45303574", "0.45286962", "0.45265484", "0.45240164", "0.45219833", "0.45195487", "0.45191905", "0.45180368", "0.451803", "0.45166472", "0.45159253", "0.45141667", "0.45096073", "0.450923", "0.45041218", "0.44984385", "0.44983226", "0.4494434", "0.44899142", "0.44870183", "0.44847164", "0.44844744", "0.448119", "0.44787273", "0.4477149", "0.4469749", "0.4467169" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract java.lang.String getTica_id();", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public String getToStation();", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "public int getStation_ID() {\n\t\treturn station_ID;\n\t}", "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}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "TTC getSTART_STATION() {\n return START_STATION;\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.59109074", "0.5878743", "0.5614784", "0.53707135", "0.5274438", "0.5248382", "0.5248085", "0.5242144", "0.51573026", "0.5139427", "0.51159614", "0.50873387", "0.50810254", "0.5066746", "0.50568897", "0.5009373", "0.49561456", "0.49471977", "0.49246684", "0.49194127", "0.49168873", "0.4893348", "0.48653972", "0.48649335", "0.48635527", "0.4854156", "0.48385832", "0.48215306", "0.48043346", "0.47886643", "0.47871307", "0.47841963", "0.4775387", "0.4772153", "0.47634012", "0.47465953", "0.47366494", "0.47270155", "0.47261813", "0.4724125", "0.47236133", "0.47198057", "0.47197288", "0.47180328", "0.47119302", "0.47066265", "0.47019297", "0.4691938", "0.46705255", "0.46694311", "0.4665672", "0.4659229", "0.46584877", "0.4658438", "0.46563965", "0.46547505", "0.46403557", "0.46286407", "0.46220952", "0.46198988", "0.46140248", "0.46115735", "0.46013162", "0.45964605", "0.45890507", "0.4578233", "0.4574129", "0.45596778", "0.45578897", "0.4557505", "0.45557266", "0.454274", "0.45419607", "0.45378107", "0.4531602", "0.45288762", "0.45266974", "0.45248988", "0.45238906", "0.45194757", "0.45190093", "0.4518547", "0.45182797", "0.45163578", "0.45146912", "0.45137393", "0.45094568", "0.45080116", "0.45043203", "0.45001742", "0.44992256", "0.4494297", "0.448938", "0.44876096", "0.4485523", "0.44855177", "0.4481384", "0.44787633", "0.4477567", "0.44701314", "0.4466932" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dwi_ct_station_tpa_d
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IStationCodeTable getStationCodeTable();", "public void setStationCodeTable(IStationCodeTable stationCodeTable);", "public String getStationTableName() {\n return stationTableName;\n }", "public void setStationTableName(String value) {\n stationTableName = value;\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public abstract Map<Integer, Station> getStations() throws DataAccessException;", "public ArrayList<Station> queryAreaStations(int areaId) throws SQLException {\n\t\tArrayList<Station> stations = new ArrayList<Station>();\n\t\t\n\t\t// query string for all stations of an area\n\t\tString strStatement = \"select stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA + \" as area, \" +\n\t\t\t\" (\tselect distinct stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + \n\t\t\t\" (\tselect stations.\" + COLUMN_ID + \", stations.\" + COLUMN_NAME +\n\t\t\t\", stations.\" + COLUMN_ABBREAVIATION + \", stations.\" + COLUMN_LATITUDE +\n\t\t\t\" , stations.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE + \" as route, \" + \n\t\t\t\" (\tselect distinct station.\" + COLUMN_ID + \", station.\" + COLUMN_NAME +\n\t\t\t\", station.\" + COLUMN_ABBREAVIATION + \", station.\" + COLUMN_LATITUDE +\n\t\t\t\" , station.\" + COLUMN_LONGITUDE + \" from \" + mDbName + \".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs, \" +\n\t\t\tmDbName + \".\" + TABLE_STATION + \" as station ) as stations \" +\n\t\t\t\") as stations ) as stations where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Station instance and store the related information \n\t\t// of the station and add each to the stations list\n\t\twhile (mResultSet.next()) {\n\t\t\tStation station = new Station();\n\t\t\tstation.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\tstation.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\tstation.setAbbreviation(mResultSet.getString(COLUMN_ABBREAVIATION));\n\t\t\tstation.setGeoPoint(mResultSet.getInt(COLUMN_LATITUDE), mResultSet.getInt(COLUMN_LONGITUDE));\n\t\t\t\n\t\t\tstations.add(station);\n\t\t}\n\n\t\tLOGGER.info(\"Read \" + stations.size() + \" stations from DB\");\n\t\treturn stations;\n\t}", "public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;", "@Mapper\npublic interface SRDaLeiDAO {\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \")\n List<SRDaLei> querySRDaLeiListByInstitution(@Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND id = #{id} \\n\")\n SRDaLei querySRDaLeiById(@Param(\"id\") int id, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name = #{name} \\n\")\n SRDaLei querySRDaLeiByName(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Select(\"SELECT `px_sr_dalei`.`id`,\\n\" +\n \" `px_sr_dalei`.`institution_code`,\\n\" +\n \" `px_sr_dalei`.`name`,\\n\" +\n \" `px_sr_dalei`.`createDate`,\\n\" +\n \" `px_sr_dalei`.`updateDate`\\n\" +\n \" FROM `px_sr_dalei` \\n\" +\n \" WHERE institution_code = #{institution_code} \\n\" +\n \" AND name like CONCAT('%',#{name},'%') \\n\")\n List<SRDaLei> querySRDaLeiListByNameWithLike(@Param(\"name\") String name, @Param(\"institution_code\") String institution_code);\n\n @Insert(\" INSERT INTO `px_sr_dalei`\\n\" +\n \"( \\n\" +\n \"`institution_code`,\\n\" +\n \"`name`,\\n\" +\n \"`createDate`,\\n\" +\n \"`updateDate`)\\n\" +\n \"VALUES\\n\" +\n \"( \\n\" +\n \"#{institution_code},\\n\" +\n \"#{name},\\n\" +\n \"now(),\\n\" +\n \"now());\\n\"\n )\n public int insertSRDaLei(SRDaLei srDaLei);\n\n @Update(\" UPDATE `px_sr_dalei`\\n\" +\n \"SET\\n\" +\n \"`name` = #{name},\\n\" +\n \"`updateDate` = now()\\n\" +\n \" WHERE id=#{id} and institution_code=#{institution_code} ;\\n \" )\n public int updateSRDaLei(SRDaLei srDaLei);\n\n @Delete(\" DELETE FROM `px_sr_dalei`\\n\" +\n \" WHERE id=#{id} and name=#{name} and institution_code=#{institution_code} ; \")\n public int deleteSRDaLei(SRDaLei srDaLei);\n}", "public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Override\n\tpublic List<Map<String, Object>> GetEndStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetEndStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }", "public interface DataErrorNumberMapper {\n\n @Select(\"<script> SELECT \" +\n \" count( * ) AS number,d.broken_according_id,d.broken_according FROM \" +\n \" (\" +\n \" SELECT \" +\n \" c.broken_according,c.broken_according_id,a.station_code \" +\n \" FROM \" +\n \" report_manage_data_mantain a \" +\n \" RIGHT JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" RIGHT JOIN config_abnormal_dictionary c ON c.broken_according_id = a.broken_according_id \" +\n \" WHERE \" +\n \"1 = 1 \" +\n \" and b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test=\\\"stationId!=null and stationId != ''\\\">AND a.station_code = #{stationId} </if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" ) d \" +\n \" WHERE \" +\n \" d.station_code IS NOT NULL \" +\n \" GROUP BY \" +\n \" d.broken_according_id </script>\")\n List<DataError> getList(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n //本月的异常易发时间查询\n @Select(\"<script>SELECT * FROM `report_manage_data_mantain` a \" +\n \" left JOIN config_river_station b ON a.station_code = b.station_id \" +\n \" WHERE 1=1\" +\n \" AND b.sys_org in ( SELECT id FROM sys_org so WHERE id = #{orgId} OR FIND_IN_SET( #{orgId}, path ) ) \" +\n \" <if test = \\'stationId != null \\'>and a.station_code = #{stationId}</if> \" +\n \" <if test=\\\"year!=null\\\"> AND SUBSTR( a.create_time, 1, 4 ) = #{year} </if> \" +\n \" <if test=\\\"list!=null\\\">AND SUBSTR( a.create_time, 6, 2 ) IN (<foreach collection=\\\"list\\\" item=\\\"item\\\" separator=\\\",\\\">#{item}</foreach>)</if> \" +\n \" <if test=\\\"dataTime!=null\\\">AND SUBSTR( a.create_time, 1, 10 ) = #{dataTime} </if>\" +\n \" GROUP BY SUBSTR(a.create_time,12,8) </script>\")\n List<ReportManageDataMantain> getGroupByTime(@Param(\"stationId\") Integer stationId,\n @Param(\"year\")Integer year,\n @Param(\"list\") List<String> list,\n @Param(\"dataTime\")String dataTime,\n @Param(\"orgId\")Integer orgId);\n\n\n}", "public DwiCtStationTpaDExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tpublic List<Map<String, Object>> GetStartStationName() {\n\t\tList<Map<String, Object>> reList=new ArrayList<>();\n\t\tConnectionSQL();\n\t\ttry {\n\t\t\treList=mapper.GetStartStationName();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn reList;\n\t}", "@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}", "public void saveTTData(UniversityTimeTable param0);", "public interface IStationDA extends IGenericDA<StationEntity, Long> {\n\n public List<StationEntity> getStationsByUsername( UserEntity userEntity );\n\n public StationEntity getStationByName( StationEntity stationEntity );\n\n public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity );\n\n\n}", "public static void save(Airport a) throws DBException {\r\n Connection con = null;\r\n try {\r\n con = DBConnector.getConnection();\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\r\n \r\n String sql = \"SELECT airportcode \"\r\n + \"FROM airport \"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n ResultSet srs = stmt.executeQuery(sql);\r\n \r\n // UPDATE\r\n \r\n if (srs.next()) {\r\n //Getters moeten worden aangemaakt bij logic?\r\n\tsql = \"UPDATE airport \"\r\n + \"SET airportname = '\" + a.getAirportname() + \"'\"\r\n + \", timezone = '\" + a.getTimezone() + \"'\"\r\n + \"WHERE number = \" + a.getAirportCode();\r\n stmt.executeUpdate(sql);\r\n } \r\n \r\n // INSERT\r\n \r\n else {\r\n\tsql = \"INSERT into airport \"\r\n + \"(airportcode, airportname, timezone) \"\r\n\t\t+ \"VALUES (\" + a.getAirportCode()\r\n\t\t+ \", '\" + a.getAirportname() + \"'\"\r\n\t\t+ \", '\" + a.getTimezone() + \"')\";\r\n stmt.executeUpdate(sql);\r\n }\r\n \r\n DBConnector.closeConnection(con);\r\n } \r\n \r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n DBConnector.closeConnection(con);\r\n throw new DBException(ex);\r\n }\r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();", "public interface KualitasAirDao extends GenericDao<KualitasAir, Long> {\n}", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public abstract java.lang.String getTica_id();", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public abstract Station getStationFromParams(Map<String, Object> params) throws DataAccessException;", "public Object getStationId() {\n\t\treturn null;\n\t}", "public Map<Integer, Date> getTrainsByStation(Station station1) throws NotFoundInDatabaseException {\n Station station = stationService.getStationByName(station1.getName());\n List<Schedule> scheduleList = scheduleService.getScheduleByStationId(station.getId());\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Schedule schedule: scheduleList) {\n trainMap.put(getTrainById(schedule.getTrainId()).getNumber(), schedule.getDepartureDate());\n }\n return trainMap;\n }", "@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);", "public void fixTdTlvAwd() throws ParserException{\r\n //initialiseer de appConf class nodig voor de resources , constants\r\n new TaalunieInitialization().init();\r\n\r\n // als start en stop id gespecifieerd zijn, voeg toe aan query\r\n if(startID != -1 && (stopID != -1)){\r\n getAllTdTlvAwdRows += \" WHERE tlv_id >= \" + startID + \"and tlv_id <= \" + stopID ;\r\n }\r\n getAllTdTlvAwdRows += \" ORDER BY tlv_id \";\r\n\r\n AppLogger.getInstance().info(\"select query: \" + getAllTdTlvAwdRows);\r\n\t\tIDbConnection dbconnection = MyDbConnection.getInstance();\r\n\t\tConnection con = dbconnection.getConnection();\r\n\t\tPreparedStatement pst = null;\r\n\t\tPreparedStatement updatePst = null;\r\n\t\tResultSet set = null;\r\n\t\tint counter = 0;\r\n\t\ttry {\r\n\t\t\tif (con !=null) {\r\n\t\t\t\tpst = con.prepareStatement(getAllTdTlvAwdRows);\r\n\t\t\t\tupdatePst = con.prepareStatement(updateTdTlvAwdRows);\r\n\r\n\t\t\t\tset = pst.executeQuery();\r\n\t\t\t\twhile(set.next()){\r\n\t\t\t\t counter++;\r\n\t\t\t\t int tlvId = set.getInt(\"id\");\r\n\t\t\t\t boolean tlvIdisNull = set.wasNull();\r\n\r\n\t\t\t\t fixValue(\"vraag\", \"vraagHTML\", 1, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"informatie\", \"informatieHTML\", 2, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"antwoord\", \"antwoordHTML\", 3, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"toelichting\", \"toelichtingHTML\", 4, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"bijzonderheid\", \"bijzonderheidHTML\", 5, updatePst, set, tlvId);\r\n\t\t\t\t fixValue(\"titel\", \"titelHTML\", 6, updatePst, set, tlvId);\r\n\r\n\t\t \t\tString herDb = replaceNull(set.getString(\"herformulering\"));\r\n\t\t \t\tString herDbHTML = replaceNull(set.getString(\"herformuleringHTML\"));\r\n\t\t \t\tString herDbStripped = stripHtml(herDbHTML);\r\n\t\t \t\tAppLogger.getInstance().debug(herDb + \" + \" + herDbHTML + \" = \" + herDbStripped);\r\n\t\t \t\tif(StringUtils.trim(herDb).length() != 0 && StringUtils.trim(herDbStripped).length() == 0){\r\n\t\t \t\t\tAppLogger.getInstance().error(herDb + \" not fixed (id=\" + tlvId + \")\");\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t} else{\r\n\t\t \t\t\tupdatePst.setString(7, herDbStripped);\r\n\t\t \t\t}\r\n\r\n\t\t\t\t //System.out.println(\"id= \" +tlvId);\r\n\t\t\t\t if(tlvIdisNull){\r\n\t\t\t\t updatePst.setNull(8, Types.INTEGER);\r\n\t\t\t\t System.out.println(\"wasnull\");\r\n\t\t\t\t } else {\r\n\t\t\t\t updatePst.setInt(8, tlvId);\r\n\t\t\t\t }\r\n\r\n\t\t \t\tupdatePst.addBatch();\r\n\t\t\t\t //updatePst.executeUpdate();\r\n\t\t\t\t if(counter == 100){\r\n\t\t\t\t counter = 0;\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t//execute last batch\r\n\t\t\t\tif(counter > 0){\r\n\t\t\t\t int[] is = updatePst.executeBatch();\r\n//\t\t\t\t for (int i = 0; i < is.length; i++) {\r\n//\t\t\t\t\t\tSystem.out.println(\"***\" + is[i]);\r\n//\t\t\t\t\t}\r\n\t\t\t\t AppLogger.getInstance().error(\"updated \" + is.length + \" rows ...\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAppLogger.getInstance().info(\"Geen connectie !\");\r\n\t\t\t}\r\n\t\t} catch (java.sql.SQLException e) {\r\n\t\t AppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t\t+ e.getSQLState()\r\n\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t\t+ e.getErrorCode()\r\n\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\te.printStackTrace(System.err);\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (con != null) {\r\n\t\t\t\t\tif (pst != null) {pst.close();}\r\n\t\t\t\t\tif (set != null) {set.close();}\r\n\t\t\t\t\tif (updatePst != null) {updatePst.close();}\r\n\t\t\t\t\tdbconnection.releaseConnection(con);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (java.sql.SQLException sqle) {\r\n\t\t\t\tsqle.printStackTrace(System.err);\r\n\t\t\t\tAppLogger.getInstance().fatal(\"\\n\\n------\\nsql state: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getSQLState()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\nerror code: \"\r\n\t\t\t\t \t\t\t\t\t\t\t+ sqle.getErrorCode()\r\n\t\t\t\t \t\t\t\t\t\t\t+ \"\\n-----\\n\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "public String getToStation();", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public void setFromStation(String fromStation);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "@Component\n@Mapper\npublic interface LearnCurrentMapper {\n\n /**\n * 查询用户在这个科目下,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n long findLearnCurrentMcodeBySubjectid(long userid, String subjectid);\n\n /**\n * 查询用户在这个科目下的当前对象,\n * @param userid\n * @param subjectid\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} \" )\n LearnCurrent findLearnCurrentObjBySubjectid(@Param(\"userid\") long userid,@Param(\"subjectid\") String subjectid);\n\n\n\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的题目编号,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select mcode from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname} \" )\n long findLearnCurrentMcodeByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n /**\n * 查询用户在这个类型模拟年份下的当前学习的 当前对象,\n * @param userid\n * @param moniname\n * @return\n */\n @Select(value = \"select * from tb_learncurrent where userid = #{userid} and subjectid = #{subjectid} and moniname = #{moniname}\" )\n LearnCurrent findLearnCurrentObjByMoniname(@Param(\"userid\") long userid, @Param(\"subjectid\") String subjectid,@Param(\"moniname\") String moniname);\n\n\n /**\n * 创建对象\n * @param learnCurrent\n */\n @Insert(\"insert into tb_learncurrent( userid , subjectid , mcode , createtime , moniname ) values ( #{userid} , #{subjectid} , #{mcode} , #{createtime} , #{moniname} )\")\n void save(LearnCurrent learnCurrent);\n\n\n @Update(\"update tb_learncurrent set pkid = #{pkid} , userid = #{userid} , subjectid = #{subjectid} , mcode = #{mcode} , createtime = #{createtime} , moniname = #{moniname} where pkid= #{pkid}\")\n void update(LearnCurrent learnCurrent);\n\n @Select(\"select * from tb_learncurrent where pkid = #{pkid}\")\n LearnCurrent find(@Param(\"pkid\") long pkid);\n\n\n}", "public String gasStationSchedule(int gasStationId){\r\n GasStation g = new GasStation(gasStationId);\r\n g.pull();\r\n\r\n try {\r\n return DatabaseSupport.gasStationScheduleString(g.getGasStationID());\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\tpublic void saveTimeTable(TimeTableBean ttb) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\t Transaction tx =session.beginTransaction();\r\n\t\t if(ttb!=null) {\r\n\t\t\t try {\r\n\t\t\t\t session.save(ttb);\r\n\t\t\t\t tx.commit();\r\n\t\t\t\t session.close();\r\n\t\t\t }catch(Exception e) {\r\n\t\t\t\t tx.rollback();\r\n\t\t\t\t session.close();\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n\r\n\t}", "@Override\n\tpublic List<TenantBean> getTenants(int aptId) {\n\t\tString query = \"Select * from Tenant where apartmentId=?\";\n\t\t List<TenantBean> tenants=getTenantDetails(query, aptId);\n\t\treturn tenants;\n\t}", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();", "@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "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 int getStation_ID() {\n\t\treturn station_ID;\n\t}", "TTC getSTART_STATION() {\n return START_STATION;\n }", "public synchronized String getUpdateTable() throws SQLException {\n\t\tConnection con = null;\n\t\t\n\t\ttry{\n\t\tcon=this.datasource.getConnection();\n\t\tStatement statement=con.createStatement();\n\t\tPreparedStatement pstate=con.prepareStatement(\"SELECT * FROM sitzplatz WHERE id=?\");\n\t\tResultSet resSet=null;\n\t\t\n\t\ttry {\n\t\t\tString updatedTable = \"\";\n\t\t\tint showIndex = 1;\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\n\t\t\tdo {\n\t\t\t\tupdatedTable += \"<tr>\";\n\t\t\t\tdo {\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"frei\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + freeSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"reserviert\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + reservationSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (x < (int) Math.sqrt(allSeats)) {\n\t\t\t\t\t\tpstate.setInt(1, showIndex);\n\t\t\t\t\t\tresSet=pstate.executeQuery();\n\t\t\t\t\t\tresSet.first();\n\t\t\t\t\t\tString status=resSet.getString(3);\n\t\t\t\t\t\tif (status.equals(\"verkauft\")) {\n\t\t\t\t\t\t\tupdatedTable += \"<th \" + soldSeatsCSS + \">\"\n\t\t\t\t\t\t\t\t\t+ showIndex + \"</th>\";\n\t\t\t\t\t\t\tshowIndex++;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} while (x < (int) Math.sqrt(allSeats));\n\t\t\t\tx = 0;\n\t\t\t\tupdatedTable += \"</tr>\";\n\t\t\t\ty++;\n\t\t\t} while (y < (int) Math.sqrt(allSeats));\n\t\t\tcon.close();\n\t\t\treturn updatedTable;\n\t\t} catch (KartenverkaufException e) {\n\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\"Upps da ist uns ein Fehler beim erstellen der Tabelle passiert!\");\n\t\t}\n\t\t}finally{\n\t\t\ttry{\n\t\t\tcon.close();\n\t\t\t}catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Schwerwiegender Datenbankfehler! Versuchen Sie es Später noch einmal!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public String getFromStation();", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@DynamoDBTypeConverted(converter = TimeSlotConverter.class)\n @DynamoDBAttribute(attributeName = \"tuesday\")\n public final TimeSlot getTuesday() {\n return tuesday;\n }", "@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}", "@Dao\npublic interface schedule_Dao {\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId\")\n List<Schedule> getSchedulesStudent(String studentId);\n\n\n\n @Query(\"SELECT COUNT(pkey) FROM Schedule where student_id = :student_id\")\n int getScheduleCount(String student_id);\n\n\n\n @Query(\"SELECT * FROM Schedule where student_id = :studentId and active = :active or active = :Active\")\n List<Schedule> getActiveSchedules(String active,String Active, String studentId);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime_null` >= :date and `starttime_null` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEvents(String active,String Active, String studentId, String date);\n\n\n @Query(\"SELECT * FROM Schedule where `endtime` >= :date and `starttime` <= :date and student_id = :studentId and active = :active or active = :Active \")\n List<Schedule> getSelEventTime(String active,String Active, String studentId, String date);\n\n\n @Insert\n void insertAll(Schedule... schedules);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n void insertOnConflict(Schedule... schedules);\n\n @Query(\"DELETE FROM Schedule\")\n public abstract int DeleteToken();\n\n @Query(\"DELETE FROM Schedule where pkey = :p_key and student_id = :studentId\")\n public abstract int DeleteSchedule(String p_key,String studentId );\n\n\n @Query(\"DELETE FROM Schedule where student_id= :studentId\")\n public abstract int DeleteScheduleAllUser(String studentId);\n\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "@Override\n\tpublic int addStation(Station stationDTO) {\n\t\tcom.svecw.obtr.domain.Station stationDomain = new com.svecw.obtr.domain.Station();\n\t\tstationDomain.setStationName(stationDTO.getStationName());\n\t\tstationDomain.setCityId(stationDTO.getCityId());\n\t\treturn iStationDAO.addStation(stationDomain);\n\t}", "public interface HomePageMapper {\n @Select(\"select * from data_check where username=#{username} AND create_at>#{starttime} AND create_at<#{endtime};\")\n public List<HomePageDomain> selectHomePage(@Param(\"username\") String username, @Param(\"starttime\") String time, @Param(\"endtime\") String endtime);\n}", "public interface TenderDataAppealDAO extends DataTablesRepository<TenderAppeal, Integer> {\n}", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "java.lang.String getTransitAirport();", "public String getTableDbName() { return \"t_trxtypes\"; }", "public List<Triplet> selectAll(boolean isSystem) throws DAOException;", "public interface TenureCustomerMapper {\n /**\n * 按天查询总条数\n * @return\n */\n int selectDayCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按月查询总条数\n * @return\n */\n int selectMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按年查询总条数\n * @return\n */\n int selectYearCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 按周查询总条数\n * @return\n */\n int selectWeekCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n /**\n * 按月筛选\n * @param accountId\n * @param childId\n * @param perfect\n * @param month\n * @return\n */\n int selectByMonthCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"perfect\")int perfect,@Param(\"month\")String month);\n /**\n * 查询已完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectYesCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectYesCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n /**\n * 查询待完善客户总数\n * @param accountId\n * @param childId\n * @return\n */\n int selectNoCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"times\")int times);\n\n int selectNoCountByMonth(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"month\")String month);\n\n int selectBySaledCount(@Param(\"accountId\") int accountId, @Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n\n List<CustomerTenure> selectBySaledMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"otherId\")int otherId);\n /**\n * 查询list\n * @param p1\n * @param p2\n * @param times\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectTenureMsg(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"times\")int times,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n\n List<CustomerTenure> selectTenureMsgByMonth(@Param(\"p1\")int p1, @Param(\"p2\")int p2,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"perfect\")int perfect);\n /**\n * 根据id查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureAll(@Param(\"tid\")int tid);\n\n /**\n * 根据id查询car表\n * @param tcid\n * @return\n */\n CustomerCar selectCarAll(@Param(\"tcid\") int tcid);\n\n /**\n * 根据关键字查询总数\n */\n int selectBySearch(@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n int selectByNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n int selectByNotNull(@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n\n /**\n * 根据关键字查询list\n * @param p1\n * @param p2\n * @param selects\n * @param accountId\n * @param childId\n * @return\n */\n List<CustomerTenure> selectSearchList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"selects\")String selects,@Param(\"month\")String month,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n List<CustomerTenure> selectNotNullList(@Param(\"p1\")int p1,@Param(\"p2\") int p2,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId,@Param(\"times\")int time,@Param(\"month\")String month);\n /**\n * 根据tid删除tenure表\n * @param tid\n * @return\n */\n int deleteByTid(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid删除tenurecar表\n * @param tcid\n * @return\n */\n int deleteByTcid(@Param(\"tcid\")int tcid);\n\n /**\n * 根据tid查询tenure表\n * @param tid\n * @return\n */\n CustomerTenure selectTenureById(@Param(\"tid\")int tid);\n\n /**\n * 根据tcid查询tenurecar表\n * @param tcid\n * @return\n */\n CustomerCar selectTenureCarById(@Param(\"tcid\")int tcid);\n\n /**\n * 添加CustomerTenure\n * @param customerTenure\n * @return\n */\n int insertTenure(CustomerTenure customerTenure);\n\n /**\n * 添加CustomerCar\n * @param customerCar\n * @return\n */\n int insertTenureCar(CustomerCar customerCar);\n\n int insertWelfare(Welfare welfare);\n\n int updateWelfare(Welfare welfare);\n\n Welfare selectCarWelfareByMobile(@Param(\"mobile\")String mobile);\n\n int updateTenureMsg(CustomerTenure customerTenure);\n\n List<TenureTask> selectTenureThree();\n\n CustomerTenure selectNewMsgBycustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n List<CustomerTenure> selectCarListByCustPhone(@Param(\"custPhone\")String custPhone,@Param(\"accountId\")int accountId,@Param(\"childId\")int childId);\n\n CustomerTenure selectCustMsgByCarId(int tenurecarId);\n\n int updateOldByNew(CustomerCar customerCar);\n\n int updateNewCarIsDelete(@Param(\"id\") int id);\n\n int selectByProductId(@Param(\"id\")Integer id);\n\n int selectNum(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")int type);\n\n Page<CustomerTenure> selectListNew(@Param(\"accountId\")int accountId, @Param(\"childId\")int childId, @Param(\"type\")String type, @Param(\"selects\")String selects, @Param(\"compeleteStatus\")String compeleteStatus, @Param(\"dateStatus\")String dateStatus, @Param(\"buyStatus\")String buyStatus);\n\n List<TenureCarFollow> selectFollowMessage(@Param(\"tcid\")int tcid);\n\n int saveFollowMessage(TenureCarFollow tenureCarFollow);\n\n int updateStatusByType(@Param(\"tenurecarId\")Integer tenurecarId, @Param(\"followType\")Integer followType);\n\n int selectByTenurecarId(@Param(\"tcid\")Integer tcid);\n}", "@Dao\npublic interface TripGearDao {\n @Query(\"SELECT * FROM tripgear\")\n List<TripGear> getAll();\n\n\n @Query(\"SELECT * FROM tripgear WHERE tripId = :id\")\n List<TripGear> getAllByTripId(int id);\n\n @Query(\"SELECT tripgear.* FROM tripgear LEFT JOIN catch ON catch.gearId == tripgear.id WHERE tripId = :id AND catch.gearId == tripgear.id\")\n List<TripGear> getAllByCatchedTripId(int id);\n\n\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId\")\n List<ShowTripGearModel> getAll_(int tripId);\n\n @Query(\"SELECT tripgear.id AS 'lineId', tripgear.tripId AS 'tripId', tripgear.number AS 'number', word.id AS 'gearWordId', word.si_name AS 'gearWordSi', word.en_name AS 'gearWordEn', word.tm_name AS 'gearWordTa' FROM tripgear LEFT JOIN word ON word.id = tripgear.gearType WHERE tripgear.tripId = :tripId AND tripgear.number <> '' \")\n List<ShowTripGearModel> getSetDataAll_(int tripId);\n\n @Query(\"SELECT * FROM tripgear WHERE id IN (:id)\")\n List<TripGear> loadAllByIds(int id);\n\n @Insert\n void insert(TripGear tripGear);\n\n @Query(\"DELETE FROM tripgear\")\n void deleteAll();\n\n @Delete\n void delete(TripGear tripGear);\n\n @Query(\"UPDATE tripgear SET number = :number , startDate = :startDate , startGpsLat = :startGpsLat, startGpsLon = :startGpsLon, endGpsLat = :endGpsLat,endGpsLon = :endGpsLon, endDate = :endDate WHERE id = :lineId\")\n void updateSetData(int lineId, String number, String startDate, String startGpsLat, String startGpsLon, String endGpsLat , String endGpsLon, String endDate);\n}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "public ResultSet retreiveTutorApplicationTable(String tutor_id) {\n\t\t// TODO Auto-generated method stub\n\t\tString sqlString = \"select TA_STUDENT_ID, STUDENT_NAME,ACADEMIC_STANDING, Status \" + \n\t\t\t\t\"from tutor_applications, student \" + \n\t\t\t\t\"where student.student_id=tutor_applications.ta_student_id and ta_student_id =\"+tutor_id;\n\t\t\n\t\ttry {\n\t\t\trs = dbCon.executeStatement(sqlString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public void storeRegularDayTripStationScheduleWithRS();", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "@Override\n\tpublic Object doService() throws Exception {\n\t\t\n\t\tString sql;\n\t\n\t\tList<Map<String,Object>> list=new ArrayList<Map<String,Object>>();\n\t\t\n\t\t\n\t\t\n\t\t//全路网\n\t\t\t String [] selType=JsonTagContext.getRequest().getParameterValues(\"selType[]\");\n\t\t\tString tp_sql=\"0\";\n\t\t\tif(selType!=null){\n\t\t\t\tfor(String tp:selType){\n\t\t\t\t\tif(\"1\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+enter_times\";\n\t\t\t\t\t}else if(\"2\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+exit_times\";\n\t\t\t\t\t}else if(\"3\".equals(tp)){\n\t\t\t\t\t\ttp_sql+=\"+change_times\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql =\"SELECT T.*, ROWNUM RN FROM (\"\n\t\t\t\t\t+\"select b.district_code,sum(in_pass_num) in_pass_num from\"\n\t\t\t\t\t +\"(select station_id,round(sum(\"+tp_sql+\")/1000000,2) in_pass_num from TBL_METRO_FLUXNEW_\" +date+\" GROUP BY station_id) a,\"\n\t\t\t\t\t+\"(select * from tbl_metro_station_info_area WHERE STATION_VER in (select max(STATION_VER) from tbl_metro_station_info_area)) b\"\n\t\t\t\t\t +\" where a.STATION_ID=b.station_id\"\n\t\t\t\t\t +\" GROUP BY b.district_code order by in_pass_num desc\"\n\t\t\t\t+ \") T where ROWNUM <= ?\" ;\n\t\t\t//jsonTagJdbcDao.getJdbcTemplate().setMaxRows(this.getSize());\n\t\t\tlist = jsonTagJdbcDao.getJdbcTemplate().queryForList(sql,this.getSize());\n\t\t\t\n\t\t\n\t\t\t\n\t\t \n\t\t \n\t\treturn list;\n\t\t\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "private AlarmDeviceZoneTable() {}", "public void toSATHelper2(Sat satModel) throws IOException {\n ASTNode tab=getChildConst(1);\n \n int varcount = getChild(0).numChildren()-1;\n \n ArrayList<ASTNode> tups=tab.getChildren();\n \n ArrayList<ASTNode> vardoms=new ArrayList<ASTNode>();\n for(int i=1; i<=varcount; i++) {\n ASTNode var=getChild(0).getChild(i);\n if(var instanceof Identifier) {\n vardoms.add(((Identifier)var).getDomain());\n }\n else if(var.isConstant()) {\n vardoms.add(new IntegerDomain(new Range(var,var)));\n }\n else if(var instanceof SATLiteral) {\n vardoms.add(new BooleanDomainFull());\n }\n else {\n assert false : \"Unknown type contained in tableshort constraint:\"+var;\n }\n }\n \n ArrayList<Long> tupleSatVars = new ArrayList<Long>(tups.size());\n \n // Make a SAT variable for each tuple. \n for(int i=1; i < tups.size(); i++) {\n // Filter out tuples that are not valid.\n boolean valid=true;\n ASTNode t = tups.get(i);\n int length = t.numChildren();\n for(int j = 1; j < length; ++j) {\n long var = t.getChild(j).getChild(1).getValue()-1;\n long val = t.getChild(j).getChild(2).getValue();\n if(!vardoms.get((int)var).containsValue(val)) {\n valid = false;\n break;\n }\n }\n \n if(!valid) {\n tups.set(i, tups.get(tups.size()-1));\n tups.remove(tups.size()-1);\n i--;\n continue;\n }\n \n // Make a new sat variable for the tuple\n long newSatVar=satModel.createAuxSATVariable();\n tupleSatVars.add(newSatVar);\n \n // If command line flag, generate an iff to define the new sat variable.\n if(CmdFlags.short_tab_sat_extra) {\n ArrayList<Long> c=new ArrayList<Long>(tups.get(i).numChildren()-1);\n \n // Get the literals for this tuple into c. \n for(int j=1; j<t.numChildren(); j++) {\n ASTNode pair=t.getChild(j);\n // System.out.print(pair);\n c.add(-getChild(0).getChild((int) pair.getChild(1).getValue()).directEncode(satModel, pair.getChild(2).getValue()));\n }\n \n satModel.addClauseReified(c, -newSatVar);\n }\n \n }\n \n // Store for each variable, a list of its domain values\n ArrayList<ArrayList<Long>> vallist = new ArrayList<ArrayList<Long>>(varcount);\n // Store, for each variable, the tuples which implictly support it\n ArrayList<ArrayList<Long>> impclauselist = new ArrayList<ArrayList<Long>>(varcount); \n // Store, for each literal, the tuples which explictly support it\n ArrayList<ArrayList<ArrayList<Long>>> expclauselist = new ArrayList<ArrayList<ArrayList<Long>>>(varcount);\n \n for(int var=1; var<=varcount; var++) {\n ASTNode varast=getChild(0).getChild(var);\n \n vallist.add(vardoms.get(var-1).getValueSet());\n impclauselist.add(new ArrayList<Long>());\n expclauselist.add(new ArrayList<ArrayList<Long>>(vallist.get(var-1).size()));\n for(int j = 0; j < vallist.get(var-1).size(); ++j)\n {\n expclauselist.get(var-1).add(new ArrayList<Long>());\n }\n }\n \n for(int tup=1; tup < tups.size(); tup++) {\n ASTNode t = tups.get(tup);\n int length = t.numChildren();\n // Track used variables\n ArrayList<Boolean> used_vars = new ArrayList<Boolean>(Collections.nCopies(varcount, false));\n for(int j = 1; j < length; ++j) {\n int var = (int)(t.getChild(j).getChild(1).getValue() - 1);\n long val = t.getChild(j).getChild(2).getValue();\n assert used_vars.get(var) == false;\n used_vars.set(var, true);\n int loc = Collections.binarySearch(vallist.get(var), val);\n assert vallist.get(var).get(loc) == val;\n expclauselist.get(var).get(loc).add(tupleSatVars.get(tup-1));\n }\n \n for(int j = 0; j < varcount; ++j)\n {\n if(used_vars.get(j) == false) {\n impclauselist.get(j).add(tupleSatVars.get(tup-1));\n }\n }\n }\n \n // Now generate and post clauses\n for(int i = 0; i < varcount; ++i)\n {\n ASTNode varast=getChild(0).getChild(i+1);\n for(int val = 0; val < vallist.get(i).size(); ++val)\n {\n // firstly, for all explicit clauses, ~lit -> ~clause ( lit \\/ ~clause )\n if(!CmdFlags.short_tab_sat_extra) {\n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n long lit = varast.directEncode(satModel, vallist.get(i).get(val));\n \n satModel.addClause(lit, -expclauselist.get(i).get(val).get(clause));\n }\n }\n \n // Secondly, for all implicit + explicit clauses for lit,\n // ~(/\\clauses) -> ~lit ( ~lit \\/ expclause1 \\/ ... \\/ expclausen \\/ impclause1 \\/ ... impclausen)\n ArrayList<Long> buf=new ArrayList<Long>(1+expclauselist.get(i).get(val).size()+impclauselist.get(i).size());\n \n buf.add(-varast.directEncode(satModel, vallist.get(i).get(val)));\n \n for(int clause = 0; clause < expclauselist.get(i).get(val).size(); ++clause)\n {\n buf.add(expclauselist.get(i).get(val).get(clause));\n }\n for(int clause = 0; clause < impclauselist.get(i).size(); ++clause)\n {\n buf.add(impclauselist.get(i).get(clause));\n }\n satModel.addClause(buf);\n }\n }\n \n satModel.addClause(tupleSatVars); // One of the tuples must be assigned -- redundant but probably won't hurt.\n }", "@Mapper\npublic interface EquipmentDao {\n\n @Select(\"SELECT * FROM `equipment` WHERE `id` = #{id}\")\n Equipment getEquipmentById(int id);\n\n @Select(\"SELECT `equipment`.`id`, `equipment`.`name` \" +\n \"FROM `equipment`, `step_equipment` \" +\n \"WHERE `equipment`.`id` = `step_equipment`.`equipment_id`\" +\n \"AND `step_equipment`.`step_id` = #{stepId}\")\n List<Equipment> listEquipmentsByStepId(int stepId);\n\n @Insert(\"INSERT INTO `equipment`(`id`, `name`) VALUES(#{id}, #{name})\")\n void insertEquipment(Equipment equipment);\n\n}", "org.landxml.schema.landXML11.Station xgetStation();", "public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}", "@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"WORK_SEQ\", property=\"workSeq\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHANGE_NO\", property=\"changeNo\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SITE_NM\", property=\"siteNm\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DATA_TYPE\", property=\"dataType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_TYPE\", property=\"reopenType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REOPEN_DATE\", property=\"reopenDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SET_TYPE\", property=\"setType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_START_TIME\", property=\"operStartTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OPER_END_TIME\", property=\"operEndTime\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_YN\", property=\"checkYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"APPLY_DATE\", property=\"applyDate\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_UID\", property=\"insertUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INSERT_DATE\", property=\"insertDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n List<TCmSetChangeSiteState> selectBySpec(TCmSetChangeSiteStateSpec Spec);", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);", "public void setToStation(String toStation);", "@Query(value =\"select teaching_hours_used from teacher_hours where user_id = :teacherId \", nativeQuery = true)\n int getHoursUsed(@Param(\"teacherId\") Integer teacherId);" ]
[ "0.5908091", "0.5876222", "0.56118476", "0.5368432", "0.52710587", "0.5249704", "0.5247749", "0.5242562", "0.51580656", "0.51393163", "0.5114143", "0.5086069", "0.50789565", "0.50661635", "0.505473", "0.50096756", "0.49533215", "0.49458078", "0.4924187", "0.49195573", "0.49152112", "0.4892672", "0.48665872", "0.48632607", "0.48622605", "0.48541507", "0.48396102", "0.48214406", "0.48044857", "0.47893023", "0.47884983", "0.478225", "0.47719988", "0.47705632", "0.4764494", "0.4747673", "0.4734909", "0.47274178", "0.47238562", "0.47237775", "0.472249", "0.47201544", "0.4718971", "0.47161946", "0.47091162", "0.47059458", "0.47028902", "0.46895504", "0.46696234", "0.46694928", "0.46680176", "0.46606067", "0.46565977", "0.46557552", "0.4655414", "0.46551538", "0.46401232", "0.46292752", "0.4619515", "0.46192685", "0.46146142", "0.4611026", "0.46015546", "0.45971903", "0.45898247", "0.45757133", "0.45741257", "0.45609495", "0.4558105", "0.45564723", "0.45540312", "0.45431456", "0.45418277", "0.4533723", "0.4530175", "0.45289162", "0.45274106", "0.45244005", "0.45228225", "0.45202374", "0.45189837", "0.45178217", "0.45171925", "0.45167655", "0.45145333", "0.45144132", "0.4509602", "0.45091617", "0.45023054", "0.45004684", "0.44994622", "0.44956705", "0.44892752", "0.44875917", "0.4485497", "0.44824207", "0.44801652", "0.4479037", "0.4477184", "0.44682488", "0.44655102" ]
0.0
-1
Zetten van juiste woorden in een lijst
public void setwoorden() { String[] woorden = taInput.getText().split(" |\n"); for (int i = 0; i < woorden.length; i++) { if(!woorden[i].isEmpty()) { AllText.add(woorden[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\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\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "protected void doorschuiven(Groepen wedstrijdGroepen, Groepen aanwezigheidsGroepen) {\r\n int aantal = bepaalAantalDoorschuiven(0, aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Aantal door te schuiven spelers \" + aantal);\r\n // Doorloop hoogste groep tot ��n na laagste groep. In de laagste groep\r\n // kunnen geen spelers inschuiven\r\n \t// Let op: iterator gaat op array index en NIET op groepID\r\n ArrayList<Groep> groepen = wedstrijdGroepen.getGroepen();\r\n// for (int i = 0; i < groepen.size() - 1; ++i) {\r\n for (int i = 0; i < wedstrijdGroepen.getAantalGroepen() - 1; ++i) {\r\n aantal = bepaalAantalDoorschuiven(groepen.get(i).getNiveau(), aanwezigheidsGroepen.getPeriode(), aanwezigheidsGroepen.getRonde());\r\n \tlogger.log(Level.INFO, \"Doorschuiven van groep \" + groepen.get(i+1).getNaam() + \" naar \" + groepen.get(i).getNaam() + \" n=\" + aantal);\r\n ArrayList<Speler> naarGroep = groepen.get(i).getSpelers();\r\n if (naarGroep == null) naarGroep = new ArrayList<>();\r\n ArrayList<Speler> vanGroep = groepen.get(i + 1).getSpelers();\r\n // Als laatste speler niet aanwezig, dan ��n minder doorschuiven\r\n Speler laatste = groepen.get(i + 1).getSpelerByID(aantal);\r\n if (aantal > 2 && laatste == null) aantal--;\r\n\r\n for (int j = 1; j <= aantal; ++j) {\r\n Speler s = groepen.get(i + 1).getSpelerByID(j);\r\n \tlogger.log(Level.FINE, \"Speler : \" + (s != null ? s.getNaam() : \"null\"));\r\n if ((s != null) && s.isAanwezig()) {\r\n if ((j == aantal) && (aantal == 1)) {\r\n // Alleen doorschuiven als speler 1 niet meer ingehaald kan worden\r\n Speler s2 = groepen.get(i + 1).getSpelerByID(2);\r\n\t\t\t\t\t\tif (!IJCController.c().laasteRondeDoorschuivenAltijd) {\r\n\t\t\t\t\t\t\tif ((s2 != null) && (s.getPunten() > (s2.getPunten() + 4))) {\r\n\t\t\t\t\t\t\t\tlogger.log(Level.FINE, \"Speler doorgeschoven, niet meer in te halen \");\r\n\t\t\t\t\t\t\t\tnaarGroep.add(new Speler(s));\r\n\t\t\t\t\t\t\t\tvanGroep.remove(s);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n } else if (j == aantal) {\r\n if (naarGroep.size() % 2 != 0) {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, laatste doorschuiver maar door om even aantal \");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n }\r\n } else {\r\n \tlogger.log(Level.FINE, \"Speler doorgeschoven, niet laatste dus altijd\");\r\n naarGroep.add(new Speler(s));\r\n vanGroep.remove(s);\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void displayVragenlijst() {\n List<Vragenlijst> vragenlijst = winkel.getVragenlijst();\n\n System.out.println(\"Kies een vragenlijst: \");\n\n for (int i = 0; i < vragenlijst.size(); i++) {\n System.out.println((i + 1) + \". \" + vragenlijst.get(i));\n }\n }", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public void zugInWerkstatt() {\n werkstatt++;\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "ArrayList<Float> pierwszaPredykcjaWezPredykcjeZListy()\n\t{\n\t\tArrayList<Float> L1 = new ArrayList<Float>();\n\t\t\n\t\tint i=0;\n\t\twhile (i<Stale.horyzontCzasowy && (LokalneCentrum.getTimeIndex()+i)<listaCenWczytanaZPliku.size())\n\t\t{\n\t\t\tL1.add(listaCenWczytanaZPliku.get(LokalneCentrum.getTimeIndex()+i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn L1;\n\t}", "public void verwerkRijVoorKassa() {\r\n while(kassarij.erIsEenRij()) {\r\n Persoon staatBijKassa = kassarij.eerstePersoonInRij();\r\n kassa.rekenAf(staatBijKassa);\r\n }\r\n }", "float znajdzOstatecznaCene2()\n\t{\n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\tfloat minimuCena =-1;\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//wyznacz liste ktora ma najwieksza wartosc funkcji rynkowej\n\t\t\n\t\tArrayList<Float> cenyZNajwiekszaFunkcjaRynkowa = new ArrayList<>();\n\t\tfloat maximumFunkcjiRynkowej=-1;\n\t\t\n\t\ti=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(value, cena);\n\n\t\t\t\n\t\t\tif (value>maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.clear();\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t\tmaximumFunkcjiRynkowej = value;\n\t\t\t}\n\t\t\telse if (value==maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tminimuCena = cenyZNajwiekszaFunkcjaRynkowa.get(cenyZNajwiekszaFunkcjaRynkowa.size()/2);\n\t\t\n\t\treturn minimuCena;\n\n\t}", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "protected Trein zoekBeschikbareTrein(int vertrekpunt, int vertrektijd, Trein[] uitzonderingen) {\r\n Trein beschikbaretrein = null;\r\n boolean prioriteit = false;\r\n int beschikbaretreinafstand = baangrootte;\r\n for (int i = 0; i < treinaantal; i++) {\r\n boolean uitzondering = false;\r\n for (int j = 0; j < uitzonderingen.length; j++) {\r\n if (uitzonderingen[j] == treinlijst[i]) {\r\n uitzondering = true;\r\n }\r\n }\r\n if (!uitzondering) {\r\n if (treinlijst[i].geenreservering == -1) {\r\n if (!treinlijst[i].heeftVolgTaak()) {\r\n if (!prioriteit) {\r\n int treinafstand = vertrekpunt - treinlijst[i].getPositie();\r\n if (treinafstand < 0) {\r\n treinafstand = treinafstand + baangrootte;\r\n }\r\n if (treinafstand < beschikbaretreinafstand) {\r\n beschikbaretrein = treinlijst[i];\r\n beschikbaretreinafstand = treinafstand;\r\n }\r\n }\r\n }\r\n else if (treinlijst[i].getVolgVertrekpunt() == vertrekpunt) {\r\n if (treinlijst[i].getVolgPassagierAantal() < maxaantalpassagiersintrein) {\r\n if (treinlijst[i].getMaxVertrekTijd() >= vertrektijd) {\r\n int treinafstand = treinlijst[i].getPositie() - vertrekpunt;\r\n if (treinafstand < 0) {\r\n treinafstand = treinafstand + baangrootte;\r\n }\r\n if (!prioriteit) {\r\n beschikbaretrein = treinlijst[i];\r\n beschikbaretreinafstand = treinafstand;\r\n prioriteit = true;\r\n }\r\n if (treinafstand < beschikbaretreinafstand) {\r\n beschikbaretrein = treinlijst[i];\r\n beschikbaretreinafstand = treinafstand;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return beschikbaretrein;\r\n }", "public void angreifen(Lebewesen lebewesen) {\n\t\tdouble zahl = Math.random(); //generiert eine Zahl (double) zwischen 0 und 1\r\n\t\tif(zahl < 0.9d){ //leichtverletzen\r\n\t\t\tlebewesen.leichtVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else if(zahl < 0.98d){ //schwer verletzen\r\n\t\t\tlebewesen.starkVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else{ //direkt töten\r\n\t\t\tlebewesen.toetlichVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}\r\n\t}", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public Neuron znajdzZwyciezce(ArrayList<Integer> wagWej) {\n\t\tNeuron zwyciezca = null;\n\t\t\n\t\tfor (Neuron neuron : neurony)\n\t\t\tif (neuron.nazwa == null && (zwyciezca == null || neuron.liczSiec(wagWej) > zwyciezca.liczSiec(wagWej)))\n\t\t\t\tzwyciezca = neuron;\n\t\t\n\t\treturn zwyciezca;\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public static void passerTour(){\n\t\tif(tour<jeu.getJoueurs().length){\n\t\t\ttour++;\n\t\t}\n\t\telse {\n\t\t\ttour = 1;\n\t\t}\n\t\tfor(int i=0;i<joueurElimine;i++){\n\t\t\tif(jeu.getJoueurs()[tour-1].getMonnaie()==0){\n\t\t\t\tif(tour<jeu.getJoueurs().length){\n\t\t\t\t\ttour++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttour = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public static void vracanjeVozila(Osoba o) {\n\t\tArrayList<Rezervacija> temp = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o)\n\t\t\t\t\t\t&& UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj rezervacije vozila kojeg zelite da vratite:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < temp.size()) {\n\t\t\tSystem.out.println(\"Unesite koliko kilometara ste presli sa vozilom:\");\n\t\t\tdouble brojKm = UtillMethod.unesiteBroj();\n\t\t\tRezervacija rezervTemp = temp.get(redniBroj);\n\t\t\tSystem.out.println(\"Izaberite vrstu goriva koje je vozilo koristilo.\");\n\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\tdouble cenaIznajm = UtillMethod.ukupnaCenaIznajmljivanja(rezervTemp, brojKm, g);\n\t\t\tSystem.out.println(\"Cena iznajmljivanja je \" + cenaIznajm + \" Dinara!\");\n\t\t\tdouble prePromene = rezervTemp.getVozilo().getPredjeno();\n\t\t\trezervTemp.getVozilo().setPredjeno(prePromene + brojKm);\n\t\t\ttemp.get(redniBroj).setRezervacijaObrisana(true);\n\t\t}\n\n\t}", "private void stadtteileNeuZuordnen() {\n Bahnhof[] b = getBahnhofListe();\n for (int i = 0; i < bhfs; i++) {\n if (b[i] != null) {\n int minX = b[i].getX() - 4;\n int minY = b[i].getY() - 4;\n int maxX = b[i].getX() + 3;\n int maxY = b[i].getY() + 3;\n for (int h_y = minY; h_y <= maxY; h_y++) {\n for (int h_x = minX; h_x <= maxX; h_x++) {\n if (!(h_y < 0) && !(h_x < 0) && !(h_y > teile.length - 1) && !(h_x > teile[h_y].length - 1)) {\n if (!(h_x == minX && h_y == minY) && !(h_x == maxX && h_y == minY) && !(h_x == minX && h_y == maxY) && !(h_x == maxX && h_y == maxY)) {\n if (!hatBahnhof[h_y][h_x] && teile[h_y][h_x] != null) {\n hatBahnhof[h_y][h_x] = true;\n b[i].stadtteilHinzufuegen(teile[h_y][h_x]);\n }\n }\n }\n }\n }\n }\n }\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}", "private void vulKeuzeBordIn()\n {\n String[] lijstItems = dc.geefLijstItems();\n for (int i = 0; i < canvasKeuzeveld.length; i++)\n {\n for (int j = 0; j < canvasKeuzeveld[i].length; j++)\n {\n GraphicsContext gc = canvasKeuzeveld[i][j].getGraphicsContext2D();\n //checkImage(j + 1, gc);\n vulIn(lijstItems[j], gc);\n }\n }\n //dc.geefLijstItems();\n }", "public static void otkazivanjeRezervacije(Osoba o) {\n\t\tArrayList<Rezervacija> rezervacijeIznaj = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o) && !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\t\t\trezervacijeIznaj.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif(!r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\trezervacijeIznaj.add(r);\n\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Unesite redni broj rezervacije koju zelite da otkazete:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < rezervacijeIznaj.size()) {\n\t\t\tRezervacija temp = rezervacijeIznaj.get(redniBroj);\n\t\t\ttemp.setRezervacijaObrisana(true);\n\t\t\tSystem.out.println(\"Rezervacija je uspesno izbrisana!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji rezervacija sa tim brojem!\");\n\t\t}\n\t}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public void stupenVrcholu(String klic){\n\t\tint indexKlic = index(klic);\n\t\tfor(int i = 0; i < matice.length;i++){\n\t\t\tif(matice[i][indexKlic] == 1 )\n\t\t\t\tvrchP[indexKlic].stupenVstup++;\n\t\t\t\n\t\t\tif(matice[indexKlic][i] == 1)\n\t\t\t\t\tvrchP[indexKlic].stupenVystup++;\n\t\t\t}\n\t\t\t\t\n\t\t\n\t}", "int getMindestvertragslaufzeit();", "public boolean keineZuegeMehr(){\n\t\tboolean keinZugMoeglich = true;\n\t\t\n\t\tfor(int i=0; i<7; i++){\n\t\t\tfor(int j=0; j<6; j++){\n\t\t\t\tif(spielfeld[i][j].equals(\"_\")){\n\t\t\t\t\tmoeglicheZuege[i] = j;\n\t\t\t\t\tkeinZugMoeglich = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!spielfeld[i][5].equals(\"_\")){\n\t\t\t\tmoeglicheZuege[i] = 7;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn keinZugMoeglich;\n\t}", "public boolean Wygrana() {\n\t\tSystem.out.println(\"Wygrana\");\n\t\tif(SprawdzanieWygranej.WygranaNiewolnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getNiewolnikNaPLanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaRzemieslnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getRzemieslnikNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaArystokracji()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getArystokrataNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getRzemieslnikNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public long gesamtGewinn() {\n long gewinn = 0 - gesamtKosten();\n for (int i = 0; i < neueLinien; i++) {\n gewinn = gewinn + linien[i].gewinn();\n }\n return gewinn;\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public Jogo jogoMaisZerado() {\r\n\t\tJogo jogoMaisZerado = listaDeJogosComprados.get(0);\r\n\r\n\t\tfor (Jogo jogo : listaDeJogosComprados) {\r\n\t\t\tif (jogo.getVezesZeradas() >= jogoMaisZerado.getVezesZeradas()) {\r\n\t\t\t\tjogoMaisZerado = jogo;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn jogoMaisZerado;\r\n\t}", "private void lessenOphalen(Conversation conversation) {\r\n\t\tJsonObject lJsonObjectIn = (JsonObject) conversation.getRequestBodyAsJSON();\r\n\t\t//De format van de string moet omgezet worden vanwege een andere notatie in het systeem\r\n\t\tString datum = lJsonObjectIn.getString(\"datum\");\r\n\t\tSimpleDateFormat format1 = new SimpleDateFormat(\"d-M-yyyy\");\r\n\t\tSimpleDateFormat format2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString newdate = null;\r\n\t\ttry {\r\n\t\t\tDate date = format1.parse(datum);\r\n\t\t\tnewdate = format2.format(date);\r\n\t\t} catch (ParseException e) { e.printStackTrace(); }\r\n\t\tArrayList<Les> lessenVanVandaag = informatieSysteem.getLessenVanDatum(newdate);\r\n\t\tJsonArrayBuilder lJsonArrayBuilder = Json.createArrayBuilder();\r\n\t\tfor (Les les : lessenVanVandaag) {\t\r\n\t\t\tString klas = les.getKlas();\r\n\t\t\tklas = klas.substring(klas.length()-3);\r\n\t\t\tJsonObjectBuilder lJsonObjectBuilderVoorLessen = Json.createObjectBuilder();\r\n\t\t\tlJsonObjectBuilderVoorLessen\r\n\t\t\t\t.add(\"vak\", les.getVak())\r\n\t\t\t\t.add(\"begintijd\", les.getBegintijd())\r\n\t\t\t\t.add(\"eindtijd\", les.getEindtijd())\r\n\t\t\t\t.add(\"docent\", les.getDocent())\r\n\t\t\t\t.add(\"lokaal\", les.getLokaal())\r\n\t\t\t\t.add(\"klas\", klas);\r\n\t\t lJsonArrayBuilder.add(lJsonObjectBuilderVoorLessen);\r\n\t\t}\r\n\t\tString lJsonOutStr = lJsonArrayBuilder.build().toString();\r\n\t\tconversation.sendJSONMessage(lJsonOutStr);\t\r\n\t}", "public static void main(String[] args) {\n\t\tWohnung[] wohnblock = new Wohnung[3] ;\r\n\t\twohnblock[0] = new Wohnung(80.4, 10.2);\r\n\t\twohnblock[1] = new Wohnung(100.3, 12.2);\r\n\t\twohnblock[2] = new Wohnung(120.8, 30.8);\r\n\t\t\r\n\t\tint i = 1;\r\n\t\tfor(Wohnung Hausnummer:wohnblock)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Wohnung %d Flaeche: %4.1f qm und einen %3.1f qm grossen Balkon. %n\", i, Hausnummer.getFlaecheInnen(), \r\n\t\t\t\t\tHausnummer.getFlaecheBalkon());\r\n\t\t\ti++;\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tWohnung Wohnkopie;\r\n\t\tWohnkopie = wohnblock[0];\r\n\t\tSystem.out.printf(\"Die Daten der Wohnkopie:%n\");\r\n\t\tWohnkopie.WerteAusgabe();\r\n\t\tSystem.out.printf(\"Die Daten der Originalwohnung%n\");\r\n\t\twohnblock[0].WerteAusgabe();\r\n\t\tSystem.out.printf(\"Jetzt werden die werte der Kopie geaendert%n\");\r\n\t\tWohnkopie.setFlaecheBalkon(99.9);\r\n\t\tWohnkopie.setFlaecheInnen(99.9);\r\n\t\tSystem.out.printf(\"Die Daten der Wohnkopie:%n\");\r\n\t\tWohnkopie.WerteAusgabe();\r\n\t\tSystem.out.printf(\"Die Daten der Originalwohnung%n\");\r\n\t\twohnblock[0].WerteAusgabe();\r\n\t\t\r\n\t\tWohnkopie.getGesammt();\r\n\t\t\r\n\t\t\r\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private List<ItemMovement> uitGraven(Slot slot, Gantry gantry){\n\n List<ItemMovement> itemMovements = new ArrayList<>();\n Richting richting = Richting.NaarVoor;\n\n //Recursief naar boven gaan, doordat we namelijk eerste de gevulde parents van een bepaald slot moeten uithalen\n if(slot.getParent() != null && slot.getParent().getItem() != null){\n itemMovements.addAll(uitGraven(slot.getParent(), gantry));\n }\n\n //Slot in een zo dicht mogelijke rij zoeken\n boolean newSlotFound = false;\n Slot newSlot = null;\n int offset = 1;\n do { //TODO: als storage vol zit en NaarVoor en NaarAchter vinden geen vrije plaats => inf loop\n // bij het NaarAchter lopen uw index telkens het negatieve deel nemen, dus deze wordt telkens groter negatief.\n //AANPASSING\n Integer locatie = richting==Richting.NaarVoor? (slot.getCenterY() / 10) + offset : (slot.getCenterY() / 10) - offset;\n //we overlopen eerst alle richtingen NaarVoor wanneer deze op zen einde komt en er geen plaats meer is van richting veranderen naar achter\n // index terug op 1 zetten omdat de indexen ervoor al gecontroleerd waren\n if (grondSlots.get(locatie) == null) {\n //Grootte resetten en richting omdraaien\n offset = 1;\n richting = Richting.NaarAchter;\n continue;\n }\n\n Set<Slot> ondersteRij = new HashSet<>(grondSlots.get(locatie).values());\n newSlot = GeneralMeasures.zoekLeegSlot(ondersteRij);\n\n if(newSlot != null){\n newSlotFound = true;\n }\n //telkens één slot verder gaan\n offset += 1;\n }while(!newSlotFound);\n // vanaf er een nieuw vrij slot gevonden is deze functie verlaten\n\n //verplaatsen\n itemMovements.addAll(GeneralMeasures.createMoves(pickupPlaceDuration,gantry, slot, newSlot));\n update(Operatie.VerplaatsIntern, newSlot, slot);\n\n return itemMovements;\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }", "@Override\n\t\t\tpublic int compare(Arco o1, Arco o2) {\n\t\t\t\treturn o2.getW()-o1.getW();\n\t\t\t}", "long getLaenge() {\n long leange = 0;\n for (Song song : songlist) {\n if (song != null)\n leange += song.getLeange();\n }\n return leange;\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "private boolean checkLegbarkeit(Stein pStein){\n\n if (spielfeld.isEmpty()) //erster Stein, alles ist moeglich\n return true;\n\n //liegt schon ein Stein im Feld?\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){\n Stein stein = spielfeld.getContent();\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte())\n return false;\n spielfeld.next();\n }\n\n //bestimme alle Nachbarsteine\n java.util.List<Stein> oben = new ArrayList<>();\n java.util.List<Stein> rechts = new ArrayList<>();\n java.util.List<Stein> links = new ArrayList<>();\n java.util.List<Stein> unten = new ArrayList<>();\n\n findeNachbarSteine(pStein,oben, Richtung.oben);\n findeNachbarSteine(pStein,rechts, Richtung.rechts);\n findeNachbarSteine(pStein,unten, Richtung.unten);\n findeNachbarSteine(pStein,links, Richtung.links);\n\n if (oben.size()==0 && rechts.size()==0 && links.size()==0 && unten.size()==0) //keine Nachbar, Stein ins Nirvana gelegt\n return false;\n\n if(pruefeAufKonflikt(pStein,oben)) return false;\n if(pruefeAufKonflikt(pStein,rechts)) return false;\n if(pruefeAufKonflikt(pStein,unten)) return false;\n if(pruefeAufKonflikt(pStein,links)) return false;\n\n return true;\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public int bewerten(String spieler){\n\t\treihenPruefen pruefen = new reihenPruefen();\n\t\tString gegner;\n\t\t\n\t\tif(spieler.equals(\"o\")){\n\t\t\tgegner = \"x\";\n\t\t}else{\n\t\t\tgegner = \"o\";\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, spieler)){\n\t\t\treturn 4;\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, gegner)){\n\t\t\treturn -4;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, spieler)){\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, gegner)){\n\t\t\treturn -3;\n\t\t}\n\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, spieler)){\n\t\t\treturn 2;\n\t\t}\n\t\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, gegner)){\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "public String vystiskniCestu(){\n\t\t\n\t\tString vypis = \"Euleruv tah : \" + cesta.get(cesta.size()-1);\n\t\tfor(int i = cesta.size()-2 ; i >= 0;i--){\n\t\t\tvypis += \" -> \" + cesta.get(i);\n\t\t}\n\t\t\n\t\treturn vypis;\n\t}", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public void ustalDroge(ArrayList<Sciezka> nowaDroga)\n\t{\n\t\tdroga = nowaDroga;\n\t}", "private void updateScore(int gehaaldeSlagen){\n int behaaldePuntenUitdagers = rondetype.getWinstNaSlagen(gehaaldeSlagen);\n for(Speler uitdager: uitdagers){\n for(Speler tegenspeler: tegenstanders){\n wisselPunten(uitdager, tegenspeler, behaaldePuntenUitdagers);\n }\n }\n }", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "void zmniejszBieg();", "public void bevestigBestelling(int beslistIndex){\r\n Voorraadbeheer.beslist.get(beslistIndex).setBesteld(true); \r\n Log.print();\r\n System.out.println(\"Bestelling met beslistIndex \" + beslistIndex+ \"is besteld.\");\r\n }", "public ListaBrojeva izdvojElmenteNaNeparnimPozicijama() {\n if (!jePrazna()) {\n ListaBrojeva neparni = new ListaBrojeva();\n \n Element neparniKraj = null;\n Element tek = prvi;\n Element preth = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n if (br % 2 == 0) {\n preth.veza = tek.veza;\n if (neparni.prvi == null) {\n neparni.prvi = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n else {\n neparniKraj.veza = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n tek = preth;\n }\n br++;\n }\n return neparni;\n }\n return null;\n }", "public void sleutelWaarde(){\n if(sleutel100.getX() == speler.getX() && sleutel100.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel100.getWaarde());\n }\n else if(sleutel1002.getX() == speler.getX() && sleutel1002.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel1002.getWaarde());\n }\n else if(sleutel200.getX() == speler.getX() && sleutel200.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel200.getWaarde());\n }\n else if(sleutel300.getX() == speler.getX() && sleutel300.getY() == speler.getY() && veld[speler.getY()][speler.getX()] == 1){\n speler.setSleutelWaarde(sleutel300.getWaarde());\n }\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu\n\t\twhile (oUzyteczneTrafienia.size() > 0)\n\t\t\t{\n\t\t\t//wylosowanie pola do przetestowania\n\t\t\tint iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());\n\t\t\tPozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);\n\t\t\t\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\t//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek\n\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE\n\t\t\t\t\t\t\t\t|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPozycja oPrawidlowe = new Pozycja(2);\n\t\t\t\t\t\t\t\toPrawidlowe.setX(oWybranePole.getX() + i);\n\t\t\t\t\t\t\t\toPrawidlowe.setY(oWybranePole.getY() + j);\n\t\t\t\t\t\t\t\toSasiedniePola.add(oPrawidlowe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bProsteLinie == true)\n\t\t\t\t\t{\n\t\t\t\t\tboolean bPionowy = false;\n\t\t\t\t\tboolean bPoziomy = false;\n\t\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\t\t\t\tbPionowy = true;\n\t\t\t\t\t\t\t\t\tif (j == 0)\n\t\t\t\t\t\t\t\t\t\tbPoziomy = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\tif (bPionowy == true && bPoziomy == true)\n\t\t\t\t\t\tthrow new ProgramistaException();\n\t\t\t\t\tif (bPionowy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getX() != oWybranePole.getX())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\tif (bPoziomy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getY() != oWybranePole.getY())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (oSasiedniePola.size() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t//sa pola prawidlowe do oddania kolejnego strzalu\n\t\t\t\t\tint iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());\n\t\t\t\t\t//oddanie strzalu na wspolrzedne weybranego pola\n\t\t\t\t\tboolean bStrzal;\n\t\t\t\t\tbStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());\n\t\t\t\t\tif (bStrzal == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\t\t\toTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );\n\t\t\t\t\t\toTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );\n\t\t\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t\t\t}\n\t\t\t\t\treturn bStrzal;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej\n\t\t\t\t\toUzyteczneTrafienia.remove(iLosowanePole);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcatch (ParametrException e)\n\t\t\t\t{\n\t\t\t\tthrow new ProgramistaException(e);\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\treturn strzalLosowy(oStatkiPrzeciwnika);\n\t\t}", "private boolean pomjeri(int direkcija) {\t\r\n\t\t/**\r\n\t\t * Atribut predstavlja zadnje polje u smjeru direkcije u redu ili koloni (zavisno od toga da li je\r\n\t\t * pomjeranje horizontalno ili vertikalno).\r\n\t\t */\r\n\t\tint pocetna;\r\n\t\t/**\r\n\t\t * Atribut govori u kojem smjeru se pomjera trenutnaPozicija (smjer je suprotan direkciji poteza).\r\n\t\t */\r\n\t\tint pomak;\r\n\t\t/**\r\n\t\t * Atribut predstavlja prvo prazno polje na koje se moze pomjeriti iduce neprazno polje.\r\n\t\t */\r\n\t\tint trenutnaPozicija;\r\n\t\t/**\r\n\t\t * Atribut se postavlja na true ukoliko dodje do nekog pomjeranja (promjene u odnosu na prijasnje stanje tabele).\r\n\t\t */\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo pomjeranje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++) {\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 4 * pomak ; j += pomak) {\r\n\t\t\t\t\tif(tabela[i][trenutnaPozicija] != 0) // ukoliko se na pocetku desi da to polje nije slobodno\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\telse if (tabela[i][j] != 0) { // pomjeri to polje u smjeru direkcija\r\n\t\t\t\t\t\ttabela[i][trenutnaPozicija] = tabela[i][j];\r\n\t\t\t\t\t\ttabela[i][j] = 0;\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo pomjeranje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 4 * pomak ; i += pomak) {\r\n\t\t\t\t\tif(tabela[trenutnaPozicija][j] != 0) // ukoliko se na pocetku desi da to polje nije slobodno\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\telse if (tabela[i][j] != 0) { // pomjeri to polje u smjeru direkcija\r\n\t\t\t\t\t\ttabela[trenutnaPozicija][j] = tabela[i][j];\r\n\t\t\t\t\t\ttabela[i][j] = 0;\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void trukstaEilutese(){\n\n for (int i=0; i<9; i++) { //skaito eilutes\n\n System.out.print(i+\" : \"); //skaito kiekviena skaiciu is eiles\n\n truksta_eilutese [i] = new ArrayList<Integer>();\n\n Langelis langelis = new Langelis();\n\n for (Integer x_skaicius=1; x_skaicius<10; x_skaicius++){ //ciklas sukti naujam nezinomajam x_skaicius duota reiksme1 maziau nei 10, ++ kad ima sekanti nezinomaji\n\n //System.out.print(java.util.Arrays.asList(sudoku_skaiciai[i]).indexOf(x_skaicius));\n\n langelis.nustatyti(x_skaicius);\n\n if (Arrays.asList(sudoku_skaiciai[i]).indexOf(langelis)== -1){ //????\n\n System.out.print(x_skaicius+\" \"); //israso nezinomas reiksmes\n\n truksta_eilutese[i].add(x_skaicius);\n }\n }\n System.out.println(); //???\n }\n }", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}" ]
[ "0.66404295", "0.66108334", "0.65401953", "0.63176346", "0.6310601", "0.6290196", "0.6206217", "0.6200298", "0.619932", "0.6156241", "0.6145893", "0.61073", "0.6097698", "0.60931426", "0.6070752", "0.60664636", "0.6059312", "0.6047309", "0.6036667", "0.60116667", "0.60014683", "0.5993786", "0.5991523", "0.59871876", "0.5986244", "0.596133", "0.59613293", "0.59576416", "0.5955829", "0.5955773", "0.59496844", "0.5948311", "0.5941058", "0.5925226", "0.5914856", "0.5899762", "0.5899333", "0.5885877", "0.58819205", "0.58812076", "0.5876287", "0.5875974", "0.5869179", "0.5862164", "0.5856583", "0.5856359", "0.5854467", "0.584388", "0.58410203", "0.5837971", "0.58322436", "0.58319175", "0.5784571", "0.5767003", "0.5766904", "0.5765957", "0.5757399", "0.57302105", "0.57294625", "0.5728848", "0.5727265", "0.5726931", "0.57218623", "0.5721284", "0.57212186", "0.5716535", "0.5709734", "0.570273", "0.56979436", "0.5696338", "0.5695352", "0.56925404", "0.56921595", "0.56880116", "0.5672448", "0.5670936", "0.56691456", "0.5668709", "0.5668473", "0.5664435", "0.566388", "0.56607723", "0.56509167", "0.564752", "0.5646738", "0.5634502", "0.56323636", "0.56308526", "0.56303525", "0.56264174", "0.56262064", "0.5624526", "0.56138533", "0.5607586", "0.5606497", "0.5595992", "0.55949384", "0.55939436", "0.5592821", "0.5590967", "0.55900335" ]
0.0
-1
uniekewoorden = new HashSet(AllText); taOutput.setText(Integer.toString(AllText.size()) + " " + Integer.toString(uniekewoorden.size()));
@FXML private void aantalAction(ActionEvent event) { taOutput.setText(woordenMethods.calcaantal(DEFAULT_TEXT)); //throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshText() {\n mTagsCountText.setText(String.valueOf(tagList.size()));\n\n }", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "public int size(){\n return set.length;\n }", "@Override\n public int size() {\n return theSet.size();\n }", "private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "public int size() {\n return text.size();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtSentence = new javax.swing.JTextArea();\n jPanel4 = new javax.swing.JPanel();\n Vowel = new javax.swing.JCheckBox();\n Notvowel = new javax.swing.JCheckBox();\n V3 = new javax.swing.JCheckBox();\n jPanel5 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Result = new javax.swing.JTextArea();\n btnClear = new javax.swing.JButton();\n Count = new javax.swing.JButton();\n btnExit = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(0, 0, 0));\n\n jPanel2.setBackground(new java.awt.Color(255, 204, 204));\n\n jPanel1.setBackground(new java.awt.Color(255, 153, 153));\n\n jLabel1.setFont(new java.awt.Font(\"TH SarabunPSK\", 1, 24)); // NOI18N\n jLabel1.setText(\"Please Enter Sentence : \");\n\n jLabel3.setFont(new java.awt.Font(\"TH SarabunPSK\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 51, 51));\n jLabel3.setText(\"ป้อนค่า input ใน jTextArea\");\n\n txtSentence.setColumns(20);\n txtSentence.setRows(5);\n jScrollPane2.setViewportView(txtSentence);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)))\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 102, 102));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Count Options\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"TH SarabunPSK\", 1, 24))); // NOI18N\n jPanel4.setToolTipText(\"\");\n\n Vowel.setBackground(new java.awt.Color(255, 102, 102));\n Vowel.setFont(new java.awt.Font(\"TH SarabunPSK\", 0, 18)); // NOI18N\n Vowel.setText(\"Vowel (สระ)\");\n Vowel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n VowelActionPerformed(evt);\n }\n });\n\n Notvowel.setBackground(new java.awt.Color(255, 102, 102));\n Notvowel.setFont(new java.awt.Font(\"TH SarabunPSK\", 0, 18)); // NOI18N\n Notvowel.setText(\"Not vowel (ไม่ใช่สระ)\");\n Notvowel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n NotvowelActionPerformed(evt);\n }\n });\n\n V3.setBackground(new java.awt.Color(255, 102, 102));\n V3.setFont(new java.awt.Font(\"TH SarabunPSK\", 0, 18)); // NOI18N\n V3.setText(\"Vowel & Not Vowel & Count each vowel\");\n V3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n V3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(V3)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(Vowel)\n .addGap(157, 157, 157)\n .addComponent(Notvowel)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Vowel)\n .addComponent(Notvowel))\n .addGap(18, 18, 18)\n .addComponent(V3)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 204, 204));\n jPanel5.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jLabel2.setFont(new java.awt.Font(\"TH SarabunPSK\", 1, 24)); // NOI18N\n jLabel2.setText(\"Result : \");\n\n Result.setColumns(20);\n Result.setRows(5);\n jScrollPane1.setViewportView(Result);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnClear.setFont(new java.awt.Font(\"TH SarabunPSK\", 1, 18)); // NOI18N\n btnClear.setText(\"Clear\");\n btnClear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClearActionPerformed(evt);\n }\n });\n\n Count.setFont(new java.awt.Font(\"TH SarabunPSK\", 1, 18)); // NOI18N\n Count.setText(\"Count\");\n Count.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CountActionPerformed(evt);\n }\n });\n\n btnExit.setFont(new java.awt.Font(\"TH SarabunPSK\", 1, 18)); // NOI18N\n btnExit.setText(\"Exit\");\n btnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExitActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnClear, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnExit, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Count, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(12, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnClear)\n .addGap(18, 18, 18)\n .addComponent(Count)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnExit))\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(22, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "HashSet<String> displayEmployee();", "public void setwoorden()\n {\n String[] woorden = taInput.getText().split(\" |\\n\");\n \n for (int i = 0; i < woorden.length; i++) {\n if(!woorden[i].isEmpty())\n {\n AllText.add(woorden[i]); \n }\n } \n }", "public void removeAllHasSynchronizedText() {\r\n\t\tBase.removeAll(this.model, this.getResource(), HASSYNCHRONIZEDTEXT);\r\n\t}", "public int hashCode ()\n {\n return this.texto.hashCode();\n }", "public static void main(String[] args) {\n\n Set<String> mySetList = new SetC<>();\n Set<String> hashSetList = new HashSet<>();\n\n\n\n mySetList.add(\"Тест1\"); hashSetList.add(\"Тест1\");\n mySetList.add(\"Тест2\"); hashSetList.add(\"Тест2\");\n mySetList.add(\"Тест3\"); hashSetList.add(\"Тест3\");\n\n\n\n System.out.println(\"mySetList:\"+mySetList+\"\\nhashSetList:\"+hashSetList);\n\n\n\n }", "private void btn1Event(){\n int cnt = Integer.parseInt(tfNum1.getText());\n int i = 0;\n for (i=0; i<cnt; i++){\n list.add(new NumGenA());\n taResults.appendText(String.valueOf(i) + \n \" = \" + String.valueOf(list.get(i).getValue() + \"\\n\"));\n \n lab2.setText(String.valueOf(NumGenA.getCount()));\n }\n }", "int getWordCount() {\r\n return entrySet.size();\r\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tSystem.out.println(\"버튼을 눌렀구만?\");\r\n\t\t\r\n\t\tint jum =0;\r\n\t\t\r\n\t\tfor (JCheckBox box : qq_1) {\r\n\t\t\tif(box.isSelected())\r\n\t\t\t\tjum+=20;\r\n\t\t}\r\n\t\tif(qq_2.get(2).isSelected())\r\n\t\t\tjum+=20;\r\n\t\t\r\n\t\tres.setText(\"결과:\"+jum);\r\n\t}", "public void clearTotalNutrition(){\n totalNutritionOne.setText(\"\");\n totalNutritionTwo.setText(\"\");\n }", "public static void main(String[] args) {\n\n Set<String> set = new LinkedHashSet<>();\n set.add(\"ad\");\n set.add(\"text2\");\n set.add(\"ac\");\n set.add(\"text1\");\n set.add(\"text\");\n set.add(\"text2\");\n\n for (String s : set) {\n System.out.println(s);\n }\n }", "public int size() {\n return set.size();\n }", "public static Set<Word> allWords(List<Sentence> sentences) {\n//\t\tSystem.out.println(sentences);\n\t\t/* IMPLEMENT THIS METHOD! */\n\t\tSet<Word> words = new HashSet<>();\n\t\tList<Word> wordsList = new ArrayList<>();\t//use list to manipulate information\n\t\t\n\t\tif (sentences == null || sentences.isEmpty()) {//if the list is empty, method returns an empty set.\n\t\t return words;\t\n\t\t}\n\t\t\n\t\tfor(Sentence sentence : sentences) {\n//\t\t System.out.println(\"Sentence examined \" + sentence.getText());\n\t\t if (sentence != null) {\n\t\t \tString[] tokens = sentence.getText().toLowerCase().split(\"[\\\\p{Punct}\\\\s]+\");//regex to split line by punctuation and white space\n\t\t \tfor (String token : tokens) {\n//\t\t \t\tSystem.out.println(\"token: \" + token);\n\t\t \t\tif(token.matches(\"[a-zA-Z0-9]+\")) {\n\t\t \t\t\tWord word = new Word(token);\n//\t\t \t\t\tint index = wordsList.indexOf(word);//if the word doesn't exist it'll show as -1 \n\t\t \t\t\tif (wordsList.contains(word)) {//word is already in the list\n//\t\t \t\t\t\tSystem.out.println(\"already in the list: \" + word.getText());\n//\t\t \t\t\t\tSystem.out.println(\"This word exists \" + token + \". Score increased by \" + sentence.getScore());\n\t\t \t\t\t\twordsList.get(wordsList.indexOf(word)).increaseTotal(sentence.getScore());\n\t\t \t\t\t} else {//new word\t\n\t\t \t\t\t\tword.increaseTotal(sentence.getScore());\n\t\t \t\t\t\twordsList.add(word);\n////\t\t\t\t \tSystem.out.println(token + \" added for the score of \" + sentence.getScore());\n\t\t \t\t\t}\n\t\t \t\t}\n\t\t \t}\n\t\t }\n\t\t}\n\t\t\n\t\twords = new HashSet<Word> (wordsList);\n\t\t\n\t\t//test - for the same text - object is the same\n//\t\tArrayList<String> e = new ArrayList<>();\n//\t\tString ex1 = \"test1\";\n//\t\tString ex2 = \"test1\";\n//\t\tString ex3 = \"test1\";\n//\t\te.add(ex1);\n//\t\te.add(ex2);\n//\t\te.add(ex3);\n//\t\tfor (String f : e) {\n//\t\t\tWord word = new Word(f);\n//\t\t\tSystem.out.println(word);\n//\t\t}\n\t\t//end of test\n\t\treturn words;\n\t}", "public void textMergeReset() {\n\n }", "@Override\n public void update(LabeledText labeledText){\n super.update(labeledText);\n\n /* FILL IN HERE */\n classCounts[labeledText.label]++;\n for (String ng: labeledText.text.ngrams) { \n \tfor (int h=0;h< nbOfHashes;h++) {\n \t\tcounts[labeledText.label][h][hash(ng,h)]++; \n \t}\n \t//System.out.println(\"Hash: \" + hash(ng) + \" Label : \" + labeledText.label + \" Update: \" + counts[labeledText.label][hash(ng)]);\n }\n \n }", "private void outputResults(String s){\n \tjTextAreaResults.setRows(jTextAreaResults.getRows()+ s.split(\"\\n\").length );\n \tjTextAreaResults.setText(jTextAreaResults.getText()+\"\\n\"+s);\n }", "public static void main(String[] args) {\n String s1 = \"ShivaniKashyap\";\n char[] chararray = s1.toCharArray();\n LinkedHashSet set = new LinkedHashSet();\n LinkedHashSet newset = new LinkedHashSet();\n for(int i=0;i<chararray.length;i++)\n {\n if( !set.add(chararray[i]))\n {\n newset.add(chararray[i]);\n\n }\n\n }\n System.out.println(newset);\n }", "public String toString() { return this.myText + \" \" + this.myCount;}", "public void clearText()\n {\n for (int i = 0; i < 10; i++) \n {\n userInput[i] = \"\";\n textFields[i].clear(); \n }\n }", "public int getTotalUniqueWords() {\n return totalUniqueWords;\n }", "public int size(){\n return words.size();\n }", "public int size() {\r\n\treturn terms.size();\r\n }", "public static void main(String[] args) {\n\t\tHashSet<String> words = new HashSet<String>();\n\t\t\n\t\twords.add(\"Drink\");\n\t\twords.add(\"Java\");\n\t\twords.add(\"Coffee\");\n\t\twords.add(\"Bean\");\n\t\twords.add(\"Java\");\n\t\t\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n\t\t\n\t\tSystem.out.println(words.contains(\"Java\"));\n\t\tSystem.out.println(words.contains(\"Tea\"));\n\t\t//words.remove(1);\n\t\t//System.out.println(words);\n\t\t\n\t\tboolean removed1 = words.remove(\"Java\");\n\t\tSystem.out.println(removed1);\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n//\t\t\n\t\tboolean removed2 = words.remove(\"Dawg\");\n\t\tSystem.out.println(removed2);\n\t\tSystem.out.println(words.size());\n\t\tSystem.out.println(words);\n\t\t\n\t\t//sorting the words\n\t\tString[] sortedWords = new String[words.size()];\n\t\tint i = 0;\n\t\tfor(String w : words)\n\t\t\tsortedWords[i++] = w;\n\t\tArrays.sort(sortedWords);\n\t\tfor(String w : sortedWords)\n\t\t\tSystem.out.print(w + \" \");\n\n\t}", "public int size() {\r\n\t\treturn set.size();\r\n\t}", "public static void main(String[] args) {\n Set<String> mySet = new HashSet<String>(100,50);\n mySet.add(\"APPLE\");\n mySet.add(\"LG\");\n mySet.add(\"HTTC\");\n mySet.add(\"APPLE\");\n mySet.add(\"SAMSUNG\");\n Iterator<String> iterator = mySet.iterator();\n while (iterator.hasNext()){\n System.out.println(iterator.next());\n }\n\n\n\n }", "private void clearHocSinh() {\n\t\ttxtMa.setText(\"\");\n\t\ttxtTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtSdt.setText(\"\");\n\t\ttxtDiaChi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t}", "public static void main(String[] args) {\n\n HashSet <Integer> numbers = new HashSet <>();\n numbers.add(1);\n numbers.add(2);\n numbers.add(1);\n System.out.println(numbers.size());\n\n }", "public void clear(){\n strings.clear();\n }", "private void printNonDuplicates( Collection< String > collection )\r\n {\r\n \t // create a HashSet using a collection as parameter\r\n \t Set< String > set = new HashSet< String >( collection );\r\n \t System.out.println( \"Nonduplicates are: \" );\r\n \t for ( String s : set )\r\n \t\t System.out.printf( \"%s \", s );\r\n \t System.out.println();\r\n \t }", "public void tampilgrup(){\n txtgrup.removeAllItems();\n try{\n java.sql.Statement statement = (java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"SELECT DISTINCT nama_grup FROM tblaktivitas\");\n \n while(res.next()){\n String name = res.getString(\"nama_grup\");\n txtgrup.addItem(name);\n }\n res.last();\n }catch (Exception e){\n }\n \n }", "@Override\n public void onChanged(@Nullable final List<Word> words) {\n\n for (Word word: words) {\n strWords += word.getWord();\n System.out.println(word.getWord());\n }\n\n textView.setText(strWords);\n }", "public int size() {\n\t\treturn set.size();\n\t}", "public static int duplicateCount(String text) {\n String[] textArray = text.toLowerCase().split(\"\");\n List<String> temp = new ArrayList<String>();\n\n // Storing all of the duplicated strings\n for(int i=0; i < textArray.length; i++){\n for(int j=i+1; j < textArray.length; j++){\n if(textArray[i].equals(textArray[j])){\n temp.add(textArray[i]);\n }\n }\n }\n \n // Convert list to array\n String[] itemsArray = new String[temp.size()];\n itemsArray = temp.toArray(itemsArray);\n \n // Removing all the duplicated strings by using hashset\n Set<String> set = new HashSet<String>();\n for(int i = 0; i < itemsArray.length; i++){\n set.add(itemsArray[i]);\n }\n\n // Returning the length \n return set.size();\n }", "static void AddAndDisplay()\n\t{\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toSet = new TreeSet<String>();\n\t\t\toSet.add(\"Apple\");\n\t\t\toSet.add(\"Boy\");\n\t\t\toSet.add(\"Cat\");\n\t\t\toSet.add(\"Apple\");\n\t\t\tSystem.out.println(oSet);\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tfor(String s:oSet)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"for each loop: \"+s);\n\t\t\t}\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tIterator<String> it = oSet.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Iterator: \"+it.next());\n\t\t\t}\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tSpliterator<String> sp = oSet.spliterator();\n\t\t\tsp.forEachRemaining(System.out::println);\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\toSet.forEach((k)->System.out.println(\"for each method: \"+k));\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "public void startTextQuestionSet() {\n this.textQuestionSet = new HashSet<>();//creates a new textQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 3) {//if the question is type Text Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.textQuestionSet.add(newQuest);//adds the new Quest to the new textQuestionSet\n }\n }\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"enter the input\");\r\n\t\tint n=s.nextInt();\r\n\t\ts.nextLine();\r\n\t\tHashSet<String> hs=new HashSet<String>(n);\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\ths.add(s.nextLine());\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(hs);\r\n\t\tSystem.out.println(hs.size());\r\n\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n spare_part_selection.setText(\"\");\n for (int i = 0; i < checkedItems.length; i++) {\n boolean checked = checkedItems[i];\n if (checked) {\n spare_part_selection.setText(String.format(Locale.ENGLISH, \"%s%s\\n\", spare_part_selection.getText(), listItems[i]));\n }\n }\n String text = spare_part_selection.getText().toString().trim().replaceAll(\"\\n$\", \"\");\n Log.e(TAG, \"text =======> \" + text);\n spare_part_selection.setText(text);\n dialog.dismiss();\n }", "@Override\r\n public int getCount() {\r\n return mTextViews.size();\r\n }", "public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }", "public String clear() {\n\t\t\tcollectionsOlders.clear();\n\t\t\treturn \"Коллекция была очищена\";\n\t\t}", "public static void main(String[] args) {\n Set<String>list=new LinkedHashSet<>();\n list.add(\"Work\");\n list.add(\" smart\");\n list.add(\" not\");\n list.add(\" hard\");\n\n String str2=\"\";\n\n for(String str:list){\n str2+=str;\n }\n System.out.println(str2);\n }", "private void update(){\n\t\tIterator it = lList.iterator();\r\n\t\tString out=\"\"; // it used for collecting all members\r\n\t\tint count = 0;\r\n\t\twhile (it.hasNext()){\r\n\t\t\tObject element = it.next();\r\n\t\t\tout += \"\\nPERSON \" + count + \"\\n\";\r\n\t\t\tout += \"=============\\n\";\r\n\t\t\tout += element.toString();\r\n\t\t\t++count;\r\n\t\t}\t\t\r\n\t\toutputArea.setText(out); \r\n\t}", "public void clearBreakfastNutrition(){\n breakfastNutritionOne.setText(\"\");\n breakfastNutritionTwo.setText(\"\");\n }", "private void printNonDuplicates( Collection< String > collection )\r\n {\r\n // create a HashSet \r\n Set< String > set = new HashSet< String >( collection ); \r\n\r\n System.out.println( \"\\nNonduplicates are: \" );\r\n\r\n for ( String s : set )\r\n System.out.printf( \"%s \", s );\r\n\r\n System.out.println();\r\n }", "private void clear() {\r\n\t\tareaTexto.setText(\"\");\r\n\t}", "private void putDataToTextArea() {\n jTextArea1.setEditable(false);\n jTextArea1.setText(selectedFoods);\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "public static void main(String[] args) {\n\t\tArrayList sayilar = new ArrayList();//bütün degerleri tutabilir\n\t\t\n\t\tsayilar.add(1);\n\t\tsayilar.add(5);\n\t\tsayilar.add(\"ankara\");\n\t\t\n\t\tSystem.out.println(sayilar.size());\n\t\tSystem.out.println(sayilar.get(2));\n\t\tsayilar.set(2, \"trabzon\");//günceleme\n\t\tSystem.out.println(sayilar.get(2));\n\t\tsayilar.remove(1);//silme\n\t\tSystem.out.println(sayilar.get(1));\n\t\t\n\t\tfor(Object i:sayilar) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\tsayilar.clear();//tüm diziyi siler\n\t\tSystem.out.println(sayilar.size());\n\t\t\n\t\tSystem.out.println(\"************************************************\");\n\t\t\n\t\tArrayList<String> sehirler= new ArrayList<String>();//sadece string degerleri tutabilir\n\t\tsehirler.add(\"istanbul\");\n\t\tsehirler.add(\"ankara\");\n\t\tsehirler.add(\"izmir\");\n\t\tsehirler.add(\"adıyaman\");\n\t\t\n\t\tsehirler.remove(\"izmir\");\n\t\tCollections.sort(sehirler);//sehirleri harflere göre sıralar\n\t\tfor(String i:sehirler) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}", "public void vergissAlles() {\n\t\tmerker.clear();\n\t}", "private String syuneri_gumar(ArrayList<Integer> syun, int size) {\n int summa = 0, i = 0;\n do {\n summa = summa + syun.get(i);\n i++;\n }\n while (i < size);\n return \"\" + summa;\n }", "public void kurang(){\n hitung--;\n count.setText(Integer.toString(hitung));\n }", "private void clearDuplicates(){\n\t\tLinkedHashSet<String> duplicateFree;\n\t\tList<String> RawStrings=new ArrayList<String>();\n\t\tfor (String[] rCode:mutatedCodes){\n\t\t\tRawStrings.add(rCode[0]+\"~\"+rCode[1]+\"~\"+rCode[2]+\"~\"+rCode[3]+\"~\"+rCode[4]+\"~\"+rCode[5]+\"~\"+rCode[6]+\"~\"+rCode[7]+\"~\"+rCode[8]+\"~\"+rCode[9]+\"~\"+rCode[10]+\"~\"+rCode[11]+\"~\"+rCode[12]+\"~\"+rCode[13]+\"~\"+rCode[14]+\"~\"+rCode[15]+\"~\"+rCode[16]+\"~\"+rCode[17]+\"~\"+rCode[18]+\"~\"+rCode[19]);\n\t\t}\n\t\tduplicateFree=new LinkedHashSet<String>(RawStrings);\n\t\tSystem.out.println(\"Number of Duplicates cleared:\"+(RawStrings.size()-duplicateFree.size()));\n\t\tSystem.out.println(\"Remaining Codes for next Run:\"+duplicateFree.size());\n\t\tCodeCount=0;\n\t\ttry {\n\t\t\tcodes=new FileWriter(\"data/codes.txt\");\n\t\t\tfor (String S:duplicateFree){\n\t\t\t\twriteCodeLine(S);\n\t\t\t}\n\t\t\tcodes.close();\n\t\t\tThread.sleep(1000L);\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\nString str = \"java,C, Java\";\r\nStringBuffer sf = new StringBuffer();\r\nSet<Character> set = new HashSet<>();\r\nfor(int i=0;i<str.length();i++)\r\n{\r\nchar c=str.charAt(i);\r\nif(!set.contains(c))\r\n{\r\nset.add(c);\r\n//System.out.println(set);\r\n\r\nsf.append(c);\r\n\r\n//Set s = new Set();\r\n}\r\n}\r\nSystem.out.println(set);\r\nSystem.out.println(sf.toString());\r\n}", "@Override\n public void clearText() {\n textMap.clear();\n render();\n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> al=new ArrayList<>();\n\t\tal.add(34);\n\t\tal.add(64);\n\t\tal.add(13);\n\t\tal.add(34);\n\t\tal.add(98);\n\t\tal.add(78);\n\t\tSystem.out.println(al.size());\n\t\tSet<Integer> s=new LinkedHashSet<Integer>(al);\n\t\tSystem.out.println(s);\n\t\tCollections.sort(al);\n\t\tSystem.out.println(al);\n\t}", "public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\tString text = area.getText();\r\n\t\tString words[]= text.split(\"\\\\s\");\r\n\t\tl.setText(\"Words:\"+words.length+\"Characters:\"+text.length());\r\n\t}", "public void display() {\n\tString tm = \"{ \";\n\tIterator it = entrySet().iterator();\n\twhile(it.hasNext()) {\n\t\ttm += it.next() + \" ,\";\n\t}\n\ttm = tm.substring(0, tm.length() - 2) + \" }\";\n\tSystem.out.println(tm);\n }", "public void choicesText() {\n\t\tmcqChoicesText1 = answerChoice.get(0).getText().trim();\n\t\tmcqChoicesText2 = answerChoice.get(1).getText().trim();\n\t\tmcqChoicesText3 = answerChoice.get(2).getText().trim();\n\t\tmcqChoicesText4 = answerChoice.get(3).getText().trim();\n\t\tmcqChoicesText5 = answerChoice.get(4).getText().trim();\n\t\tmcqChoicesText6 = answerChoice.get(5).getText().trim();\n\t}", "@Override\n public void actionPerformed(ActionEvent event)\n {\n showCandidatesArea.append(enterCandidateArea.getText() + \"\\n\");\n ArrayList<String> candidatesArray = candidates.get(positionJComboBox.getSelectedItem().toString());\n candidatesArray.add(enterCandidateArea.getText());\n\n enterCandidateArea.setText(\"\");\n for(String i : candidates.keySet()) {\n for(int j = 0; j < candidates.get(i).size(); j++){\n }\n }\n }", "public void clearText() {\r\n\t\tSystem.out.println(\"UNIMPLEMENTED: clear displayed text\");\r\n\t\t// TODO implement text clearing\r\n\t}", "public String afficherTout()\n\t{\n\t\tString total = \"\";\n\t\tfor(Joueur j : ListJoueur)\n\t\t{\n\t\t\ttotal += \"\\n\" + j.afficherJoueur();\n\t\t}\n\t\treturn total;\n\t}", "public static int getNumberOfStrings(){\n\t\treturn setOfStrings.length;\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn App.getInstance().getSettlements().size();\n\t\t}", "public void changerTailleMotsEtCouleur(int tailleMin, int tailleMax, String couleur){\n ArrayList<Integer> listeFreqDuCorpus = new ArrayList<Integer>(); \r\n for (int i=0; i<this.corpus.getListeMot().size(); i++){\r\n int freqDuMotActuel = this.corpus.getListeMot().get(i).getFrequence();\r\n if (!listeFreqDuCorpus.contains(freqDuMotActuel)){\r\n listeFreqDuCorpus.add(freqDuMotActuel); //On change la taille du mot proportionnellement à sa fréquence d'apparition\r\n }\r\n }\r\n \r\n int freqMax = listeFreqDuCorpus.get(0);\r\n if (couleur.equals(\"ROUGE\")){\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(255,0,0)));\r\n } else if (couleur.equals(\"VERT\")){\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,255,0)));\r\n } else if (couleur.equals(\"BLEU\")) {\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,0,255)));\r\n } else if (couleur.equals(\"NOIR\")) {\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,0,0)));\r\n for (int i=1; i<this.corpus.getListeMot().size(); i++){\r\n Mot motActuel = this.corpus.getListeMot().get(i);\r\n int tailleDuMotActuel =(int) (((double)motActuel.getFrequence()/(double)freqMax)*(tailleMax-tailleMin) + tailleMin);\r\n this.corpusEnWordGraph.set(i, new WordGraph(motActuel, this.font, this.g2d, tailleDuMotActuel, new Color(0,0,0)));\r\n }\r\n }\r\n if (!couleur.equals(\"NOIR\")){ //Si la couleur n'est pas noir, on change la couleur des mots en nuance de la couleur choisie\r\n for (int i=1; i<this.corpus.getListeMot().size(); i++){\r\n Mot motActuel = this.corpus.getListeMot().get(i);\r\n int tailleDuMotActuel =(int) (((double)motActuel.getFrequence()/(double)freqMax)*(tailleMax-tailleMin) + tailleMin);\r\n this.corpusEnWordGraph.set(i, new WordGraph(motActuel, this.font, this.g2d, tailleDuMotActuel, this.nuanceCouleur(couleur)));\r\n }\r\n }\r\n \r\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = Integer.parseInt(in.nextLine());\n HashSet<Character> first = new HashSet<Character>();\n HashSet<Character> second = new HashSet<Character>();\n int i=0;\n char temp = 'a';\n for(temp='a';temp<='z';temp++){\n \t first.add(temp);\n }\n int j;\n while(i<N){\n \t second.clear();\n \t char[] stringArray = in.nextLine().toCharArray();\n \t for(j=0;j<stringArray.length;j++){\n \t\t second.add(stringArray[j]); \n \t }\n \t first.retainAll(second);\n \t i++;\n }\n System.out.println(first.size());\n }", "private void btnClearActionPerformed(java.awt.event.ActionEvent evt) {\n txtSentence.setText(\"\");\n Result.setText(\"\");\n Vowel.setSelected(false);\n Notvowel.setSelected(false);\n V3.setSelected(false);\n }", "private void printSelectionCountResults(){\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(Character answer: q.getPossibleAnswers()){\n\t\t\tSystem.out.print(answer+\": \"+selections.get(q.getPossibleAnswers().indexOf(answer))+\"\\n\");\n\t\t}\n\t}", "@Override\n public int getItemCount() {\n return textArray.length;\n }", "public static void exercise3() {\n HashSet<String> userInputs= new HashSet<String>();\n\n String tempUserInput = \"User Input\";\n\n System.out.println(\"\\nEnter as many Strings as you like.\\nEnter \\\"out\\\" to cancel.\\n\");\n\n while (!tempUserInput.equals(\"out\")){\n Scanner sc = new Scanner(System.in);\n tempUserInput = sc.nextLine();\n if (!tempUserInput.equals(\"out\")) userInputs.add(tempUserInput);\n }\n\n System.out.println(\"Here are all entries of the HashSet:\\n\");\n\n Iterator<String> iterator = userInputs.iterator();\n\n while (iterator.hasNext()) System.out.println(iterator.next());\n }", "@Override\n public void limpiar() {\n txtIdioma.setText(\"\");\n txtBusqueda.setText(\"\");\n }", "public void lojasOrdemAlfabeticaDisplay(Set<String> s) {\n Iterator<String> it = s.iterator();\n while (it.hasNext()) {\n System.out.println(it.next());\n }\n }", "public void count() \r\n\t{\r\n\t\tcountItemsLabel.setText(String.valueOf(listView.getSelectionModel().getSelectedItems().size()));\r\n\t}", "public static void main(String[] args)\n {\n\n HastTable<String> wordset = new HastTable<>();\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n wordset.add(\"green\");\n// wordset.add(\"pink\");\n// wordset.add(\"yellow\");\n// wordset.add(\"purple\");\n// wordset.add(\"red\");\n// wordset.add(\"black\");\n\n System.out.println(\"Before reshash(): \" + wordset.toString());\n\n wordset.add(\"purple\");\n wordset.add(\"orange\");\n\n System.out.println(\" After reshash(): \" + wordset.toString());\n System.out.println(\"remove(red): \" + wordset.remove(\"red\"));\n System.out.println(\"size(): \" + wordset.size());\n\n for (String word: wordset)\n {\n System.out.println(word);\n //wordset.remove(\"pink\");\n }\n\n\n HastTable<Integer> intSet = new HastTable<>();\n intSet.add(13);\n intSet.add(1);\n intSet.add(14);\n intSet.add(18);\n // intSet.add(13);\n intSet.add(59);\n intSet.add(44);\n System.out.println(\"Before reshash(): \" + intSet.toString());\n\n intSet.add(12);\n intSet.add(85);\n // intSet.add(55);\n // intSet.add(78);\n // intSet.add(71);\n // intSet.add(16);\n\n// intSet.add(9);\n// intSet.add(34);\n System.out.println(\"After reshash(): \" + intSet.toString());\n\n\n }", "public void MostrarValores() {\r\n Nodo recorrido = UltimoValorIngresado;\r\n\r\n while (recorrido != null) {\r\n Lista += recorrido.informacion + \"\\n\";\r\n recorrido = recorrido.siguiente;\r\n }\r\n\r\n JOptionPane.showMessageDialog(null, Lista);\r\n Lista = \"\";\r\n }", "public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }", "public CountAlphabetFromSentenceGUI() {\n initComponents();\n }", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }", "public void tyhjenna() {\n this.kulmat.clear();\n }", "public HashSet<Integer> mesesComprou(){\n HashSet<Integer> hs = new HashSet<>();\n produtosComprados.keySet().stream().forEach(x->hs.add(x.getMes()));\n return hs;\n }", "public void jumlahanggota(){\n try{\n java.sql.Statement statement = (java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"select count(nama) from tblpegawai where grup='\"+txtgrup.getSelectedItem()+\"'\");\n \n while(res.next()){\n String jumlah = res.getString(\"count(nama)\"); \n txtanggota.setText(jumlah);\n //jmlanggota = Integer.valueOf(txtanggota.getText());\n }\n res.last();\n }catch (Exception e){\n } \n }", "void copyTextToTextBox(String text,boolean isMaxSet);", "public boolean isSetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TEXT$18) != 0;\n }\n }", "public int getNumTotal() {\n return nucleiSelected.size();\n }", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "public void clearLunchNutrition(){\n lunchNutritionOne.setText(\"\");\n lunchNutritionTwo.setText(\"\");\n }", "void animals_textBoxs_clearText() {\r\n this.nameAnimal_textBox.setText(null);\r\n this.alimentAnimal_textBox.setText(null);\r\n this.especie_textBox.setText(null);\r\n this.idadeAnimal_textBox.setText(null);\r\n this.sexo_textBox.setText(null);\r\n }", "Set<Long> findSentencesWithSameText(Long id);", "protected HashSet getNoMnemonic(){\n return tester.noMnemonic;\n }", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "@Override\n public int hashCode()\n {\n return Word().hashCode();\n }" ]
[ "0.63027537", "0.56336004", "0.5606347", "0.5583567", "0.55150443", "0.5495749", "0.54748684", "0.5449733", "0.54379827", "0.5433967", "0.5426167", "0.53801745", "0.53501946", "0.5320156", "0.53149337", "0.53022635", "0.5301991", "0.52922064", "0.52853173", "0.5274383", "0.52609634", "0.5252871", "0.5252417", "0.52448785", "0.5243827", "0.5240807", "0.5236783", "0.5231842", "0.5194938", "0.5182986", "0.5180836", "0.51729554", "0.51683295", "0.51519835", "0.51377845", "0.51170343", "0.5117011", "0.5114261", "0.51124316", "0.5111799", "0.51036435", "0.5102867", "0.51005226", "0.50918716", "0.50891423", "0.5088838", "0.50864846", "0.50791377", "0.50745344", "0.506466", "0.5059102", "0.505015", "0.50440437", "0.5027773", "0.502381", "0.5023698", "0.5019762", "0.5015086", "0.5011484", "0.5011186", "0.5008784", "0.5007451", "0.49988952", "0.49892926", "0.49858373", "0.49857765", "0.4983642", "0.49835044", "0.49819952", "0.49814734", "0.4980676", "0.498021", "0.49760476", "0.49687853", "0.49687394", "0.49680042", "0.49606025", "0.49605817", "0.49603266", "0.49601492", "0.49586716", "0.49581173", "0.49506932", "0.4941758", "0.49405387", "0.49393684", "0.49391216", "0.49346238", "0.49329022", "0.4932561", "0.49313658", "0.49244118", "0.49208444", "0.49123597", "0.49123093", "0.49116167", "0.4899982", "0.48981178", "0.48968694", "0.4895829", "0.48932868" ]
0.0
-1
Collections.reverse((List) uniekewoorden); AllSortedSet = new TreeSet(Collections.reverseOrder()); AllSortedSet.addAll(uniekewoorden);
@FXML private void sorteerAction(ActionEvent event) { taOutput.setText(woordenMethods.calcsort(DEFAULT_TEXT)); //throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n TreeSet<String> ts = new TreeSet<>(new MyComp().reversed());\n\n ts.add(\"C\");\n ts.add(\"B\");\n ts.add(\"A\");\n ts.add(\"G\");\n ts.add(\"Z\");\n ts.add(\"Q\");\n\n for (String element : ts){\n System.out.print(element);\n }\n }", "public List reverseTopologicalSort( ){\r\n return this.topologicalsorting.reverseTraverse();\r\n }", "@Test\n void descendingSetDescendingSetReturnsOriginalSet() {\n assertArrayEquals(filledSet.toArray(), reverseSet.descendingSet().toArray());\n }", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "@Test\r\n public void descendingSet() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n check.add(43);\r\n assertTrue(check.contains(43));\r\n assertTrue(kek.contains(43));\r\n assertTrue(kek.remove(43));\r\n assertFalse(check.contains(43));\r\n assertFalse(kek.contains(43));\r\n }", "public void reverse() {\n var previous = first;\n var current = first.next;\n\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = previous;\n previous = current;\n current = next;\n\n }\n first = previous;\n\n }", "public static void main(String[] args) {\nArrayList<String>names=new ArrayList<String>();\r\nnames.add(\"Volve\");\r\nnames.add(\"BMW\");\r\nnames.add(\"Audi\");\r\nnames.add(\"Benz\");\r\nSystem.out.println(names);\r\nCollections.sort(names);\r\nSystem.out.println(names);\r\nSystem.out.println(Collections.binarySearch(names,\"i10\"));\r\nCollections.reverse(names);\r\nSystem.out.println(names);\r\n\r\nTreeSet<String>ts=new TreeSet<String>();\r\nts.add(\"ram\");\r\nts.add(\"jai\");\r\nts.add(\"sandy\");\r\nts.add(\"jam\");\r\nts.add(\"sim\");\r\nSystem.out.println(ts);\r\nTreeSet<String>rev=(TreeSet<String>)ts.descendingSet();\r\nSystem.out.println(ts);\r\nSystem.out.println(ts.contains(\"santhosh\"));\r\n\r\n\r\n\t}", "public void ordenarHabitantesDesc() {\r\n Collections.sort(ciudades, new HabitantesComparator());\r\n Collections.reverse(ciudades);\r\n }", "public void reverse() {\n\t\tif(isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tNodo <T> pri_n= fin;\n\t\t\n\t\tint cont= tamanio-1;\n\t\tNodo<T> nodo_act= pri_n;\n\t\twhile(cont >0) {\n\t\t\tNodo <T> aux= getNode(cont-1);\n\t\t\tnodo_act.setSiguiente(aux);\n\t\t\tnodo_act= aux;\n\t\t\tcont--;\n\t\t}\n\t\tinicio = pri_n;\n\t\tfin= nodo_act;\n\t\tfin.setSiguiente(null);\n\t}", "public static void DecOrder(ArrayList<Integer> list)\n{\n // Your code here\n Collections.sort(list, Collections.reverseOrder());\n}", "public void sortDescending()\r\n\t{\r\n\t\tList<Book> oldItems = items;\r\n\t\titems = new ArrayList<Book>(items);\r\n\t\tCollections.sort(items, Collections.reverseOrder());\r\n\t\tfirePropertyChange(\"books\", oldItems, items);\r\n\t}", "public void reverse() {\n\t\tNode<E> temp = null;\n\t\tNode<E> n = root;\n\n\t\twhile (n != null) {\n\t\t\ttemp = n.getBefore();\n\t\t\tn.setBefore(n.getNext());\n\t\t\tn.setNext(temp);\n\t\t\tn = n.getBefore();\n\t\t}\n\n\t\ttemp = root;\n\t\troot = tail;\n\t\ttail = temp;\n\t}", "public myList<T> my_postorder();", "@Test\r\n public void descendingSetIterator() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n Object[] arr1 = kek.toArray();\r\n Object[] arr2 = check.toArray();\r\n for (int i = 0; i < arr1.length; i++) {\r\n assertEquals(arr1[i], arr2[arr1.length - 1 - i]);\r\n }\r\n }", "public static void main(String[] args) {\n SortedSet<Long> longTreeSet = new TreeSet<>();\n longTreeSet.add(3L);\n longTreeSet.add(3L);\n longTreeSet.add(39L);\n longTreeSet.add(30L);\n longTreeSet.add(30L);\n\n System.out.println(\"longTreeSet = \" + longTreeSet);\n System.out.println(\"longTreeSet.size() = \" + longTreeSet.size());\n System.out.println(\"longTreeSet.first() = \" + longTreeSet.first());\n System.out.println(\"longTreeSet.last() = \" + longTreeSet.last());\n\n longTreeSet.addAll(Arrays.asList(15L, 18L, 15L, 18L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n //longTreeSet.add(null);\n // System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n System.out.println(\"longTreeSet.subSet(15L, 21L) = \" + longTreeSet.subSet(15L, 30L));\n System.out.println(\"longTreeSet.headSet(18L) = \" + longTreeSet.headSet(18L));\n System.out.println(\"longTreeSet.tailSet(18L) = \" + longTreeSet.tailSet(18L));\n\n SortedSet<Long> tailView = longTreeSet.tailSet(18L);\n System.out.println(\"tailView.remove(30L) = \" + tailView.remove(30L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n\n }", "public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }", "public static void listarAsiduos(ArrayList<Usuario> usuarios) {\n ArrayList<Usuario> asiduos = usuarios;\n Collections.sort(asiduos,Collections.reverseOrder());//ordenar lista\n for(Usuario u: asiduos){\n System.out.print(u);\n }\n }", "public List reverseTopologicalSort( Vertex startat ){\r\n return this.topologicalsorting.reverseTraverse( startat );\r\n }", "public void reverse() {\n\t\tif (!this.isEmpty()) {\n\t\t\tT x = this.peek();\n\t\t\tthis.pop();\n\t\t\treverse();\n\t\t\tinsert_at_bottom(x);\n\t\t} else\n\t\t\treturn;\n\t}", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeSet<Object> treeSet = new TreeSet<Object>();\r\n\t treeSet.add(45);\r\n\t treeSet.add(15);\r\n\t treeSet.add(99);\r\n\t treeSet.add(70);\r\n\t treeSet.add(65);\r\n\t treeSet.add(30);\r\n\t treeSet.add(10);\r\n\t System.out.println(\"TreeSet Ascending order : \" + treeSet);\r\n\t NavigableSet<Object> res = treeSet.descendingSet();\r\n\t System.out.println(\"TreeSet after Descending order\" + res);\r\n\t \r\n\t // How to Change it Descending order For TreeMap\r\n\t TreeMap<Object,Object> treeMap = new TreeMap<Object,Object>();\r\n\t treeMap.put(1,\"A\");\r\n\t treeMap.put(5,\"B\");\r\n\t treeMap.put(3,\"C\");\r\n\t treeMap.put(7,\"F\");\r\n\t treeMap.put(2,\"G\");\r\n\t System.out.println(\"TreeMap Ascending order : \" + treeMap);\r\n\t NavigableMap<Object,Object> result = treeMap.descendingMap();\r\n\t System.out.println(\"TreeMap after Descending order\" + result);\r\n\t \r\n\t // Covert HashSet or List to Array\r\n\t HashSet<String> hset = new HashSet<String>();\r\n\t hset.add(\"Element1\");\r\n\t hset.add(\"Element2\");\r\n\t hset.add(\"Element3\");\r\n\t hset.add(\"Element4\");\r\n\t // Displaying HashSet elements\r\n\t System.out.println(\"HashSet contains: \"+ hset); \r\n\t // Creating an Array\r\n\t String[] array = new String[hset.size()];\r\n\t hset.toArray(array);\r\n\t // Displaying Array elements\r\n\t System.out.println(\"Array elements: \");\r\n\t for(String temp : array){\r\n\t System.out.println(temp);\r\n\t }\r\n\t \r\n\t // HashMap Creation with Load Factor \r\n\t Map<String, String> hmapFac = new HashMap<>(12,0.95f);\r\n\t hmapFac.put(\"1\", \"Debu\");\r\n\t hmapFac.put(\"2\", \"Debu\");\r\n\t hmapFac.put(\"3\", \"Shyam\");\r\n\t hmapFac.put(\"4\", \"Uttam\");\r\n\t hmapFac.put(\"5\", \"Gautam\");\r\n\t System.out.println(\"Created with Load Factor \" + hmapFac);\r\n\t \r\n\t \r\n\t \r\n\t //how to copy one hashmap content to another hashmap\r\n\t Map<String, String> hmap1 = new HashMap<>();\r\n\t hmap1.put(\"1\", \"Debu\");\r\n\t hmap1.put(\"2\", \"Debu\");\r\n\t hmap1.put(\"3\", \"Shyam\");\r\n\t hmap1.put(\"4\", \"Uttam\");\r\n\t hmap1.put(\"5\", \"Gautam\");\r\n\t // Create another HashMap\r\n\t HashMap<String, String> hmap2 = new HashMap<String, String>();\r\n\t // Adding elements to the recently created HashMap\r\n\t hmap2.put(\"7\", \"Jerry\");\r\n\t hmap2.put(\"8\", \"Tom\");\r\n\t // Copying one HashMap \"hmap\" to another HashMap \"hmap2\"\r\n\t hmap2.putAll(hmap1);\r\n\t System.out.println(\"After Copy in The HashMap \" + hmap2);\r\n\t \r\n\t // Map containsKey(), containsValue and get() method\r\n\t // get() by index for List and similar contains available for List , Set\r\n\t \r\n\t Map<String, String> map = new HashMap<>();\r\n\t\t\tmap.put(\"1\", \"Debu\");\r\n\t\t\tmap.put(\"2\", \"Debu\");\r\n\t\t\tmap.put(\"3\", \"Shyam\");\r\n\t\t\tmap.put(\"4\", \"Uttam\");\r\n\t\t\tmap.put(\"5\", \"Gautam\");\r\n\t\t\tSystem.out.println(\"Map containsKey() : \" + map.containsKey(\"2\"));\r\n\t\t\tSystem.out.println(\"Map containsValue() : \" + map.containsValue(\"Debu\"));\r\n\t\t\tSystem.out.println(\"Map get() : \" + map.get(\"4\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t // Few Common Collection Method ========\r\n\t\t\tList<Integer> list = new ArrayList<>();\r\n\t\t\tlist.add(5);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tlist.add(1);\r\n\t\t\t// size()\r\n\t\t\tSystem.out.println(\"List Size() : \" + list.size());\r\n\t\t\t// contains() , Similar containsAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Contains() : \" + list.contains(1));\r\n\t\t\t// remove() - Here by object of element , also can be happen by index \r\n\t\t\t// Similar removeAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Before remove : \" + list);\r\n\t\t\tSystem.out.println(\"List remove() : \" + list.remove(3));\r\n\t\t\tSystem.out.println(\"List After remove : \" + list);\r\n\t\t\t\r\n\t\t\t// isEmpty()\r\n\t\t\tSystem.out.println(\"List isEmpty() : \" + list.isEmpty());\r\n\t\t\t// retainAll() - matching\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(8);\r\n\t\t\tList<Integer> list1 = new ArrayList<>();\r\n\t\t\tlist1.add(8);\r\n\t\t\tlist1.add(3);\r\n\t\t\tSystem.out.println(\"List Before retainAll() : \" +list );\r\n\t\t\tlist.retainAll(list1);\r\n\t\t\tSystem.out.println(\"List AFter retainAll() : \" +list );\r\n\t\t\t\r\n\t\t\t// clear()\r\n\t\t\tSystem.out.println(\"List Before clear() : \" +list );\r\n\t\t\t\r\n\t\t\tlist.clear();\r\n\t\t\tSystem.out.println(\"List AFter clear() : \" + list );\r\n\t\t\t// Below line compile time error\r\n\t\t\t//System.out.println(\"List AFter clear() : \" + list.clear() );\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tSystem.out.println(\"List AFter Adding() : \" +list );\r\n\t\t\t\r\n\t\t\t\r\n\t}", "public void reverse() {\n\t\tNode previous = first;\n\t\tNode current = first.next;\n\n\t\twhile (current != null) {\n\t\t\tNode next = current.next;\n\t\t\tcurrent.next = previous;\n\n\t\t\tprevious = current;\n\t\t\tcurrent = next;\n\t\t}\n\t\tlast = first;\n\t\tlast.next = null;\n\t\tfirst = previous;\n\t}", "private ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "private <T> Collection<T> reverse(Collection<T> col) {\n List<T> list = new ArrayList<>();\n col.forEach(list::add);\n Collections.reverse(list);\n return list;\n }", "@Override\r\n public NavigableSet<K> descendingKeySet() {\n return null;\r\n }", "void reverseList(){\n\n Node prev = null;\n Node next = null;\n Node iter = this.head;\n\n while(iter != null)\n {\n next = iter.next;\n iter.next = prev;\n prev = iter;\n iter = next;\n\n }\n\n //prev is the link to the head of the new list\n this.head = prev;\n\n }", "public static void main(String[] args) {\n\t\tSet<String> lista = new TreeSet<>();\n\t\t\tlista.add(\"vermelho\");\n\t\t\tlista.add(\"verde\");\n\t\t\tlista.add(\"verde\");\n\t\t\tlista.add(\"amarelo\");\n\t\t\n\t\tSystem.out.println(lista);\n\t\t\n\t\t//Result.: mostrou na ordem invertida\n\t}", "public static void main(String[] args) {\n\t\tList l1=new ArrayList();\n\t\tl1.add(0, \"Gyan\");\n\t\tl1.add(1, \"Ranjan\");\n\t\tl1.add(2, \"Mahapatra\");\n\t\tSystem.out.println(l1);\n\t\tl1.add(2,\"xyz\");\n\t\tSystem.out.println(l1 + \" \" +l1.get(2));\nint a[]=new int[8];\nfor(int i=0;i<8;i++){\n\ta[i]=i;\n}\n//for(int j:a)\n//\tSystem.out.println(j);\nList l2=new ArrayList();\nl2.add(\"Sonit\");\nl2.add(\"Dora\");\nl2.add(\"Sourav\");\n/*System.out.println(l2);\nl2.remove(1);*/\nSystem.out.println(l2);\nSet s=new HashSet();\ns.add(\"seta\");\ns.add(\"setc\");\ns.add(\"setb\");\nSystem.out.println(s);\nCollections.sort((List) s);\nSystem.out.println(s);\n\nSet s1=new TreeSet(s);\nSystem.out.println(s1.size());\nSystem.out.println(\"Gyan\");\n\t}", "private static Node reverseList(Node start) {\n Node runner = start;\n // initialize the return value\n Node rev = null;\n // set the runner to the last item in the list\n while (runner != null) {\n Node next = new Node(runner.value);\n next.next = rev;\n rev = next;\n runner = runner.next;\n }\n return rev;\n }", "public void reverse() {\n\t\t// write you code for reverse using the specifications above\t\t\n\t\tNode nodeRef = head;\n\t\thead = null;\n\t\t\n\t\twhile(nodeRef != null) {\n\t\t\tNode tmp = nodeRef;\n\t\t\tnodeRef = nodeRef.next;\n\t\t\ttmp.next = head;\n\t\t\thead = tmp;\n\t\t}\n\t}", "<T extends Comparable> SortedSet<T> sorted(Set<T> in) {\n return new TreeSet<>(in);\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public Iterable<Integer> reverseOrder() {\r\n\t\treturn reverseOrder;\r\n\t}", "public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }", "public LinkedList descendingOrder(){\r\n\t\t\r\n\t\tLinkedList treeAsList = new LinkedList();\r\n\t\treturn descending(this, treeAsList);\r\n\t}", "@Test\n public void correctnessReverse() {\n final Iterator<Partition<Integer>> it = Partitions.lexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final Iterator<Partition<Integer>> itr = Partitions.reverseLexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final List<Partition<Integer>> partitions = new ArrayList<>();\n final List<Partition<Integer>> partitionsReverse = new ArrayList<>();\n while (it.hasNext() && itr.hasNext()) {\n final Partition<Integer> p = it.next();\n final Partition<Integer> pr = itr.next();\n partitions.add(p);\n partitionsReverse.add(pr);\n }\n Assert.assertTrue(!it.hasNext() && !itr.hasNext());\n Collections.reverse(partitionsReverse);\n Assert.assertEquals(partitions, partitionsReverse);\n }", "public Set<User> sort(List<User> list) {\n TreeSet result = new TreeSet();\n result.addAll(list);\n\n return result;\n }", "@Override // com.google.common.collect.ImmutableSortedSet\n public ImmutableSortedSet<C> createDescendingSet() {\n return new DescendingImmutableSortedSet(this);\n }", "@Test\n public void testReverse() {\n System.out.println(\"reverse\");\n al.add(1);\n al.add(2);\n al.add(3);\n ArrayList<Integer> rl = new ArrayList<>();\n rl.add(3);\n rl.add(2);\n rl.add(1);\n al.reverse();\n assertEquals(rl.get(0), al.get(0));\n assertEquals(rl.get(1), al.get(1));\n assertEquals(rl.get(2), al.get(2));\n }", "public static java.util.Comparator reverseOrder()\n { return null; }", "@Test\n void descendingSetLowerReturnsCorrectValue() {\n assertEquals(Integer.valueOf(1), reverseSet.lower(0));\n assertEquals(Integer.valueOf(2), reverseSet.lower(1));\n assertEquals(Integer.valueOf(4), reverseSet.lower(2));\n assertEquals(Integer.valueOf(4), reverseSet.lower(3));\n assertEquals(Integer.valueOf(6), reverseSet.lower(4));\n assertEquals(Integer.valueOf(6), reverseSet.lower(5));\n assertEquals(Integer.valueOf(9), reverseSet.lower(6));\n assertEquals(Integer.valueOf(9), reverseSet.lower(7));\n assertEquals(Integer.valueOf(9), reverseSet.lower(8));\n assertNull(reverseSet.lower(9));\n assertNull(reverseSet.lower(10));\n }", "public List<T> postorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n postorderHelper(list, root);\n }\n return list;\n }", "public void reverse(boolean ascending) {\n\t\tif (!ascending)\n\t\t\tCollections.reverse(FlightData.ITEMS);\n\t}", "public static Comparator<Node> getValueOrder(){\r\n\t\treturn new ReverseOrderComparator();\r\n\t}", "@Test\r\n public void anotherConstructorWorks() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>(Comparator.reverseOrder());\r\n assertTrue(check.add(1));\r\n assertTrue(check.add(2));\r\n assertFalse(check.add(2));\r\n assertArrayEquals(new Integer[]{2, 1}, check.toArray());\r\n assertTrue(check.add(4));\r\n assertTrue(check.remove(2));\r\n assertFalse(check.remove(43));\r\n assertArrayEquals(new Integer[]{4, 1}, check.toArray());\r\n }", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "public void reverse() {\n\n\t\tif (head == null) {\n\t\t\tSystem.out.println(\"List is empty.\");\n\t\t\treturn;\n\t\t}\n\t\tint nodes = nodeCounter();\n\t\tDLNode t = tail.prev;\n\t\thead = tail;\n\t\tfor (int i = 0; i < nodes - 1; i++) {\n\n\t\t\tif (t.list == null && t.val != Integer.MIN_VALUE) {\n\t\t\t\tthis.reverseHelperVal(t.val);\n\t\t\t\tt = t.prev;\n\t\t\t} else {\n\t\t\t\tthis.reverseHelperList(t.list);\n\t\t\t\tt = t.prev;\n\t\t\t}\n\t\t}\n\t\ttail.next = null;\n\t\thead.prev = null;\n\n\t}", "public ArrayList<Player> getLeaderboard() {\n ArrayList<Player> result = new ArrayList(players);\n for (Player player : players) {\n Collections.sort(result);\n Collections.reverse(result);\n }\n return result;\n}", "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public static void main(String[] args) {\n SortedSet<String> fruits = new TreeSet<>(Comparator.reverseOrder());\n\n /*\n The above TreeSet with the custom Comparator is the concise form of the following:\n SortedSet<String> fruits = new TreeSet<>(new Comparator<String>() {\n @Override\n public int compare(String s1, String s2) {\n return s2.compareTo(s1);\n }\n });\n */\n\n // Adding new elements to a TreeSet\n fruits.add(\"Banana\");\n fruits.add(\"Apple\");\n fruits.add(\"Pineapple\");\n fruits.add(\"Orange\");\n\n System.out.println(\"Fruits Set : \" + fruits);\n\n System.out.println(fruits.tailSet(\"Banana\"));\n System.out.println(fruits.subSet(\"Orange\", \"Banana\"));\n // creating a TreeSet\n TreeSet<Integer> treeadd = new TreeSet<>();\n\n // adding in the tree set\n treeadd.add(12);\n treeadd.add(11);\n treeadd.add(16);\n treeadd.add(15);\n\n // getting ceiling value for 13\n System.out.println(\"Ceiling value for 13: \" + treeadd.ceiling(13));//15\n System.out.println(\"Flooring value for 13: \" + treeadd.floor(13));//12\n }", "public static void main(String[] args) {\r\n\t\t\tTreeSet t1=new TreeSet();\r\n\t\t\t\r\n\t\t\tt1.add(8);\r\n\t\t\tt1.add(88);\r\n\t\t\tt1.add(9);\r\n\t\t\tt1.add(8);\r\n\t\t\tt1.add(4);\r\n\t\t\t\r\n\t\t\tSystem.out.println(t1);\r\n\t\t\tSystem.out.println(\"---------------\");\r\n\r\n\r\n\t\t\t\r\n\t\t\tLinkedList l1=new LinkedList(t1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tListIterator i=l1.listIterator();\r\n\t\t\t\r\n\t\t\twhile (i.hasPrevious())\r\n\t\t\t\tSystem.out.println(i.previous());\r\n\t\t\t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n TreeSet<String> t = new TreeSet();\n\n t.add(\"A\");\n t.add(\"B\");\n t.add(\"C\");\n\n TreeSet<String> u = t;\n\n for (String x : t) {\n System.out.println(x);\n u.add(\"\" + new Date());\n }\n\n }", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "public void sortareDesc(List<Autor> autoriList){\n\t\tboolean ok;\t\t\t\t \n\t\tdo { \n\t\t ok = true;\n\t\t for (int i = 0; i < autoriList.size() - 1; i++)\n\t\t if (autoriList.get(i).getNrPublicatii() < autoriList.get(i+1).getNrPublicatii()){ \n\t\t \t Autor aux = autoriList.get(i);\t\t//schimbarea intre autori\n\t\t \t Autor aux1 = autoriList.get(i+1);\t\n\t\t \t try {\n\t\t \t\t \trepo.schimbareAutori(aux,aux1);\n\t\t\t } catch (Exception e) {\n\t\t\t System.out.println(e.getMessage());\n\t\t\t }\n\t\t\t\t ok = false;\n\t\t\t}\n\t\t}\n\t while (!ok);\n\t }", "default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }", "public Graphe reverse()\t{\r\n \tfor(Liaison route : this.routes)\r\n \t\tif(route.isSensUnique())\r\n \t\t\troute.reverse();\t//TODO check si reverse marche bien\r\n \treturn this;\r\n }", "public static void main(String[] args) {\n \n LinkedList<Integer> l = new LinkedList<Integer>();\n l.add(1);\n l.add(2);\n l.add(3);\n l.add(4);\n ReverseCollection rev = new ReverseCollection();\n rev.reverse(l);\n System.out.println(Arrays.toString(l.toArray()));\n\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void sort() {\n\tqsort(a,0,a.length-1);\n }", "public List<E> sort()\n {\n ArrayList<E> answer = new ArrayList<>();\n \n while (root != null)\n {\n if(debug)\n System.out.println(\"root = \" + root);\n answer.add(root.value);\n root = root.promote();\n }\n return answer;\n }", "public static List<Object> reverseObjectList(List<Object> toReverse) {\n\t\tfor (int i = 0; i < toReverse.size() / 2; i++) {\n\t\t\tObject temp = toReverse.get(i);\n\t\t\ttoReverse.set(i, toReverse.get(toReverse.size() - 1 - i));\n\t\t\ttoReverse.set(toReverse.size() - 1 - i, temp);\n\t\t}\n\t\treturn toReverse;\n\t}", "public void removeSort() {\n this.sortOrder = null;\n }", "public void reverse() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tDoubleNode left=head, right=tail;\n\t\t\tchar temp;\n\t\t\twhile(left!=right&&right!=left.getPrev()){\n\t\t\t\ttemp=left.getC();\n\t\t\t\tleft.setC(right.getC());\n\t\t\t\tright.setC(temp);\n\t\t\t\tleft=left.getNext();\n\t\t\t\tright=right.getPrev();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public List<Message> findAllReverseOrder() {\n List<Message> messages = repository.findAll();\n\n // Reverse the list\n Collections.reverse(messages);\n\n return messages;\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public myList<T> my_preorder();", "private void sort() {\n ObservableList<Node> workingCollection = FXCollections.observableArrayList(\n this.getChildren()\n );\n\n Collections.sort(workingCollection, new Comparator<Node>() {\n @Override\n public int compare(Node o1, Node o2) {\n CardView c1 = (CardView) o1;\n CardView c2 = (CardView) o2;\n return c1.getCard().compareTo(c2.getCard());\n }\n });\n\n this.getChildren().setAll(workingCollection);\n }", "private void sortChanges(List changeList) {\r\n\t\tSortedSet changeSet = new TreeSet(ChangeComparator.INSTANCE);\r\n\t\tchangeSet.addAll(changeList);\r\n\t\tchangeList.clear();\r\n\t\tfor (Iterator iter = changeSet.iterator(); iter.hasNext();) {\r\n\t\t\tchangeList.add(iter.next());\r\n\t\t}\r\n\t}", "void reverse()\n\t{\n\t\tint a;\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\telse\n\t\t{\t\n\t\t\ta = dequeue();\n\t\t\treverse(); \n\t\t\tenqueue(a);\n\t\t}\n\t}", "@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}", "public static void main(String[] args) {\n\t\tArrayList<Integer> al=new ArrayList<>();\n\t\tal.add(34);\n\t\tal.add(64);\n\t\tal.add(13);\n\t\tal.add(34);\n\t\tal.add(98);\n\t\tal.add(78);\n\t\tSystem.out.println(al.size());\n\t\tSet<Integer> s=new LinkedHashSet<Integer>(al);\n\t\tSystem.out.println(s);\n\t\tCollections.sort(al);\n\t\tSystem.out.println(al);\n\t}", "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesByComparator_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>(Comparator.reverseOrder());\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[5, 4, 3, 2, 1]\", map.keySet().toString());\r\n\t}", "public void sortDNAs() {\n DNAs = TLArrayList.sort(DNAs);\n }", "public void changeSortOrder();", "public void revComp() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n char c = seq.get(seq.size() - 1 - i);\n newSeq.add(complement(c));\n }\n seq = newSeq;\n }", "public void reverse()\n\t{\n\t\tSinglyLinkedListNode nextNode = head;\n\t\tSinglyLinkedListNode prevNode = null;\n\t\tSinglyLinkedListNode prevPrevNode = null;\n\t\twhile(head != null)\n\t\t{\n\t\t\tprevPrevNode = prevNode;\n\t\t\tprevNode = nextNode;\n\t\t\tnextNode = prevNode.getNext();\n\t\t\tprevNode.setNext(prevPrevNode);\n\t\t\tif(nextNode == null)\n\t\t\t{\n\t\t\t\thead = prevNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Spittle> findAllSorted() {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\r\n\t\tSortedSet<String> ss = new TreeSet<String>();\r\n\t\tss.add(\"geeta\");\r\n\t\tss.add(\"seeta\");\r\n\t\tss.add(\"meeta\");\r\n\t\tss.add(\"neeta\");\r\n\t\tss.add(\"reeta\");\r\n\t\tSystem.out.println(\"SortedSet elements : \"+ ss);\r\n\t\tSystem.out.print(\"Iterating SortedSet elements : \");\r\n\t\tIterator it = ss.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n System.out.print(it.next() + \" \");\r\n }\r\n System.out.println();\r\n System.out.println(\"Lowest element :\"+ ss.first());\r\n System.out.println(\"Highest element :\"+ ss.last());\r\n System.out.println(\"Lesser than elements : \" +ss.headSet(\"seeta\"));\r\n System.out.println(\"Higher than or equals elements : \"+ ss.tailSet(\"meeta\"));\r\n System.out.println(\"Range elements : \"+ss.subSet(\"neeta\", \"reeta\"));\r\n \r\n\t}", "private void reverse(ListNode startNode, ListNode endNode) {\n endNode.next = null;\n ListNode pre = startNode, cur = startNode.next, newEnd = pre;\n while (cur != null) {\n ListNode nextNode = cur.next;\n cur.next = pre;\n pre = cur;\n cur = nextNode;\n }\n }", "public static ObservableList popuniTabeluDogadjaja() {\n Collections.sort(dogadjaji, COMPARATOR);\r\n ObservableList allData = FXCollections.observableArrayList(dogadjaji);\r\n return allData;\r\n }", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public void notifyDataSetChanged() {\n Collections.sort(data);\n\n super.notifyDataSetChanged();\n }", "void reverse();", "void reverse();", "@Test\n public void testReverseOrderSort() {\n BubbleSort<Integer> testing = new BubbleSort<>();\n\n testing.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return i2.compareTo(i1);\n }\n });\n\n checkReverseOrder(\"Bubble sort doesn't work with other comparator!\", array);\n }", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "@Override\n public Iterator<E> reverseIterator() {\n return collection.iterator();\n }", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public /*@ non_null @*/ JMLListEqualsNode<E> reverse() {\n JMLListEqualsNode<E> ptr = this;\n JMLListEqualsNode<E> ret = null;\n //@ loop_invariant ptr != this ==> ret != null;\n //@ maintaining (* ret is the reverse of items in this up to ptr *);\n while (ptr != null) {\n //@ assume ptr.val != null ==> \\typeof(ptr.val) <: elementType;\n ret = new JMLListEqualsNode<E>(ptr.val == null ? null\n : (ptr.val) ,\n ret);\n ptr = ptr.next;\n }\n //@ assert ptr == null && ret != null;\n //@ assume elementType == ret.elementType;\n //@ assume containsNull <==> ret.containsNull;\n return ret;\n }", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "public static void main(String[] args) {\n\t\tTreeSet<String> myset=new TreeSet<String>();\r\n\t\t myset.add(\"ardra\");\r\n\t\t myset.add(\"anakha\");\r\n\t\t myset.add(\"anusha\");\r\n\t\t myset.add(\"ananya\");\r\n\t\t \r\n\t\t \r\n\t\t TreeSet<String> myset1=new TreeSet<String>();\r\n\t\t myset1=(TreeSet<String>) myset.clone();\r\n\t\t System.out.println(myset1);\r\n\t\t \r\n\r\n\t}", "public void postorder()\n {\n postorder(root);\n }", "public void postorder()\n {\n postorder(root);\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }" ]
[ "0.6420143", "0.6408913", "0.6355877", "0.63282925", "0.6304356", "0.62062454", "0.60861397", "0.60647434", "0.6017355", "0.599709", "0.5952579", "0.5936244", "0.5927828", "0.59216815", "0.5913819", "0.5875925", "0.58699113", "0.5861611", "0.58594817", "0.58536196", "0.5845604", "0.5796432", "0.57899165", "0.57813466", "0.57620317", "0.5753666", "0.57497877", "0.57476133", "0.57430655", "0.57358587", "0.5729137", "0.57007974", "0.5698094", "0.5668752", "0.5666094", "0.56234646", "0.5613465", "0.56029177", "0.55826837", "0.5567991", "0.55660594", "0.55629104", "0.5550438", "0.55449545", "0.5530049", "0.5522726", "0.55035144", "0.5501753", "0.5499176", "0.54853743", "0.54691166", "0.5463102", "0.54386574", "0.54386115", "0.5432878", "0.5430437", "0.54257333", "0.5416478", "0.5412264", "0.53949267", "0.5381639", "0.53766614", "0.5370833", "0.53464204", "0.5346076", "0.53417856", "0.5340371", "0.5329522", "0.5329061", "0.5329061", "0.5329061", "0.53267086", "0.5325786", "0.53252566", "0.53231996", "0.5320469", "0.53120315", "0.531097", "0.53090864", "0.5295141", "0.5289425", "0.52849585", "0.52838016", "0.5261473", "0.5251031", "0.52461654", "0.52394277", "0.52354544", "0.5234842", "0.522971", "0.522971", "0.5225706", "0.5208134", "0.52048635", "0.520268", "0.5201609", "0.5200601", "0.5200527", "0.5196645", "0.5196645", "0.5193569" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int a[] = { 9, 3, 6, 4, 7, 2, 1 }; // size=7 int b[] = { 14, 3, 2, 6, 9, 7 }; //size =6 int c[] = {24,23,12,13,7,6,7,2}; // size=8 int d[] = new int[a.length + b.length+c.length]; //merging for (int i = 0; i < a.length; i++) { d[i] = a[i]; } int k = 0; for (int j = a.length; j < a.length+b.length; j++) { d[j] = b[k]; k = k + 1; } int m=0; for (int l = a.length+b.length; l < d.length; l++) { d[l]=c[m]; m=m+1; } //merging print statement for (int i =0;i < d.length; i++) { /// System.out.print(d[i]+" "); } //duplicate checking for (int i =0;i < d.length; i++) { for (int j =i+1;j < d.length; j++) { if(d[i]==d[j]) { d[j]=0; } if (d[i] > d[j]) { // sorting swap logic //int temp; //temp = d[i]; // d[i] = d[j]; // d[j] = temp; d[i] = d[i] + d[j]; d[j] = d[i] - d[j]; d[i] = d[i] - d[j]; } } } //removing the finding duplicates for (int h =0;h < d.length; h++) { if(d[h]!=0) { System.out.print(d[h]+" "); } } }
{ "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 Goran on 1/16/2018.
public interface ApiService { //--------------------------------------------Movies------------------------------------------------------------------------------ @GET("discover/movie?" + ApiConstants.ApiKey) Call<MovieModel> getMoviesByGenre(@Query("with_genres") String genre,@Query("page") int page); @GET("discover/movie?" + ApiConstants.ApiKey) Call<MovieModel> getMoviesByYear(@Query("primary_release_year") int year,@Query("page") int page); @GET("movie/{popular}?" + ApiConstants.ApiKey) Call<MovieModel> getMovies(@Path("popular")String popular,@Query("page") int page); @GET("movie/{movie_id}?" + ApiConstants.ApiKey) Call<Movie> getMovie(@Path("movie_id") int link,@Query("append_to_response")String credits); @GET("movie/{movie_id}/credits?" + ApiConstants.ApiKey) Call<CreditsModel> getMovieCredits(@Path("movie_id") int link); @GET("genre/movie/list?" + ApiConstants.ApiKey) Call<GenresModel> getGenres(); @GET("movie/{movie_id}/" + "similar?" + ApiConstants.ApiKey) Call<MovieModel> getSimilar(@Path("movie_id") int link); @GET("movie/{movie_id}/" + "videos?" + ApiConstants.ApiKey) Call<VideoModel> getVideo(@Path("movie_id") int link); @GET("search/movie?" + ApiConstants.ApiKey) Call<MovieModel> getSearchMovie(@Query("query") String query); @GET("movie/{movie_id}/images?" + ApiConstants.ApiKey) Call<ImageModel> getMovieImages(@Path("movie_id") int link); @GET("movie/{movie_id}/reviews?" + ApiConstants.ApiKey) Call<ReviewsModel> getMovieReviews(@Path("movie_id") int link); //--------------------------------------------Shows------------------------------------------------------------------------------ @GET("genre/tv/list?" + ApiConstants.ApiKey) Call<GenresModel> getTVGenres(); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByGenre(@Query("with_genres") String genre,@Query("page") int page); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByNetwork(@Query("with_networks") int id,@Query("page") int page); @GET("discover/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getTVByYear(@Query("primary_release_year") int year,@Query("page") int page); @GET("tv/{tv_id}?" + ApiConstants.ApiKey) Call<Shows> getShows(@Path("tv_id") int link ,@Query("append_to_response")String credits); @GET("tv/{shows}?" + ApiConstants.ApiKey) Call<ShowsModel> getShows(@Path("shows")String shows,@Query("page") int page); @GET("search/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getSearchShows(@Query("query") String query); @GET("tv/{tv_id}/" + "videos?" + ApiConstants.ApiKey) Call<VideoModel> getShowVideo(@Path("tv_id") int link); @GET("tv/{tv_id}/" + "similar?" + ApiConstants.ApiKey) Call<ShowsModel> getSimilarShows(@Path("tv_id") int link); @GET("tv/{tv_id}/credits?" + ApiConstants.ApiKey) Call<CreditsModel> getShowCredits(@Path("tv_id") int link); @GET("tv/{tv_id}/images?" + ApiConstants.ApiKey) Call<ImageModel> getShowsImages(@Path("tv_id") int link); //--------------------------------------------Person------------------------------------------------------------------------------ @GET("person/popular?" + ApiConstants.ApiKey) Call<PersonModel> getPopularPeople(@Query("page") int page); @GET("person/{person_id}/" + "movie_credits?" + ApiConstants.ApiKey) Call<CreditsModel> getPersonCredits(@Path("person_id") int link); @GET("person/{person_id}?" + ApiConstants.ApiKey) Call<Person> getPerson(@Path("person_id") int link); @GET("search/person?" + ApiConstants.ApiKey) Call<PersonModel> getSearchPerson(@Query("query") String query); //--------------------------------------------Login------------------------------------------------------------------------------ @GET("authentication/{guest_session}/new?" + ApiConstants.ApiKey) Call<User> getGuestUser(@Path("guest_session")String guest); @GET("authentication/token/validate_with_login?" + ApiConstants.ApiKey) Call<User> getValidateUser(@Query("username") String username,@Query("password") String password,@Query("request_token")String request_token); @GET("authentication/session/new?" + ApiConstants.ApiKey) Call<User> getUserSession(@Query("request_token") String reques_token); @GET("account?" + ApiConstants.ApiKey) Call<User> getUserDetails(@Query("session_id") String session_id); //--------------------------------------------Favorites------------------------------------------------------------------------------ @GET("account/{account_id}/favorite/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserFavorites(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("movie/{movie_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Movie> getFavorites(@Path("movie_id") int link,@Query("session_id")String session_id); @POST("account/{account_id}/favorite?" + ApiConstants.ApiKey) Call<Movie> postUserFavorites(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body FavoriteMoviePost body); @POST("account/{account_id}/favorite?" + ApiConstants.ApiKey) Call<Shows> postUserShowFavorites(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body FavoriteMoviePost body); @GET("account/{account_id}/favorite/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserShowsFavorites(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("tv/{tv_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Shows> getShowFavorite(@Path("tv_id") int link,@Query("session_id")String session_id); //--------------------------------------------Watchlist------------------------------------------------------------------------------ @GET("account/{account_id}/watchlist/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserWatchlist(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("movie/{movie_id}/" + "account_states?" + ApiConstants.ApiKey) Call<Movie> getWatchlist(@Path("movie_id") int link,@Query("session_id")String session_id); @POST("account/{account_id}/watchlist?" + ApiConstants.ApiKey) Call<Movie> postUserWatchlist(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body WatchlistMoviePost body); @POST("account/{account_id}/watchlist?" + ApiConstants.ApiKey) Call<Shows> postUserShowWatchlist(@Path("account_id") String account_id, @Query("session_id") String session_id, @Body WatchlistMoviePost body); @GET("account/{account_id}/watchlist/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserShowsWatchlist(@Path("account_id") String account_id,@Query("session_id") String session_id); //--------------------------------------------Rated------------------------------------------------------------------------------ @POST("movie/{movie_id}/rating?" + ApiConstants.ApiKey) Call<Movie> postUserRating(@Path("movie_id") int account_id, @Query("session_id") String session_id,@Body Rated body); @POST("tv/{tv_id}/rating?" + ApiConstants.ApiKey) Call<Shows> postUserShowRating(@Path("tv_id") int account_id, @Query("session_id") String session_id,@Body Rated body); @GET("account/{account_id}/rated/movies?" + ApiConstants.ApiKey) Call<MovieModel> getUserRated(@Path("account_id") String account_id,@Query("session_id") String session_id); @GET("account/{account_id}/rated/tv?" + ApiConstants.ApiKey) Call<ShowsModel> getUserRatedShows(@Path("account_id") String account_id,@Query("session_id") String session_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void interr() {\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 protected void getExras() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "public void mo38117a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void rozmnozovat() {\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\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private void m50366E() {\n }", "private void init() {\n\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void gravarBd() {\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}", "public void gored() {\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 int retroceder() {\n return 0;\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\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 Pitonyak_09_02() {\r\n }", "@Override\n public void initialize() {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public int getSize() {\n return 1;\n }", "Petunia() {\r\n\t\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "Consumable() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}" ]
[ "0.58313966", "0.5680538", "0.55990076", "0.550928", "0.54450375", "0.54450375", "0.5423022", "0.5420628", "0.54164964", "0.54108554", "0.5383826", "0.53682435", "0.53559065", "0.53451", "0.5327728", "0.5300649", "0.5300649", "0.5300649", "0.5300649", "0.5300649", "0.5300649", "0.52987134", "0.52778524", "0.5267456", "0.5263731", "0.52632695", "0.52595043", "0.524724", "0.5243804", "0.52337056", "0.5233685", "0.52322483", "0.5223263", "0.5220093", "0.52057695", "0.5202464", "0.5196595", "0.5193691", "0.5188148", "0.51870704", "0.5183758", "0.5183758", "0.5183758", "0.5183758", "0.5183758", "0.5180998", "0.5180633", "0.51797247", "0.5165109", "0.51640373", "0.5162094", "0.516041", "0.51601326", "0.5159168", "0.5154978", "0.5154978", "0.51138955", "0.51058465", "0.510536", "0.51013887", "0.50954664", "0.50954664", "0.50954664", "0.5090749", "0.5085484", "0.5085484", "0.5085484", "0.5078128", "0.506033", "0.506033", "0.5058839", "0.5057404", "0.5057404", "0.5049278", "0.5043088", "0.5042252", "0.5040046", "0.50386834", "0.50318944", "0.50318944", "0.50318944", "0.50290734", "0.50222415", "0.5017443", "0.5013864", "0.50091857", "0.50091857", "0.50091857", "0.50091857", "0.50091857", "0.50091857", "0.50091857", "0.50086266", "0.50079423", "0.50031924", "0.5000026", "0.49978068", "0.4996223", "0.4996223", "0.4996223", "0.49958584" ]
0.0
-1
Create transaction dao and insert data in db
@Override public TransactionModel createTransaction(String custId, LocalDateTime transactionTime, String accountNumber, TransactionType type, BigDecimal amount,String description) { return transactionDao.createTransaction(custId,accountNumber,transactionTime,type,amount,description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "public void createTransaction(Transaction trans);", "Transaction createTransaction();", "protected abstract Transaction createAndAdd();", "@Transactional\n DataRistorante insert(DataRistorante risto);", "@Repository\n@Transactional\npublic interface DemoDao {\n\n public void insert(Map map);\n\n}", "private void inseredados() {\n // Insert Funcionários\n\n FuncionarioDAO daoF = new FuncionarioDAO();\n Funcionario func1 = new Funcionario();\n func1.setCpf(\"08654683970\");\n func1.setDataNasc(new Date(\"27/04/1992\"));\n func1.setEstadoCivil(\"Solteiro\");\n func1.setFuncao(\"Garcom\");\n func1.setNome(\"Eduardo Kempf\");\n func1.setRg(\"10.538.191-3\");\n func1.setSalario(1000);\n daoF.persisteObjeto(func1);\n\n Funcionario func2 = new Funcionario();\n func2.setCpf(\"08731628974\");\n func2.setDataNasc(new Date(\"21/08/1992\"));\n func2.setEstadoCivil(\"Solteira\");\n func2.setFuncao(\"Caixa\");\n func2.setNome(\"Juliana Iora\");\n func2.setRg(\"10.550.749-6\");\n func2.setSalario(1200);\n daoF.persisteObjeto(func2);\n\n Funcionario func3 = new Funcionario();\n func3.setCpf(\"08731628974\");\n func3.setDataNasc(new Date(\"03/05/1989\"));\n func3.setEstadoCivil(\"Solteiro\");\n func3.setFuncao(\"Gerente\");\n func3.setNome(\"joão da Silva\");\n func3.setRg(\"05.480.749-2\");\n func3.setSalario(3000);\n daoF.persisteObjeto(func3);\n\n Funcionario func4 = new Funcionario();\n func4.setCpf(\"01048437990\");\n func4.setDataNasc(new Date(\"13/04/1988\"));\n func4.setEstadoCivil(\"Solteiro\");\n func4.setFuncao(\"Garçon\");\n func4.setNome(\"Luiz Fernandodos Santos\");\n func4.setRg(\"9.777.688-1\");\n func4.setSalario(1000);\n daoF.persisteObjeto(func4);\n\n TransactionManager.beginTransaction();\n Funcionario func5 = new Funcionario();\n func5.setCpf(\"01048437990\");\n func5.setDataNasc(new Date(\"13/04/1978\"));\n func5.setEstadoCivil(\"Casada\");\n func5.setFuncao(\"Cozinheira\");\n func5.setNome(\"Sofia Gomes\");\n func5.setRg(\"3.757.688-8\");\n func5.setSalario(1500);\n daoF.persisteObjeto(func5);\n\n // Insert Bebidas\n BebidaDAO daoB = new BebidaDAO();\n Bebida bebi1 = new Bebida();\n bebi1.setNome(\"Coca Cola\");\n bebi1.setPreco(3.25);\n bebi1.setQtde(1000);\n bebi1.setTipo(\"Refrigerante\");\n bebi1.setDataValidade(new Date(\"27/04/2014\"));\n daoB.persisteObjeto(bebi1);\n\n Bebida bebi2 = new Bebida();\n bebi2.setNome(\"Cerveja\");\n bebi2.setPreco(4.80);\n bebi2.setQtde(1000);\n bebi2.setTipo(\"Alcoolica\");\n bebi2.setDataValidade(new Date(\"27/11/2013\"));\n daoB.persisteObjeto(bebi2);\n\n Bebida bebi3 = new Bebida();\n bebi3.setNome(\"Guaraná Antatica\");\n bebi3.setPreco(3.25);\n bebi3.setQtde(800);\n bebi3.setTipo(\"Refrigerante\");\n bebi3.setDataValidade(new Date(\"27/02/2014\"));\n daoB.persisteObjeto(bebi3);\n\n Bebida bebi4 = new Bebida();\n bebi4.setNome(\"Água com gás\");\n bebi4.setPreco(2.75);\n bebi4.setQtde(500);\n bebi4.setTipo(\"Refrigerante\");\n bebi4.setDataValidade(new Date(\"27/08/2013\"));\n daoB.persisteObjeto(bebi4);\n\n Bebida bebi5 = new Bebida();\n bebi5.setNome(\"Whisky\");\n bebi5.setPreco(3.25);\n bebi5.setQtde(1000);\n bebi5.setTipo(\"Alcoolica\");\n bebi5.setDataValidade(new Date(\"03/05/2016\"));\n daoB.persisteObjeto(bebi5);\n\n // Insert Comidas\n ComidaDAO daoC = new ComidaDAO();\n Comida comi1 = new Comida();\n comi1.setNome(\"Batata\");\n comi1.setQuantidade(30);\n comi1.setTipo(\"Kilograma\");\n comi1.setDataValidade(new Date(\"27/04/2013\"));\n daoC.persisteObjeto(comi1);\n\n Comida comi2 = new Comida();\n comi2.setNome(\"Frango\");\n comi2.setQuantidade(15);\n comi2.setTipo(\"Kilograma\");\n comi2.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi2);\n\n Comida comi3 = new Comida();\n comi3.setNome(\"Mussarela\");\n comi3.setQuantidade(15000);\n comi3.setTipo(\"Grama\");\n comi3.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi3);\n\n Comida comi4 = new Comida();\n comi4.setNome(\"Presunto\");\n comi4.setQuantidade(10000);\n comi4.setTipo(\"Grama\");\n comi4.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi4);\n\n Comida comi5 = new Comida();\n comi5.setNome(\"Bife\");\n comi5.setQuantidade(25);\n comi5.setTipo(\"Kilograma\");\n comi5.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi5);\n\n\n // Insert Mesas\n MesaDAO daoM = new MesaDAO();\n Mesa mes1 = new Mesa();\n mes1.setCapacidade(4);\n mes1.setStatus(true);\n daoM.persisteObjeto(mes1);\n\n Mesa mes2 = new Mesa();\n mes2.setCapacidade(4);\n mes2.setStatus(true);\n daoM.persisteObjeto(mes2);\n\n Mesa mes3 = new Mesa();\n mes3.setCapacidade(6);\n mes3.setStatus(true);\n daoM.persisteObjeto(mes3);\n\n Mesa mes4 = new Mesa();\n mes4.setCapacidade(6);\n mes4.setStatus(true);\n daoM.persisteObjeto(mes4);\n\n Mesa mes5 = new Mesa();\n mes5.setCapacidade(8);\n mes5.setStatus(true);\n daoM.persisteObjeto(mes5);\n\n // Insert Pratos\n PratoDAO daoPr = new PratoDAO();\n Prato prat1 = new Prato();\n List<Comida> comI = new ArrayList<Comida>();\n comI.add(comi1);\n prat1.setNome(\"Porção de Batata\");\n prat1.setIngredientes(comI);\n prat1.setQuantidadePorcoes(3);\n prat1.setPreco(13.00);\n daoPr.persisteObjeto(prat1);\n\n Prato prat2 = new Prato();\n List<Comida> comII = new ArrayList<Comida>();\n comII.add(comi2);\n prat2.setNome(\"Porção de Frango\");\n prat2.setIngredientes(comII);\n prat2.setQuantidadePorcoes(5);\n prat2.setPreco(16.00);\n daoPr.persisteObjeto(prat2);\n\n Prato prat3 = new Prato();\n List<Comida> comIII = new ArrayList<Comida>();\n comIII.add(comi1);\n comIII.add(comi3);\n comIII.add(comi4);\n prat3.setNome(\"Batata Recheada\");\n prat3.setIngredientes(comIII);\n prat3.setQuantidadePorcoes(3);\n prat3.setPreco(13.00);\n daoPr.persisteObjeto(prat3);\n\n Prato prat4 = new Prato();\n List<Comida> comIV = new ArrayList<Comida>();\n comIV.add(comi2);\n comIV.add(comi3);\n comIV.add(comi4);\n prat4.setNome(\"Lanche\");\n prat4.setIngredientes(comIV);\n prat4.setQuantidadePorcoes(3);\n prat4.setPreco(13.00);\n daoPr.persisteObjeto(prat4);\n\n Prato prat5 = new Prato();\n prat5.setNome(\"Porção especial\");\n List<Comida> comV = new ArrayList<Comida>();\n comV.add(comi1);\n comV.add(comi3);\n comV.add(comi4);\n prat5.setIngredientes(comV);\n prat5.setQuantidadePorcoes(3);\n prat5.setPreco(13.00);\n daoPr.persisteObjeto(prat5);\n\n // Insert Pedidos Bebidas\n PedidoBebidaDAO daoPB = new PedidoBebidaDAO();\n PedidoBebida pb1 = new PedidoBebida();\n pb1.setPago(false);\n List<Bebida> bebI = new ArrayList<Bebida>();\n bebI.add(bebi1);\n bebI.add(bebi2);\n pb1.setBebidas(bebI);\n pb1.setIdFuncionario(func5);\n pb1.setIdMesa(mes5);\n daoPB.persisteObjeto(pb1);\n\n PedidoBebida pb2 = new PedidoBebida();\n pb2.setPago(false);\n List<Bebida> bebII = new ArrayList<Bebida>();\n bebII.add(bebi1);\n bebII.add(bebi4);\n pb2.setBebidas(bebII);\n pb2.setIdFuncionario(func4);\n pb2.setIdMesa(mes4);\n daoPB.persisteObjeto(pb2);\n\n TransactionManager.beginTransaction();\n PedidoBebida pb3 = new PedidoBebida();\n pb3.setPago(false);\n List<Bebida> bebIII = new ArrayList<Bebida>();\n bebIII.add(bebi2);\n bebIII.add(bebi3);\n pb3.setBebidas(bebIII);\n pb3.setIdFuncionario(func2);\n pb3.setIdMesa(mes2);\n daoPB.persisteObjeto(pb3);\n\n PedidoBebida pb4 = new PedidoBebida();\n pb4.setPago(false);\n List<Bebida> bebIV = new ArrayList<Bebida>();\n bebIV.add(bebi2);\n bebIV.add(bebi5);\n pb4.setBebidas(bebIV);\n pb4.setIdFuncionario(func3);\n pb4.setIdMesa(mes3);\n daoPB.persisteObjeto(pb4);\n\n PedidoBebida pb5 = new PedidoBebida();\n pb5.setPago(false);\n List<Bebida> bebV = new ArrayList<Bebida>();\n bebV.add(bebi1);\n bebV.add(bebi2);\n bebV.add(bebi3);\n pb5.setBebidas(bebV);\n pb5.setIdFuncionario(func1);\n pb5.setIdMesa(mes5);\n daoPB.persisteObjeto(pb5);\n\n // Insert Pedidos Pratos\n PedidoPratoDAO daoPP = new PedidoPratoDAO();\n PedidoPrato pp1 = new PedidoPrato();\n pp1.setPago(false);\n List<Prato> praI = new ArrayList<Prato>();\n praI.add(prat1);\n praI.add(prat2);\n praI.add(prat3);\n pp1.setPratos(praI);\n pp1.setIdFuncionario(func5);\n pp1.setIdMesa(mes5);\n daoPP.persisteObjeto(pp1);\n\n PedidoPrato pp2 = new PedidoPrato();\n pp2.setPago(false);\n List<Prato> praII = new ArrayList<Prato>();\n praII.add(prat1);\n praII.add(prat3);\n pp2.setPratos(praII);\n pp2.setIdFuncionario(func4);\n pp2.setIdMesa(mes4);\n daoPP.persisteObjeto(pp2);\n\n PedidoPrato pp3 = new PedidoPrato();\n pp3.setPago(false);\n List<Prato> praIII = new ArrayList<Prato>();\n praIII.add(prat1);\n praIII.add(prat2);\n pp3.setPratos(praIII);\n pp3.setIdFuncionario(func2);\n pp3.setIdMesa(mes2);\n daoPP.persisteObjeto(pp3);\n\n PedidoPrato pp4 = new PedidoPrato();\n pp4.setPago(false);\n List<Prato> praIV = new ArrayList<Prato>();\n praIV.add(prat1);\n praIV.add(prat3);\n pp4.setPratos(praIV);\n pp4.setIdFuncionario(func3);\n pp4.setIdMesa(mes3);\n daoPP.persisteObjeto(pp4);\n\n PedidoPrato pp5 = new PedidoPrato();\n pp5.setPago(false);\n List<Prato> praV = new ArrayList<Prato>();\n praV.add(prat1);\n praV.add(prat2);\n praV.add(prat3);\n praV.add(prat4);\n pp5.setPratos(praV);\n pp5.setIdFuncionario(func1);\n pp5.setIdMesa(mes5);\n daoPP.persisteObjeto(pp5);\n\n }", "void startTransaction();", "Transaction save(Transaction transaction);", "@SuppressWarnings(\"UnnecessaryLocalVariable\")\r\n private int create(T o) throws PersistenceException {\r\n String query = PREFIX_INSERT_QUERY + this.type.getSimpleName();\r\n Integer status = getSqlSession().insert(query, o);\r\n // ne doit pas être utilisé avec une session Spring\r\n // getSqlSession().commit();\r\n return status;\r\n }", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "public interface DarenMerchantInfosDao {\n public void insert(DarenMerchantInfos darenMerchantInfos);\n}", "Transaction beginTx();", "void beginTransaction();", "Transaction createTransaction(Settings settings);", "int insert(Transaction record);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public TrabajadoresDAO(TransactionContext context) {\n super(context);\n this.context = context;\n log = Logger.getLogger(this.getClass());\n }", "public interface ImportBaseManager {\n @Transactional\n void readFile(File file);\n\n void addUnitUser(Map<String, User> userMap, Map<String, Unit> unitMap);\n\n @Transactional\n Map<String,User> addUser(List<ImportBaseVO> vos, Map<String, Corp> unitCorpMap);\n\n @Transactional\n void addCostomerInfo(List<ImportBaseVO> vos, Map<String, Corp> customerMap, Map<String, Unit> unitMap);\n\n @Transactional\n Map<String,Corp> addCorp(List<ImportBaseVO> vos);\n\n @Transactional\n Map<String, Unit> addUnit(List<ImportBaseVO> vos, Map<String, Corp> customerMap,\n Map<String, City> provinceMap, Map<String, City> cityMap);\n\n // 保存客户公司\n Map<String,Corp> addCustomer(List<ImportBaseVO> vos);\n}", "public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}", "@Transactional\n public Employee insert(Employee employee) {\n logger.debug(\"Testing create employee :\");\n return employeeDao.insert(employee);\n }", "@Dao\npublic interface TransactionDao {\n @Query(\"SELECT * FROM `Transaction`\")\n List<Transaction> getAll();\n\n @Insert\n void insertAll(Transaction... trans);\n\n @Insert\n void insertAll(Transaction trans);\n\n @Delete\n void delete(Transaction trans);\n\n @Query(\"delete from `Transaction`\")\n void nukeTable();\n\n}", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "public void beginTransaction() throws Exception;", "void addTransaction(Transaction transaction) throws SQLException, BusinessException;", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "public void insert1(login uv) {\n\t\ttry\n {\n SessionFactory sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();\n \t\n Session session = sessionFactory.openSession();\n \n Transaction transaction=session.beginTransaction();\n \n session.save(uv);\n \n transaction.commit();\n \n session.close();\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n\t\t\n\t}", "public void saveOrUpdate(Transaction transaction) throws Exception;", "public void beginTransaction() {\n\r\n\t}", "@Override\n public void create(T entity) throws SQLException {\n\n this.dao.create(entity);\n\n }", "@Transactional\r\n\r\n\t@Override\r\n\tpublic void insertar(Distrito distrito) {\n\t\tem.persist(distrito);\t\r\n\t}", "IDbTransaction beginTransaction();", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "@Transactional\n\tpublic void insert(UserMtl userMtl,Integer idt){\n\t\tTree pasteT = owsSession.getSourceT();\n\t\tlog.debug(idt);\n\t\tlog.debug(pasteT);\n\t\tinsert(idt,pasteT,idt);\n\t}", "@Override\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n\r\n dbOpenHelper = new DbOpenHelper(getContext());\r\n\r\n db = dbOpenHelper.getWritableDatabase();\r\n db.beginTransaction();\r\n dao = new ExtraPartsDAO(db);\r\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "public TipoPk insert(Tipo dto) throws TipoDaoException;", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "public interface TransactionDAO {\n \n String addTransaction(Long userId, String transaction) throws Exception;\n \n String showTransaction(Long userId, String transactionId) throws Exception;\n \n String listTransactions(Long userId) throws Exception;\n \n String sumTransactions(Long userId) throws Exception;\n \n}", "@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "@Mapper\npublic interface ApiDataDao {\n\n @Transactional(readOnly = false)\n public void insert(ApiData apiData);\n\n}", "public void insert(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createInsert(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Insert \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t}", "@Transactional\npublic interface OperationDaoI extends BaseDaoI<Operation> {\n\n void saveOperation(Operation operation);\n}", "@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Override\r\n public void setTxnDao(TxnDAO txnDao) {\n }", "public interface ITestJtaBiz {\n void insert(int id);\n}", "void commitTransaction();", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}", "@Override\n\tpublic int createTransaction(BankTransaction transaction) throws BusinessException {\n\t\tint tran = 0;\n\t\t\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"insert into dutybank.transactions (account_id, transaction_type, amount, transaction_date) values(?,?,?,?)\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setInt(1, transaction.getAccountid());\n\t\t\tpreparedStatement.setString(2, transaction.getTransactiontype());\n\t\t\tpreparedStatement.setDouble(3, transaction.getTransactionamount());\n\t\t\tpreparedStatement.setDate(4, new java.sql.Date(transaction.getTransactiondate().getTime()));\n\n\t\t\t\n\t\t\ttran = preparedStatement.executeUpdate();\n\t\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some internal error has occurred while inserting data\");\n\t\t}\n\t\t\n\n\t\treturn tran;\n\t}", "public int startTransaction();", "private void insertData() {\n \n for (int i = 0; i < 3; i++) {\n ClienteEntity editorial = factory.manufacturePojo(ClienteEntity.class);\n em.persist(editorial);\n ClienteData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoPaseoEntity paseo = factory.manufacturePojo(ContratoPaseoEntity.class);\n em.persist(paseo);\n contratoPaseoData.add(paseo);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoHotelEntity editorial = factory.manufacturePojo(ContratoHotelEntity.class);\n em.persist(editorial);\n contratoHotelData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n PerroEntity perro = factory.manufacturePojo(PerroEntity.class);\n //perro.setCliente(ClienteData.get(0));\n //perro.setEstadias((List<ContratoHotelEntity>) contratoHotelData.get(0));\n //perro.setPaseos((List<ContratoPaseoEntity>) contratoPaseoData.get(0));\n em.persist(perro);\n Perrodata.add(perro);\n }\n\n }", "public interface BugsActivityDAO {\n\n @Insert(\"insert into firefox_bugs_activity \" +\n \"(`bugId`,`who`,`when`,`what`,`removed`,`added`,`crawledTime`) \" +\n \"values (#{bugId},#{who},#{when},#{what},#{removed},#{added},#{crawledTime})\")\n public int add(BugsActivity fireFoxBugsActivity);\n\n @Insert(\"insert into firefox_bugs_activity_html (`bugId`,`html`) \" +\"values (#{bugId},#{html})\")\n public int addHtml(BugsActivity fireFoxBugsActivity);\n}", "@Override\n public void startTx() {\n \n }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;", "@Override\n public void commitTx() {\n \n }", "public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "protected abstract void createDatabaseData(EntityManager entityManager);", "public interface TransactionDAO\n{\n public void addTransaction(Transaction transaction);\n public Transaction findById(Integer id);\n public List<Transaction> getAll();\n}", "private void insertData() \n {\n for(int i = 0; i < 2; i++){\n RazaEntity razaEntity = factory.manufacturePojo(RazaEntity.class);\n em.persist(razaEntity);\n razaData.add(razaEntity);\n }\n for (int i = 0; i < 3; i++) {\n EspecieEntity especieEntity = factory.manufacturePojo(EspecieEntity.class);\n if(i == 0)\n {\n especieEntity.setRazas(razaData);\n }\n em.persist(especieEntity);\n especieData.add(especieEntity);\n }\n }", "public RutaPk insert(Ruta dto) throws RutaDaoException;", "@Override\n\tpublic int Insert(Warehouse ware) {\n\t\ttry {\n\t\t\t\n\t\t\t System.out.println(\"WarehouseDAOManager is working\");\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t return (int)getSqlMapClientTemplate().insert(\"Warehouse.insertWarehouse\", ware);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"WarehouseDAOManager is not working\");\n\t\t\tsuccess=0;\n\n\t\t}\n\t\treturn 0;\n\t}", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "@PostConstruct\n void insertData() {\n\t\ttry {\n\t\t\tinsertDataFromJsonToDb.insertIntoDatabase();\n\t\t\tlogger.info(\"The database is filled by data\");\n\n\t\t} catch (Throwable throwable) {\n\t\t\tthrowable.printStackTrace();\n\t\t}\n\t}", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "@Repository\npublic interface SignInSendMessageDao {\n\n /**\n * 存入消息推送信息\n * @param message\n */\n @Insert({\n \"INSERT INTO sign_in_send_message(code,sponsor_id) values(#{message.code},#{message.sponsor_id})\",\n })\n void saveSendMessage(@Param(\"message\")SignInSendMessage message);\n\n}", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "@Test\r\n public void testA1Insert() throws Exception {\r\n System.out.println(\"insert\");\r\n \r\n Usuario obj = new Usuario();\r\n obj.setFullName(\"Nicolas Duran\");\r\n obj.setUser(\"admin\");\r\n obj.setPassword(\"admin\");\r\n obj.setEmail(\"[email protected]\");\r\n obj.setType(1);\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n int expResult = 0;\r\n int result = instance.insert(obj);\r\n \r\n assertNotEquals(expResult, result);\r\n }", "@Transactional\npublic interface ProteinDatabaseManagement {\n /**\n * Persists protein Id search database. This database could be available for everyone in case experiment param is null\n **/\n long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);\n\n long updateDatabaseDetails(long actor, long database, String databaseName, long databaseType);\n\n\n void deleteDatabase(long actor, long db);\n\n long getMaxDatabaseSize();\n\n void specifyProteinDatabaseContent(long userId, long proteinDb, String contentUrl);\n\n void markDatabasesInProgress(Iterable<Long> dbs);\n\n void updateDatabaseSharing(long actor, boolean bPublic, long databaseId);\n\n DuplicateResponse duplicateDatabase(long actor, long database);\n\n class DuplicateResponse{\n public final Long id;\n public final String errorMessage;\n\n public DuplicateResponse(Long id, String errorMessage) {\n this.id = id;\n this.errorMessage = errorMessage;\n }\n }\n}", "@Transactional\n\tpublic Test1 create_test1(Test1 Test1, TeUser user) throws Exception {\n\n\t \t log.setLevel(Level.INFO);\n\t log.info(\"create_test1 Dao started operation!\");//dhina updateverb\n\n\t\ttry{\n\t\t\tQuery query = entityManager\n\t\t\t\t\t.createNativeQuery(create_Test1)\n\t\t\t.setParameter(\"name\", Test1.getName())\n\t\t\t.setParameter(\"created_by\", user == null ? 0:user.getId())\n\t\t\t.setParameter(\"updated_by\", user == null ? 0:user.getId())\n;\n\n\t\t\tint insertedId = query.executeUpdate();\n\t\t\t\t\tString lastIndex=\"select last_insert_id()\";\n\t\t\t\t\tQuery sql = entityManager.createNativeQuery(lastIndex);\n\t\t\t\t\tBigInteger new_id = (BigInteger) sql.getSingleResult();\n\t\t\t\t\tTest1.setId(new_id.longValue());\n\t\t\t\t\tSystem.out.println(\"create data---\"+insertedId);\n\n\t\t\tlog.info(\"Object returned from create_test1 Dao method !\");\n\n\t\t\treturn Test1;\n\n\t\t}catch(Exception e){\n\n\t\t\t//System.out.println(\"DAOException: \" + e.toString());\n\t\t\tlog.error(\" Dao method (create_test1) throws Exception : \"+e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "public interface RequestPramDao {\n void insert(RequestPram requestPram);\n}", "@Override\r\n\tpublic int addTran(Transaction transaction) throws Exception {\n\t\t\t\t\r\n\t\treturn tranDao.insertTran(transaction);\r\n\t}", "public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public void insert(UsersTransaction transaction) throws DBException {\n\t\tConnection con = null;\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tString sql = \"insert into transaction_details (id,donor_id,fund_id,amount_funded) values ( ?,?,?,?)\";\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\tpst.setInt(3, transaction.getFundRequestId());\n\t\t\tpst.setInt(2, transaction.getDonorId());\n\t\t\tpst.setInt(1, transaction.getTransactionId());\n\t\t\tpst.setDouble(4, transaction.getTargetAmount());\n\t\t\tint rows = pst.executeUpdate();\n\t\t\tLogger.info(\"No of rows inserted :\" + rows);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DBException(\"unable to insert rows\");\n\t\t} finally {\n\t\t\tConnectionUtil.close(con, pst);\n\t\t}\n\t}", "public interface DalDataDetailDao extends BaseDao<DalDataDetail>{\n public int insertBatch(List<DalDataDetail> dalDataDetails);\n}", "IDbTransaction beginTransaction(IsolationLevel il);", "public void create(final Object obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().save(obj);\n }\n });\n }", "public interface SafeDao {\n /**\n * 写入数据库\n */\n int insertData(@Param(\"state\") String state, @Param(\"temperature\") String temperature, @Param(\"heartrate\") String heartrate, @Param(\"longitude\") String longitude, @Param(\"latitude\") String latitude, @Param(\"updateDate\") Date updateDate);\n List<SafeEntity> getList();\n List<SafeEntity> getOne();\n\n}", "public interface EthTransactionPendingDao {\n\n EthTransactionPending save(EthTransactionPending ethTransactionPending);\n\n List<EthTransactionPending> getTransactions(long limit);\n\n void delete(String hash);\n}", "public interface ITradeDao {\n int insertTrade(Trade trade);\n\n List<Trade> queryTrade(TradeQuery query);\n}", "@Test\n public void test1Insert() {\n\n System.out.println(\"Prueba de SpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.insert(spec), 1);\n \n }", "protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;", "@Override\n public void save()\n {\n// dao1.save();\n// dao2.save();\n }", "public interface OrderDao {\n\n void createOrder(Order order);\n\n}", "void commit(Transaction transaction);", "@Override\n\tpublic void dbInsert(MovementModel model)\tthrows DAOSysException {\n\t\tdbInsert(model, MovementDAO.INSERT_STM);\n\t}", "public FaqPk insert(Faq dto) throws FaqDaoException;", "@Transactional\npublic interface NoticeDao {\n //插入通知消息\n public List<NoticeModel> findNoticeByUserId(String userId);\n public List<NoticeModel> findNoticeByUserIdNo(String userId);\n public List<NoticeModel> findNoticeByUserId(String userId, Integer pageNo, Integer pageSize);\n public void insert(NoticeModel noticeModel);\n public void updateState(String noticeId,String state);\n}", "@Override\r\n\tpublic void insertOrder(OrderVO vo) throws Exception {\n\t\tsqlSession.insert(namespaceOrder+\".createOrder\",vo);\r\n\t}", "public interface UserLoginLogDao {\n public void insertLoginLog(UserLoginLog userLoginLog);\n}", "int insert(FundManagerDo record);", "Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;", "private void insertNodesCatalogTransactionsPendingForPropagation(NodesCatalogTransaction transaction) throws CantInsertRecordDataBaseException {\n\n /*\n * Save into the data base\n */\n getDaoFactory().getNodesCatalogTransactionsPendingForPropagationDao().create(transaction);\n }" ]
[ "0.71228206", "0.7121368", "0.7081182", "0.69417006", "0.6884682", "0.6698649", "0.6678883", "0.6623655", "0.6615424", "0.6513479", "0.6503319", "0.64620155", "0.6458925", "0.64206195", "0.6411749", "0.63685894", "0.63669", "0.6328621", "0.63004166", "0.6293783", "0.62717485", "0.62696576", "0.6267365", "0.6266912", "0.6253351", "0.62175506", "0.62115055", "0.62072134", "0.61980736", "0.6188818", "0.6184454", "0.6183729", "0.6177456", "0.6159071", "0.61361176", "0.61302304", "0.6126621", "0.61228466", "0.61184263", "0.61064404", "0.60966635", "0.6093256", "0.60828835", "0.60642034", "0.60521466", "0.60517466", "0.6043828", "0.60426295", "0.6029512", "0.6021348", "0.60202813", "0.6019956", "0.6011254", "0.6009894", "0.6005343", "0.60015553", "0.6000003", "0.5997674", "0.59870994", "0.59833103", "0.59736407", "0.5972803", "0.59708065", "0.59634435", "0.5961197", "0.5958442", "0.59551644", "0.5941198", "0.59400386", "0.5935626", "0.59276086", "0.59072244", "0.5904851", "0.5902962", "0.5891046", "0.5884232", "0.5881336", "0.58727276", "0.5866141", "0.5865409", "0.58620524", "0.58575314", "0.58469754", "0.58454007", "0.5839441", "0.5839346", "0.58380383", "0.58361846", "0.58341223", "0.5832934", "0.5826557", "0.5816398", "0.58132625", "0.5811071", "0.58089995", "0.580883", "0.5805113", "0.58030176", "0.58006567", "0.579709", "0.57955223" ]
0.0
-1
Add cake id in to comboBox
public void loadCakeID() throws SQLException, ClassNotFoundException { ArrayList<Cake> cakeArrayList = new CakeController().getAllCake(); ArrayList<String> ids = new ArrayList<>(); for (Cake cake : cakeArrayList) { ids.add(cake.getCakeID()); } cmbCakeID.getItems().addAll(ids); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rebuildIDSComboBox(){\n\t\tfinal List<OWLNamedIndividual> IDSes = ko.getIDSes();\n\t\t\n\t\tcomboBox.setModel(new DefaultComboBoxModel() {\n\t\t\t@Override\n\t\t\tpublic Object getElementAt(int index){\n\t\t\t\treturn IDSes.get(index);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int getSize(){\n\t\t\t\treturn IDSes.size();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "private void loadCustomerCombo() {\n ArrayList<CustomerDTO> allCustomers;\n try {\n allCustomers = ctrlCustomer.get();\n for (CustomerDTO customer : allCustomers) {\n custIdCombo.addItem(customer.getId());\n }\n } catch (Exception ex) {\n Logger.getLogger(PlaceOrderForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void wypelnij(){\n ArrayList<ComboUserInsert> tmp = a.getAllUsers();\n for(int i = 0 ; i < tmp.size(); i++){\n uzytkownicy.addItem(tmp.get(i));\n }\n uzytkownicy.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n Object item = uzytkownicy.getSelectedItem();\n chosen_id = ((ComboUserInsert)item).id;\n }\n });\n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "public static void loadMemberIDToCmb(JComboBox cmb) {\n\t\t\tConnection conn;\n\t\t\tPreparedStatement ps;\n\t\t\tResultSet r;\n\t\t\ttry {\n\t\t\t\tString query = \"SELECT Id FROM Member\";\n\t\t\t\tconn = ConnectionUtils.getConnection();\n\t\t\t\tps = conn.prepareStatement(query);\n\t\t\t\tr = ps.executeQuery();\n\t\t\t\twhile(r.next()) {\n\t\t\t\t\tString id = String.valueOf(r.getInt(\"Id\"));\n\t\t\t\t\tcmb.addItem(id);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "private void configureCombo(ComboBox<BeanModel> combo, String label){\r\n\t\t\t\tcombo.setValueField(\"id\");\r\n\t\t\t\tcombo.setDisplayField(\"name\");\r\n\t\t\t\tcombo.setFieldLabel(label);\r\n\t\t\t\tcombo.setTriggerAction(TriggerAction.ALL);\t\r\n\t\t\t\tcombo.setEmptyText(\"choose a customer ...\");\r\n\t\t\t\tcombo.setLoadingText(\"loading please wait ...\");\r\n\t\t\t}", "private void setComboBox(JComboBox<String> comboBox) {\n comboBox.addItem(\"Select an item\");\n for (Product product : restaurant.getProducts()) {\n comboBox.addItem(product.getName());\n }\n }", "public void addZoneCommitte() {\n\t\t\tid = new JComboBox<Integer>();\n\t\t\tAutoCompleteDecorator.decorate(id);\n\t\t\tid.setBackground(Color.white);\n\t\t\tJButton save = new JButton(\"Save members \");\n\t\t\tfinal Choice position = new Choice();\n\t\t\tfinal JTextField txtLevel = new JTextField(10), txtPhone = new JTextField(10);\n\t\t\tfinal Choice chczon = new Choice();\n\n\t\t\ttry {\n\t\t\t\tString sql = \"select * from Zone;\";\n\t\t\t\tResultSet rs = null;\n\t\t\t\t// Register jdbc driver\n\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t// open connection\n\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tchczon.add(rs.getString(\"Name\"));\n\t\t\t\t}\n\t\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\t}\n\n\t\t\t// select zone before proceeding\n\t\t\tObject[] zone = { new JLabel(\"Zone\"), chczon };\n\t\t\tint option = JOptionPane.showConfirmDialog(this, zone, \"Choose zone..\", JOptionPane.OK_CANCEL_OPTION,\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\n\t\t\tif (option == JOptionPane.OK_OPTION) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString sql = \"select * from Registration where Zone=?;\";\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\t// Register jdbc driver\n\t\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t\t// open connection\n\t\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\tstmt.setString(1, chczon.getSelectedItem());\n\t\t\t\t\trs = stmt.executeQuery();\n\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tid.addItem(Integer.parseInt(rs.getString(\"RegNo\")));\n\t\t\t\t\t}\n\t\t\t\t\tif (id.getItemCount() > 0) {\n\t\t\t\t\t\tsql = \"select * from Registration where RegNo=?;\";\n\t\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\t\tstmt.setInt(1, Integer.parseInt(id.getSelectedItem().toString()));\n\n\t\t\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\t\trs.beforeFirst();\n\t\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\ttxtFname.setText(rs.getString(\"BaptismalName\"));\n\t\t\t\t\t\t\ttxtSname.setText(rs.getString(\"OtherNames\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} catch (SQLException | ClassNotFoundException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tid.addItemListener(new ItemListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tString sql = \"select * from Registration where RegNo=?;\";\n\t\t\t\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\t\t\t\tstmt.setInt(1, Integer.parseInt(id.getSelectedItem().toString()));\n\t\t\t\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\t\t\t\trs.beforeFirst();\n\t\t\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\t\ttxtFname.setText(rs.getString(\"BaptismalName\"));\n\t\t\t\t\t\t\t\ttxtSname.setText(rs.getString(\"OtherNames\"));\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// If save button clicked, get the inputs from the text fields\n\t\t\t\tsave.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// ID = Integer.parseInt(IDs.getSelectedItem().toString());\n\t\t\t\t\t\tint RegNo = Integer.parseInt(id.getSelectedItem().toString());\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Insertion to database\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tif (txtPhone.getText().isEmpty() | txtLevel.getText().isEmpty()) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Phone Number or Level cannot be empty\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t// Register jdbc driver\n\t\t\t\t\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t\t\t\t\t// open connection\n\t\t\t\t\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\t\t\t\t\tString sql = \"INSERT INTO `Zone committee`(`ID`, `BaptismalName`, `OtherName`, `Phone`, `Position`, `Level`, `Zone`)\"\n\t\t\t\t\t\t\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?);\";\n\t\t\t\t\t\t\t\tstmt = (PreparedStatement) con.prepareStatement(sql);\n\t\t\t\t\t\t\t\tstmt.setInt(1, RegNo);\n\t\t\t\t\t\t\t\tstmt.setString(2, txtFname.getText().toString().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(3, txtSname.getText().toString().toUpperCase());\n\n\t\t\t\t\t\t\t\tstmt.setInt(4, Integer.parseInt(txtPhone.getText().toString()));\n\t\t\t\t\t\t\t\tstmt.setString(5, position.getSelectedItem().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(6, txtLevel.getText().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.setString(7, chczon.getSelectedItem().toUpperCase());\n\t\t\t\t\t\t\t\tstmt.executeUpdate();\n\t\t\t\t\t\t\t\tshowZonecomm();\n\t\t\t\t\t\t\t\tid.setSelectedIndex(0);\n\t\t\t\t\t\t\t\ttxtFname.setText(\"\");\n\t\t\t\t\t\t\t\ttxtSname.setText(\"\");\n\t\t\t\t\t\t\t\ttxtLevel.setText(\"\");\n\t\t\t\t\t\t\t\ttxtPhone.setText(\"\");\n\t\t\t\t\t\t\t\tposition.select(0);\n\t\t\t\t\t\t\t} catch (SQLException | ClassNotFoundException e2) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Member exists in the committee list!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// add items to the choice box\n\t\t\t\tposition.add(\"Chairperson\");\n\t\t\t\tposition.add(\"Vice chairperson\");\n\t\t\t\tposition.add(\"Secretary\");\n\t\t\t\tposition.add(\"Vice secretary\");\n\t\t\t\tposition.add(\"Treasurer\");\n\t\t\t\tposition.add(\"Member\");\n\t\t\t\tposition.select(\"Member\");\n\n\t\t\t\tObject[] inputfields = { new JLabel(\"Type ID and press ENTER\"), id, labBaptismalName, txtFname,\n\t\t\t\t\t\tlabOtherName, txtSname, labPhone, txtPhone, new JLabel(\"Level\"), txtLevel, labPosition, position };\n\n\t\t\t\tJOptionPane.showOptionDialog(this, inputfields, \"Enter zone committee members\", JOptionPane.DEFAULT_OPTION,\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, new Object[] { save }, null);\n\t\t\t}\n\n\t\t}", "String getId() {\r\n\t\treturn option.getId() + \".\" + field.getName();\r\n\t}", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\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}", "private JComboBox<String> getIdmapSpeciesComboBox() {\n\t\tif (idmapSpeciesComboBox == null) {\n\t\t\tidmapSpeciesComboBox = new JComboBox<>();\n\t\t\tidmapSpeciesComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setModel(new DefaultComboBoxModel<String>(new String[] {\n\t\t\t\t\t\t\tKOIdMapper.HUMAN, KOIdMapper.MOUSE, KOIdMapper.FLY,\n\t\t\t\t\t\t\tKOIdMapper.YEAST }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapSpeciesComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapSpeciesComboBox.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelSpecies\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn idmapSpeciesComboBox;\n\t}", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public void llenarComboBox(){\n TipoMiembroComboBox.removeAllItems();\n TipoMiembroComboBox.addItem(\"Administrador\");\n TipoMiembroComboBox.addItem(\"Editor\");\n TipoMiembroComboBox.addItem(\"Invitado\");\n }", "public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }", "void populateItemQuantity() {\n for (int i = 0; i < 10; i++) {\n String number = String.valueOf(i + 1);\n comboQuantity.getItems().add(i, number);\n }\n comboQuantity.setEditable(true);\n comboQuantity.getSelectionModel().selectFirst();\n }", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void buildConsultantComboBox(){\r\n combo_user.getSelectionModel().selectFirst(); // Select the first element\r\n \r\n // Update each timewindow to show the string representation of the window\r\n Callback<ListView<User>, ListCell<User>> factory = lv -> new ListCell<User>(){\r\n @Override\r\n protected void updateItem(User user, boolean empty) {\r\n super.updateItem(user, empty);\r\n setText(empty ? \"\" : user.getName());\r\n }\r\n };\r\n \r\n combo_user.setCellFactory(factory);\r\n combo_user.setButtonCell(factory.call(null)); \r\n }", "private void ComboBoxLoader (){\n try {\n if (obslistCBOCategory.size()!=0)\n obslistCBOCategory.clear();\n /*add the records from the database to the ComboBox*/\n rset = connection.createStatement().executeQuery(\"SELECT * FROM category\");\n while (rset.next()) {\n String row =\"\";\n for(int i=1;i<=rset.getMetaData().getColumnCount();i++){\n row += rset.getObject(i) + \" \";\n }\n obslistCBOCategory.add(row); //add string to the observable list\n }\n\n cboCategory.setItems(obslistCBOCategory); //add observable list into the combo box\n //text alignment to center\n cboCategory.setButtonCell(new ListCell<String>() {\n @Override\n public void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (item != null) {\n setText(item);\n setAlignment(Pos.CENTER);\n Insets old = getPadding();\n setPadding(new Insets(old.getTop(), 0, old.getBottom(), 0));\n }\n }\n });\n\n //listener to the chosen list in the combo box and displays it to the text fields\n cboCategory.getSelectionModel().selectedItemProperty().addListener((obs, oldValue, newValue)->{\n if(newValue!=null){\n Scanner textDisplay = new Scanner((String) newValue);\n txtCategoryNo.setText(textDisplay.next());\n txtCategoryName.setText(textDisplay.nextLine());}\n\n });\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "public void dropDownInventory(ComboBox combo) throws SQLException {\r\n dataAccess = new Connection_SQL(\"jdbc:mysql://localhost:3306/items\", \"root\", \"P@ssword123\");\r\n combo.setItems(dataAccess.menuInventory());\r\n }", "public void addItemsCitas(){\n cmbPacientes.removeAllItems();\n cmbPacientes.addItem(\"Seleccione una opcion\");\n cmbPacientes.addItem(\"Paciente\");\n cmbPacientes.addItem(\"Doctor\");\n cmbPacientes.addItem(\"Mostrar todo\");\n }", "@Override\n\tpublic void setValue(Object value) {\n\t\tint id = ((VObject) value).getId();\n\t\tItemData item = initItemData(id);\n\t\t((Combobox) component).setText(item.getLabel());\n\t\tsuper.setValue(value);\n\t}", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public PxProductInfo getComboId() {\n return comboId;\n }", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "public void refreshOfficeCodeComboBox() {\n\ttry {\n\tList<OfficesList> offices = db.showOffices();\n\tHashSet<String> unique = new HashSet<String>();\n\tofficeCodeComboBox.removeAllItems();\n\t\tfor (OfficesList officesList : offices) {\n\t\t\tif (unique.add(officesList.getOfficeCode())) {\n\t\t\t\tofficeCodeComboBox.addItem(officesList.getOfficeCode());\n\t\t\t}\n\t\t}\n\t}catch(SQLException err) {\n\t\terr.printStackTrace();\n\t}\n}", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "private JComboBox<String> getIdmapSourceComboBox() {\n\n\t\tif (idmapSourceComboBox == null) {\n\t\t\tidmapSourceComboBox = new JComboBox<>();\n\t\t\tidmapSourceComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapSourceComboBox.setModel(new DefaultComboBoxModel<String>(\n\t\t\t\t\tnew String[] { KOIdMapper.SYMBOL, KOIdMapper.GENE_ID,\n\t\t\t\t\t\t\tKOIdMapper.ENSEMBL, KOIdMapper.UniProtKB_AC,\n\t\t\t\t\t\t\tKOIdMapper.UniProtKB_ID }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapSourceComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapSourceComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapSourceComboBox.addActionListener(new ActionListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelSource\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\n\t\treturn idmapSourceComboBox;\n\t}", "private JComboBox<String> getIdmapTargetComboBox() {\n\t\tif (idmapTargetComboBox == null) {\n\t\t\tidmapTargetComboBox = new JComboBox<>();\n\t\t\tidmapTargetComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapTargetComboBox\n\t\t\t\t\t.setModel(new DefaultComboBoxModel<String>(\n\t\t\t\t\t\t\tnew String[] { KOIdMapper.SYMBOL,\n\t\t\t\t\t\t\t\t\tKOIdMapper.GENE_ID, KOIdMapper.ENSEMBL,\n\t\t\t\t\t\t\t\t\tKOIdMapper.SYNONYMS,\n\t\t\t\t\t\t\t\t\tKOIdMapper.UniProtKB_AC,\n\t\t\t\t\t\t\t\t\tKOIdMapper.UniProtKB_ID, KOIdMapper.RefSeq,\n\t\t\t\t\t\t\t\t\tKOIdMapper.GI, KOIdMapper.PDB,\n\t\t\t\t\t\t\t\t\tKOIdMapper.GO, KOIdMapper.UniRef100,\n\t\t\t\t\t\t\t\t\tKOIdMapper.UniRef90, KOIdMapper.UniRef50,\n\t\t\t\t\t\t\t\t\tKOIdMapper.UniParc, KOIdMapper.PIR,\n\t\t\t\t\t\t\t\t\tKOIdMapper.EMBL }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapTargetComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapTargetComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapTargetComboBox.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelTarget\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn idmapTargetComboBox;\n\t}", "private void llenarCombo() {\n cobOrdenar.removeAllItems();\n cobOrdenar.addItem(\"Fecha\");\n cobOrdenar.addItem(\"Nro Likes\");\n cobOrdenar.setSelectedIndex(-1); \n }", "void populateLittlesComboBox(JComboBox box) {\n box.addItem(\"Clear\");\n TreeMap<String, ArrayList<String>> sortedlittles = new TreeMap<>();\n sortedlittles.putAll(matching.littlesPreferences);\n for (Map.Entry lilprefs : sortedlittles.entrySet()) {\n String littleName = lilprefs.getKey().toString();\n box.addItem(littleName);\n }\n }", "private void updateKeyComboBox() {\n keyPairDropDown.removeAllItems();\n for (Identity pair : keyLoader.getLoadedPairs()) {\n keyPairDropDown.addItem(pair.getName());\n }\n }", "public void combo(){\r\n // Define rendering of the list of values in ComboBox drop down. \r\n cbbMedicos.setCellFactory((comboBox) -> {\r\n return new ListCell<Usuario>() {\r\n @Override\r\n protected void updateItem(Usuario item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (item == null || empty) {\r\n setText(null);\r\n } else {\r\n setText(item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico());\r\n }\r\n }\r\n };\r\n });\r\n\r\n // Define rendering of selected value shown in ComboBox.\r\n cbbMedicos.setConverter(new StringConverter<Usuario>() {\r\n @Override\r\n public String toString(Usuario item) {\r\n if (item == null) {\r\n return null;\r\n } else {\r\n return item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico();\r\n }\r\n }\r\n\r\n @Override\r\n public Usuario fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }\r\n });\r\n }", "private void renderCombobox(){\r\n\r\n\t\tCollection<String> sitesName= new ArrayList<String>();\r\n\t\t\tfor(SiteDto site : siteDto){\r\n\t\t\t\tsitesName.add(site.getSiteName());\r\n\t\t\t}\r\n\t\t\r\n\t\tComboBox siteComboBox = new ComboBox(\"Select Site\",sitesName);\r\n\t\tsiteName = sitesName.iterator().next();\r\n\t\tsiteComboBox.setValue(siteName);\r\n\t\tsiteComboBox.setImmediate(true);\r\n\t\tsiteComboBox.addValueChangeListener(this);\r\n\t\tverticalLayout.addComponent(siteComboBox);\r\n\t}", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "public void loadComboBoxCourses(){\r\n //Para cargar un combobox\r\n CircularDoublyLinkList tempCourses = new CircularDoublyLinkList();\r\n tempCourses = Util.Utility.getListCourse();\r\n String temporal = \"\";\r\n if(!tempCourses.isEmpty()){\r\n try {\r\n for (int i = 1; i <= tempCourses.size(); i++) {\r\n Course c = (Course)tempCourses.getNode(i).getData(); \r\n temporal = c.getId()+\"-\"+c.getName();\r\n this.cmbCourses.getItems().add(temporal);\r\n }\r\n } catch (ListException ex) {\r\n Logger.getLogger(NewStudentController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n cmbCourses.setValue(temporal);\r\n cmbCourses.getSelectionModel().select(\"Courses\");\r\n }", "@SuppressWarnings(\"unchecked\")\n private void addComboBox() throws Exception{\n\n Connection con = Coagent.getConnection();\n PreparedStatement query = con.prepareStatement(\"SELECT Publisher_Name FROM publishers;\");\n ResultSet result = query.executeQuery();\n\n while(result.next()){\n jComboBoxAdd.addItem(result.getString(1));\n }\n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public void riempiProceduraComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT P.schema, P.nomeProcedura FROM Procedura P\";\n \n proceduraComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //le Procedure nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeProcedura\n //in quanto Procedure appartenenti a Schemi diversi possono avere lo stesso nome\n proceduraComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n proceduraComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "public void setupPlannerMealComboboxs(ComboBox<Recipe> genericCombo){\n genericCombo.setCellFactory(new Callback<ListView<Recipe>, ListCell<Recipe>>() {\n @Override\n public ListCell<Recipe> call(ListView<Recipe> recipeListView) {\n return new ListCell<Recipe>() {\n @Override\n protected void updateItem(Recipe recipe, boolean b) {\n super.updateItem(recipe, b);\n if (!b) {\n setText(recipe.getName());\n setFont(InterfaceStyling.textFieldFont);\n }\n }\n };\n }\n });\n\n genericCombo.setButtonCell(new ListCell<>() {\n @Override\n protected void updateItem(Recipe recipe, boolean b) {\n System.out.println(\"From: \" + genericCombo.getId() + \" B: \" + b);\n super.updateItem(recipe, b);\n if (b) {\n setText(\"\");\n } else {\n setText(recipe.getName());\n setFont(InterfaceStyling.textFieldFont);\n System.out.println(\"From: \" + genericCombo.getId() + \" Recipe: \" + recipe.getName() + \" \" + recipe.toString());\n }\n\n }\n });\n }", "void fillCombo_name(){\n combo_name.setItems(FXCollections.observableArrayList(listComboN));\n }", "public void addLocationToComboBox() throws Exception{}", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "private void setClientsIntoComboBox() {\n if (mainModel.getClientList() != null) {\n try {\n mainModel.loadClients();\n cboClients.getItems().clear();\n cboClients.getItems().addAll(mainModel.getClientList());\n } catch (ModelException ex) {\n alertManager.showAlert(\"Could not get the clients.\", \"An error occured: \" + ex.getMessage());\n }\n }\n }", "private JComboBox getColoda() {\n\t\tif (coloda == null) {\n\t\t\tcoloda = new JComboBox();\n\t\t\tcoloda.setModel(new DefaultComboBoxModel(new String [] {\"36\", \"52\"}));\n\t\t}\n\t\treturn coloda;\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tcbCliente.addItem(rs.getString(\"CLIENTE\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tSystem.out.println(\"ERRO\" + e.toString());\n\t\t}\n\t}", "public void setCombo(Object newValue);", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "public void carregaCidadeModificada() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidadeEditar.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n }", "private void actualizarComboboxCursos() {\n\t\tint curso;\n\n\t\tDefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n\t\tdcbm.removeAllElements();\n\n\t\tLinkedHashSet<Integer> resultado = modelo.obtenerCursos();\n\t\tIterator it = resultado.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tcurso = (int) it.next();\n\n\t\t\tdcbm.addElement(curso);\n\t\t}\n\t\tjfad.cBCursos.setModel(dcbm);\n\t\tjfad.cBCursosMod.setModel(dcbm);\n\t\tSystem.out.println(dcbm.getSelectedItem());\n\t}", "private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed\n // TODO add your handling code here:\n\n String lacname2 = jComboBox12.getSelectedItem().toString();\n\n array2.add(lacname2);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv2 = new Vector();\n\n for (int i = 0; i < array2.size(); i++) {\n String gette = array2.get(i);\n vv2.add(gette);\n jComboBox24.setModel(new DefaultComboBoxModel<>(vv2));\n }\n }", "public void riempiTriggerComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT T.schema, T.nomeTrigger FROM trigger1 T\";\n \n triggerComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //I Trigger nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeTrigger\n //in quanto Trigger appartenenti a Schemi diversi possono avere lo stesso nome\n triggerComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n triggerComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "private void combo() {\n cargaCombo(combo_habitacion, \"SELECT hh.descripcion\\n\" +\n \"FROM huespedes h\\n\" +\n \"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\\n\" +\n \"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\\n\" +\n \"LEFT JOIN estadia e ON e.id = ehh.id_estadia \\n\" +\n \"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\\n\" +\n \"WHERE eh.huespedes_id = \"+idd+\" AND e.estado ='A'\\n\" +\n \"ORDER BY descripcion\\n\" +\n \"\",\"hh.descripcion\");\n cargaCombo(combo_empleado, \"SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\\n\" +\n \"RIGHT JOIN empleado e ON e.persona_id = p.id\", \"empleado\");\n cargaCombo(combo_producto, \"SELECT producto FROM productos order by producto\", \"producto\");\n }", "public void fillCombobox() {\n List<String> list = new ArrayList<String>();\n list.add(\"don't link\");\n if (dataHandler.persons.size() == 0) {\n list.add(\"No Persons\");\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n } else {\n for (int i = 0; i < dataHandler.persons.size(); i++) {\n list.add(dataHandler.persons.get(i).getName());\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n }\n }\n }", "private void CBFakture() {\n try {\n cmbFakture.removeAllItems();\n List<Faktura> fakture = Controller.getInstance().vratiFaktureView();\n for (Faktura fak : fakture) {\n cmbFakture.addItem(fak);\n }\n } catch (Exception ex) {\n Logger.getLogger(ProizvodUpdate.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setupMealSelectionCombobox(ComboBox<Recipe> mealSelection){\n setupPlannerMealComboboxs(mealSelection);\n }", "public void Bindcombo() {\n\n MyQuery1 mq = new MyQuery1();\n HashMap<String, Integer> map = mq.populateCombo();\n for (String s : map.keySet()) {\n\n jComboBox1.addItem(s);\n\n }\n\n }", "public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZipcodeDAO dao = new ZipcodeDAO();\n\t\tdatas = dao.allSido();\n\t}", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname5 = jComboBox25.getSelectedItem().toString();\n\n array5.add(lacname5);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv5 = new Vector();\n\n for (int i = 0; i < array5.size(); i++) {\n String gette = array5.get(i);\n vv5.add(gette);\n jComboBox30.setModel(new DefaultComboBoxModel<>(vv5));\n }\n\n }", "private void editareClient() {\n\t\tDefaultTableModel model = Serializable.generator(\"person\", \"tmp/\");\n\t\tArrayList<String> items = new ArrayList<String>();\n\t\tint rowCount = model.getRowCount();\n\t\tSystem.out.println(\"Ajung pe aici si val. este \" + rowCount +\"\\n\");\n\t\tfor(int i=0;i<rowCount;i++) {\n\t\t\tmodel.getValueAt(i, 2);\n\t\t\titems.add(model.getValueAt(i, 1) + \". Nume client: \" + model.getValueAt(i, 2));\n\t\t}\n\t\t// Urmatoarele 3 linii de cod creeaza un array de string-uri\n\t\tString[] itemsArr = new String[items.size()];\n\t\titemsArr = items.toArray(itemsArr);\n JComboBox<String> combo = new JComboBox<String>(itemsArr);\n \n JTextField field1 = new JTextField(\"\");\n JTextField field2 = new JTextField(\"\");\n JTextField field3 = new JTextField(\"\");\n\n JPanel panel = new JPanel(new GridLayout(0, 1));\n panel.setPreferredSize(new Dimension(400, 200));\n panel.add(new JLabel(\"Alege client\"));\n panel.add(combo);\n panel.add(new JLabel(\"Nume:\"));\n panel.add(field1);\n panel.add(new JLabel(\"Email:\"));\n panel.add(field2);\n panel.add(new JLabel(\"Telefon:\"));\n panel.add(field3);\n int result = JOptionPane.showConfirmDialog(null, panel, \"Editeaza un client\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n if (result == JOptionPane.OK_OPTION) {\n \tArrayList<String> data = new ArrayList<String>();\n \tString buffer = combo.getSelectedItem().toString();\n \tString temp[] = buffer.split(\"\\\\.\");\n \tif(!temp[0].isEmpty()) {\n \t\tdata.add(field1.getText());\n \tdata.add(field2.getText());\n \tdata.add(field3.getText());\n \tint id = Integer.parseInt(temp[0]);\n \t/* Serializarea reprezinta doar crearea unui nou obiect si salvarea acestuia\n \t * cu numele actualului fisier. In felul acesta se suprascriu si gata.*/\n \tPerson nouClient = new Person(data, id);\n System.out.println(\"Clientul a fost editat. \\n\");\n \t}\n } else {\n System.out.println(\"Cancelled\");\n }\n\t}", "private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}", "private JComboBox<Cliente> crearComboClientes() {\n\n JComboBox<Cliente> combo = new JComboBox<>(new Vector<>(almacen.getClientes()));\n combo.setMaximumSize(new Dimension(500, 40));\n\n combo.setRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n Cliente cliente = (Cliente) value;\n this.setText(cliente != null ? cliente.getNombre() : \"No existen clientes\");\n\n return resultado;\n }\n });\n\n return combo;\n }", "public void fillComBox1()\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tconnection = SqlServerConnection.dbConnecter();\r\n\t\t\t\t\r\n\t\t\t\tString sql=\"select * from addLocation\";\r\n\t\t\t\tPreparedStatement pst=connection.prepareStatement(sql);\r\n\t\t\t\tResultSet rs=pst.executeQuery();\r\n\t\t\t\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\troomcombo2.addItem(rs.getString(\"RoomName\"));\r\n\t\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "public void carrega_cidade() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUF.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidade.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidade.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n Conexao.desConectar();\n \n }", "public void addClubSelector() {\n\n if (clubSelectorTour == null) {\n clubSelectorTour = calendarMenu.addItem(\"Set Club\", command -> {\n\n Window window = new Window(\"Select Club for Calendar Events\");\n window.setWidth(\"400px\");\n window.setHeight(\"200px\");\n getUI().addWindow(window);\n window.center();\n window.setModal(true);\n C<Club> cs = new C<>(Club.class);\n ComboBox clubs = new ComboBox(\"Club\", cs.c());\n clubs.setItemCaptionMode(ItemCaptionMode.ITEM);\n clubs.setNullSelectionAllowed(false);\n\n clubs.setFilteringMode(FilteringMode.CONTAINS);\n Button done = new Button(\"Done\");\n done.addClickListener(listener -> {\n window.close();\n Object id = clubs.getValue();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n calendar.markAsDirty();\n }\n });\n\n EVerticalLayout l = new EVerticalLayout(clubs, done);\n\n window.setContent(l);\n });\n }\n }", "public void populateBigsComboBox(JComboBox box){\n box.addItem(\"Clear\");\n TreeMap<String, ArrayList<String>> sortedbigs = new TreeMap<>();\n sortedbigs.putAll(matching.bigsPreferences);\n for (Map.Entry bigprefs: sortedbigs.entrySet()){\n String bigName = bigprefs.getKey().toString();\n box.addItem(bigName);\n }\n }", "public void updateVehicleID(int value) {\n ObservableList<Integer> vehIDs = FXCollections.observableArrayList();\n \n DBConn db = DBConn.getInstance();\n db.getConn();\n \n try {\n ResultSet rs = db.queryDB(\"SELECT \\\"Vehicle ID\\\" FROM Vehicle WHERE \\\"Customer ID\\\"=\" + value + \";\");\n while (rs.next()) {\n vehIDs.add(rs.getInt(\"Vehicle ID\"));\n //vid_input.getItems().addAll(rs.getInt(\"Vehicle ID\"));\n }\n vid_input.setItems(vehIDs);\n } catch (Exception e) {\n System.out.println(e);\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "public void fillCompBox() {\n\t\tcomboBoxName.removeAllItems();\n\t\tint counter = 0;\n\t\tif (results.getResults() != null) {\n\t\t\tList<String> scenarios = new ArrayList<String>(results.getResults().keySet());\n\t\t\tCollections.sort(scenarios);\n\t\t\tfor (String s : scenarios) {\n\t\t\t\tcomboBoxName.insertItemAt(s, counter);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t}", "public void carregaEstadoSelecionado(String nome) throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUfEditar.addItem(list);\n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbUfEditar.setSelectedItem(nome);\n \n \n \n }", "public void llenarComboCategoria() {\n comboCategoria.removeAllItems();\n getIDCategoria();\n comboCategoria.setVisible(true);\n labelCategoria.setVisible(true);\n if (IDCategoria < 0) {\n comboCategoria.setVisible(false);\n comboCategoria.setEditable(false);\n labelCategoria.setVisible(false);\n this.repaint();\n } else {\n try {\n ResultSet resultado = buscador.getResultSet(\"select ID, valor from INSTANCIACATEGORIA where IDTIpoCategoria = \" + IDCategoria + \";\");\n while (resultado.next()) {\n String ID = resultado.getObject(\"ID\").toString();\n String valor = resultado.getObject(\"valor\").toString();\n comboCategoria.addItem(makeObj(valor, Integer.parseInt(ID)));\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n }\n }", "@FXML\n public void clicaTblCidade(){\n \tCidade sel = tblCidade.getSelectionModel().getSelectedItem();\n \ttxtNome.setText(sel.getNome());\n \ttxtUf.getSelectionModel().select(sel.getUf());\n }", "public void SetDefautValueCombo(Item item) \n {\n this.defautValueCombo=item;\n ;\n }", "@Override\n\tpublic void compPicked(Long id) {\n\n\t}", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }", "@FXML\n void loadComboBoxLocationValues() {\n ArrayList<Location> locations = LocationDAO.LocationSEL(-1);\n comboBoxLocation.getItems().clear();\n if (!locations.isEmpty())\n for (Location location : locations) {\n comboBoxLocation.getItems().addAll(location.getLocationID());\n }\n }", "private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname4 = jComboBox28.getSelectedItem().toString();\n\n array4.add(lacname4);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv4 = new Vector();\n\n for (int i = 0; i < array4.size(); i++) {\n String gette = array4.get(i);\n vv4.add(gette);\n jComboBox29.setModel(new DefaultComboBoxModel<>(vv4));\n }\n\n }", "private void listadoRol(JComboBox cbb) throws SQLException {\n\t\tint selected = cbb.getSelectedIndex();\n\t\tDefaultComboBoxModel model = (DefaultComboBoxModel) cbb.getModel();\n\t\tif (!coordUsuario.listaRol().isEmpty()) {\n\t\tlistaRol = coordUsuario.listaRol();\n\t\t // Borrar Datos Viejos\n\t model.removeAllElements();\n\t for (int i=0;i<listaRol.size();i++) {\n\t model.addElement(listaRol.get(i).getNombre());\n\t }\n\t // setting model with new data\n\t cbb.setModel(model);\n\t cbb.setRenderer(new MyComboBox(\"Rol\")); \n \tcbb.setSelectedIndex(selected); \n\t}}", "public ComboBox1() {\n initComponents();\n agregarItems();\n\n }", "public Recruit() {\n initComponents();\n cemid.setText(currentEmployee.getId());\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Preenche o comboBox sexo\r\n cb_sexo.setItems(listSexo);\r\n cb_uf.setItems(listUf);\r\n cb_serie.setItems(listSerie);\r\n\r\n// // Preenche o comboBox UF\r\n// this.cb_uf.setConverter(new ConverterDados(ConverterDados.GET_UF));\r\n// this.cb_uf.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n//\r\n// //Preenche o comboBox Serie\r\n// this.cb_serie.setConverter(new ConverterDados(ConverterDados.GET_SERIE));\r\n// this.cb_serie.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n this.codAluno.setCellValueFactory(cellData -> cellData.getValue().getCodigoProperty().asObject());\r\n this.nomeAluno.setCellValueFactory(cellData -> cellData.getValue().getNomeProperty());\r\n this.sexoAluno.setCellValueFactory(cellData -> cellData.getValue().getSexoProperty());\r\n this.enderecoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnderecoProperty());\r\n this.cepAluno.setCellValueFactory(cellData -> cellData.getValue().getCepProperty());\r\n this.nascimentoAluno.setCellValueFactory(cellData -> cellData.getValue().getNascimentoProperty());\r\n this.ufAluno.setCellValueFactory(cellData -> cellData.getValue().getUfProperty());\r\n this.maeAluno.setCellValueFactory(cellData -> cellData.getValue().getMaeProperty());\r\n this.paiAluno.setCellValueFactory(cellData -> cellData.getValue().getPaiProperty());\r\n this.telefoneAluno.setCellValueFactory(cellData -> cellData.getValue().getTelefoneProperty());\r\n this.serieAluno.setCellValueFactory(cellData -> cellData.getValue().getSerieProperty());\r\n this.ensinoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnsinoProperty());\r\n\r\n //bt_excluir.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n //bt_editar.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n }", "@Override\n public boolean add(T1 o) //Modify to take in Authenication ID for future logging function\n {\n if(super.add(o)) {\n comboBoxModelSelectedItem = o;\n modelListenersNotify();\n ViewerController.saveModel();\n return true;\n }\n return false;\n }", "public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }", "public void setCombobox() throws IOException {\n try {\n fileReader = new FileReader(\"data/textFiles/gameState.txt\");\n bufferedReader = new BufferedReader(fileReader);\n //remove all items and reload the existing in the file\n comboBox1.removeAllItems();\n //always add \"Trial\" as user\n comboBox1.addItem(\"Trial\");\n //read the file till the end is reached\n while ((line = bufferedReader.readLine()) != null) {\n tokens = line.split(\",\");\n //add all names from the file(names are at first position)\n comboBox1.addItem(tokens[0]);\n }\n } catch (IOException ex) {\n System.out.println(ex);\n } finally {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n }\n }", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname3 = jComboBox27.getSelectedItem().toString();\n\n array3.add(lacname3);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv3 = new Vector();\n\n for (int i = 0; i < array3.size(); i++) {\n String gette = array3.get(i);\n vv3.add(gette);\n jComboBox26.setModel(new DefaultComboBoxModel<>(vv3));\n }\n }", "private void carregaComboDentista() {\n CtrPessoa ctrD = new CtrPessoa();\n ArrayList<Pessoa> result = ctrD.getPessoa(\"\", new Dentista());\n\n ObservableList<Pessoa> dentistas = FXCollections.observableArrayList(result);\n\n if (!result.isEmpty()) {\n cbDentista.setItems(dentistas);\n cbDentista.setValue(cbDentista.getItems().get(0)); //inicializando comboBox\n }\n }", "public DefaultComboBoxModel llenarCombo() {\n DefaultComboBoxModel comboFut = new DefaultComboBoxModel();\n comboFut.addElement(\"Seleccione un club\");\n ResultSet res = this.consulta(\"SELECT * FROM Clubs\");\n try {\n while (res.next()) {\n // se inserta en el combo el nombre del club\n comboFut.addElement(res.getString(\"nombre\"));\n }\n close(res);\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return comboFut;\n }", "public void actiuneComboBox(ActionEvent event) throws IOException {\n\n alegereBD=new String(comboBox.getValue());\n System.out.println(alegereBD);\n functionare();\n }", "@Override\r\n\tpublic void adminSelectAdd() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "protected TextSelectGuiSubitemTestObject comboBoxcomboBox() \n\t{\n\t\treturn new TextSelectGuiSubitemTestObject(\n getMappedTestObject(\"comboBoxcomboBox\"));\n\t}", "public void mostrarUsuarios(JComboBox cbx) {\n //cbx.addItem(\"Selecciona\".toUpperCase());\n modeloCombo = new DefaultComboBoxModel(sUsuario.MostrarTipoUsuarios());\n cbx.setModel(modeloCombo);\n mComboRoll = (M_ComboRoll) cbx.getSelectedItem();\n }", "private void createComboMemBank() {\r\n\t\tcomboMemBank = new Combo(sShell, SWT.READ_ONLY);\r\n\t\t\r\n\t\tcomboMemBank.setBounds(new Rectangle(54, 55, 92, 21));\r\n\t\tString items[] = new String[]{ \"Reserved\", \"EPC\", \"TID\", \"User\" };\r\n\t\tcomboMemBank.setItems(items);\r\n\t\tcomboMemBank.select(1);\r\n\r\n\t\t\r\n\t}" ]
[ "0.6415728", "0.63552177", "0.6296608", "0.62816674", "0.6199298", "0.6111729", "0.59944576", "0.59674245", "0.59313464", "0.5926618", "0.58298784", "0.58193886", "0.58128715", "0.57621676", "0.57498384", "0.57100284", "0.5700086", "0.56954825", "0.568683", "0.5671698", "0.56516445", "0.5648098", "0.5645743", "0.56435287", "0.5636556", "0.56306946", "0.56056416", "0.55901045", "0.5582958", "0.55705315", "0.55585575", "0.5550347", "0.5548704", "0.5543177", "0.55316675", "0.55299973", "0.5522197", "0.55217344", "0.5506689", "0.5497666", "0.5488111", "0.5454603", "0.5447387", "0.54451585", "0.5435839", "0.5435821", "0.5429963", "0.5429361", "0.54195935", "0.5385327", "0.53792155", "0.5378139", "0.5351554", "0.53278524", "0.5325496", "0.5319638", "0.5315001", "0.5297158", "0.5288748", "0.528473", "0.5282413", "0.52746606", "0.5271796", "0.5266679", "0.52656335", "0.52641594", "0.52579844", "0.52384716", "0.5235532", "0.52281386", "0.5227467", "0.52174866", "0.52169573", "0.52138305", "0.52009356", "0.5199467", "0.519901", "0.5198065", "0.5191663", "0.51879144", "0.51862556", "0.5185228", "0.51789045", "0.51772", "0.5177113", "0.5176979", "0.517415", "0.51688534", "0.51681614", "0.5160288", "0.51566774", "0.5155779", "0.515468", "0.5154291", "0.5153315", "0.514842", "0.51455814", "0.51428306", "0.5139641", "0.5139241" ]
0.69868225
0
Add All ingredients Ids in to comboBox
public void loadIngreID() throws SQLException, ClassNotFoundException { ArrayList<Ingredient> ingredients = new IngredientControllerUtil().getAllIngredient(); ArrayList<String> name = new ArrayList<>(); for (Ingredient ingredient : ingredients) { name.add(ingredient.getIngreName()); } cmbIngreName.getItems().addAll(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rebuildIDSComboBox(){\n\t\tfinal List<OWLNamedIndividual> IDSes = ko.getIDSes();\n\t\t\n\t\tcomboBox.setModel(new DefaultComboBoxModel() {\n\t\t\t@Override\n\t\t\tpublic Object getElementAt(int index){\n\t\t\t\treturn IDSes.get(index);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int getSize(){\n\t\t\t\treturn IDSes.size();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "void populateItemQuantity() {\n for (int i = 0; i < 10; i++) {\n String number = String.valueOf(i + 1);\n comboQuantity.getItems().add(i, number);\n }\n comboQuantity.setEditable(true);\n comboQuantity.getSelectionModel().selectFirst();\n }", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "private void handleActionGetIngredients(int recipeId) {\n mDb = AppDatabase.getInstance(getApplicationContext());\n final List<Ingredient> ingredients = mDb.recipeDao().getRecipe(recipeId).getIngredients();\n StringBuilder ingredientsList = new StringBuilder();\n for (int i = 0; i < ingredients.size(); i++) {\n String quantity = ingredients.get(i).getQuantity();\n String measure = ingredients.get(i).getMeasure();\n String ingredient = ingredients.get(i).getIngredient();\n\n String string = \"\\n\" + quantity + \" \" + measure + \" \" + ingredient + \"\\n\";\n ingredientsList.append(string);\n }\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this,\n BakingWidgetProvider.class));\n //Now update all widgets\n BakingWidgetProvider.updateIngredientWidgets(this, appWidgetManager, appWidgetIds,\n ingredientsList.toString());\n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "public void Bindcombo() {\n\n MyQuery1 mq = new MyQuery1();\n HashMap<String, Integer> map = mq.populateCombo();\n for (String s : map.keySet()) {\n\n jComboBox1.addItem(s);\n\n }\n\n }", "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); // yang anda ingin kan\n \n while(res.next()){\n Object[] ob = new Object[6];\n ob[0] = res.getString(1);\n \n comboId.addItem(ob[0]); // fungsi ini bertugas menampung isi dari database\n }\n res.close(); stt.close();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }", "public void loadCakeID() throws SQLException, ClassNotFoundException {\r\n ArrayList<Cake> cakeArrayList = new CakeController().getAllCake();\r\n ArrayList<String> ids = new ArrayList<>();\r\n\r\n for (Cake cake : cakeArrayList) {\r\n ids.add(cake.getCakeID());\r\n }\r\n\r\n cmbCakeID.getItems().addAll(ids);\r\n }", "void fillCombo_name(){\n combo_name.setItems(FXCollections.observableArrayList(listComboN));\n }", "public void setupPlannerMealComboboxs(ComboBox<Recipe> genericCombo){\n genericCombo.setCellFactory(new Callback<ListView<Recipe>, ListCell<Recipe>>() {\n @Override\n public ListCell<Recipe> call(ListView<Recipe> recipeListView) {\n return new ListCell<Recipe>() {\n @Override\n protected void updateItem(Recipe recipe, boolean b) {\n super.updateItem(recipe, b);\n if (!b) {\n setText(recipe.getName());\n setFont(InterfaceStyling.textFieldFont);\n }\n }\n };\n }\n });\n\n genericCombo.setButtonCell(new ListCell<>() {\n @Override\n protected void updateItem(Recipe recipe, boolean b) {\n System.out.println(\"From: \" + genericCombo.getId() + \" B: \" + b);\n super.updateItem(recipe, b);\n if (b) {\n setText(\"\");\n } else {\n setText(recipe.getName());\n setFont(InterfaceStyling.textFieldFont);\n System.out.println(\"From: \" + genericCombo.getId() + \" Recipe: \" + recipe.getName() + \" \" + recipe.toString());\n }\n\n }\n });\n }", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public static DefaultComboBoxModel getAllArtigos() throws SQLException, ParseException{\r\n DefaultComboBoxModel model = new DefaultComboBoxModel();\r\n String selectTableSQL = \"SELECT idArt FROM Artigo \";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectTableSQL);\r\n model.addElement(\" --- \");\r\n while(rs.next()){\r\n model.addElement(rs.getString(\"idArt\"));\r\n }\r\n rs.close();\r\n return model;\r\n }", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\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}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "private void combo() {\n cargaCombo(combo_habitacion, \"SELECT hh.descripcion\\n\" +\n \"FROM huespedes h\\n\" +\n \"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\\n\" +\n \"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\\n\" +\n \"LEFT JOIN estadia e ON e.id = ehh.id_estadia \\n\" +\n \"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\\n\" +\n \"WHERE eh.huespedes_id = \"+idd+\" AND e.estado ='A'\\n\" +\n \"ORDER BY descripcion\\n\" +\n \"\",\"hh.descripcion\");\n cargaCombo(combo_empleado, \"SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\\n\" +\n \"RIGHT JOIN empleado e ON e.persona_id = p.id\", \"empleado\");\n cargaCombo(combo_producto, \"SELECT producto FROM productos order by producto\", \"producto\");\n }", "public void wypelnij(){\n ArrayList<ComboUserInsert> tmp = a.getAllUsers();\n for(int i = 0 ; i < tmp.size(); i++){\n uzytkownicy.addItem(tmp.get(i));\n }\n uzytkownicy.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n Object item = uzytkownicy.getSelectedItem();\n chosen_id = ((ComboUserInsert)item).id;\n }\n });\n }", "private void cargarAutos() {\n Auto autos[]={\n new Auto(\"Bocho\",\"1994\"),\n new Auto(\"Jetta\",\"1997\"),\n new Auto(\"Challenger\",\"2011\"),\n new Auto(\"Ferrari\",\"2003\")\n };\n for (Auto auto : autos) {\n cboAutos.addItem(auto);\n \n }\n spnIndice.setModel(new SpinnerNumberModel(0, 0, autos.length-1, 1));\n }", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "private void populateIngredientView() {\n\t\tListView ingredientsLV = (ListView) findViewById(R.id.lv_Ingredients);\n\t\tregisterForContextMenu(ingredientsLV);\n\n\t\tArrayList<String> combined = RecipeView\n\t\t\t\t.formCombinedArray(currentRecipe);\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n\t\t\t\tR.layout.list_item, combined);\n\t\tingredientsLV.setAdapter(adapter);\n\t\tsetListViewHeightBasedOnChildren(ingredientsLV);\n\t}", "public ComboBox1() {\n initComponents();\n agregarItems();\n\n }", "protected void initManufacturersListBox(ManufacturerHolder mh) {\n manufacturersListBox.addItem(\"Please choose...\", \"-1\");\n int index = 1;\n for (ManufacturerHolder manuHolder : mywebapp.getManufacturerHolders()) {\n manufacturersListBox.addItem(manuHolder.getName(), manuHolder.getId().toString());\n if ((mh != null) && (mh.getId() != null)) {\n if (mh.getId().equals(manuHolder.getId())) {\n manufacturersListBox.setSelectedIndex(index);\n }\n }\n index++;\n }\n }", "public void loadIngredients(){\n LoadIngredientsService service = new LoadIngredientsService();\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n\n //When the service has successfully run set the return ingredients to various listViews and comboBoxs where\n //ingredients from database are saved\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n ingredientsFromDatabase = service.getValue();\n ingredientsList.setItems(ingredientsFromDatabase);\n ingredientsBrowseCombo.setItems(ingredientsFromDatabase);\n allIngredientsCupboardPane.setItems(ingredientsFromDatabase);\n }\n });\n }", "public void addItemsCitas(){\n cmbPacientes.removeAllItems();\n cmbPacientes.addItem(\"Seleccione una opcion\");\n cmbPacientes.addItem(\"Paciente\");\n cmbPacientes.addItem(\"Doctor\");\n cmbPacientes.addItem(\"Mostrar todo\");\n }", "private void loadCustomerCombo() {\n ArrayList<CustomerDTO> allCustomers;\n try {\n allCustomers = ctrlCustomer.get();\n for (CustomerDTO customer : allCustomers) {\n custIdCombo.addItem(customer.getId());\n }\n } catch (Exception ex) {\n Logger.getLogger(PlaceOrderForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public List<Ingrediente> verIngredientes(){\n\t\t// Implementar\n\t\treturn ingredientes;\n\t}", "private void setupComboBox(){\n\n //enhanced for loop populates book comboBox with books\n for(Book currentBook : books){ //iterates through books array\n bookCB.addItem(currentBook.getTitle()); //adds book titles to comboBox\n }\n\n //enhanced for loop populates audio comboBox with audio materials\n for(AudioVisualMaterial currentAudio : audio){ //iterates through audio array\n audioCB.addItem(currentAudio.getAuthor()); //adds audio authors to comboBox\n }\n\n //enhanced for loop populates video comboBox with video materials\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n videoCB.addItem(currentVideo.getTitle()); //adds video titles to comboBox\n }\n }", "@FXML\n\tpublic void addIngredientToProduct(ActionEvent event) {\n\t\tIngredient ingredient = restaurant.returnIngredient(ChoiceIngredients.getValue());\n\t\tboolean ingredientExists = false;\n\n\t\tfor (int i = 0; i < selectedIngredients.size() && ingredientExists == false; i++) {\n\t\t\tif (selectedIngredients.get(i).equalsIgnoreCase(ChoiceIngredients.getValue())) {\n\t\t\t\tingredientExists = true;\n\t\t\t}\n\t\t}\n\t\tif (ingredientExists == false) {\n\t\t\tif (ChoiceIngredients.getValue() != null) {\n\t\t\t\tif (ingredient.getCondition() == Condition.ACTIVE) {\n\t\t\t\t\tselectedIngredients.add(ChoiceIngredients.getValue());\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\n\t\t\t\t\t\t\t\"Ingrediente \" + ChoiceIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t} else {\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El ingrediente ha sido deshabilitado por lo que no puede ser utilizado\");\n\t\t\t\t\tdialog.setTitle(\"Error, ingrediente Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El ingrediente con el nombre \" + ChoiceIngredients.getValue() + \" ya existe\");\n\t\t\tdialog.setTitle(\"Error, Ingrediente existente\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void setupMealSelectionCombobox(ComboBox<Recipe> mealSelection){\n setupPlannerMealComboboxs(mealSelection);\n }", "public void fillCompBox() {\n\t\tcomboBoxName.removeAllItems();\n\t\tint counter = 0;\n\t\tif (results.getResults() != null) {\n\t\t\tList<String> scenarios = new ArrayList<String>(results.getResults().keySet());\n\t\t\tCollections.sort(scenarios);\n\t\t\tfor (String s : scenarios) {\n\t\t\t\tcomboBoxName.insertItemAt(s, counter);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t}", "public void carrega_cidade() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUF.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidade.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidade.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n Conexao.desConectar();\n \n }", "public void fillCombobox() {\n List<String> list = new ArrayList<String>();\n list.add(\"don't link\");\n if (dataHandler.persons.size() == 0) {\n list.add(\"No Persons\");\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n } else {\n for (int i = 0; i < dataHandler.persons.size(); i++) {\n list.add(dataHandler.persons.get(i).getName());\n ObservableList obList = FXCollections.observableList(list);\n cmb_linkedPerson.setItems(obList);\n cmb_linkedPerson.getSelectionModel().selectFirst();\n }\n }\n }", "public void carregaCidadeModificada() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidadeEditar.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n }", "@FXML\n void loadComboBoxLocationValues() {\n ArrayList<Location> locations = LocationDAO.LocationSEL(-1);\n comboBoxLocation.getItems().clear();\n if (!locations.isEmpty())\n for (Location location : locations) {\n comboBoxLocation.getItems().addAll(location.getLocationID());\n }\n }", "public void carregaEstadoSelecionado(String nome) throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUfEditar.addItem(list);\n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbUfEditar.setSelectedItem(nome);\n \n \n \n }", "private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname4 = jComboBox28.getSelectedItem().toString();\n\n array4.add(lacname4);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv4 = new Vector();\n\n for (int i = 0; i < array4.size(); i++) {\n String gette = array4.get(i);\n vv4.add(gette);\n jComboBox29.setModel(new DefaultComboBoxModel<>(vv4));\n }\n\n }", "private JComboBox<String> getIdmapSpeciesComboBox() {\n\t\tif (idmapSpeciesComboBox == null) {\n\t\t\tidmapSpeciesComboBox = new JComboBox<>();\n\t\t\tidmapSpeciesComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setModel(new DefaultComboBoxModel<String>(new String[] {\n\t\t\t\t\t\t\tKOIdMapper.HUMAN, KOIdMapper.MOUSE, KOIdMapper.FLY,\n\t\t\t\t\t\t\tKOIdMapper.YEAST }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapSpeciesComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapSpeciesComboBox.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelSpecies\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn idmapSpeciesComboBox;\n\t}", "public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);", "@ApiModelProperty(value = \"recipe ingredients by id\")\n @JsonProperty(\"ingredients\")\n public List<BigDecimal> getIngredients() {\n return ingredients;\n }", "public JListeIngredient(FoodClientImpl modele) {\n super(modele);\n initComponents();\n }", "private void fillComboBox(ServiceManager serviceManager){\n for (String vendingMachineName : serviceManager.getVmManager().getVendingMachineNames()) {\n getItems().add(vendingMachineName); \n }\n }", "@Override\n\tpublic String ingredients() {\n\t\treturn \"Chicken, Bread, seasoning , cheese\";\n\t}", "private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }", "private void updateKeyComboBox() {\n keyPairDropDown.removeAllItems();\n for (Identity pair : keyLoader.getLoadedPairs()) {\n keyPairDropDown.addItem(pair.getName());\n }\n }", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "private void initComboBoxes()\n\t{\n\t\tsampling_combobox.getItems().clear();\n\t\tsampling_combobox.getItems().add(\"Random\");\n\t\tsampling_combobox.getItems().add(\"Cartesian\");\n\t\tsampling_combobox.getItems().add(\"Latin Hypercube\");\n\n\t\t// Set default value.\n\t\tsampling_combobox.setValue(\"Random\");\n\t}", "public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}", "public void llenarComboBox(){\n TipoMiembroComboBox.removeAllItems();\n TipoMiembroComboBox.addItem(\"Administrador\");\n TipoMiembroComboBox.addItem(\"Editor\");\n TipoMiembroComboBox.addItem(\"Invitado\");\n }", "public void rellena_jcombobox_articulos()\r\n\t{\r\n\t\tresultset1 = base_datos.obtener_objetos(\"SELECT descripcionArticulo FROM articulos ORDER BY 1;\");\t\r\n\r\n\t\ttry //USAMOS UN WHILE PARA RELLENAR EL JCOMBOX CON LOS RESULTADOS DEL RESULSET\r\n\t\t{\r\n\t\t\twhile(resultset1.next())\r\n\t\t\t{\r\n\t\t\t\tcomboArticulo.addItem(resultset1.getString(\"descripcionArticulo\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@FXML\n public void ingredientsBrowseSelect(){\n Ingredient selectedIngredient = ingredientsBrowseCombo.getSelectionModel().getSelectedItem();\n if (selectedIngredient != null){\n ingredCalorieInputBrowse.setText(Double.toString(selectedIngredient.getCalorie()));\n ingredSugarInputBrowse.setText(Double.toString(selectedIngredient.getSugar()));\n ingredProteinInputBrowse.setText(Double.toString(selectedIngredient.getProtein()));\n ingredFiberInputBrowse.setText(Double.toString(selectedIngredient.getFiber()));\n ingredCarbsInputBrowse.setText(Double.toString(selectedIngredient.getCarbs()));\n ingredFatInputBrowse.setText(Double.toString(selectedIngredient.getFat()));\n ingredQuantityNameInputBrowse.setText(selectedIngredient.getQuantityName());\n ingredQuantityAmountInputBrowse.setText(Integer.toString((int)\n Math.round(selectedIngredient.getSingleQuantityInGrams())));\n }\n }", "private ObservableList<String> fillComboBox() {\n\t\tObservableList<String> list = FXCollections.observableArrayList();\n\t\t\n\t\t/* Test Cases */\n\t\t\tlist.addAll(\"Item Code\", \"Description\");\n\t\t\n\t\treturn list;\n\t}", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname3 = jComboBox27.getSelectedItem().toString();\n\n array3.add(lacname3);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv3 = new Vector();\n\n for (int i = 0; i < array3.size(); i++) {\n String gette = array3.get(i);\n vv3.add(gette);\n jComboBox26.setModel(new DefaultComboBoxModel<>(vv3));\n }\n }", "public void fillComBox1()\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tconnection = SqlServerConnection.dbConnecter();\r\n\t\t\t\t\r\n\t\t\t\tString sql=\"select * from addLocation\";\r\n\t\t\t\tPreparedStatement pst=connection.prepareStatement(sql);\r\n\t\t\t\tResultSet rs=pst.executeQuery();\r\n\t\t\t\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\troomcombo2.addItem(rs.getString(\"RoomName\"));\r\n\t\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname5 = jComboBox25.getSelectedItem().toString();\n\n array5.add(lacname5);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv5 = new Vector();\n\n for (int i = 0; i < array5.size(); i++) {\n String gette = array5.get(i);\n vv5.add(gette);\n jComboBox30.setModel(new DefaultComboBoxModel<>(vv5));\n }\n\n }", "void populateLittlesComboBox(JComboBox box) {\n box.addItem(\"Clear\");\n TreeMap<String, ArrayList<String>> sortedlittles = new TreeMap<>();\n sortedlittles.putAll(matching.littlesPreferences);\n for (Map.Entry lilprefs : sortedlittles.entrySet()) {\n String littleName = lilprefs.getKey().toString();\n box.addItem(littleName);\n }\n }", "public void setIngredientes(java.util.ArrayList<Ingrediente> ingredientes){\n this.ingredientes = ingredientes;\n }", "protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }", "private void carregaComboDentista() {\n CtrPessoa ctrD = new CtrPessoa();\n ArrayList<Pessoa> result = ctrD.getPessoa(\"\", new Dentista());\n\n ObservableList<Pessoa> dentistas = FXCollections.observableArrayList(result);\n\n if (!result.isEmpty()) {\n cbDentista.setItems(dentistas);\n cbDentista.setValue(cbDentista.getItems().get(0)); //inicializando comboBox\n }\n }", "private void fillComboBox() {\n List<String> times = this.resultSimulation.getTimes();\n this.timesComboBox.getItems().addAll(times);\n this.timesComboBox.getSelectionModel().select(0);\n }", "private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed\n // TODO add your handling code here:\n\n String lacname2 = jComboBox12.getSelectedItem().toString();\n\n array2.add(lacname2);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv2 = new Vector();\n\n for (int i = 0; i < array2.size(); i++) {\n String gette = array2.get(i);\n vv2.add(gette);\n jComboBox24.setModel(new DefaultComboBoxModel<>(vv2));\n }\n }", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Preenche o comboBox sexo\r\n cb_sexo.setItems(listSexo);\r\n cb_uf.setItems(listUf);\r\n cb_serie.setItems(listSerie);\r\n\r\n// // Preenche o comboBox UF\r\n// this.cb_uf.setConverter(new ConverterDados(ConverterDados.GET_UF));\r\n// this.cb_uf.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n//\r\n// //Preenche o comboBox Serie\r\n// this.cb_serie.setConverter(new ConverterDados(ConverterDados.GET_SERIE));\r\n// this.cb_serie.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n this.codAluno.setCellValueFactory(cellData -> cellData.getValue().getCodigoProperty().asObject());\r\n this.nomeAluno.setCellValueFactory(cellData -> cellData.getValue().getNomeProperty());\r\n this.sexoAluno.setCellValueFactory(cellData -> cellData.getValue().getSexoProperty());\r\n this.enderecoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnderecoProperty());\r\n this.cepAluno.setCellValueFactory(cellData -> cellData.getValue().getCepProperty());\r\n this.nascimentoAluno.setCellValueFactory(cellData -> cellData.getValue().getNascimentoProperty());\r\n this.ufAluno.setCellValueFactory(cellData -> cellData.getValue().getUfProperty());\r\n this.maeAluno.setCellValueFactory(cellData -> cellData.getValue().getMaeProperty());\r\n this.paiAluno.setCellValueFactory(cellData -> cellData.getValue().getPaiProperty());\r\n this.telefoneAluno.setCellValueFactory(cellData -> cellData.getValue().getTelefoneProperty());\r\n this.serieAluno.setCellValueFactory(cellData -> cellData.getValue().getSerieProperty());\r\n this.ensinoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnsinoProperty());\r\n\r\n //bt_excluir.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n //bt_editar.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n }", "@SuppressWarnings(\"unchecked\")\n private void addComboBox() throws Exception{\n\n Connection con = Coagent.getConnection();\n PreparedStatement query = con.prepareStatement(\"SELECT Publisher_Name FROM publishers;\");\n ResultSet result = query.executeQuery();\n\n while(result.next()){\n jComboBoxAdd.addItem(result.getString(1));\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n String selectedItems = \"\";\n for(Integer i : mSelectedItems){\n selectedItems += items[i] + \",\";\n Log.d(\"selectedIndex = \",items[i].toString());\n }\n\n recipeText.setText(selectedItems);\n //showToast(\"Selected index: \" + selectedIndex);\n\n }", "private void carregaComboUfs() {\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Inhumas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goianira\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goiânia\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"Campinas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"São José dos Campos\"));\n\t\t\n\t\t\n\t\tfor (Municipio municipio : listaDeMunicipios) {\n\t\t\tif(!listaDeUfs.contains(municipio.getUf())) {\n\t\t\t\tlistaDeUfs.add(municipio.getUf());\n\t\t\t}\n\t\t}\n\t\t\n\t\tcmbUfs.addItem(\"--\");\n\t\tfor (String uf : listaDeUfs) {\n\t\t\tcmbUfs.addItem(uf);\n\t\t}\n\t}", "@FXML\n\tpublic void addUpdateIngredientToProduct(ActionEvent event) {\n\t\tif (ChoiceUpdateIngredients.getValue() != null) {\n\t\t\tselectedIngredients.add(ChoiceUpdateIngredients.getValue());\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrediente \" + ChoiceUpdateIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\tdialog.show();\n\t\t\tChoiceUpdateIngredients.setValue(null);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "public void carrega_estado() throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUF.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n \n Conexao.desConectar();\n }", "public void dropDownInventory(ComboBox combo) throws SQLException {\r\n dataAccess = new Connection_SQL(\"jdbc:mysql://localhost:3306/items\", \"root\", \"P@ssword123\");\r\n combo.setItems(dataAccess.menuInventory());\r\n }", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "private void setComboBox(JComboBox<String> comboBox) {\n comboBox.addItem(\"Select an item\");\n for (Product product : restaurant.getProducts()) {\n comboBox.addItem(product.getName());\n }\n }", "private void cargarCmbColores(){\n MapaColores.getMap().forEach((k,v)->cmbColores.getItems().add(k));\n cmbColores.getSelectionModel().selectFirst();\n }", "public void setIngredients(String ingredients) {\n this.ingredients = ingredients;\n }", "@FXML\n\tprivate void initialize() {\n\t\tlistNomType = FXCollections.observableArrayList();\n\t\tlistIdType=new ArrayList<Integer>();\n\t\ttry {\n\t\t\tfor (Type type : typeDAO.recupererAllType()) {\n listNomType.add(type.getNomTypeString());\n listIdType.add(type.getIdType());\n }\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tcomboboxtype.setItems(listNomType);\n\n\t}", "private void populateMyLocationsBox(){\n\t\t\t//locBar.removeActionListener(Jcombo);\n\t\t\tlocBar.removeAllItems();\n\t\t\tfor (int i = 0; i < app.getMyLocations().length; i ++){\n\t\t\t\tlocation tempLoc = app.getMyLocations()[i];\n\t\t\t\tif (tempLoc.getCityID() != 0){\n\t\t\t\t\tString val = tempLoc.getName() + \", \" + tempLoc.getCountryCode() + \" Lat: \" + tempLoc.getLatitude() + \" Long: \" + tempLoc.getLongitude();\n\t\t\t\t\tlocBar.addItem(val);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (locBar.getItemCount() == 0){\n\t\t\t\tlocBar.addItem(\"--Empty--\");\n\t\t\t} else {\n\t\t\t\tlocBar.addItem(\"--Remove?--\");\n\t\t\t}\n\t\t\tlocBar.addActionListener(Jcombo);\n\t\t}", "@Override\r\n\tpublic List<String> getIngredients() {\r\n\t\treturn ingredients;\r\n\t}", "private void CBFakture() {\n try {\n cmbFakture.removeAllItems();\n List<Faktura> fakture = Controller.getInstance().vratiFaktureView();\n for (Faktura fak : fakture) {\n cmbFakture.addItem(fak);\n }\n } catch (Exception ex) {\n Logger.getLogger(ProizvodUpdate.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void refreshOfficeCodeComboBox() {\n\ttry {\n\tList<OfficesList> offices = db.showOffices();\n\tHashSet<String> unique = new HashSet<String>();\n\tofficeCodeComboBox.removeAllItems();\n\t\tfor (OfficesList officesList : offices) {\n\t\t\tif (unique.add(officesList.getOfficeCode())) {\n\t\t\t\tofficeCodeComboBox.addItem(officesList.getOfficeCode());\n\t\t\t}\n\t\t}\n\t}catch(SQLException err) {\n\t\terr.printStackTrace();\n\t}\n}", "public void cargarJComboBoxProductos(JComboBox cbxProductos) { \n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n cbxProductos.addItem(Producto.getNombreProducto());\n //cbxCantidad.addItem(String.valueOf(Producto.getStockProducto()));\n }\n }", "public void rebajoIngredientes() {\n }", "@Override\n public int getItemCount() {\n return ingredients.size();\n }", "DirectionIngredientsAdapter(List<Ingredient> ingredients) {\n this.ingredients = ingredients;\n }", "public void treatmentSearch(){\r\n searchcb.getItems().addAll(\"treatmentID\",\"treatmentName\",\"medicineID\", \"departmentID\", \"diseaseID\");\r\n searchcb.setValue(\"treatmentID\");;\r\n }", "@FXML\n public void selectRecipeFromCombo(){\n Recipe selectedRecipe = comboMealSelection.getSelectionModel().getSelectedItem();\n if (selectedRecipe != null){\n mealMethod.setText(selectedRecipe.getMethod());\n //get the list of ingredients\n ObservableList<Ingredient> mealsIngredients = FXCollections.observableList(selectedRecipe.getIngredients());\n\n //set the ingredients to the listView\n mealIngred.setItems(mealsIngredients);\n\n //calculate and display the nutritional information of the meal\n String lineOne = calculateNutritionLineOne(selectedRecipe);\n String lineTwo = calculateNutritionLineTwo(selectedRecipe);\n browseMealNutritionOne.setText(lineOne);\n browseMealNutritionTwo.setText(lineTwo);\n\n }\n }", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "public String toString()\n\t{\n\t\treturn ingredients;\n\t}", "public FrmEjemploCombo() {\n initComponents();\n \n cargarAutos();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstProduce = new javax.swing.JList<>();\n jSeparator1 = new javax.swing.JSeparator();\n txtName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n btnClose = new javax.swing.JButton();\n btnConfirm = new javax.swing.JButton();\n txtSearchName = new javax.swing.JTextField();\n btnDelete = new javax.swing.JButton();\n btnAdd = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtAmount = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n lstIngredients = new javax.swing.JList<>();\n btnAddIngredient = new javax.swing.JButton();\n btnRemoveIngredient = new javax.swing.JButton();\n btnSearch = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n lstProduce.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setViewportView(lstProduce);\n\n jLabel2.setText(\"Name :\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Produce\");\n\n jLabel10.setText(\"Name :\");\n\n btnClose.setText(\"Close\");\n btnClose.setToolTipText(\"\");\n btnClose.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCloseActionPerformed(evt);\n }\n });\n\n btnConfirm.setText(\"Confirm\");\n btnConfirm.setToolTipText(\"\");\n btnConfirm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnConfirmActionPerformed(evt);\n }\n });\n\n btnDelete.setText(\"Delete Produce\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n\n btnAdd.setText(\"Add Produce\");\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel11.setText(\"Produce Details\");\n\n jLabel3.setText(\"Amount Made (g, ml) :\");\n\n jLabel4.setText(\"Ingredients (g, ml) :\");\n\n lstIngredients.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane2.setViewportView(lstIngredients);\n\n btnAddIngredient.setText(\"Add Ingredient\");\n btnAddIngredient.setToolTipText(\"\");\n btnAddIngredient.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddIngredientActionPerformed(evt);\n }\n });\n\n btnRemoveIngredient.setText(\"Remove Ingredient\");\n btnRemoveIngredient.setToolTipText(\"\");\n btnRemoveIngredient.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRemoveIngredientActionPerformed(evt);\n }\n });\n\n btnSearch.setText(\"Search\");\n btnSearch.setToolTipText(\"\");\n btnSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSearchActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnAdd)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDelete))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addComponent(btnConfirm, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnAddIngredient)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnRemoveIngredient, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtName)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtSearchName, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(303, 303, 303)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSearch, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnClose, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(7, 7, 7))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(btnClose))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtSearchName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSearch))\n .addGap(3, 3, 3)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)))\n .addComponent(jScrollPane1))\n .addGap(58, 58, 58))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnConfirm, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAddIngredient, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnRemoveIngredient, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}", "private void llenarCombo() {\n cobOrdenar.removeAllItems();\n cobOrdenar.addItem(\"Fecha\");\n cobOrdenar.addItem(\"Nro Likes\");\n cobOrdenar.setSelectedIndex(-1); \n }", "private void fillChoicebox(String item, ChoiceBox cBox) {\n List<Component> test = cRegister.searchRegisterByName(item);\n ObservableList<String> temp = FXCollections.observableArrayList();\n temp.add(\"Ikke valgt\");\n for (Component i : test) {\n temp.add(i.getNavn());\n }\n\n cBox.setItems(temp);\n cBox.setValue(\"Ikke valgt\");\n }" ]
[ "0.7217845", "0.686763", "0.65223974", "0.64616036", "0.63827944", "0.61323506", "0.61288184", "0.6102426", "0.6100327", "0.60864013", "0.60713404", "0.60177517", "0.5990369", "0.59722465", "0.59384936", "0.5898438", "0.58849454", "0.58639145", "0.5855672", "0.58225983", "0.5821574", "0.58192086", "0.58069634", "0.5789292", "0.57647043", "0.5755428", "0.5753619", "0.5710694", "0.57022285", "0.56907874", "0.5681347", "0.56676424", "0.5654897", "0.56472886", "0.5638743", "0.5632838", "0.5618074", "0.5597842", "0.55962676", "0.5580776", "0.55676544", "0.55639255", "0.5561019", "0.5552122", "0.5549142", "0.55431294", "0.5531105", "0.55284506", "0.5520943", "0.55190223", "0.5517922", "0.55160534", "0.5504702", "0.5504041", "0.5491545", "0.54882467", "0.54715097", "0.54701585", "0.54693747", "0.5466478", "0.545647", "0.5454488", "0.5454478", "0.54522556", "0.5446488", "0.54439384", "0.54407346", "0.5431583", "0.5420399", "0.5410934", "0.5407445", "0.54022217", "0.5397264", "0.53899944", "0.5385832", "0.538304", "0.53692615", "0.5364666", "0.53575265", "0.534987", "0.5339152", "0.5332193", "0.5325807", "0.5321968", "0.5304861", "0.5297083", "0.5293297", "0.5285378", "0.5282982", "0.52776927", "0.526137", "0.52602", "0.52601177", "0.52594286", "0.5258852", "0.52529514", "0.5236549", "0.5233868", "0.52334416", "0.52314955" ]
0.6776922
2
Add Item to the Recipe
public void addRecipe(MouseEvent mouseEvent) { if (!txtqty.getText().trim().isEmpty() && !cmbIngreName.getSelectionModel().isEmpty() && !cmbIngreName.getSelectionModel().isEmpty()) { lbQTY.setStyle("-fx-text-fill: #ff7197"); txtqty.setStyle("-fx-border-color: #ff7197"); Recipe recipe = new Recipe( cmbCakeID.getSelectionModel().getSelectedItem(), txtID.getText(), cmbIngreName.getSelectionModel().getSelectedItem(), txtUnit.getText(), Double.parseDouble(txtUnitPrice.getText()), Double.parseDouble(txtqty.getText()) ); saveIngreInRecipe(recipe); } else { lbQTY.setStyle("-fx-text-fill: red"); txtqty.setStyle("-fx-border-color: red"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "RecipeObject addRecipe(RecipeObject recipe);", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != null){\n recipes.add(recipe);\n }\n }", "public void addRecipe(IRecipe recipe) {\n this.recipes.add(recipe);\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "@Override\n public IRecipe addRecipe() {\n return RecipeRegistry.addShapedRecipe(new ItemStack(this),\n \"igi\",\n \"gog\",\n \"igi\",\n 'o', \"obsidian\", 'i', \"ingotIron\", 'g', \"blockGlass\");\n }", "void add(Item item);", "void addRecipe(RecipeGroup rg)\r\n\t{\tthis.recipes.add(rg);\t}", "public abstract void addItem(AbstractItemAPI item);", "@attribute(value = \"\", required = false)\r\n\tpublic void addItem(Item i) {\r\n\t}", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void addRecipe(Recipe recipe)\n {\n recipe.setDataSource(this);\n _recipes.add(recipe);\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void addItem() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Item Name: \");\n\t\tString itemName = scanner.nextLine();\n\t\tSystem.out.print(\"Enter Item Description: \");\n\t\tString itemDescription = scanner.nextLine();\n\t\tSystem.out.print(\"Enter minimum bid price for item: $\");\n\t\tdouble basePrice = scanner.nextDouble();\n\t\tLocalDate createDate = LocalDate.now();\n\t\tItem item = new Item(itemName, itemDescription, basePrice, createDate);\n\t\taddItem(item);\n\t}", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item i) {\n this.items.add(i);\n }", "public void addItem(Item e) {\n\t\tItem o = new Item(e);\n\t\titems.add(o);\n\t}", "@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}", "CatalogItem addCatalogItem(CatalogItem catalogItem);", "public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);", "public void addItem(Item item) {\n _items.add(item);\n }", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "public void addItem(View v){\n //Creates a new IngredientModel, adds it to the List<IngredientModel>\n IngredientModel ingredientModel = new IngredientModel(ingredientEditText.getText().toString());\n ingredientModelList.add(ingredientModel);\n //Notifies the adapter the data set has changed in order to update the recyclerView\n ingredientSearchAdapter.notifyDataSetChanged();\n }", "public void add(food entry)\n\t{\n\t\titems.add(entry);\n\t\t//updates isChanged to show changes\n\t\tisChanged = true;\n\t}", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}", "public void addItem(Item item) {\r\n\t\titems.add(item);\r\n\t}", "public void additem(String item){\n\t\trep.takeitem(\"take \" + item);\n\t}", "@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}", "public void registerRecipe() {\n\t ItemStack itemStackDroidParts = new ItemStack(SuperDopeJediMod.entityManager.droidParts);\n\t ItemStack itemStackQuadaniumSteelIngot = new ItemStack(SuperDopeJediMod.quadaniumSteelIngot); \n\t ItemStack itemStackThis = new ItemStack(this);\n\t \n\t GameRegistry.addRecipe(itemStackThis, \"xxx\", \"xyx\", \"xxx\", 'x', itemStackDroidParts,\n\t \t\t\t'y', itemStackQuadaniumSteelIngot);\t\n\t}", "public void addItem(String name,String description, int weight, boolean key)\n {\n items.add(new Item(name,description,weight,key));\n }", "public void addTodoItem(TodoItem item) {\n todoItems.add(item);\n }", "public void addItem(Item item) {\n\t\tObjects.requireNonNull(item);\n\t\titems.add(item);\n\t}", "public void addItem(String name, String quantity)\n\t{\n\t\tingredients.add(new Ingredient(quantity, name));\n\t}", "public void addItem(Item item) {\n\t\titems.add(item);\n\t}", "public int addItem(Item i);", "public void addItem(Item item) {\n\t\thashOperations.put(KEY, item.getId(), item);\n\t\t//valueOperations.set(KEY + item.getId(), item);\n\t}", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public void addItem( Item anItem) {\n currentItems.add(anItem);\n }", "public void addRandomItem(RandomItem item);", "void addCpItem(ICpItem item);", "public void addProduct(Product item)\n {\n stock.add(item);\n }", "@Override\n\tpublic void addRecipes() \n\t{\n GameRegistry.addRecipe(new ItemStack(this), \"xxx\", \"xyx\", \"xxx\",\t\t\t\t\t\t\n 'x', Items.fireworks, \n 'y', Items.string\n ); \n \n // Bundle of rockets back to 8 rockets\n GameRegistry.addShapelessRecipe(new ItemStack(Items.fireworks, 8), new ItemStack(this));\n\t}", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "public boolean add(Type item);", "public void addItem(LibraryItem item){\r\n\t\t// use add method of list.class\r\n\t\tthis.inverntory.add(item);\r\n\t}", "public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }", "@Override\n public void addItem(int position) {\n // Getting the auto complete input field\n AutoCompleteTextView source = (AutoCompleteTextView) v.findViewById(R.id.auto_complete_input);\n // Getting the Title of the ingredient\n String title = source.getText().toString();\n // Check if we have already added this ingredient\n boolean item_seen = false;\n\n // Creating a new object for the recyclerview that can later be displayed\n IngredientItem temp = new IngredientItem(R.drawable.ic_restaurant_menu_green_24dp, source.getText().toString(), all_ingredients.get(title).get(1), all_ingredients.get(title).get(2), all_ingredients.get(title).get(3));\n\n // For every item in our recyclerview ...\n for (int i = 0; i < rv_adapt.getItemCount(); i++)\n // ... if the ingredient we want to add equals the item we recognize as it is already present within\n // our list of ingredients, then we set the item as already seen, so it does not get added again\n if (ingredients.get(i).getTitle().equals(title)) {\n // This log can be uncommented to check if the item is known yet\n // Log.d(\"Debug\", ingredients.get(i).getTitle() + \" \" + title + \" \" + rv_adapt.getItemCount());\n item_seen = true;\n }\n\n // If we recognize the item which should be added as a valid item and we haven't added it\n // yet, then we can add it now to our list of ingredients and notify our adaptor to refresh.\n if (all_ingredients.containsKey(title) && !item_seen) {\n // Notification in Logcat that item xyz has been added\n Log.d(\"Debug\", \"Adding \" + title + \" \" + all_ingredients.get(title));\n ingredients.add(temp);\n rv_adapt.notifyItemInserted(position);\n }\n\n // After adding an item the auto complete input field is getting emptied again, so\n // a new item can be added. Further the add button is being disabled for cosmetic purposes.\n source.setText(\"\");\n v.findViewById(R.id.button_add).setEnabled(false);\n\n // If we have 1+ Items in the recyclerview then the search is being enabled, as\n // it makes no sense to search for 0 items\n if (rv_adapt.getItemCount() > 0)\n v.findViewById(R.id.button_search).setEnabled(true);\n\n // Just a quick log to see which ingredients are present in our list\n // (Debugging purposes)\n Log.d(\"Debug\", ingredients.toString());\n\n // Notifying the adapter to refresh\n rv_adapt.notifyDataSetChanged();\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "void addGroceryItem(String item) {\n\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}", "protected abstract void makeItem();", "void createItem (String name, String description, double price);", "public void addItem(Item i) {\r\n assert (ic != null);\r\n \r\n ic.setItem(i);\r\n ic.setHandler(handler);\r\n items.add(ic.getItem());\r\n }", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public void in(food entry)\n\t{\n\t\titems.add(entry);\n\t}", "private void addItem(UndoItem item, RefactoringSession session) {\n if (wasUndo) {\n LinkedList<UndoItem> redo = redoList.get(session);\n redo.addFirst(item);\n } else {\n if (transactionStart) {\n undoList.put(session, new LinkedList<UndoItem>());\n descriptionMap.put(undoList.get(session), description);\n transactionStart = false;\n }\n LinkedList<UndoItem> undo = this.undoList.get(session);\n undo.addFirst(item);\n }\n if (!(wasUndo || wasRedo)) {\n redoList.clear();\n }\n }", "public static void addNewItem(String itemName,Context context){\n\t\tItem item=new Item();\n\t\titem.updateName(itemName);\n\t\titem.updateCheckmark(false);\n\t\titem.updateArchived(false);\n\t\tItemListController.getItemListInstance().add(item);\n\t\ttodoList.add(itemName);\n\t\tItemListManager.saveListItem(context);\n\t}", "public void addItem(final Item item) {\n\t\tnumberOfItems++;\n\t}", "public void addIngredient(View view) {\n LinearLayout layout = findViewById(R.id.recipeIngredientsInputLayout);\n EditText text = new EditText(getApplicationContext());\n text.setHint(\"Recipe Ingredient\");\n layout.addView(text);\n }", "@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }", "public void addItem(String itemPath) {\n\n\t\tImage img = new Image(itemPath);\n\t\titemsList.add(img);\n\n\t}", "public void addItem(ToDoList item) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(TITLE, item.getTitle());\n values.put(DETAILS, item.getDetails());\n\n db.insert(TABLE_NAME, null, values); //Insert query to store the record in the database\n db.close();\n\n }", "@Test\n\tpublic void testAddItem() throws IOException{\n\t\tModel.addItem(item, amount + \"\");\n\t\tassertEquals(amount + \"\", Model.hash.get(item));\n\t\t\n\t}", "public void addGroceryItem(String item){\n groceryList.add(item);\n }", "public Item addItem(Item item) {\r\n uniqueCounter++;\r\n items.add(item);\r\n return item;\r\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "public InventoryItem addInventoryItem(int charId, String name, String desc) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n\t\tContentValues gamevals = new ContentValues();\n\t\tgamevals.put(\"name\", name);\n\t\tgamevals.put(\"description\", desc);\n\t\tgamevals.put(\"character_id\", charId);\n\n\t\tlong rowid = database.insert(\"inventory_item\", null, gamevals);\n\n\t\tString[] args = new String[] { \"\" + rowid };\n\t\tCursor c = database.rawQuery(\n\t\t\t\t\"SELECT * FROM inventory_item WHERE inventory_item.ROWID =?\",\n\t\t\t\targs);\n\t\tc.moveToFirst();\n\n\t\treturn new InventoryItem(\n\t\t\t\tc.getInt(c.getColumnIndex(\"_id\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"name\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"description\")));\n\t}", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public void add(Thing newThing)\r\n {\r\n \titems.add(newThing);\r\n }", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public void addIngredient(View view) {\n // find the input boxes\n EditText ingredientName = findViewById(R.id.input_Ingredient);\n EditText ingredientQuantity = findViewById(R.id.input_Quantity);\n\n // get the values\n String name = ingredientName.getText().toString();\n String quantity = ingredientQuantity.getText().toString();\n\n if (!(name.equals(\"\"))) {\n // assign it to the recipe\n newRecipe.addIngredient(new Ingredient(name, quantity));\n\n // update the listview for the ingredients\n updateIngredientListView();\n\n // remove the contents of those fields\n ingredientName.setText(\"\");\n ingredientQuantity.setText(\"\");\n }\n else {\n Toast.makeText(this, \"You must enter a name for your ingredient!\", Toast.LENGTH_SHORT).show();\n }\n }", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public PageInventory addItem(ItemStack item)\n {\n this.contents.add(item);\n this.recalculate();\n return this;\n }", "public void addItem(Item item) {\n this.reservationItems.add(new ReservationItem(item, this));\n }", "@Test\n\tpublic void testAddTheUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertTrue(coffeeMaker.addRecipe(recipe2));\n\t}", "public void addItem(String item){\n adapter.add(item);\n }", "@Override\n\tpublic void registerRecipe(IForgeRegistry<IRecipe> registry) {\n\t\tRecipeAddedManager.BREWING_RECIPES.add(0, this);\n\t}", "public void addItem(String nomItem, Item item) {\r\n \t\titems.putItem(nomItem, item);\r\n \t}", "public void store(Item item) {\n this.items.add(item);\n }", "@SafeVarargs\n\[email protected]\n\tpublic final void addRecipe(String recipePath, IIngredient input, int energy, IItemStack mainOutput, Percentaged<IItemStack>... additionalOutputs)\n\t{\n\t\tfinal ResourceLocation resourceLocation = new ResourceLocation(\"crafttweaker\", recipePath);\n\n\t\tfinal ItemStack result = mainOutput.getInternal();\n\t\tfinal Ingredient ingredient = input.asVanillaIngredient();\n\t\tfinal CrusherRecipe recipe = IEServerConfig.MACHINES.crusherConfig.apply(\n\t\t\t\tnew CrusherRecipe(resourceLocation, of(result), ingredient, energy)\n\t\t);\n\n\t\tfor(Percentaged<IItemStack> additionalOutput : additionalOutputs)\n\t\t{\n\t\t\tfinal StackWithChance stackWithChance = CrTIngredientUtil.getStackWithChance(additionalOutput);\n\t\t\trecipe.addToSecondaryOutput(stackWithChance);\n\t\t}\n\n\t\tCraftTweakerAPI.apply(new ActionAddRecipe<>(this, recipe, null));\n\t}", "public static void addItem(BackpackItem itemName) {\n\t\t\t\n\t\t\tfor (int i = 0; i <= backpackArr.length-1; i++) { //iterate through backpackArr\n\t\t\t\t\n\t\t\t\tif (backpackArr[i] == null) { // If there is no item in slot\n\t\t\t\t\tSystem.out.println(\"You added the \" + itemName + \" to your backpack.\");\n\t\t\t\t\tbackpackArr[i] = itemName; // puts new item into next empty BackpackItem index in backpackArr\n\t\t\t\t\tbreak; // breaks out of for loop (to prevent filling up all slots with the same item\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void addCostItem(CostItem item) throws CostManagerException;", "public void enterItem(DessertItem item)\n {\n dessertList.add(item);\n }", "public IngredientModel addIngredient(Ingredient ingredient) {\n Traverson traverson = allIngredientsTraverson();\n // use Traverson to navigate and get associated URL\n String ingredientsUrl = traverson.follow(\"ingredients\").asLink().getHref();\n // use RestTemplate to use REST services\n return restTemplate.postForObject(ingredientsUrl, ingredient, IngredientModel.class);\n }", "public void addItem(String key, Item item) throws IOException {\n\n itemMap.get(key).add(item);\n\n if(item.getImportance().equals(\"yes\")) importantItemList.add(item);\n\n notifyObservers(item);\n\n fileWrite.saveItemMap(this, file);\n\n }", "public void addItem(String nameMeal, String quantity, String idOrder) {\n\n\t\ttry {\n\n\t\t\torderDetails.insertNewOrderDetail(idOrder, quantity, nameMeal);\n\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\t}", "public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}", "public void addItem(Item theItem) {\n\t\tif (inventory != null) {\n\t\t\tif (!isAuctionAtMaxCapacity()) {\n\t\t\t\t// Check item doesn't already exist as key in map\n\t\t\t\tif (inventory.containsKey(theItem)) {\n\t\t\t\t\t//ERROR CODE: ITEM ALREADY EXISTS\n\t\t\t\t\tSystem.out.println(\"That item already exists in the inventory.\");\n\t\t\t\t} else\n\t\t\t\t\tinventory.put(theItem, new ArrayList<Bid>());\n\t\t\t} else if (isAuctionAtMaxCapacity()) {\n\t\t\t\t//ERROR CODE: AUCTION AT MAX CAPACITY\n\t\t\t\tSystem.out.println(\"\\nYour auction is at maximum capacity\");\n\t\t\t} \n\t\t} else {\n\t\t\tinventory = new HashMap<Item, ArrayList<Bid>>();\n\t\t\tinventory.put(theItem, new ArrayList<Bid>());\t\t\t\t\n\t\t} \t\t\t\t\t\t\n\t}", "public void addItem(Item newItem){\n\t\tif(newItem!=null){\r\n\t\t\tif(newItem.stackable()){\r\n\t\t\t\taddItemStack(newItem);\r\n\t\t\t\tdisplayIcon();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddFullStack(newItem);\r\n\t\t\tdisplayIcon();\r\n\t\t}\r\n\t}", "private void addItem() {\n\n ItemBean bean2 = new ItemBean();\n int drawableId2 = getResources().getIdentifier(\"ic_swrl\", \"drawable\", this.getPackageName());\n bean2.setAddress(drawableId2);\n bean2.setName(getResources().getString(R.string.swrl));\n itemList.add(bean2);\n\n ItemBean bean3 = new ItemBean();\n int drawableId3 = getResources().getIdentifier(\"ic_bianmin\", \"drawable\", this.getPackageName());\n bean3.setAddress(drawableId3);\n bean3.setName(getResources().getString(R.string.bianmin));\n itemList.add(bean3);\n\n ItemBean bean4 = new ItemBean();\n int drawableId4 = getResources().getIdentifier(\"ic_shenghuo\", \"drawable\", this.getPackageName());\n bean4.setAddress(drawableId4);\n bean4.setName(getResources().getString(R.string.shenghuo));\n itemList.add(bean4);\n\n ItemBean bean5 = new ItemBean();\n int drawableId5 = getResources().getIdentifier(\"ic_nxwd\", \"drawable\", this.getPackageName());\n bean5.setAddress(drawableId5);\n bean5.setName(getResources().getString(R.string.nxwd));\n// itemList.add(bean5);\n\n }" ]
[ "0.7554811", "0.74532366", "0.7311308", "0.7191009", "0.7173282", "0.7171949", "0.71433944", "0.70720786", "0.7000506", "0.69542253", "0.6951036", "0.6892663", "0.68764704", "0.6854262", "0.68098396", "0.6711052", "0.6711052", "0.6670829", "0.6664575", "0.66555893", "0.6645858", "0.65657336", "0.65447605", "0.6523153", "0.6522196", "0.6508098", "0.64900434", "0.64882445", "0.6449774", "0.64124805", "0.640106", "0.6399586", "0.63966113", "0.6393129", "0.6392609", "0.6379435", "0.63786083", "0.63736534", "0.63563037", "0.6352421", "0.63520336", "0.6348857", "0.63373053", "0.63296235", "0.6325743", "0.63237286", "0.63232934", "0.6318718", "0.6314374", "0.6293792", "0.6284382", "0.62823886", "0.6269818", "0.62609506", "0.62598675", "0.62401366", "0.6222111", "0.62178373", "0.6213562", "0.62097406", "0.6207638", "0.61939", "0.6189666", "0.61869144", "0.618391", "0.6182364", "0.6171348", "0.6157917", "0.6147066", "0.6123292", "0.61133087", "0.61109", "0.61067116", "0.61010224", "0.6100837", "0.60970587", "0.60915864", "0.60857356", "0.60797006", "0.60783184", "0.6072752", "0.60632336", "0.60618794", "0.6048823", "0.6048325", "0.60359466", "0.6016917", "0.6014104", "0.60104126", "0.59992987", "0.5992757", "0.59873694", "0.5984038", "0.59812725", "0.5971381", "0.59710085", "0.5970573", "0.59668654", "0.59668624", "0.59660685" ]
0.5968803
97
Save the item in recipe table in database
private void saveIngreInRecipe(Recipe recipe) { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); Optional<ButtonType> result = alert.showAndWait(); if (result.get() == ButtonType.OK) { try { if (saveRecipe(recipe)) { Alert alert2 = new Alert(Alert.AlertType.INFORMATION); alert2.setTitle("Message"); alert2.setContentText("Saved.."); alert2.show(); tblRecipe.getItems().clear(); try { loadRecipe(getRecipe(cmbCakeID.getSelectionModel().getSelectedItem())); } catch (SQLException | ClassNotFoundException throwables) { throwables.printStackTrace(); } } else { new Alert(Alert.AlertType.WARNING, "Try Again..").show(); } } catch (Exception e) { new Alert(Alert.AlertType.WARNING, "Duplicate Entry..").show(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "public void saveRecipe(Recipe recipe) {\r\n \t\tif (!recipeList.contains(recipe)) {\r\n \t\t\trecipeList.add(recipe);\r\n \t\t}\r\n \t\tpersistenceManager.save(recipe);\r\n \t}", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "@Override\n\tItem save(Item item);", "public void saveToDatabase(View view) {\n // new implementation\n EditText recipeName = findViewById(R.id.input_Name);\n EditText recipeDirections = findViewById(R.id.input_Directions);\n EditText recipeNotes = findViewById(R.id.input_Notes);\n\n\n if (!(recipeName.getText().toString().equals(\"\"))) {\n newRecipe.setName(recipeName.getText().toString());\n newRecipe.setDirections(recipeDirections.getText().toString());\n newRecipe.setNotes(recipeNotes.getText().toString());\n\n dbHandler.addRecipe(newRecipe);\n\n finish();\n }\n else {\n Toast.makeText(this, \"You must enter a name for your recipe!\", Toast.LENGTH_SHORT).show();\n }\n }", "public void insert(Recipe recipe ) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(recipe);\n\t\ttx.commit();\n\t\tsession.close();\n\t}", "@Override\n\tpublic void saveFoodItem(FoodItem item) {\n\t\tfoodItemRepository.save(item);\n\t}", "RecipeObject addRecipe(RecipeObject recipe);", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}", "void addToFavorites(int recipeId);", "public void addFavourite(RecipeDbItem1 recipeDbItem1)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID,recipeDbItem1.getID());\n values.put(KEY_TITLE,recipeDbItem1.getTitle());\n //insert a row\n db.insert(TABLE_FAVOURITES,null,values);\n db.close();\n //System.out.println(\"\\n Inserted into Favourites Table: \"+recipeDbItem1.getID()+\" \"+recipeDbItem1.getTitle());\n }", "public void onSaveButtonClicked(View view){\n recipe.setTitle(mTitle.getText().toString());\n recipe.setDescription(mDescription.getText().toString());\n recipe.setLastEaten(dateLastEaten);\n recipe.setRemarks(mRemarks.getText().toString());\n recipe.setPoints(mRating.getRating());\n\n recipe.calculateSuggestionValue();\n\n if (isNew)\n {\n FirebaseUser user = mAuth.getCurrentUser();\n recipe.setUid(user.getUid());\n\n db.collection(\"recipes\")\n .add(recipe)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //startActivity(new Intent(RecipeDetailScreenActivity.this,RecipeMainScreenActivity.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error adding document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n }\n else {\n db.collection(\"recipes\").document(recipe.getId())\n .set(recipe)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //Log.d(TAG, \"DocumentSnapshot successfully written!\");\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error writing document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n\n }\n }", "protected void save(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.save(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}", "public long insertRecipe(Recipe recipe)\n {\n ContentValues cv = new ContentValues();\n cv.put(RECIPE_NAME, recipe.getRecipeName());\n cv.put(RECIPE, recipe.getRecipe());\n cv.put(PROCESS, recipe.getProcess());\n cv.put(NOTES, recipe.getNotes());\n this.openWriteableDB();\n long rowID = db.insert(TABLE_RECIPES, null, cv);\n this.closeDB();\n\n return rowID;\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/recipes\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Recipe> saveOrUpdateRecipe(@RequestBody final Recipe recipe) {\n final Recipe savedRecipe = this.recipeRepository.save(recipe);\n return new ResponseEntity<>(savedRecipe, HttpStatus.OK);\n }", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "@PostMapping(\"/recipes\")\n\tpublic String postRecipe(@RequestBody Recipe recipe) {\n\t\tSystem.out.println(\"hit recipes post\");\n\t\tSystem.out.println(recipe.getName());\n\t\tSystem.out.println(recipe.getSpoonacularId());\n\t\tSystem.out.println(recipe.getImage());\n\t\t\n\t\tList<Food> newFoods = recipe.getFoods();\n\t\tList<Step> newSteps = recipe.getSteps();\n\t\trecipe.setFoods(null);\n\t\trecipe.setSteps(null);\n\t\tRecipe newRecipe = rRepo.save(recipe);\n\t\t\n\t\tfor (Food food: newFoods) {\n\t\t\tFood newFood = new Food(food.getName(), food.getAmount());\n\t\t\tnewFood.setRecipe(newRecipe);\n\t\t\tfRepo.save(newFood);\n\t\t}\n\t\tfor (Step step: newSteps) {\n\t\t\tStep newStep = new Step(step.getName());\n\t\t\tnewStep.setRecipe(newRecipe);\n\t\t\tsRepo.save(newStep);\n\t\t}\n\n\t\treturn \"success\";\n\t}", "private void saveInventoryItem() {\n String productName = mProductName.getText().toString().trim();\n String productPrice = mProductPrice.getText().toString().trim();\n String productQuantity = mProductQuantity.getText().toString().trim();\n String productImage = imageViewUri;\n String supplierEmail = mSupplierEmail.getText().toString().trim();\n\n // Create a content values object where the column names are the keys and\n // the values from the fields in the editor activity are the keys\n ContentValues contentValues = new ContentValues();\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_NAME, productName);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_PRICE, productPrice);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_QUANTITY, productQuantity);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_IMAGE, productImage);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_SUPPLIER_EMAIL, supplierEmail);\n\n if (mCurrentInventoryUri == null) {\n\n Uri inventoryUri = null;\n\n try {\n inventoryUri = getContentResolver().insert(InventoryContract.InventoryEntry.CONTENT_URI, contentValues);\n } catch (IllegalArgumentException arg) {\n Log.v(LOG_TAG, \"Exception has been thrown trying to insert to db - check data has been entered into all fields\");\n arg.printStackTrace();\n }\n\n if (inventoryUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.saving_inventory_failed),\n Toast.LENGTH_SHORT).show();\n Toast.makeText(this, getString(R.string.check_fields_prompt), Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.saving_inventory_succeeded),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n\n // Otherwise this is an EXISTING inventory item, so update the inventory item with content URI: mCurrentInventoryUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentInventoryUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = 0;\n try {\n rowsAffected = getContentResolver().update(mCurrentInventoryUri, contentValues, null, null);\n } catch (IllegalArgumentException iae) {\n Log.v(LOG_TAG, \"Illegal argument exception was thrown. One of the fields entered in the form was invalid\");\n }\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_inventory_failed),\n Toast.LENGTH_SHORT).show();\n Toast.makeText(this, \"One of the fields in the edit form was invalid\", Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.saving_inventory_succeeded),\n Toast.LENGTH_SHORT).show();\n }\n\n }\n }", "void saveLineItem(LineItem lineItem);", "public void save(Item item) {\r\n \t\tpersistenceManager.save(item);\r\n \t}", "@Test\n public void\n updatingRecipeSetsRecipeItems()\n throws Exception {\n Recipe testRecipe =\n new Recipe();\n testRecipe.setId(1L);\n\n Item itemWithOnlyId = new Item();\n itemWithOnlyId.setId(1L);\n Ingredient ingredient = new Ingredient(\n itemWithOnlyId, \"\", \"\"\n );\n testRecipe.addIngredient(ingredient);\n\n // Arrange item to be returned\n // from database\n Item itemFromDatabase = new Item();\n itemFromDatabase.setId(1L);\n itemFromDatabase.setName(\"name\");\n\n // Arrange:\n // make itemService return item when called\n when(itemService.findOne(1L)).thenReturn(\n itemFromDatabase\n );\n when(recipeDao.findOne(any())).thenReturn(\n testRecipe\n );\n when(recipeDao.findOne(any())).thenReturn(\n testRecipe\n );\n // Arrange:\n // when recipeDao.save will be called\n // we save recipe that was passed\n doAnswer(\n invocation -> {\n Recipe r = invocation.getArgumentAt(0, Recipe.class);\n return r;\n }\n ).when(recipeDao).save(any(Recipe.class));\n\n\n // Act: update recipe\n Recipe savedRecipe =\n recipeService.save(testRecipe, new User());\n\n assertThat(\n \"item returned will item from database\",\n savedRecipe.getIngredients().get(0).getItem(),\n is(itemFromDatabase)\n );\n\n // verify mock interactions\n verify(itemService).findOne(any());\n verify(recipeDao, times(2)).findOne(1L);\n verify(recipeDao).save(any(Recipe.class));\n }", "long save(T item) throws DaoException;", "@Override\n public void onClick(View v) {\n ParseUser currentUser = ParseUser.getCurrentUser();\n saveIngredients(currentUser);\n //Log.i(\"aftersaveUpdate\", ingredients);//String.valueOf(items));\n }", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "@Test\n public void savingNewRecipeSetsIngredientItems()\n throws Exception {\n Recipe testRecipeWithOneIngredientAndOneItemId = new Recipe();\n Item itemWithOnlyId = new Item();\n itemWithOnlyId.setId(1L);\n Ingredient ingredient = new Ingredient(\n itemWithOnlyId, \"\", \"\"\n );\n testRecipeWithOneIngredientAndOneItemId.addIngredient(ingredient);\n\n // Arrange:\n // create item to be returned from service\n Item itemWithNameAndId = new Item(\"name\");\n itemWithNameAndId.setId(1L);\n\n // Arrange\n // make itemService return item when called\n when(itemService.findOne(1L)).thenReturn(\n itemWithNameAndId\n );\n // Arrange:\n // when recipeDao.save will be called\n // we save some recipe\n doAnswer(\n invocation -> {\n Recipe r = invocation.getArgumentAt(0, Recipe.class);\n return r;\n }\n ).when(recipeDao).save(any(Recipe.class));\n\n\n // Act:\n // when we call recipeService.save method\n Recipe savedRecipe = recipeService.save(\n testRecipeWithOneIngredientAndOneItemId,\n any(User.class)\n );\n\n assertThat(\n \"items were set for ingredient of recipe\",\n savedRecipe.getIngredients().get(0).getItem(),\n is(itemWithNameAndId)\n );\n // verify mock interactions\n verify(itemService).findOne(1L);\n verify(recipeDao).save(any(Recipe.class));\n }", "@RequestMapping(\"/saveRecipe\")\r\n\tpublic String saveRecipe(@ModelAttribute Recipe recipe) {\r\n\t\trecipeService.saveRecipe(recipe);\r\n\t\treturn \"forward:/indexRecipe\";\r\n\t}", "private void savePet() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String nameString = mNameEditText.getText().toString().trim();\n String breedString = mBreedEditText.getText().toString().trim();\n String weightString = mWeightEditText.getText().toString().trim();\n\n if (mCurrentPetUri == null && TextUtils.isEmpty(nameString) && TextUtils.isEmpty(breedString) &&\n TextUtils.isEmpty(weightString) && mGender == PetContract.PetEntry.GENDER_UNKNOWN) {\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and pet attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(PetContract.PetEntry.COLUMN_PET_NAME, nameString);\n values.put(PetContract.PetEntry.COLUMN_PET_BREED, breedString);\n values.put(PetContract.PetEntry.COLUMN_PET_GENDER, mGender);\n\n int weight = 0;\n if (!TextUtils.isEmpty(weightString)) {\n weight = Integer.parseInt(weightString);\n }\n values.put(PetContract.PetEntry.COLUMN_PET_WEIGHT, weight);\n\n if (mCurrentPetUri == null) {\n\n Uri newUri = getContentResolver().insert(PetContract.PetEntry.CONTENT_URI, values);\n if (newUri == null) {\n Toast.makeText(this, \"Failed to save Pet\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Save successfully\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n\n int rowsAffected = getContentResolver().update(mCurrentPetUri, values, null, null);\n if (rowsAffected == 0) {\n Toast.makeText(this, \"Failed to update Pet\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Update Successfully \", Toast.LENGTH_SHORT).show();\n }\n\n\n Toast.makeText(this, \"Successfully saved pet\", Toast.LENGTH_SHORT).show();\n }\n }", "private void insertItemDetails() {\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n String commentsString = mItemCommentsEditText.getText().toString().trim();\n Bitmap bitmap = null;\n byte[] imageData = null;\n if (!(picturePath == null)) {\n bitmap = BitmapFactory.decodeFile(picturePath);\n imageData = getBitmapAsByteArray(bitmap);\n } else {\n BitmapDrawable drawable = (BitmapDrawable) mItemImageView.getDrawable();\n bitmap = drawable.getBitmap();\n imageData = getBitmapAsByteArray(bitmap);\n }\n // Create a ContentValues object where column names are the keys,\n // and item attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_NAME, nameString);\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_LOCATION, locationString);\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_COMMENTS, commentsString);\n if (imageData != null) {\n values.put(FindEzContract.FindEzEntry.COLUMN_ITEM_IMAGE, imageData);\n }\n mProgressbarView.setVisibility(View.VISIBLE);\n if (mCurrentItemInfoUri != null) {\n new updateDeleteItemToDbTask().execute(values);\n } else {\n new InsertItemToDbTask().execute(values);\n }\n }", "@Transactional\r\n\t@RequestMapping(value = \"saveIngredient\", method = RequestMethod.POST)\r\n\t@Override\r\n\tpublic String save(Ingredient ingredient) {\n\t\treturn null;\r\n\t}", "@Test\n public void addIngredient_DatabaseUpdates(){\n int returned = testDatabase.addIngredient(ingredient);\n Ingredient retrieved = testDatabase.getIngredient(returned);\n assertEquals(\"addIngredient - Correct Ingredient Name\", \"Flour\", retrieved.getName());\n assertEquals(\"addIngredient - Set Ingredients ID\", returned, retrieved.getKeyID());\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "@Test\n public void addRecipeIngredient_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeIngredient> allRecipeIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n RecipeIngredient retrieved = new RecipeIngredient();\n if(allRecipeIngredients != null){\n for(int i = 0; i < allRecipeIngredients.size(); i++){\n if(allRecipeIngredients.get(i).getIngredientID() == ingredientID){\n retrieved = allRecipeIngredients.get(i);\n }\n }\n }\n assertEquals(\"addRecipeIngredient - Correct Quantity\", 2.0, retrieved.getQuantity(), 0);\n assertEquals(\"addRecipeIngredient - Correct Unit\", \"cups\", retrieved.getUnit());\n assertEquals(\"addRecipeIngredient - Correct Details\", \"White Flour\", retrieved.getDetails());\n }", "private void saveRecipeOnPrefs(Recipe recipe) {\n Gson gson = new Gson();\n String recipeString = gson.toJson(recipe);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(KEY_CURRENT_RECIPE, recipeString);\n editor.apply();\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n RecipeEntity books = factory.manufacturePojo(RecipeEntity.class);\n em.persist(books);\n data.add(books);\n }\n }", "public void saveItem(Items item) {\n\t\tItems item1 = itemDao.getItemByName(item.getItems1());\r\n\t\tif (item1 == null) {\r\n\t\t\titemDao.saveItem(item);\r\n\t\t} else if (item1.getItems1().equalsIgnoreCase(item.getItems1())) {\r\n\t\t\tSystem.out.println(\"Item already exists\");\r\n\t\t}\r\n\t}", "public synchronized int doSave(String idUtente, String idItem) throws SQLException {\r\n\t\tint i = 0;\r\n\t\tConnection connection = null;\r\n\t\tPreparedStatement preparedStatement = null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString insertSQL = \"INSERT INTO \" + InventarioModel.TABLE_NAME + \" (id_utente, id_item) VALUES (?,?)\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconnection = DriverManagerConnectionPool.getDbConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(insertSQL);\r\n\t\t\tpreparedStatement.setString(1, idUtente);\r\n\t\t\tpreparedStatement.setString(2, idItem);\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tSystem.out.println(preparedStatement.executeUpdate());\r\n\r\n\t\t\tconnection.commit();\r\n\t\t\ti=1;\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (preparedStatement != null)\r\n\t\t\t\t\tpreparedStatement.close();\r\n\t\t\t} finally {\r\n\t\t\t\tDriverManagerConnectionPool.releaseConnection(connection);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i;\r\n\t\t\t\r\n\t}", "public void newElemento(Elemento item, Carrito carrito){\n SQLiteDatabase db = helper.getWritableDatabase();\r\n\r\n // TODO: 12.- Mapeamos columnas con valores\r\n // Crea un nuevo mapa de valores, de tipo clave-valor, donde clave es nombre de columna\r\n ContentValues values = new ContentValues();\r\n values.put(ElementosContract.Entrada.COLUMNA_CARRITO_ID, carrito.getId());\r\n values.put(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO, item.getNombreProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO, item.getPrecioProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_CANTIDAD, item.getCantidad());\r\n\r\n // TODO: 13.- Insertamos fila\r\n // Inserta la nueva fila, regresando el valor de la primary key\r\n long newRowId = db.insert(ElementosContract.Entrada.NOMBRE_TABLA, null, values);\r\n\r\n // cierra conexión\r\n db.close();\r\n }", "public void save(CbmCItemFininceItem entity);", "public void save() {\n if (AppUtil.isEmpty(txtName.getText().toString())) {\n AppUtil.alertMessage(mainActivity,\"Please enter valid recipe name.\");\n txtName.requestFocus();\n } else if (AppUtil.isEmpty(txtDesc.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter recipe description.\");\n txtDesc.requestFocus();\n } else if (AppUtil.isEmpty(txtIng.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter ingredient/s.\");\n txtIng.requestFocus();\n } else if (AppUtil.isEmpty(txtSteps.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter preparation steps.\");\n txtSteps.requestFocus();\n } else {\n try {\n if (MainActivity.checkNetwork(mainActivity)) {\n SaveAsyncTask task = new SaveAsyncTask();\n task.execute();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "Product save(Product product);", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);", "@Test\n public void ShouldAddRecipeToRepository() {\n Recipe receipt = new Recipe();\n receipt.setTitle(\"Salmon\");\n\n // When recipe is saved\n Recipe saveRecipe = recipesRepository.save(receipt);\n\n // Then the receipt is stored in repository\n long count = template.count(\n Query.query(Criteria.where(\"id\").is(saveRecipe.getId())),\n Recipe.class);\n assertThat(count).isEqualTo(1L);\n }", "public MainItemOrdered save(MainItemOrdered mainItemOrdered);", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "public interface RecipeStore {\n //Returns a recipe list of all recipes\n List<Recipe> getAllRecipes();\n //Returns a string list of recipe titles found from ingredients query\n List<String> getRecipeByIngredients(CharSequence query);\n //Returns a single recipe found from query\n Recipe getRecipe(CharSequence query);\n //Returns a single recipe image from query\n byte[] getRecipeImage(CharSequence query);\n //Returns a bitmap list of all small images for all recipes\n List<Bitmap> getRecipeImgSmall();\n //Returns a string list of all recipe titles\n List<String> getRecipeTitles();\n //Takes a recipe id and adds it to the favorites table\n void addToFavorites(int recipeId);\n //Returns a bitmap list of all images for recipes in the favorites table\n List<Bitmap> getFavoriteRecipeImgs();\n //Returns a string list of all titles for recipes in the favorites table\n List<String> getFavoriteRecipeTitle();\n //Takes a recipe id and deletes it from the favorites table\n void deleteFavorite(int id);\n //Takes a recipe id and checks if it exists in the favorites table\n boolean isFavorite(int id);\n //Takes recipe parameters and inserts a new row in recipes table\n Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);\n //Returns number of rows in recipes\n long getRecipesCount();\n //Opens the database\n SQLiteDatabase open() throws SQLException;\n //Closes the database\n void close();\n}", "public Recipe saveRecipeToRepository(Recipe newRecipe) {\n\t\t//Map recipe to Recipe Entity\n\t\tRecipeEntity recipeEntity = mapToRecipeEntity(newRecipe);\n\t\treturn mapToRecipeObject(recipesRepo.save(recipeEntity));\n\t}", "public void insertFood(String rest_id,String restName, String FoodName, String category, String ratting, String price) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"rest_id\",rest_id);\n contentValues.put(\"restName\", restName);\n contentValues.put(\"name\", FoodName);\n contentValues.put(\"category\", category);\n contentValues.put(\"price\", price);\n contentValues.put(\"ratting\", ratting);\n\n long isInsert = database.insert(AppConstant.FOOD_TABLE_NAME, null, contentValues);\n if (isInsert == -1) {\n Toast.makeText(context, \"Food item failed to register.\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, \"Food item registered successfully.\", Toast.LENGTH_SHORT).show();\n }\n }", "private void insertPet() {\n\n // Create a ContentValues object where column names are the keys,\n // and Toto's pet attributes are the values.\n ContentValues values = new ContentValues();\n values.put(PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetEntry.COLUMN_PET_GENDER, PetEntry.GENDER_MALE);\n values.put(PetEntry.COLUMN_PET_WEIGHT, 7);\n\n // Insert a new row for Toto in the database, returning the ID of that new row.\n // The first argument for db.insert() is the pets table name.\n // The second argument provides the name of a column in which the framework\n // can insert NULL in the event that the ContentValues is empty (if\n // this is set to \"null\", then the framework will not insert a row when\n // there are no values).\n // The third argument is the ContentValues object containing the info for Toto.\n Uri newUri=getContentResolver().insert(PetEntry.CONTENT_URI,values);\n if (newUri == null) {\n // If the row ID is -1, then there was an error with insertion.\n Toast.makeText(this, \"Error with saving pet\", Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast with the row ID.\n Toast.makeText(this, \"Pet saved with row id: \" + newUri, Toast.LENGTH_SHORT).show();\n }\n }", "private void insertPet() {\n\n ContentValues values = new ContentValues();\n values.put(PetContract.PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetContract.PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetContract.PetEntry.COLUMN_PET_GENDER, PetContract.PetEntry.GENDER_MALE);\n values.put(PetContract.PetEntry.COLUMN_PET_WEIGHT, 7);\n Uri uri = getContentResolver().insert(PetContract.PetEntry.CONTENT_URI,values);\n Toast.makeText(this, uri.toString()+\" added\", Toast.LENGTH_SHORT).show();\n }", "public int addTask(Item item) {\n try (Session session = this.factory.openSession()) {\n session.beginTransaction();\n session.save(item);\n session.getTransaction().commit();\n } catch (Exception e) {\n this.factory.getCurrentSession().getTransaction().rollback();\n }\n return item.getId();\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.addrecipe);\n\t\tdb = new ReciPalDB(getApplicationContext());\n\n\t\tthis.layoutInflator = LayoutInflater.from(this);\n\n\t\tthis.saveBtn = (Button)this.findViewById(R.id.dialogSave); \n\t\tthis.recipeImage = (ImageView)this.findViewById(R.id.dialogImage);\n\t\tthis.recipeName = (EditText)this.findViewById(R.id.dialogName);\n\t\tthis.recipeRating = (RatingBar)this.findViewById(R.id.dialogRating);\n\t\tthis.recipePrep = (EditText)this.findViewById(R.id.dialogPrep);\n\t\tthis.lvIngredients = (LinearLayout)this.findViewById(R.id.ingredientList);\n\t\tthis.addIngredient = (ImageView)this.findViewById(R.id.ibAddIngred);\n\t\trecipe = new Recipe(\"\", \"\", \"\", 3);\n\n\t\tBundle extras = this.getIntent().getExtras();\n\t\tif(extras != null)\n\t\t{\n\t\t\trecipe = (Recipe) extras.getSerializable(\"edu.gvsu.cis680.recipal.recipe\"); \t\t\t \t\t\t\n\t\t\tRefresh();\n\t\t}\t\t\n\n\t\tthis.addIngredient.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAddRecipe.this.recipe.setName(recipeName.getText().toString());\n\t\t\t\tAddRecipe.this.recipe.setImage((String)recipeImage.getTag());\n\t\t\t\tAddRecipe.this.recipe.setRating(recipeRating.getRating());\n\t\t\t\tAddRecipe.this.recipe.setPreperation(recipePrep.getText().toString());\t\t\t\t\n\t\t\t\tshowDialog(ADD_INGREDIENT_DIALOG);\n\t\t\t}\n\t\t});\n\n\t\t//Set the on Save click listener. \n\t\t//On save pass back the set parameters to the calling activity\n\t\tthis.saveBtn.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override public void onClick(View v) {\n\t\t\t\t//if(recipe.getId() == -1) {\n\t\t\t\t//\trecipe = new Recipe(recipeName.getText().toString(), recipePrep.getText().toString(), (String)recipeImage.getTag(), recipeRating.getRating());\n\t\t\t\t//}\n\t\t\t\t//else //this means it was passed in...must be editing...this keeps the id...\n\t\t\t\t//{\n\t\t\t\trecipe.setName(recipeName.getText().toString());\n\t\t\t\trecipe.setImage((String)recipeImage.getTag());\n\t\t\t\trecipe.setRating(recipeRating.getRating());\n\t\t\t\trecipe.setPreperation(recipePrep.getText().toString());\n\t\t\t\t//}\n\n\t\t\t\tIntent data = new Intent();\n\t\t\t\tdata.putExtra(\"edu.gvsu.cis680.recipal.recipe\", recipe);\n\n\t\t\t\t//set the result to OK and finish / close the activity\n\t\t\t\tsetResult(Activity.RESULT_OK, data);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}); \n\n\t\tthis.recipeImage.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setType(\"image/*\");\n\t\t\t\tintent.setAction(Intent.ACTION_GET_CONTENT);\n\t\t\t\tstartActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_IMAGE);\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\teditRecipe(recipeString);\n\t\t\t\t\t\t\t\t\t\tsavedDialog();\n\t\t\t\t\t\t\t\t\t}", "public void saveButtonPressed(ActionEvent actionEvent) throws IOException{\n validateInputs(actionEvent);\n\n if (isInputValid) {\n //creates a new Product object with identifier currentProduct\n currentProduct = new Product(productNameInput, productInventoryLevel, productPriceInput, maxInventoryLevelInput, minInventoryLevelInput);\n\n //passes currentProduct as the argument for the .addMethod.\n Inventory.getAllProducts().add(currentProduct);\n\n //utilizes the associatedPartsTableviewHolder wiht a for loop to pass each element as an argument\n //for the .addAssociatedPart method.\n for (Part part : associatedPartTableViewHolder) {\n currentProduct.addAssociatedPart(part);\n }\n\n //calls the returnToMainMen() method.\n mainMenuWindow.returnToMainMenu(actionEvent);\n }\n else {\n isInputValid = true;\n }\n\n }", "void saveProduct(Product product);", "public void registry(TodoItemForm todoItemForm) throws RecordNotFoundException {\n TodoItem todoItem = new TodoItem();\n if (todoItemForm.getId() != null) {\n todoItem = getTodoItemById(todoItemForm.getId());\n }\n todoItem.setItemName(todoItemForm.getItemName());\n todoItem.setDescription(todoItemForm.getDescription());\n todoItem.setTargetDate(Util.strToDt(todoItemForm.getTargetDate()));\n\n todoItemRepository.save(todoItem);\n }", "public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }", "void updateRecipe(Recipe recipe) throws ServiceFailureException;", "public void saveProduct(Product product);", "@Override\n\t\tpublic void addRawitem(Rawitem Rawitem) {\n\t\t\tString sql=\"INSERT INTO rawitem(suppliedby,rquantity,riprice,rstock)\"\n\t\t\t\t\t+ \" values (:suppliedby,:rquantity,:riprice,:rstock)\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(Rawitem));\n\t\t}", "public void addItem(ToDoList item) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(TITLE, item.getTitle());\n values.put(DETAILS, item.getDetails());\n\n db.insert(TABLE_NAME, null, values); //Insert query to store the record in the database\n db.close();\n\n }", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\tfor(ItemRequisicionEta tmpItm : itemsAgregados) {\n\t\t\ttmpItm.setReqEtapa(instance);\n\t\t\tgetEntityManager().persist(tmpItm);\n\t\t}\n\t\tgetEntityManager().refresh(etapaRepCliHome.getInstance());\n\t}", "void save(Cartera entity);", "public void insertItem(Item item) {\n SQLiteDatabase db = DataBaseManager.getInstance().openDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, item.getName());\n values.put(KEY_ARRAY_ID, item.getArrayId());\n values.put(KEY_DESCRIPTION, item.getDescription());\n\n // Inserting Row\n db.insert(TABLE_ITEMS, null, values);\n DataBaseManager.getInstance().closeDatabase();\n }", "public void saveChanges(DrugItem targetItem) {\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DRUG_CODE, targetItem.getCode());\n\t\tvalues.put(DRUG_NAME, targetItem.getName());\n\t\tvalues.put(DRUG_ISAVAILABLE,\n\t\t\t\ttargetItem.getIsAvailableAsString());\n\t\tLog.d(this.getClass().getName(), targetItem.getIsAvailableAsString());\n\t\t\n\t\tdatabase.update(DRUG_TABLE, values, DRUG_CODE + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(targetItem.getCode()) });\n\t}", "public Result save() {\n try {\n Form<Book> bookForm = formFactory.form(Book.class).bindFromRequest();\n Book book = bookForm.get();\n libraryManager.addLibraryItem(book);\n return redirect(routes.MainController.index());\n } catch (IsbnAlreadyInUseException e) {\n return notAcceptable(e.getMessage());\n }\n }", "@Test\n public void createRecipeTest() throws BusinessLogicException {\n RecipeEntity newEntity = factory.manufacturePojo(RecipeEntity.class);\n newEntity.getIngredientes().add(new IngredientEntity());\n RecipeEntity persistence=recipeLogic.createRecipe(newEntity);\n Assert.assertEquals(persistence.getId(), newEntity.getId());\n Assert.assertEquals(persistence.getDescription(), newEntity.getDescription());\n Assert.assertEquals(persistence.getName(), newEntity.getName());\n }", "public void save(Item file) {\n\t\tthis.getItemdao().save(file);\r\n\t}", "void saveLineItemList(List<LineItem> lineItemList);", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "@FXML\n public void saveMeal(){\n String mealName = mealNameField.getText().trim();\n String method = methodField.getText();\n\n //if any of the information is not available then throw an error\n if (mealName.trim().equals(\"\") || method.trim().equals(\"\") || (newIngredients.size() == 0)){\n //no ingredients, or methods or meal name then display error box\n mealBox.errorDiaglogBox(\"Incomplete meal\", \"Please ensure that there is a meal name, \" +\n \" meal ingredients and meal method entered\");\n } else {\n //create a recipe instance\n Recipe newRecipe = new Recipe(1, mealName, method, newIngredients);\n\n //create a new servcie to save the new meal to the database in a background thread\n CreateMealService service = new CreateMealService(newRecipe);\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n\n //get the ID of the newly saved meal in the database and set it to the new Recipe\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n int recipeId = service.getValue();\n //if the ID is -1 then there has been an issue saving the meal\n if (recipeId < 0) {\n System.out.println(\"Problem saving meal to database\");\n mealBox.errorDiaglogBox(\"Saving Meal\", \"Problem saving meal to database,\" +\n \"please contact program administrator\");\n }\n newRecipe.setId(recipeId);\n }\n });\n\n //clear the text areas\n mealNameField.clear();\n methodField.clear();\n newIngredients.clear();\n searchIngredient.clear();\n ingredientQuantityInput.clear();\n //this will unfilter the ingredients to add list\n ingredientsList.setItems(ingredientsFromDatabase);\n\n //Add the new meal / Recipe to the recipes List (no need to reloaded from database)\n recipesFromDatabase.add(newRecipe);\n }\n }", "@Override\r\n\tpublic void insertEncoreItem(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item1\");\r\n\t}", "public boolean add(Book item) {\r\n\t\ttry {\t\r\n\t\t\topenConnection();\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\tString sql = \"INSERT INTO db VALUES ('\" + item.ISBN13 + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.title + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.author + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.publisher + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.year + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.ISBN10 + \"', '\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ item.link + \"', '1')\";\r\n\t\t\tstmt.executeUpdate(sql);\r\n\t\t\tSystem.out.println(item.title + \" added into the database\");\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\t\t\r\n\t\t\t//e.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseConnection();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void save() throws AccessDeniedException, ItemExistsException,\r\n\t\t\tReferentialIntegrityException, ConstraintViolationException,\r\n\t\t\tInvalidItemStateException, VersionException, LockException,\r\n\t\t\tNoSuchNodeTypeException, RepositoryException {\n\t\t\r\n\t}", "private void saveInstrument() {\n String instrument = mInstrument.getText().toString().trim();\n String brand = mBrand.getText().toString().trim();\n String serial = mSerial.getText().toString().trim();\n int quantity = mQuantity.getValue();\n String priceString = mPrice.getText().toString().trim();\n if(TextUtils.isEmpty(instrument) && TextUtils.isEmpty(brand) && TextUtils.isEmpty(serial) &&\n TextUtils.isEmpty(priceString) && quantity == 0){\n return;\n }\n float price = 0;\n if(!TextUtils.isEmpty(priceString)){\n price = Float.parseFloat(priceString);\n }\n //Retrieve selected supplier from Spinner\n String suppName = mSpinner.getSelectedItem().toString();\n //A query request to get the id of the selected supplier\n String [] projection = {SupplierEntry._ID, SupplierEntry.COLUMN_NAME};\n String selection = SupplierEntry.COLUMN_NAME + \"=?\";\n String [] selectionArgs = {suppName};\n Cursor cursor = getContentResolver().query(SupplierEntry.CONTENT_SUPPLIER_URI, projection, selection, selectionArgs, null);\n int idSupplier = 0;\n try {\n int idColumnIndex = cursor.getColumnIndex(SupplierEntry._ID);\n //move the cursor to the 0th position, before you start extracting out column values from it\n if (cursor.moveToFirst()) {\n idSupplier = cursor.getInt(idColumnIndex);\n }\n }finally {\n cursor.close();\n }\n ContentValues values = new ContentValues();\n values.put(InstrumentEntry.COLUMN_NAME, instrument);\n values.put(InstrumentEntry.COLUMN_BRAND, brand);\n values.put(InstrumentEntry.COLUMN_SERIAL, serial);\n values.put(InstrumentEntry.COLUMN_PRICE, price);\n values.put(InstrumentEntry.COLUMN_NB, quantity);\n values.put(InstrumentEntry.COLUMN_SUPPLIER_ID, idSupplier);\n Uri uri = getContentResolver().insert(InstrumentEntry.CONTENT_INSTRUMENT_URI, values);\n if(uri != null){\n Toast.makeText(this, \"Instrument successfully inserted\", Toast.LENGTH_SHORT);\n }else\n Toast.makeText(this, \"Instrument insertion failed\", Toast.LENGTH_SHORT);\n }", "public void saveProduit(Produit theProduit);", "@Test\n public void editRecipe_ReturnsTrue(){\n testDatabase.addRecipe(testRecipe);\n testRecipe.setTitle(\"TestRecipe Updated\");\n testRecipe.setServings(1.5);\n testRecipe.setPrep_time(15);\n testRecipe.setTotal_time(45);\n testRecipe.setFavorited(true);\n listOfCategories.clear();\n listOfCategories.add(recipeCategory);\n testRecipe.setCategoryList(listOfCategories);\n listOfIngredients.clear();\n recipeIngredient.setUnit(\"tbsp\");\n recipeIngredient.setQuantity(1.5);\n recipeIngredient.setDetails(\"Brown Sugar\");\n listOfIngredients.add(recipeIngredient);\n testRecipe.setIngredientList(listOfIngredients);\n listOfDirections.clear();\n listOfDirections.add(recipeDirection1);\n testRecipe.setDirectionsList(listOfDirections);\n\n assertEquals(\"editRecipe - Returns True\", true, testDatabase.editRecipe(testRecipe));\n }", "public RecipeDatabase() {\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference AllRecipeRef = database.getReference(\"allRecipes\");\n DatabaseReference newRecipeRef = AllRecipeRef.push();\n newRecipeRef.setValue(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n }", "private void submitItem()\n {\n \n if(verifyData())\n {\n if(isItemExist(jTextFieldNumber.getText()))\n {\n String itemName = jTextFieldName.getText();\n String itemNumber = jTextFieldNumber.getText();\n String itemClass = jComboBox1.getSelectedItem().toString();\n String itemDesc = jTextArea1.getText();\n\n //this is for getting the items that are entered by the keyboard\n try {\n jSpinnerprice.commitEdit();\n\n jSpinnerQuantity.commitEdit();\n } catch (ParseException ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n int itemPrice = (Integer)jSpinnerprice.getValue();\n int itemQuantity = (Integer)jSpinnerQuantity.getValue();\n String itemModel = jTextFieldModel.getText();\n \n byte [] img = null;\n \n\n try {\n Path pth = Paths.get(imagePth);\n img = Files.readAllBytes(pth);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n String itemSupplier = jTextFieldSupplier.getText();\n\n \n Items i = new Items(itemModel, itemName, itemNumber, itemClass, img, itemDesc, itemQuantity, itemPrice, adminName, itemSupplier);\n\n ItemQuery Iq = new ItemQuery();\n Iq.insertItem(i);\n \n //Refresh the jtable\n refreshJTable(); \n \n jTextFieldName.setText(\"\");\n jTextFieldNumber.setText(\"\");\n jTextFieldSupplier.setText(\"\");\n jTextArea1.setText(\"\");\n jTextFieldModel.setText(\"\");\n \n \n }\n }\n }", "private static void insertFavouriteDetails(final AppDatabase db, long userId, long favouriteMealId, ViewModel viewModel, final Food food, LifecycleOwner lifecycleOwner){\n final FavouriteMealUserJoin favouriteMealUserJoin = new FavouriteMealUserJoin(userId, favouriteMealId);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n db.favouriteMealsDao().insertMealUser(favouriteMealUserJoin);\n }\n });\n\n //Retrieve the list of ingredients for the new favourite meal and check if it is already inside the DB\n for(final Ingredient ingredient : food.getIngredients()){\n final LiveData<Ingredient> ingredientLiveData;\n\n if (viewModel instanceof DishDetailsViewModel) {\n ((DishDetailsViewModel) viewModel).setIngredientName(ingredient.getIngredientName());\n ingredientLiveData = ((DishDetailsViewModel) viewModel).getIngredient();\n }\n else if(viewModel instanceof RestaurantMenuViewModel) {\n ((RestaurantMenuViewModel) viewModel).setIngredientName(ingredient.getIngredientName());\n ingredientLiveData = ((RestaurantMenuViewModel) viewModel).getIngredient();\n } else{\n ingredientLiveData = null;\n }\n\n if (ingredientLiveData != null) {\n ingredientLiveData.observe(lifecycleOwner, new Observer<Ingredient>() {\n @Override\n public void onChanged(@Nullable com.udacity.thefedex87.takemyorder.room.entity.Ingredient ingredientTmp) {\n final com.udacity.thefedex87.takemyorder.room.entity.Ingredient ingredientIntoDB;\n\n ingredientLiveData.removeObserver(this);\n\n //If ingredient is already inside the table I take it\n if (ingredientTmp != null) {\n ingredientIntoDB = ingredientTmp;\n } else {\n //If ingrediente is not already inside the ingredient table, I instanciate it and save it into the table\n ingredientIntoDB = new com.udacity.thefedex87.takemyorder.room.entity.Ingredient();\n\n ingredientIntoDB.setIngredientName(ingredient.getIngredientName());\n\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n db.favouriteMealsDao().insertIngredient(ingredientIntoDB);\n }\n });\n }\n\n //Create the new entry for many-to-many relation beetween meal and ingredient\n final FavouriteMealIngredientJoin favouriteMealIngredientJoin = new FavouriteMealIngredientJoin(ingredientIntoDB.getIngredientName(),\n food.getMealId());\n\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n db.favouriteMealsDao().insertMealIngredient(favouriteMealIngredientJoin);\n }\n });\n }\n });\n }\n }\n }", "@Override\n public void updateRecipe(RecipeEntity recipeEntity)\n {\n if (this.load(RecipeEntity.class, recipeEntity.getId()) != null)\n this.update(recipeEntity);\n }", "@Test\n public void createAndRetrieveRecipe() {\n User trex = new User(\"[email protected]\", \"password\", \"T. Rex\").save();\n\n //Create ingredients and steps\n List<String> ingredients = new ArrayList<String>();\n ingredients.add(\"1 piece Bread\");\n ingredients.add(\"20g Marmite\");\n String steps = (\"Toast Bread. Spread Marmite on toasted bread\");\n\n //Create and save the new recipe\n new Recipe(trex, \"Marmite on Toast\", ingredients, steps).save();\n\n //Retrieve the recipe by title\n Recipe marmiteOnToast = Recipe.find(\"byTitle\", \"Marmite on Toast\").first();\n\n //Assert the recipe has been retrieved and that the author is the same as the one we saved\n assertNotNull(marmiteOnToast);\n assertEquals(trex, marmiteOnToast.author);\n }", "private Uri insertItem(Uri uri, ContentValues contentValues) {\n\n // Gets the data repository in write mode\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Keep track of IDs being created\n long id = db.insert(InventoryEntry.TABLE_NAME, null, contentValues);\n\n // Notify all listeners that the data has changed for the pet content URI\n getContext().getContentResolver().notifyChange(uri, null);\n\n // Once we know the ID of the new row in the table,\n // return the new URI with the ID appended to the end of it\n return ContentUris.withAppendedId(uri, id);\n }", "private void saveBook() {\n // Read the data from the fields\n String productName = productNameEditText.getText().toString().trim();\n String price = priceEditText.getText().toString().trim();\n String quantity = Integer.toString(bookQuantity);\n String supplierName = supplierNameEditText.getText().toString().trim();\n String supplierPhone = supplierPhoneEditText.getText().toString().trim();\n\n // Check if any fields are empty, throw error message and return early if so\n if (productName.isEmpty() || price.isEmpty() ||\n quantity.isEmpty() || supplierName.isEmpty() ||\n supplierPhone.isEmpty()) {\n Toast.makeText(this, R.string.editor_activity_empty_message, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Format the price so it has 2 decimal places\n String priceFormatted = String.format(java.util.Locale.getDefault(), \"%.2f\", Float.parseFloat(price));\n\n // Create the ContentValue object and put the information in it\n ContentValues contentValues = new ContentValues();\n contentValues.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n contentValues.put(BookEntry.COLUMN_BOOK_PRICE, priceFormatted);\n contentValues.put(BookEntry.COLUMN_BOOK_QUANTITY, quantity);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, supplierName);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhone);\n\n // Save the book data\n if (currentBookUri == null) {\n // New book, so insert into the database\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, contentValues);\n\n // Show toast if successful or not\n if (newUri == null)\n Toast.makeText(this, getString(R.string.editor_insert_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_insert_book_successful), Toast.LENGTH_SHORT).show();\n } else {\n // Existing book, so save changes\n int rowsAffected = getContentResolver().update(currentBookUri, contentValues, null, null);\n\n // Show toast if successful or not\n if (rowsAffected == 0)\n Toast.makeText(this, getString(R.string.editor_update_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_update_book_successful), Toast.LENGTH_SHORT).show();\n\n }\n\n finish();\n }", "public void SaveVsPersist() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n//\t\t\tItem item = new Item(\"Premium Water\", 900);\n//\t\t\titem.setShops(((Item)session.get(Item.class, 1)).getShops());\n//\t\t\t\n//\t\t\t\n//\t\t\tSystem.out.println( \"BEFORE SAVE: \" + item.getId());\n//\t\t\tSystem.out.println(\"-----SAVE-----\");\n//\t\t\tSystem.out.println(\"ID IS:\" + session.save(item));\n//\t\t\t//When saving we are returned the id.\n//\t\t\tSystem.out.println(\"AFTER SAVE:\" + item.getId());\n\t\t\t\n\n\t\t\t\n\t\t\tItem item2 = new Item(\"Deluxe Premium Super Awesome Bargain Water\", 12);\n\t\t\tSystem.out.println(\"-----persist-----\");\n\t\t\tSystem.out.println( \"BEFORE Persist: \" + item2.getId());\n\t\t\tsession.persist(item2);\n\t\t\tSystem.out.println(\"AFTER PERSIST:\" + item2.getId());\n\n\t\t\t//We are not guaranteed an ID right away, so we have to return nothing.\n\t\t\t\n\t\t\ttx.commit();\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t}", "public boolean updateRecipe(long id, String recipeName, String recipe,String process, String notes)\n {\n ContentValues cv = new ContentValues();\n cv.put(RECIPE_NAME, recipeName);\n cv.put(RECIPE, recipe);\n cv.put(PROCESS, process);\n cv.put(NOTES, notes);\n this.openWriteableDB();\n db.update(TABLE_RECIPES, cv, \"_id = ?\", new String[]{String.valueOf(id)});\n db.close();\n return true;\n }", "private void storeInputInDatabase(){\n // get the {@userInfoValues} as inputs of userInfo that needs to be inserted in the table {@ user_info}\n // get the {@productInfoValues} as inputs of user Product details that needs to be inserted in the table {@ product_info}\n // This is called when user clicks on add new client.\n if (firstName == null && location == null) {\n ContentValues userInfoValues = storeUserInfo();\n /**\n * {@user_info_insertion_uri} {@product_info_insertion_uri} returns a Uri with the last inserted row number after the insertion of the content values,\n * {@user_info_insertion_uri} last character which is {@ID} is then used by {@productInfoValues} for it's foreign key.\n * ContentUris.parseId(uri) find the id from the uri and return it.\n * */\n Uri user_info_insertion_uri = getContentResolver().insert(clientContract.ClientEntry.CONTENT_URI, userInfoValues);\n ContentValues productInfoValues = storeProductInfo(ContentUris.parseId(user_info_insertion_uri));\n Uri product_info_insertion_uri = getContentResolver().insert(clientContract.ClientInfo.CONTENT_URI,productInfoValues);\n Toast.makeText(AddNewClient.this,\"Added\",Toast.LENGTH_SHORT).show();\n\n }// when clients client buys a new item so this will add it to the product_info\n // currentClientUri is the Uri received from MainActivity.\n else if( (firstName != null && location != null) && payMode == null && product_pk_id == -2) {\n ContentValues productInfoValues = storeProductInfo(ContentUris.parseId(currentClientUri));\n Uri uris = getContentResolver().insert(clientContract.ClientInfo.CONTENT_URI_PRODUCT_INFO_INSERT_ITEM,productInfoValues);\n Toast.makeText(AddNewClient.this,\"Added\",Toast.LENGTH_SHORT).show();\n }else if (firstName != null && location != null && payMode != null && product_pk_id != -2){\n ContentValues productInfoValues = storeProductInfo(product_pk_id);\n int rows = getContentResolver().update(clientContract.ClientInfo.CONTENT_URI,productInfoValues,clientContract.ClientInfo.COLUMN_PK_ID+\"=\"+product_pk_id,null);\n if (rows == 0){\n Toast.makeText(this,\"Error\",Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(this,\"Updated\",Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.add_ingredient:\n addEmptyEditTextView();\n break;\n case R.id.save_ingredients:\n Intent intent = new Intent();\n\n newIngredients = new ArrayList<>();\n\n for (int i = 0; i < (dragLinearLayout != null ? dragLinearLayout.getChildCount() : 0); i++) {\n View child = dragLinearLayout.getChildAt(i);\n EditText editTextChild = (EditText) child;\n\n if (!isEditTextEmpty(editTextChild)) {\n// newIngredients.add(decodeIngredientString(editTextChild.getText().toString()));\n// decodeString(editTextChild.getText().toString());\n newIngredients.add(new Ingredients.Ingredient(editTextChild.getText().toString()));\n }\n }\n\n intent.putParcelableArrayListExtra(\"INGREDIENTS\", newIngredients);\n setResult(Activity.RESULT_OK, intent);\n finish();\n break;\n }\n }", "private void updateDB(final Item item) {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TodoApplication.getDbHelper().writeItemToList(item);\n return null;\n }\n }.execute();\n }", "@Override\r\n\tpublic void addItem(Items item) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t List<Items> allItems = new ArrayList<Items>();\r\n\t\t int flag=0;\r\n\t\t try\r\n\t\t {\r\n\t\t\t allItems = session.createQuery(\"from Items\").list();\r\n\t\t\t for (Items item1 : allItems) {\r\n\t\t\t\t\tif(item1.getUserName().equals(item.getUserName()) && item1.getItemName().equals(item.getItemName())){\r\n\t\t\t\t\t\tflag=1;\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You need to choose other name for this task\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t break;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t} \r\n\t\t\t if(flag==0)\r\n\t\t\t {\r\n\t\t\t\t session.beginTransaction();\r\n\t\t\t\t session.save(item);\r\n\t\t\t\t session.getTransaction().commit();\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t }\t\r\n\t}", "@Override\n\tpublic void salvaRisposta(Risposta risposta) {\n\t\tint lastID = getLastIDRisposte()+1;\n\t\trisposta.setId(lastID);\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\tlong hash = (long) risposta.getId().hashCode();\n\t\trisposte.put(hash, risposta);\n\t\tdb.commit();\n\t}", "public long insertExerciseItem(Exercise item) {\n\n ContentValues itemValues = new ContentValues();\n itemValues.put(KEY_EXERCISE, item.getName());\n itemValues.put(KEY_SETS, item.getSets());\n itemValues.put(KEY_WORKOUT_NAME, item.getWorkoutName());\n return db.insert(DATABASE_TABLE_EXERCISES, null, itemValues);\n }", "private void insertProduct() {\n\n Uri imageforDummyProductURI = Uri.parse(\"android.resource://com.ezyro.uba_inventory/drawable/img_audi_a3\");\n\n\n // Create a ContentValues objecURI\n ContentValues values = new ContentValues();\n values.put(ProductEntry.COLUMN_PRODUCT_NAME, \"ford\");\n values.put(ProductEntry.COLUMN_PRODUCT_UNIT_PRICE, 25000);\n values.put(ProductEntry.COLUMN_PRODUCT_QUANTITY, 1);\n values.put(ProductEntry.COLUMN_PRODUCT_IMAGE_PATH, String.valueOf(imageforDummyProductURI));\n values.put(ProductEntry.COLUMN_PRODUCT_CATEGORY_NAME,\"Car\");\n values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_ID,1);\n // values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_NAME, \"Audi\");\n // values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_EMAIL, \"[email protected]\");\n\n Uri newUri = getContentResolver().insert(ProductEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }", "private void saveDiary() {\n\n //Get the text from the EditTexts and turn them to strings, set them as the user inputs\n //Trim to eliminate useless whitespace\n String userTitle = titleEdit.getText().toString().trim();\n String userContext = contextEdit.getText().toString().trim();\n\n //Get current date and turn it to a string\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n //Write into the db\n SQLiteDatabase dbWrite = myDBhelper.getWritableDatabase();\n\n //ContentValues where key is the column name and value is the text\n ContentValues values = new ContentValues();\n values.put(diaryEntry.COLUMN_TITLE, userTitle);\n values.put(diaryEntry.COLUMN_CONTENT, userContext);\n values.put(diaryEntry.COLUMN_DATE, currentDate);\n\n\n //Insert a new row. Takes the table name, columnhack that is usually null and the values created\n long newRow = dbWrite.insert(diaryEntry.TABLE_NAME, null, values);\n\n\n //Toast- that will come after, depending if the insert was succesfull or not.\n // -1 is the value of the newRow if there was an error\n if (newRow == -1) {\n Toast.makeText(this, \"There was an error\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Diary entry added!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (isEditableRecipe()) {\n\t\t\t\t\t\teditMode();\n\t\t\t\t\t\tButton saveButton = (Button) findViewById(R.id.b_recipeSave);\n\t\t\t\t\t\tsaveButton\n\t\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t// AS: The save button calls editRecipe\n\t\t\t\t\t\t\t\t\t\t// then finishes\n\t\t\t\t\t\t\t\t\t\teditRecipe(recipeString);\n\t\t\t\t\t\t\t\t\t\tsavedDialog();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\tButton newIngredientButton = (Button) findViewById(R.id.bNewIngredient);\n\n\t\t\t\t\t\tnewIngredientButton\n\t\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\tingredientDialog();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowThatNotEditable();\n\t\t\t\t\t}\n\t\t\t\t}" ]
[ "0.75322217", "0.6977065", "0.67844313", "0.667451", "0.6673244", "0.6639916", "0.6598797", "0.6591917", "0.65556544", "0.6524081", "0.6294708", "0.62704325", "0.62649775", "0.62409073", "0.61168283", "0.60912126", "0.60650516", "0.60618645", "0.6056391", "0.60434186", "0.6007441", "0.5993224", "0.59835845", "0.5980427", "0.59745777", "0.5970169", "0.5948787", "0.5939628", "0.5910932", "0.59051293", "0.58975196", "0.5873466", "0.5863971", "0.5839884", "0.58381957", "0.58326715", "0.58204633", "0.580544", "0.5800142", "0.5775073", "0.57711995", "0.57550055", "0.5751347", "0.5747816", "0.57294446", "0.5726623", "0.57093775", "0.57020706", "0.5701571", "0.56864667", "0.56707835", "0.5667341", "0.5659897", "0.5658534", "0.56547475", "0.564147", "0.5638071", "0.5635144", "0.56339395", "0.5631688", "0.5624553", "0.56148064", "0.56103855", "0.5600045", "0.55950093", "0.5590288", "0.5589608", "0.5584316", "0.5580053", "0.55696994", "0.5561658", "0.55615985", "0.5561011", "0.5558256", "0.55555314", "0.5554921", "0.5553198", "0.55514467", "0.5551427", "0.55444694", "0.5525167", "0.5520023", "0.5517511", "0.55122274", "0.55045706", "0.5502544", "0.54980177", "0.5497406", "0.54960585", "0.54927653", "0.5492227", "0.54915965", "0.54896563", "0.54847986", "0.548048", "0.54696846", "0.5461291", "0.5442618", "0.54423463", "0.5441208" ]
0.6466848
10
Load recipe in the table
private void loadRecipe(ArrayList<Recipe> recipe) throws SQLException, ClassNotFoundException { ArrayList<Ingredient> ingredients = new IngredientControllerUtil().getAllIngredient(); ObservableList<RecipeTM> obList = FXCollections.observableArrayList(); for (Recipe r : recipe) { for (Ingredient ingredient : ingredients) { if (r.getIngreID().equals(ingredient.getIngreID())) { String scale; Button btn = new Button("Remove"); double unit = 1; if (ingredient.getIngreUnit().matches("[0-9]*(g)$")) { scale = "g"; unit = Double.parseDouble(ingredient.getIngreUnit().split("g")[0]); } else if (ingredient.getIngreUnit().matches("[0-9]*(ml)$")) { scale = "ml"; unit = Double.parseDouble(ingredient.getIngreUnit().split("m")[0]); } else { scale = ""; unit = Double.parseDouble(ingredient.getIngreUnit()); } double price = (ingredient.getUnitePrice() / unit) * r.getQty(); RecipeTM tm = new RecipeTM( r.getIngreID(), ingredient.getIngreName(), ingredient.getIngreUnit(), r.getQty() + scale, price, btn ); obList.add(tm); removeIngre(btn, tm, obList); break; } } } tblRecipe.setItems(obList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "private boolean loadDatabase(){\n Input input = new Input();\n recipes = input.getDatabase();\n if(recipes == null){\n recipes = new ArrayList<>();\n return false;\n }\n return true;\n }", "private void addData(){\n\n for (Recipe obj : frecipes)\n {\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n name = new TextView(this);\n name.setText(obj.getName());\n name.setWidth(320);\n name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);\n name.setPadding(5, 5, 5, 5);\n tr.addView(name); // Adding textView to tablerow.\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n }\n }", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "public void loadRecipe(View view) {\n\n Intent intent = new Intent(this, SavedRecipes.class);\n startActivity(intent);\n }", "private void loadRecipes() {\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesHelmet),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\" \", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesChestplate),\n\t\t\t\t\"X X\",\n\t\t\t\t\"XXX\",\n\t\t\t\t\"XXX\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesLeggings),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesBoots),\n\t\t\t\t\" \",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\t}", "public RecipeData(LuaTable t) {\n this.ingredients = LuaUtil.getList(t, \"ingredients\", Ingredient::new);\n if (this.ingredients.isEmpty()) {\n throw new RuntimeException();\n }\n\n LuaValue result = t.rawget(\"result\");\n LuaValue results = t.rawget(\"results\");\n if (result.isnil() && results.istable()) {\n this.results = LuaUtil.getList(t, \"results\", Product::new);\n } else if (result.isstring() && results.isnil()) {\n this.results = List.of(new Product(result.checkjstring(), LuaUtil.getInt(t, \"result_count\", 1)));\n } else {\n throw new RuntimeException();\n }\n if (this.results.isEmpty()) {\n throw new RuntimeException();\n }\n\n this.time = LuaUtil.getBigRational(t, \"energy_required\", BigRationalConstants.ONE_OVER_TWO);\n this.allowDecomposition = LuaUtil.getBoolean(t, \"allow_decomposition\", true);\n }", "private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}", "public void loadItemsTable(String reqId) {\n dao.setup();\n ObservableList<RequisitionItemEntity> items = FXCollections.observableArrayList(dao.read(RequisitionItemEntity.class));\n dao.exit();\n\n TableColumn<RequisitionItemEntity, String> poIdCol = new TableColumn<>(\"Purchase ID\");\n poIdCol.setCellValueFactory(new PropertyValueFactory<RequisitionItemEntity, String>(\"poid\"));\n\n TableColumn<RequisitionItemEntity, String> reqIdCol = new TableColumn<>(\"Requisiton ID\");\n reqIdCol.setCellValueFactory(new PropertyValueFactory<>(\"reqid\"));\n\n TableColumn<RequisitionItemEntity, Number> supidCol = new TableColumn<>(\"Supplier ID\");\n supidCol.setCellValueFactory(new PropertyValueFactory<>(\"supplier_id\"));\n\n TableColumn<RequisitionItemEntity, Double> tamontCol = new TableColumn<>(\"Total Amount\");\n tamontCol.setCellValueFactory(new PropertyValueFactory<>(\"total_amount\"));\n\n for (RequisitionItemEntity item : items){\n if(reqId == item.getReqId())\n tableItems.getItems().add(item);\n }\n\n tableItems.getColumns().addAll(poIdCol,reqIdCol,supidCol,tamontCol);\n\n\n }", "public void initLoadTable(){\n movies.clear();\n try {\n Connection conn = ConnectionFactory.getConnection();\n try (Statement stmt = conn.createStatement()) {\n String str=\"select title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,img from movies \";\n ResultSet rs= stmt.executeQuery(str);\n while(rs.next()){\n String title=rs.getString(\"title\");\n String director=rs.getString(\"director\");\n int prodYear=rs.getInt(\"prodYear\");\n boolean lent=rs.getBoolean(\"lent\"); \n int lentCount=rs.getInt(\"lentCount\");\n boolean original=rs.getBoolean(\"original\");\n String storageType=rs.getString(\"storageType\");\n int movieLength=rs.getInt(\"movieLength\");\n String mainCast=rs.getString(\"mainCast\");\n Blob blob = rs.getBlob(\"img\");\n InputStream inputStream = blob.getBinaryStream();\n OutputStream outputStream = new FileOutputStream(\"resources/\"+title+director+\".jpg\");\n int bytesRead = -1;\n byte[] buffer = new byte[1];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n inputStream.close();\n outputStream.close();\n System.out.println(\"File saved\"); \n File image = new File(\"resources/\"+title+director+\".jpg\");\n \n movies.add(new Movie(title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,image));\n }\n rs.close();\n stmt.close(); \n }\n conn.close();\n } catch (Exception ex) {\n System.err.println(ex.toString());\n } \n \n fireTableDataChanged();\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "private static void registerTableRecipes()\n\t{\n\t\ttransTable = addShapedArcane(\"TRANSTABLE\", new ItemStack(ObjHandler.transmutationTablet), AspectLists.placeholderAspectList, \"XAX\", \"AXA\", \"XAX\", 'X', new ItemStack(Blocks.stone), 'A', new ItemStack(Blocks.cobblestone));\n\t}", "public void addRecipe(Recipe recipe)\n {\n recipe.setDataSource(this);\n _recipes.add(recipe);\n }", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "private void loadRec() {\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< t.items.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + t.items.get(i).name +\", \" \n\t\t\t\t\t+ t.items.get(i).amount + \n\t\t\t\t\t\", $\"+ t.items.get(i).price +\"\\n\";\n\t\t}\n\t\tthis.reciet.setText(test);\n\t}", "@Override\r\n protected void readImpl() {\r\n _recipeId = readD();\r\n }", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void loadPatient() {\n patient = PatientsDatabaseAccessObject.getInstance().getPatients();\n table.getItems().clear();\n for (int i = 0; i < patient.size(); ++i) {\n table.getItems().add(patient.get(i));\n }\n table.refresh();\n }", "private void loadTable(List<Functions> readAll) {\n Vector cols = new Vector();\n cols.add(\"Name\");\n cols.add(\"Description\");\n\n Vector rows = new Vector();\n for (Functions f : readAll) {\n Vector row = new Vector();\n row.add(f.getName());\n row.add(f.getDes());\n rows.add(row);\n }\n\n tblFunction.setModel(new DefaultTableModel(rows, cols));\n tblFunction.updateUI();\n spnFunction.setViewportView(this.tblFunction);\n }", "private void tableLoad() {\n try{\n String sql=\"SELECT * FROM salary\";\n pst = conn.prepareStatement(sql);\n rs = pst.executeQuery();\n \n table1.setModel(DbUtils.resultSetToTableModel(rs));\n \n \n }\n catch(SQLException e){\n \n }\n }", "public void loadBrandDataToTable() {\n\n\t\tbrandTableView.clear();\n\t\ttry {\n\n\t\t\tString sql = \"SELECT * FROM branddetails WHERE active_indicator = 1\";\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sql);\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tbrandTableView.add(new BrandsModel(resultSet.getInt(\"brnd_slno\"), resultSet.getInt(\"active_indicator\"),\n\t\t\t\t\t\tresultSet.getString(\"brand_name\"), resultSet.getString(\"sup_name\"),\n\t\t\t\t\t\tresultSet.getString(\"created_at\"), resultSet.getString(\"updated_at\")));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tbrandName.setCellValueFactory(new PropertyValueFactory<>(\"brand_name\"));\n\t\tsupplierName.setCellValueFactory(new PropertyValueFactory<>(\"sup_name\"));\n\t\tdetailsOfBrands.setItems(brandTableView);\n\t}", "public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "private void loadDescribedTemplateData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> DescribedTemplateCore.loadDescribedTemplateData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n String strDTNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n\r\n // acquire described template info; note: template to described_template is 1 to many, so from described_template to template is 1:1\r\n resultSet = statement.executeQuery( \"SELECT fk_version_set, fk_template, description_hash, synchronized, hash, enabled, steps \" +\r\n \"FROM described_template \" +\r\n \"JOIN template ON fk_template = pk_template \" +\r\n \"WHERE pk_described_template = \" + strDTNum );\r\n\r\n if ( resultSet.next() ) {\r\n dbDescribedTemplate.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n dbDescribedTemplate.fk_template = resultSet.getLong(\"fk_template\");\r\n dbDescribedTemplate.description_hash = resultSet.getBytes(\"description_hash\");\r\n dbDescribedTemplate.dtSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.template_hash = resultSet.getBytes(\"hash\");\r\n dbDescribedTemplate.enabled = resultSet.getBoolean(\"enabled\");\r\n dbDescribedTemplate.steps = resultSet.getString(\"steps\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads data from described template record \" + pk_described_template);\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n } else {\r\n throw new Exception(\"described template data not present\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // acquire matching run info\r\n try {\r\n String strTemplateNum = String.valueOf(dbDescribedTemplate.fk_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_run, artifacts, start_time, ready_time, end_time, passed \" +\r\n \"FROM run \" +\r\n \"WHERE fk_template = \" + strTemplateNum );\r\n while ( resultSet.next() ) {\r\n DBRun dbRun = new DBRun(resultSet.getLong(\"pk_run\"));\r\n dbRun.artifacts = resultSet.getBytes(\"artifacts\");\r\n dbRun.start_time = resultSet.getDate(\"start_time\");\r\n dbRun.ready_time = resultSet.getDate(\"ready_time\");\r\n dbRun.end_time = resultSet.getDate(\"end_time\");\r\n dbRun.passed = resultSet.getBoolean(\"passed\");\r\n dbDescribedTemplate.pkdtToDBRun.put(pk_described_template, dbRun);\r\n System.out.println(\" <internal> TemplateCore.loadTemplateData() loads data from described_template-matched run record \" + dbRun.pk_run);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n \r\n // acquire matching test_instance info; note: described_template to test_instance is 1:1\r\n try {\r\n String strDescribedTemplateNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_test_instance, fk_run, due_date, phase, synchronized \" +\r\n \"FROM test_instance \" +\r\n \"WHERE fk_described_template = \" + strDescribedTemplateNum);\r\n while ( resultSet.next() ) {\r\n DBTestInstance dbTestInstance = new DBTestInstance(resultSet.getLong(\"pk_test_instance\"));\r\n dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n dbTestInstance.iSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.pkdtToDBTestInstance.put(pk_described_template, dbTestInstance);\r\n System.out.println(\" <internal> TemplateCore.loadDescribedTemplateData() loads data from described_template-matched test_instance record \" + dbTestInstance.pk_test_instance);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n\r\n // acquire corresponding multiple lines of data\r\n try {\r\n String strPKDT = String.valueOf(dbDescribedTemplate.pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n \"FROM dt_line \" +\r\n \"WHERE fk_described_template = \" + strPKDT );\r\n while ( resultSet.next() ) {\r\n DBDTLine dtLine = new DBDTLine();\r\n dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n dtLine.line = resultSet.getInt(\"line\");\r\n dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n\r\n dbDescribedTemplate.pkdtToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n \"FROM artifact_to_dt_line \" +\r\n \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n \"WHERE fk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n dtLine.reason = resultSet.getString(\"reason\");\r\n dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding version information; not every dtLine has corresponding version information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n \"FROM version \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.version = resultSet.getString(\"version\");\r\n dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding content information; not every dtLine has corresponding content information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n \"FROM content \" +\r\n \"JOIN artifact ON fk_content = pk_content \" +\r\n \"WHERE pk_artifact = \" + strPKArtifact );\r\n if ( resultSet.next() ) {\r\n dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding component information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT name \" +\r\n \"FROM component \" +\r\n \"JOIN version ON fk_component = pk_component \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.componentName = resultSet.getString(\"name\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n }\r\n\r\n // get corresponding resource information; not every dtLine has corresponding resource information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n \"FROM dt_line \" +\r\n \"JOIN resource ON fk_resource = pk_resource \" +\r\n \"WHERE pk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n dtLine.resourceName = resultSet.getString(\"name\");\r\n dtLine.resourceDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n }", "public void firstfilltable3 (){\n\t\nContext mContext = getApplicationContext();\n\t\n \n\t//InputStream csvStream;\n\t\n\t String reader = \"\";\n\t\tString date = null;\n\t\tString value;\n\t\tString f_id;\n\t\t\n\t\t\n\t\t\n\t\ttry {\n\n\n assert mContext != null;\n InputStream csvStream = mContext.getResources().openRawResource(R.raw.food);\n\t\t\t\n\t\t\tDataInputStream data = new DataInputStream(csvStream);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(data));\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twhile ((reader = in.readLine())!=null){\n\t\t\t\tString[] RowData = reader.split(\",\");\n\t\t\t\t\n\t\t\t\tf_id=RowData[0];\n\t\t\t\t\n\t\t\t date =RowData[1];\n\t\t\t \n\t\t\t value = RowData[2];\n\t\t\t \n\t\t\t \n\t\t\t\tdb.addRow_foods(f_id,date,value);\n\t\t\t \n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\n\t\t\t\n}", "private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }", "@Override\n\tpublic void loadData() {\n\t\tint sel = getSelected() == null ? -1 : getSelected().getWardId();\n\t\ttry {\n\t\t\tList<Ward> list = searchInput.getText().equals(\"\") ? WardData.getList()\n\t\t\t\t\t: WardData.getBySearch(searchInput.getText());\t\t\t\n\t\t\ttableData.removeAll(tableData);\n\t\t\tfor (Ward p : list) {\n\t\t\t\ttableData.add(p);\n\t\t\t}\n\t\t} catch (DBException e) {\n\t\t\tGlobal.log(e.getMessage());\n\t\t}\n\n\t\tif (sel > 0) {\n\t\t\tsetSelected(sel);\n\t\t}\n\t}", "public void initTable();", "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }", "@Override\n\tpublic List<RecipeTable> list() {\n\t\treturn null;\n\t}", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "@Override\r\n public Loader<Cursor> onCreateLoader(int id, Bundle bundle) {\n String[] projections = {RecipeEntry._ID,\r\n RecipeEntry.COLUMN_RECIPE_NAME,\r\n RecipeEntry.COLUMN_RECIPE_TYPE,\r\n RecipeEntry.COLUMN_RECIPE_SERVINGS,\r\n RecipeEntry.COLUMN_RECIPE_VALUES,\r\n };\r\n\r\n //this code will execute the content provided\r\n return new CursorLoader(this, currentRecipeUri, projections, null, null, null);\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n people.addAll(sp.getAll());\n idP.setCellValueFactory(new PropertyValueFactory<>(\"path_photo\"));\n price1.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n tabble1.setItems(people);\n try {\n ResultSet rs = c.createStatement().executeQuery(\"select path_photo, price from shoppingcart\");\n while(rs.next()){\n data1.add(new ShoppingCart(rs.getString(\"path_photo\"), rs.getDouble(\"price\")));\n \n }\n \n\n// TODO\n } catch (SQLException ex) {\n Logger.getLogger(ShoppingCartController.class.getName()).log(Level.SEVERE, null, ex);\n }\n Item2.setCellValueFactory(new PropertyValueFactory<>(\"path_photo\"));\n Price2.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n table.setItems(data1);\n }", "void initTable();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n fillTable();\n // TODO\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected abstract void initialiseTable();", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "public void loadTasks()\r\n\t{\n\t\ttable = loadTable(\"../data/tasks.csv\", \"header\");\r\n\t\t\r\n\t\t//gets amount of data rows in table\r\n\t\trow_count = table.getRowCount();\r\n\t\t//println(row_count);\r\n\t\t\r\n\t\t//put each row in table into Task class objects and initialise them\r\n\t\tfor(TableRow r : table.rows()){\r\n\t\t\ttasks.add(new Task(r));\r\n\t\t}\r\n\t\t\r\n\t}", "private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }", "public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}", "public Cursor loadRecipesByType(String typeR) {\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.TYPE + \"=\" + \"'\" + typeR + \"'\", null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "public void loadIngredients(){\n LoadIngredientsService service = new LoadIngredientsService();\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n\n //When the service has successfully run set the return ingredients to various listViews and comboBoxs where\n //ingredients from database are saved\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n ingredientsFromDatabase = service.getValue();\n ingredientsList.setItems(ingredientsFromDatabase);\n ingredientsBrowseCombo.setItems(ingredientsFromDatabase);\n allIngredientsCupboardPane.setItems(ingredientsFromDatabase);\n }\n });\n }", "List<Recipe> getAllRecipes();", "public abstract void loadFromDatabase();", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"ID\");\n model.addColumn(\"NIM\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Kelamin\");\n model.addColumn(\"Phone\");\n model.addColumn(\"Agama\");\n model.addColumn(\"Status\");\n\n //menampilkan data database kedalam tabel\n try {\n String sql = \"SELECT * FROM mhs\";\n java.sql.Connection koneksi = (Connection) Koneksi.KoneksiDB();\n java.sql.Statement stm = koneksi.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2),\n res.getString(3), res.getString(4), res.getString(5),\n res.getString(6), res.getString(7)});\n }\n tabelMahasiswa.setModel(model);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "void load(String table_name, boolean read_only) throws IOException;", "public abstract AbstractGenesisModel getRow(String id);", "private void load() {\n Uri poiUri = Uri.withAppendedPath(Wheelmap.POIs.CONTENT_URI_POI_ID,\r\n String.valueOf(poiID));\r\n\r\n // Then query for this specific record:\r\n Cursor cur = getActivity().managedQuery(poiUri, null, null, null, null);\r\n\r\n if (cur.getCount() < 1) {\r\n cur.close();\r\n return;\r\n }\r\n\r\n cur.moveToFirst();\r\n\r\n WheelchairState state = POIHelper.getWheelchair(cur);\r\n String name = POIHelper.getName(cur);\r\n String comment = POIHelper.getComment(cur);\r\n int lat = (int) (POIHelper.getLatitude(cur) * 1E6);\r\n int lon = (int) (POIHelper.getLongitude(cur) * 1E6);\r\n int nodeTypeId = POIHelper.getNodeTypeId(cur);\r\n int categoryId = POIHelper.getCategoryId(cur);\r\n\r\n NodeType nodeType = mSupportManager.lookupNodeType(nodeTypeId);\r\n // iconImage.setImageDrawable(nodeType.iconDrawable);\r\n\r\n setWheelchairState(state);\r\n // nameText.setText(name);\r\n\r\n String category = mSupportManager.lookupCategory(categoryId).localizedName;\r\n // categoryText.setText(category);\r\n nodetypeText.setText(nodeType.localizedName);\r\n commentText.setText(comment);\r\n addressText.setText(POIHelper.getAddress(cur));\r\n websiteText.setText(POIHelper.getWebsite(cur));\r\n phoneText.setText(POIHelper.getPhone(cur));\r\n\r\n /*\r\n * POIMapsforgeOverlay overlay = new POIMapsforgeOverlay();\r\n * overlay.setItem(name, comment, nodeType, state, lat, lon);\r\n * mapView.getOverlays().clear(); mapView.getOverlays().add(overlay);\r\n * mapController.setCenter(new GeoPoint(lat, lon));\r\n */\r\n }", "public void loadAllManufacturesTable(){\n \n \n try {\n String query = \"SELECT manufacture.maID as 'Manufacture ID', name as 'Manufacture Name', address as 'Manufacture Address', email as 'Manufacture Email', manufacture_phone.phone as 'Phone' FROM manufacture left outer join manufacture_phone ON manufacture.maID=manufacture_phone.maID ORDER BY manufacture.maID\";\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n \n allManufactureTable.setModel(DbUtils.resultSetToTableModel(rs));\n \n //change row height\n allManufactureTable.setRowHeight(30);\n \n //change column width of column two\n /* TableColumnModel columnModel = allManufactureTable.getColumnModel();\n columnModel.getColumn(0).setPreferredWidth(10);\n columnModel.getColumn(1).setPreferredWidth(70);\n columnModel.getColumn(2).setPreferredWidth(5);\n columnModel.getColumn(3).setPreferredWidth(70); */\n \n } catch (SQLException ex) {\n Logger.getLogger(viewAllBrands.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}", "protected abstract void initCache(List<RECIPE> recipes);", "public void loadTag(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Tag \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"relatedtag\");\n\t\t\t\t\ttag.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}", "@Override\n\tpublic void initialize(URL url, ResourceBundle rb) {\n\n\t\tif(!Inventory.getAllParts().isEmpty()) {\n\t\t\tpartSearchProductTable.setItems(Inventory.getAllParts());\n\t\t}\n\t\t\n\t\tpartSearchIdCol.setCellValueFactory(new PropertyValueFactory<>(\"Id\"));\n\t\tpartSearchNameCol.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n\t\tpartSearchInvCol.setCellValueFactory(new PropertyValueFactory<>(\"Stock\"));\n\t\tpartSearchPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"Price\"));\n\t\t\n\t\tpartListProductTable.setItems(dummyList);\n\t\t\n\t\tpartListIdCol.setCellValueFactory(new PropertyValueFactory<>(\"Id\"));\n\t\tpartListNameCol.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n\t\tpartListInvCol.setCellValueFactory(new PropertyValueFactory<>(\"Stock\"));\n\t\tpartListPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"Price\"));\n\t\t\n\t\t//BEGIN TEMP\n\t\t//Temporary due to automatic id creation not implemented\n\t\tidField.setDisable(true);\n\t\tidField.setStyle(\"-fx-opacity: 1;\"\n\t\t\t\t+ \"-fx-background-color: lightgrey;\");\n\t\t//END TEMP\n\t}", "public static void addFrozenTableRecipe(String modid, String name, ItemStack output, Object... params) {\n\t\tResourceLocation location = new ResourceLocation(modid, name);\n\t\tShapedOreRecipe recipe = new ShapedOreRecipe(location, output, params);\n\t\trecipe.setRegistryName(location);\n\t\trecipes.add(recipe);\n\t}", "public void loadIngreID() throws SQLException, ClassNotFoundException {\r\n ArrayList<Ingredient> ingredients = new IngredientControllerUtil().getAllIngredient();\r\n ArrayList<String> name = new ArrayList<>();\r\n\r\n for (Ingredient ingredient : ingredients) {\r\n name.add(ingredient.getIngreName());\r\n }\r\n\r\n cmbIngreName.getItems().addAll(name);\r\n }", "public void newRow();", "@Override\n protected void loadAndFormatData()\n {\n // Place the data into the table model along with the column\n // names, set up the editors and renderers for the table cells,\n // set up the table grid lines, and calculate the minimum width\n // required to display the table information\n setUpdatableCharacteristics(getScriptAssociationData(allowSelectDisabled, parent),\n AssociationsTableColumnInfo.getColumnNames(),\n null,\n new Integer[] {AssociationsTableColumnInfo.AVAILABLE.ordinal()},\n null,\n AssociationsTableColumnInfo.getToolTips(),\n true,\n true,\n true,\n true);\n }", "public void loadDatabaseProducts() {\n\n // Database credentials\n String pass = \"\";\n\n InputStream passPath = Controller.class.getResourceAsStream(\"/password.txt\");\n if (passPath == null) {\n System.out.println(\"Could not find password in resources folder\");\n }\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(passPath));\n String line = null;\n while (true) {\n try {\n if (!((line = reader.readLine()) != null)) {\n break;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(line);\n if (line != null) {\n pass = line;\n System.out.println(\"Password login: \" + line);\n break;\n }\n }\n\n Connection conn;\n //Connection conn = null; //Temporary\n Statement stmt = null; //Temporary\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(\"org.h2.Driver\");\n\n //STEP 2: Open a connection\n conn = DriverManager.getConnection(\"jdbc:h2:./res/HR\", \"\",\n pass); //Security bug - Temporary placeholders, will be modified in future.\n\n stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(\n \"SELECT * FROM PRODUCT\"); //Temporary database testing. Will be modified in the future.\n\n while (rs.next()) {\n String prodName = rs.getString(\"NAME\");\n String prodManu = rs.getString(\"MANUFACTURER\");\n ItemType prodType = ItemType.valueOf(rs.getString(\"TYPE\"));\n\n productLine\n .add(new Widget(prodName, prodManu, prodType)); //Adding test product in observable list\n }\n productTable.setItems(productLine);\n listProduce.setItems(productLine);\n\n stmt.close(); //Close\n conn.close(); //Close\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public static void loadSupplierTable()\n {\n final String QUERY = \"SELECT * FROM Suppliers\";\n\n DefaultTableModel dtm = (DefaultTableModel) new SupplierDatabase().selectTable(QUERY);\n supplierTable.setModel(dtm);\n }", "protected abstract void initTable() throws RemoteException, NotBoundException, FileNotFoundException;", "@Override\n\tpublic void initRecipes()\n\t{\n\n\t}", "public static void init() {\r\n File f = new File(\"data/essentials/list/rare_drop_table.txt\");\r\n try (BufferedReader br = new BufferedReader(new FileReader(f))) {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n if (s.contains(\" //\")) {\r\n s = s.substring(0, s.indexOf(\" //\"));\r\n }\r\n String[] arg = s.replaceAll(\" - \", \";\").split(\";\");\r\n int id = Integer.parseInt(arg[1]);\r\n int amount = 1;\r\n int amount2 = amount;\r\n if (arg[2].contains(\"-\")) {\r\n String[] amt = arg[2].split(\"-\");\r\n amount = Integer.parseInt(amt[0]);\r\n amount2 = Integer.parseInt(amt[1]);\r\n } else {\r\n amount = Integer.parseInt(arg[2]);\r\n }\r\n DropFrequency df = DropFrequency.RARE;\r\n switch (arg[3].toLowerCase()) {\r\n case \"common\":\r\n df = DropFrequency.COMMON;\r\n break;\r\n case \"uncommon\":\r\n df = DropFrequency.UNCOMMON;\r\n break;\r\n case \"rare\":\r\n df = DropFrequency.RARE;\r\n break;\r\n case \"very rare\":\r\n df = DropFrequency.VERY_RARE;\r\n break;\r\n }\r\n TABLE.add(new ChanceItem(id, amount, amount2, 1000, 0.0, df));\r\n }\r\n } catch (Throwable t) {\r\n log.error(\"Error reading rare drops from [{}].\", f.getAbsolutePath(), t);\r\n }\r\n int slot = 0;\r\n for (ChanceItem item : TABLE) {\r\n int rarity = 1000 / item.getDropFrequency().ordinal();\r\n item.setTableSlot(slot | ((slot += rarity) << 16));\r\n }\r\n tableRarityRatio = (int) (slot * 1.33);\r\n }", "private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "protected void loadData()\n {\n }", "public void insert(Recipe recipe ) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(recipe);\n\t\ttx.commit();\n\t\tsession.close();\n\t}", "private void loadAllToTable() {\n try {\n ArrayList<ItemDTO> allItems=ip.getAllItems();\n DefaultTableModel dtm=(DefaultTableModel) tblItems.getModel();\n dtm.setRowCount(0);\n \n if(allItems!=null){\n for(ItemDTO item:allItems){\n \n Object[] rowdata={\n item.getiId(),\n item.getDescription(),\n item.getQtyOnHand(),\n item.getUnitPrice()\n \n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "protected void displayRecipe(){\n Log.d(\"recipeBook\", \"Retrieving recipe contents\");\n\n MyDBHandler dbHandler = new MyDBHandler(this, null, null, 1);\n\n //retrieve latest recipe name and instructions based on id selected\n Recipe r = dbHandler.findRecipe(id);\n String name = r.getRecipeName();\n String text = r.getRecipeText();\n\n recipeName.setText(name);\n recipeText.setText(text);\n\n //buttons onClick listeners\n editFAB.setOnClickListener(view -> {\n //launch EditActivity so user can edit recipe\n Intent i = new Intent(getApplicationContext(), EditActivity.class);\n i.putExtra(\"id\", id);\n startActivity(i);\n });\n\n deleteFAB.setOnClickListener(view -> {\n //display alert dialog to confirm delete action\n AlertDialog.Builder alert = new AlertDialog.Builder(ViewActivity.this);\n\n alert\n .setTitle(\"Are you sure?\")\n .setMessage(\"This will delete this recipe forever\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\", (dialogInterface, i) -> {\n dbHandler.deleteRecipe(id);\n Log.d(\"recipeBook\", \"Recipe deleted\");\n Toast.makeText(getApplicationContext(),\"Recipe deleted\", Toast.LENGTH_SHORT).show();\n finish();\n })\n .setNegativeButton(\"No\", (dialogInterface, i) -> {\n });\n AlertDialog alertDialog = alert.create();\n alertDialog.show();\n });\n }", "private void populateTables(ArrayList<MenuItem> food, ArrayList<MenuItem> bev) throws SQLException\r\n {\r\n populateTableMenuItems(food, bev);\r\n }", "@Override\n\tpublic RecipeDTO BookmarkRecipeListload(String keyword) throws Exception {\n\t\treturn session.selectOne(namespace+\".BookmarkRecipeListload\",keyword);\n\t}", "private void loadTableProperties(Annotated instance) {\n parseClass(instance);\n DefaultTableModel model = createTableModel(properties);\n jTable1.setModel(model);\n }", "@Override\n protected void onResume() {\n displayRecipe();\n super.onResume();\n }", "public static void loadPurchaseTable()\n {\n final String QUERY = \"SELECT Purchases.purchaseId, Purchases.ProductId, Suppliers.FirstName, Suppliers.LastName, Products.ProductName, Purchases.Stock, Purchases.FinalPrice \"\n + \"FROM Purchases,Products,Suppliers WHERE Purchases.ProductId=Products.ProductId AND Purchases.SupplierId=Suppliers.SupplierId\";\n\n DefaultTableModel dtm = (DefaultTableModel) new PurchaseDatabase().selectTable(QUERY);\n purchaseTable.setModel(dtm);\n }", "public static void loadStorageTable()\n {\n // Selects the StorageId, ProductName, ProductDescription, Supplier's TaxRegister, Product's SellingPrice and Product's Stock\n final String QUERY = \"SELECT Storage.StorageId, Storage.ProductId, Suppliers.TaxRegister, Products.ProductName, Products.ProductDescription, Products.MeasurementUnit, Products.Weight, Products.Stock, Products.SellingPrice \"\n + \"FROM Storage,Products,Suppliers,SuppliersProducts WHERE Storage.ProductId = Products.ProductId AND Products.ProductId = SuppliersProducts.ProductId AND \"\n + \"SuppliersProducts.SupplierId = Suppliers.SupplierId\";\n DefaultTableModel dtm = (DefaultTableModel) new StorageDatabase().selectTable(QUERY);\n storageTable.setModel(dtm);\n }", "protected abstract void loadData();", "private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }", "private void fillData() {\n table.setRowList(data);\n }", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != null){\n recipes.add(recipe);\n }\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "@Override\r\n\tpublic void initializeTableContents() {\n\t\t\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n idColPart.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n nameColPart.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n invColPart.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\n priceColPart.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n idColProduct.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n nameColProduct.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n invColProduct.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\n priceColProduct.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n\n partTableView.setItems(Inventory.getAllParts());\n productTableView.setItems(Inventory.getAllProducts());\n\n\n\n\n\n }", "public void showIngredients() {\n list = dbController.getIngredientsList();\n\n idColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Integer>(\"id\"));\n nameColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, String>(\"name\"));\n caloriesColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"calories\"));\n proteinColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"protein\"));\n fatColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"fat\"));\n carbohydratesColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, Double>(\"carbohydrates\"));\n selectColumn.setCellValueFactory(new PropertyValueFactory<Ingredient, CheckBox>(\"select\"));\n\n TableView.setItems(list);\n }", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "String loadTable(String name) {\n\n\n String l;\n String[] line;\n String[] colNames;\n String[] colTypes;\n String[] values;\n\n\n try {\n\n if (tables.get(name) != null) {\n tables.remove(name);\n }\n FileReader fr = new FileReader(name + \".tbl\");\n BufferedReader bf = new BufferedReader(fr);\n\n\n if ((l = bf.readLine()) != null) {\n line = l.split(\"\\\\s*(,|\\\\s)\\\\s*\");\n } else {\n return \"ERROR: Empty Table\";\n }\n colNames = new String[line.length / 2];\n colTypes = new String[line.length / 2];\n\n int j = 0, k = 0;\n\n for (int i = 0; i < line.length; i += 1) {\n if (i % 2 == 0) {\n colNames[j] = line[i];\n j += 1;\n } else {\n colTypes[k] = line[i];\n k += 1;\n }\n\n }\n\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n while ((l = bf.readLine()) != null) {\n values = l.split(\"\\\\s*(,)\\\\s*\");\n t.insertLastRow(values);\n }\n\n bf.close();\n return \"\";\n\n } catch (NullPointerException e) {\n return \"ERROR: \" + e;\n } catch (ArrayIndexOutOfBoundsException e) {\n return \"ERROR: \" + e;\n } catch (NumberFormatException e) {\n return \"ERROR: \" + e;\n } catch (IllegalArgumentException e) {\n return \"ERROR: \" + e;\n } catch (IOException e) {\n return \"ERROR: \" + e;\n } \n }", "public void loadBook() {\n List<Book> books = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n Book book = new Book(\"Book-\" + i, \"Test book \" + i);\n books.add(book);\n }\n this.setBooks(books);\n }", "public TelaMaterialReparo() {\n initComponents();\n readJTable();\n }", "private void handleInit() {\n\t\ttry {\n String filePath = \"/app/FOOD_DATA.txt\";\n String line = null;\n FileReader fileReader = new FileReader(filePath);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((line = bufferedReader.readLine()) != null) {\n System.out.println(line);\n\n String[] foodData = line.split(\"\\\\^\");\n \t\tfor (int i = 2; i < foodData.length; i++) {\n \t\t\tif (foodData[i].equals(\"\")) {\n \t\t\t\tfoodData[i] = \"-1\";\n \t\t\t}\n \t\t}\n String foodName = foodData[0];\n String category = foodData[1];\n double calories = Double.parseDouble(foodData[2]);\n double sodium = Double.parseDouble(foodData[3]);\n double fat = Double.parseDouble(foodData[4]);\n double protein = Double.parseDouble(foodData[5]);\n double carbohydrate = Double.parseDouble(foodData[6]);\n Food food = new Food();\n food.setName(foodName);\n food.setCategory(category);\n food.setCalories(calories);\n food.setSodium(sodium);\n food.setSaturatedFat(fat);\n food.setProtein(protein);\n food.setCarbohydrate(carbohydrate);\n foodRepository.save(food);\n }\n bufferedReader.close();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n \tcategories = Categories.MAIN_MENU;\n }\n\t}", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "public void fetRowList() {\n try {\n data.clear();\n if (rsAllEntries != null) {\n ObservableList row = null;\n //Iterate Row\n while (rsAllEntries.next()) {\n row = FXCollections.observableArrayList();\n //Iterate Column\n for (int i = 1; i <= rsAllEntries.getMetaData().getColumnCount(); i++) {\n row.add(rsAllEntries.getString(i));\n }\n data.add(row);\n }\n //connects table with list\n table.setItems(data);\n // cell instances are generated for Order Status column and then colored\n customiseStatusCells();\n\n } else {\n warning.setText(\"No rows to display\");\n }\n } catch (SQLException ex) {\n System.out.println(\"Failure getting row data from SQL \");\n }\n }", "public void load() {\n\t\tif (!dbNode.isLogined()) {\n\t\t\treturn;\n\t\t}\n\n\t\tString tablesFolderId = dbNode.getId()\n\t\t\t\t+ CubridTablesFolderLoader.TABLES_FULL_FOLDER_SUFFIX_ID;\n\t\tfinal ICubridNode tablesFolder = dbNode.getChild(tablesFolderId);\n\t\tif (null == tablesFolder) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (tablesFolder.getChildren().size() < 1) {\n\t\t\tfinal TreeViewer tv = getTreeView();\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttv.expandToLevel(tablesFolder, 1);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@Before(stages = LifecycleStage.BindingAndValidation, on = {\"edit\", \"save\"})\r\n public void loadExcursionFromDatabase() {\r\n String ids = getContext().getRequest().getParameter(\"excursion.id\");\r\n if (ids == null) return;\r\n excursion = facade.getExcursion(Long.parseLong(ids));\r\n date = excursion.getExcursionDate().toString(DateTimeFormat.forPattern(pattern));\r\n trips = facade.getAllTrips();\r\n tripId = excursion.getTrip().getId();\r\n }", "private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}" ]
[ "0.66418874", "0.6197097", "0.6089562", "0.59983575", "0.58602816", "0.5858919", "0.58556753", "0.5777911", "0.57220197", "0.5694795", "0.5693966", "0.5692639", "0.56861657", "0.56705993", "0.56509805", "0.5631841", "0.56105256", "0.5600471", "0.55772364", "0.555799", "0.5545556", "0.55434954", "0.5536557", "0.5530425", "0.5518131", "0.5419249", "0.5364984", "0.53368706", "0.5311139", "0.5304851", "0.52996254", "0.5299618", "0.5290107", "0.5282397", "0.5263613", "0.5247982", "0.5234211", "0.5231839", "0.52241135", "0.5209403", "0.5203339", "0.51876575", "0.5182157", "0.5171406", "0.51698995", "0.51622665", "0.5160876", "0.51576394", "0.5156418", "0.5149846", "0.51479596", "0.51442564", "0.514356", "0.5137639", "0.5135487", "0.5134224", "0.5128618", "0.5125031", "0.5116789", "0.510961", "0.51078904", "0.5102888", "0.50991094", "0.5080796", "0.507801", "0.5064011", "0.50628334", "0.5057928", "0.50422066", "0.50363964", "0.50312287", "0.5030854", "0.5030002", "0.50175554", "0.50137395", "0.49985364", "0.49890268", "0.4987693", "0.49798998", "0.4978362", "0.49718848", "0.49705884", "0.49691278", "0.49622956", "0.49579737", "0.49567488", "0.4956077", "0.49545184", "0.49537614", "0.4953311", "0.49424788", "0.49423337", "0.49197257", "0.49189988", "0.49161074", "0.4914112", "0.49122465", "0.4910836", "0.49047107", "0.49029875" ]
0.6670334
0
Remove a Ingredient from the Recipe
public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) { btn.setOnAction((e) -> { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Warning"); alert.setContentText("Are you sure ?"); Optional<ButtonType> result = alert.showAndWait(); if (result.get() == ButtonType.OK) { try { deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem()); } catch (SQLException | ClassNotFoundException throwables) { throwables.printStackTrace(); } obList.remove(tm); tblRecipe.refresh(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeRecipe(IRecipe recipe) {\n this.recipes.remove(recipe);\n }", "public void removeRecipe(Recipe recipe) {\r\n \t\trecipeList.remove(recipe);\r\n \t\tpersistenceManager.remove(recipe);\r\n \t}", "void deleteRecipe(RecipeObject recipe);", "@FXML\n public void removeIngredFromMeal(){\n if (ingredientsForMeal.getSelectionModel().getSelectedItem() == null){\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Please select an ingredient to remove\");\n } else {\n try{\n Ingredient ingredientToRemove = ingredientsForMeal.getSelectionModel().getSelectedItem();\n newIngredients.remove(ingredientToRemove);\n } catch (Exception e){\n System.out.println(\"Couldnt remove item from meal\");\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Error removing ingredient\");\n }\n }\n }", "private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }", "@ZenCodeType.Method\n\tpublic void removeRecipe(IIngredient output)\n\t{\n\t\tCraftTweakerAPI.apply(new AbstractActionRemoveMultipleOutputs<CrusherRecipe>(this, output)\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic List<ItemStack> getAllOutputs(CrusherRecipe recipe)\n\t\t\t{\n\t\t\t\tfinal List<ItemStack> itemStacks = new ArrayList<>();\n\t\t\t\titemStacks.add(recipe.output.get());\n\t\t\t\tfor(StackWithChance secondaryOutput : recipe.secondaryOutputs)\n\t\t\t\t\titemStacks.add(secondaryOutput.stack().get());\n\t\t\t\treturn itemStacks;\n\t\t\t}\n\t\t});\n\t}", "public void removeIngredient(String type) {\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(type)) {\n\t\t\t\tmyBurger.pop();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\tmyBurger.push(ingredient);\n\t\t}\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount--;\n\t\t}\n\t}", "void removeRecipeFilter(RecipeFilter recipeFilter);", "@Override\n\tpublic void ingredientDeleted()\n\t{\n\t\tdrawIngredients(); \n\t}", "void deleteRecipe(Recipe recipe) throws ServiceFailureException;", "public void delete(int recipeId) {\n\t\tIngredientDataMapper idm = new IngredientDataMapper();\n\t\ttry {\n\t\t\tidm.delete(recipeId);\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}", "private final void deleteRecipe() {\n \tnew DeleteRecipeTask().execute();\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void vaciar(){\n\t\tingredientes.clear();\n\t}", "@DeleteMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<Void> deleteIngredient(@PathVariable Long id, @PathVariable Long recipeId){\n ingredientService.deleteIngredient(recipeId, id);\n return ResponseEntity.ok().headers(HttpHeadersUtil.deleteEntityAlert(ENTITY_NAME, id.toString())).build();\n }", "public static void unregister(Recipe recipe){\n try {\n Class craftingManagerClass = Class.forName(\"net.minecraft.server.\"+ GameVersion.getVersion().toString()+\".CraftingManager\");\n Class recipeClass = Class.forName(\"net.minecraft.server.\"+ GameVersion.getVersion().toString()+\".IRecipe\");\n Object craftingManager = ReflectionUtils.getStaticMethod(\"getInstance\", craftingManagerClass);\n Method nmsRecipesMethod = craftingManagerClass.getDeclaredMethod(\"getRecipes\");\n List<Object> newNmsRecipes = new ArrayList<>();\n List<Object> nmsRecipes = (List<Object>) nmsRecipesMethod.invoke(craftingManager);\n for(Object nr : nmsRecipes){\n Recipe recipeBukkit = (Recipe) ReflectionUtils.getMethod(\"toBukkitRecipe\", recipeClass, nr);\n if(compare(recipeBukkit, recipe)){\n continue;\n }\n newNmsRecipes.add(nr);\n }\n ReflectionUtils.setField(\"recipes\", craftingManagerClass, craftingManager, newNmsRecipes);\n } catch(ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n public JSONObject removeFood(JSONObject input) {\n int id = (Integer) input.get(\"id\");\r\n\r\n Refrigerator refrigerator = em.find(Refrigerator.class, id);\r\n if (refrigerator != null) {\r\n em.remove(refrigerator);\r\n }\r\n \r\n //Tra ket qua\r\n JSONObject result = new JSONObject();\r\n result.put(\"result\", \"Removed\");\r\n return result;\r\n }", "@FXML\n public void removeIngredFromCupboard(){\n try{\n Ingredient ingredientToRemove = IngredientsInCupboard.getSelectionModel().getSelectedItem();\n cupboardIngredients.remove(ingredientToRemove);\n //save the latest cupboard details to the file\n Data.<Ingredient>saveList(cupboardIngredients, cupboardFile);\n } catch (Exception e){\n //no ingredient selected in the IngredientsInCupboard listView\n e.printStackTrace();\n System.out.println(\"Issue removing ingredient from cupboad: \" + e.getMessage());\n plannerBox.errorDiaglogBox(\"Removing Ingredient\", \"There was an error when removing\" +\n \"ingredient from cupboard list\");\n }\n }", "protected abstract void removeItem();", "@Test\r\n public void testDeleteRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(recipe1.getName(), coffeeMaker.deleteRecipe(0));\r\n assertNull(coffeeMaker.deleteRecipe(0)); // Test already delete recipe\r\n }", "void removeProduct(Product product);", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n myIngredients.remove(i);\n updateIngredientListView();\n }", "@FXML\n\tpublic void deleteIngredient(ActionEvent event) {\n\t\tif (!txtDeleteIngredientName.getText().equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tboolean delete = restaurant.deleteIngredient(txtDeleteIngredientName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tingredientsOptions.remove(txtDeleteIngredientName.getText());\n\t\t\t\t\ttxtDeleteIngredientName.setText(\"\");\n\t\t\t\t}\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 guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\ttxtDeleteIngredientName.setText(null);\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "@Override\n\tpublic void removeIngredientQuantity(Ingredient ingredient, Integer removedValue){\n\t\tInteger newValue = getInventoryForAIngredient(ingredient) - removedValue;\n\t\tbeverageInventoryMap.put(ingredient, newValue);\n\t\tif(newValue<Constants.CRITICAL_LIMIT){\n\t\t\tSystem.out.println(String.format(Messages.INGREDIENT_RUNNING_LOW, ingredient.getDisplayName()));\n\t\t}\n\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n inMealRecipes.remove(i);\n adapterM.notifyDataSetChanged();\n }", "private void deleteRecipe(String recipeString) {\n\t\tUUID recipeID = UUID.fromString(recipeString);\n\t\tRecipeController.deleteLocalRecipe(recipeID, getApplicationContext());\n\t}", "void removeGift(Child child, Gift gift);", "public void onDelete(View v){\r\n // Calls delete ingredients and deletes the recipe\r\n int runId = getIntent().getExtras().getInt(\"run id\");\r\n deleteRunCoordinates(runId);\r\n getContentResolver().delete(ContentContract.RUNS_URI, ContentContract._ID + \"=\"+runId, null);\r\n setResult(Activity.RESULT_OK, new Intent());\r\n finish();\r\n }", "private void removeItemFromList(String nameStr) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(nameStr.toLowerCase())) {\n ingredientList.remove(i);\n return;\n }\n }\n }", "public void removeItem(int id);", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "@Override\n public void deleteRecipe(long id)\n {\n RecipeEntity recipeEntity = this.load(RecipeEntity.class, id);\n if (recipeEntity != null)\n this.delete(recipeEntity);\n }", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "void removePizza(Pizza p) {\n pizzas.remove(p);\n }", "public void remove( IAnswer answerToRemove );", "public Builder clearRecipe() {\n bitField0_ = (bitField0_ & ~0x00000002);\n recipe_ = null;\n if (recipeBuilder_ != null) {\n recipeBuilder_.dispose();\n recipeBuilder_ = null;\n }\n onChanged();\n return this;\n }", "void removeProduct(int position) throws ProductNotFoundException;", "public void deleteRecipe(int recipeId) {\n try {\n \t/*\n \t * recipeid\n \t * zamiast\n \t * userid\n \t */\n PreparedStatement preparedStatement = connection\n .prepareStatement(\"delete from recipe where recipeid=?\");\n // Parameters start with 1\n preparedStatement.setInt(1, recipeId);\n preparedStatement.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdeleteRecipe(recipeString);\n\t\t\t\t\tfinish();\n\t\t\t\t}", "protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void removeHasPart(WrappedIndividual oldHasPart);", "public void deleteRecipeFromRepository(Integer id) {\n\t\tlog.debug(\"Deleting recipe with id: \"+id+\" from repository, if it is present\");\n\t\trecipesRepo.deleteById(id);\n\t\tlog.debug(\"Requested recipe should be deleted\");\n\t}", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "public void deleteInterest(TXSemanticTag i);", "void removeOrderItem(OrderItem target);", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t// Get the global state\n\t\t\t\t\t\t\t\t\tGlobalApplication app = (GlobalApplication) getApplication();\n\n\t\t\t\t\t\t\t\t\t// Remove from ES\n\t\t\t\t\t\t\t\t\tNetworkHandler nh = new NetworkHandler();\n\t\t\t\t\t\t\t\t\tString id = recipes.get(position).getID();\n\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnh.deleteRecipe(id);\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Delete from the user\n\t\t\t\t\t\t\t\t\tapp.getCurrentUser().deleteRecipe(position);\n\n\t\t\t\t\t\t\t\t}", "ISlot remove(IStrongSlot target);", "public abstract void removeTurtle(int turtleID);", "@RequestMapping(value = \"/recipe/remove.do\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic DeleteRecipeResponse deleteRecipe(@RequestParam(\"recipeId\") String recipeId) {\n\t\tDeleteRecipeRequest request = new DeleteRecipeRequest();\n\t\tDeleteRecipeResponse response = null;\n\n\t\trequest.setRecipeId(Integer.parseInt(recipeId));\n\t\ttry {\n\t\t\tresponse = recipeJaxProxyService.deleteRecipe(request);\n\t\t\tlogger.debug(response.getCode());\n\t\t} catch (SoapFaultClientException sfce) {\n\t\t\tlogger.error(\"We sent an invalid message\", sfce);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Unexpected exception\", e);\n\t\t}\n\n\t\treturn response;\n\t\t\n\t}", "@Test\n public void deleteRecipeIngredient_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedIngredient = testDatabase.addRecipeIngredient(recipeIngredient);\n testDatabase.deleteRecipeIngredients(returnedIngredient);\n ArrayList<RecipeIngredient> allIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n boolean deleted = true;\n if(allIngredients != null){\n for(int i = 0; i < allIngredients.size(); i++){\n if(allIngredients.get(i).getIngredientID() == returnedIngredient){\n deleted = false;\n }\n }\n }\n assertEquals(\"deleteRecipeIngredient - Deletes From Database\", true, deleted);\n }", "public ITemplateStep removeStep(ITemplateStep stepToRemove);", "public void remove() {\n\n }", "public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }", "public void maybeRemove(RemoveRandom r, ObjectContainer container, ClientContext context);", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "public Bacteria remove(int i) {\n\t\tBacteria parent = getAtIndex(i);\n\t\tthis.inds.remove(i);\n\t\tpopSize--;\n\t\treturn parent;\n\t}", "@When ( \"I remove my personal representative (.+)\" )\n public void removeRep ( final String rep ) {\n setTextField( By.name( \"deleteRepresentative\" ), rep );\n final WebElement btn = driver.findElement( By.name( \"deleteRepresentativeSubmit\" ) );\n btn.click();\n }", "void removeHas(WrappedIndividual oldHas);", "int removeHabit(Habit habit);", "public void deleteFood() {\n\t\tif(!food.isEmpty()) {\n\t\t\tSystem.out.println(\"Choose one what you want delete food number.\");\n\t\t\tdisplayMessage();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tint select = scan.nextInt();\n\t\t\ttry {\n\t\t\t\tfood.remove(select - 1);\n\t\t\t\tSystem.out.println(\"Successfully deleted from refrigerator.\");\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"You chosen wrong number.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Stoarge is empty.\");\n\t\t}\n\t\t\n\t}", "void removeRelated(int i);", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "public boolean supprimerProduit(int id, Magasin mag);", "@Override\n public void onClick(View view) {\n mIngredients.remove(getAdapterPosition());\n\n // Update the items in the RecyclerView\n notifyItemRemoved(getAdapterPosition());\n notifyItemRangeChanged(getAdapterPosition(), mIngredients.size());\n }", "public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }", "public void remove () {}", "default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }", "void remove(Price Price);", "void removeHasHelmet(Integer oldHasHelmet);", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "public void bindIngredient(Ingredient ingredient){\n // Note: amount should be checked for a negative number when the add ingredient\n // button is clicked\n\n // Set the ingredient amount\n ingredientAmountEditText.setText(String.valueOf(ingredient.getAmount()));\n\n removeTextView.setText(\"X\");\n removeTextView.setClickable(true);\n\n // Set the measurement type that is displayed\n switch(ingredient.getType()){\n case TSP:\n measurementTypeTextView.setText(\"TSP\");\n break;\n case TBSP:\n measurementTypeTextView.setText(\"TBSP\");\n break;\n case GAL:\n measurementTypeTextView.setText(\"GAL\");\n break;\n case CUP:\n measurementTypeTextView.setText(\"CUP\");\n break;\n case QT:\n measurementTypeTextView.setText(\"QT\");\n break;\n case PT:\n measurementTypeTextView.setText(\"PT\");\n break;\n case LB:\n measurementTypeTextView.setText(\"LB\");\n break;\n default:\n measurementTypeTextView.setText(\" \");\n break;\n }\n\n // Set the ingredient name in all uppercase letters\n ingredientNameTextView.setText(ingredient.getName());\n\n // Give the remove button a listener that removes this instance of the\n // single ingredient layout\n removeTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Remove ingredient from our ArrayList\n mIngredients.remove(getAdapterPosition());\n\n // Update the items in the RecyclerView\n notifyItemRemoved(getAdapterPosition());\n notifyItemRangeChanged(getAdapterPosition(), mIngredients.size());\n }\n });\n }", "public void removeFruit(int i) {\n\t\tfruits.remove(i);\n\t}", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "void removeFeature(int i);", "void removeFeature(int i);", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void removeFromInventoryWheels(int amountOfWheels, String inputColor, String inputStandard, int inputType){\n }", "@Test\n\tpublic void testDeleteExistedRecipe() {\n\t\twhen(mockCoffeeMaker.getRecipes()).thenReturn(recipeList);\n\t\tassertEquals(\"Coffee\", mockCoffeeMaker.deleteRecipe(0));\n\t}", "@Override \n public void commandRemoveFood(int id, float x, float y) {\n\n }", "public void removeItem(Item iToRemove, int amount) {\n for (Item i : inventory) {\n if (iToRemove.getClass().equals(i.getClass())) {\n int tempQuantity = i.getQuantity() - amount;\n if (tempQuantity > 0) {\n i.setQuantity(tempQuantity);\n } else {\n inventory.remove(i);\n }\n }\n }\n }", "public void testRemove() {\r\n System.out.println(\"remove\");\r\n \r\n PartialCombinationIterator instance = null;\r\n Iterator<int[]> iterator = null;\r\n try {\r\n iterator = new PartialCombinationIterator(TestConstants.verySimpleReactionScheme, new int[] {1}, 1, 1);\r\n } catch (ReactionSchemeException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n } catch (SmiLibIOException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n } catch (SmiLibException ex) {\r\n ex.printStackTrace();\r\n fail(\"Unexpected exception was thrown.\");\r\n }\r\n \r\n try {\r\n iterator.remove();\r\n fail(\"No UnsupportedOperationException was thrown when executing remove().\");\r\n } catch (UnsupportedOperationException e) {\r\n }\r\n }", "public void remove() {\r\n super.remove();\r\n }", "public void rebajoIngredientes() {\n }", "public Book remove(String isbn13) {\r\n\t\t\r\n\r\n\t\treturn null;\r\n\t}", "void removeStock(int i);", "public boolean supprimerMagasin(int id);", "public Bike removeBike () {\n categorizeBikes(); // categorize all bikes based on their status\n Scanner in = new Scanner(System.in);\n System.out.println(\"\\nBikes with following numbers are available: \" + availableBikeIDs);\n System.out.print(\"\\nEnter the bike number you want to rent: \");\n System.out.println();\n int selectedID = in.nextInt();\n int ind = 0;\n for (Bike b : availableBikes) {\n if (b.getBikeID() == selectedID) {\n ind = this.bikes.indexOf(b); // get the index of selected bike\n //availableBikes.remove(b); // remove selected bike from available bikes\n }\n }\n\n return this.bikes.remove(ind); // remove and return selected bike\n }" ]
[ "0.7546928", "0.7186144", "0.6862263", "0.6736994", "0.6720478", "0.6657244", "0.66237247", "0.65703607", "0.64967614", "0.6460439", "0.6438788", "0.64351916", "0.62545264", "0.62425923", "0.6230416", "0.6148782", "0.6133035", "0.6085198", "0.6061368", "0.60190135", "0.5977563", "0.5961394", "0.59556496", "0.5946177", "0.5939365", "0.5927577", "0.5922813", "0.59022593", "0.587359", "0.582126", "0.58060056", "0.58043", "0.58029354", "0.5786281", "0.57804316", "0.57543296", "0.5742771", "0.57304144", "0.57103497", "0.5709324", "0.5708171", "0.57063437", "0.5697033", "0.5697033", "0.5697033", "0.5697033", "0.5697033", "0.5694947", "0.56735855", "0.5670774", "0.5656727", "0.565547", "0.5639514", "0.5630212", "0.5621209", "0.56134725", "0.559952", "0.55833024", "0.5577569", "0.55647504", "0.55515337", "0.55512726", "0.554109", "0.5529358", "0.55241513", "0.5517332", "0.55109423", "0.55106235", "0.5510305", "0.55096376", "0.55079633", "0.55062264", "0.550545", "0.55042636", "0.5502076", "0.55014884", "0.54989564", "0.54983044", "0.5489742", "0.5483997", "0.5483661", "0.5482331", "0.5482331", "0.5481618", "0.5481618", "0.5481618", "0.5481618", "0.5481618", "0.5481618", "0.5481618", "0.5480781", "0.54806805", "0.5479857", "0.5472342", "0.54635495", "0.5455605", "0.5447487", "0.5441556", "0.54415464", "0.54408103", "0.5434024" ]
0.0
-1
Construct json for notify the API Rest Mydashboard notification
private JSONObject constructJsonNotification( MassNotificationTaskConfig config, HtmlTemplate html, ResourceExtenderHistory resourceExtenderHistory, Map<String, Object> model ) { Map<String, Object> map = new HashMap< >( ); map.put( FormsExtendConstants.JSON_OBJECT, AppTemplateService.getTemplateFromStringFtl( config.getSubjectForDashboard( ), null, model ).getHtml( ) ); map.put( FormsExtendConstants.JSON_SENDER, config.getSenderForDashboard( ) ); map.put( FormsExtendConstants.JSON_MESSAGE, html.getHtml( ) ); map.put( FormsExtendConstants.JSON_ID_USER, resourceExtenderHistory.getUserGuid( ) ); return new JSONObject( map ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendNotify(JSONObject notification, String staffID) {\r\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(FCM_API, notification,\r\n new Response.Listener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n Toast.makeText(BookingListDetails.this, \"\"+ staffID + \" has been Notified!\", Toast.LENGTH_SHORT).show();\r\n Log.i(TAG, \"onResponse: \" + response);\r\n startActivity(new Intent(getApplicationContext(), AdminBookingList.class));\r\n finish();\r\n }\r\n },\r\n new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n Toast.makeText(BookingListDetails.this, \"Request error\", Toast.LENGTH_LONG).show();\r\n Log.i(TAG, \"onErrorResponse: Didn't work\");\r\n }\r\n }) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"Authorization\", serverKey);\r\n params.put(\"Content-Type\", contentType);\r\n return params;\r\n }\r\n };\r\n MySingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest);\r\n }", "@RequestMapping(method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createNotification(@RequestBody OrionAlert orionAlert, UriComponentsBuilder ucBuilder) {\r\n /* Se obtienen las entidades de la clave principal determinada por el campo DATA */\r\n List<Data> datos = orionAlert.getData();\r\n \r\n Map <String, String> eventsObserved = new HashMap <>();\r\n eventsObserved.put(\"precipitation\", \"Weather\");\r\n eventsObserved.put(\"relativeHumidity\", \"Weather\");\r\n eventsObserved.put(\"temperature\", \"Weather\");\r\n eventsObserved.put(\"windDirection\", \"Weather\");\r\n eventsObserved.put(\"windSpeed\", \"Weather\");\r\n eventsObserved.put(\"altitude\", \"Weather\");\r\n eventsObserved.put(\"barometricPressure\", \"Weather\");\r\n eventsObserved.put(\"luminosity\", \"Weather\");\r\n eventsObserved.put(\"CO\",\"Environment\");\r\n eventsObserved.put(\"NO2\",\"Environment\");\r\n eventsObserved.put(\"NOx\",\"Environment\");\r\n eventsObserved.put(\"SO2\",\"Environment\");\r\n eventsObserved.put(\"O3\",\"Environment\");\r\n eventsObserved.put(\"PM10\",\"Environment\");\r\n eventsObserved.put(\"TVOC\",\"Environment\");\r\n eventsObserved.put(\"CO2\",\"Environment\");\r\n \r\n for(Data data : datos){\r\n if(data.getType().equals(\"AirQualityObserved\")){\r\n for(Map.Entry<String, String> entry : eventsObserved.entrySet() ){\r\n Alert alert = new Alert(data, entry.getKey(), entry.getValue());\r\n if(alert.getFound())\r\n alertRepository.save(alert);\r\n }\r\n }else if(data.getType().equals(\"Alert\")){\r\n alertRepository.save(new Alert(data, \"\", \"\"));\r\n }\r\n }\r\n \r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }", "public String generateNotificationResponseMessage(NotificationResponseBo response);", "public String toJSON(){\n Map<String, Object> foo = new HashMap<String, Object>();\n foo.put(\"message\", \"Audit message generated\");\n foo.put(\"eventIndex\", index);\n foo.put(\"eventTimestamp\", Instant.now().toEpochMilli());\n try {\n // Convert the Map to JSON and send the raw JSON as the message.\n // The Audit appender formatter picks that json up and pubishes just the JSON to the topic\n return new ObjectMapper().writeValueAsString(foo);\n } catch (JsonProcessingException e) {\n // should never happen in this example\n throw new RuntimeException(\"impossible error \", e);\n }\n\n }", "private void sendNotification(JSONObject notification, final String staffID) {\r\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(FCM_API, notification,\r\n new Response.Listener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject response) {\r\n Toast.makeText(BookingListDetails.this, \"\"+ staffID + \" has been Notified!\", Toast.LENGTH_SHORT).show();\r\n Log.i(TAG, \"onResponse: \" + response);\r\n }\r\n },\r\n new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n Toast.makeText(BookingListDetails.this, \"Request error\", Toast.LENGTH_LONG).show();\r\n Log.i(TAG, \"onErrorResponse: Didn't work\");\r\n }\r\n }) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"Authorization\", serverKey);\r\n params.put(\"Content-Type\", contentType);\r\n return params;\r\n }\r\n };\r\n MySingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest);\r\n }", "public abstract void notify(JSONObject message);", "@Override\r\n public String notification(boolean status) {\r\n if (status == true) {\r\n return \"Sepatu Api Terpasang\";\r\n } else {\r\n return \"Sepatu Api Dilepas\";\r\n }\r\n }", "public void invokeNotification(){\r\n\t\tApplication application = eurekaClient.getApplication(\"NOTIFICATION-SERVICE\");\r\n\t InstanceInfo instanceInfo = application.getInstances().get(0);\r\n\t String url = \"http://\"+instanceInfo.getIPAddr()+ \":\"+instanceInfo.getPort()+\"/notification-service/notify\";\r\n\t System.out.println(\"URL\" + url); \r\n\t Notification notificationMockObject = new Notification();\r\n\t String notificationId = restTemplate.postForObject(url, notificationMockObject, String.class);\r\n\t System.out.println(\"RESPONSE \" + notificationId);\r\n\t}", "@Override\r\n public void onClick(View v) {\n try {\r\n postDatatoServer(\"accept_request\", notification.toJSON());\r\n fetchDatafromServer(\"notifications\");\r\n } \r\n catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public JSONObject buildJson() {\n Map<String, String> reqData = new HashMap<>();\n reqData.put(\"id\", id);\n reqData.put(\"summary\", summary);\n reqData.put(\"location\", location);\n reqData.put(\"description\", description);\n reqData.put(\"color\", color);\n reqData.put(\"emailReminderMinutes\", Integer.toString(emailReminderMinutes));\n reqData.put(\"repetitionInterval\", Integer.toString(repetitionInterval));\n reqData.put(\"startDate\", startDate);\n reqData.put(\"endDate\", endDate);\n return new JSONObject(reqData);\n }", "public interface INotification {\n\n String WebService = \"https://fcm.googleapis.com/\";\n\n @Headers({\n \"Content-Type:application/json\",\n \"Authorization:key=AAAAnzTOKs8:APA91bFZ1fSBTifV40epf-sRpLrH8woY-ZgVWCHFcvHnokfbP3HSt8lUj2AXc0KkHEn3jfV1_SlhCzjTurAp6wbsDJhOjnsMNAFg5UrRuel0nJuJEPdgcaxgo20OPxMdWgKqcq3O0s5t\"\n })\n @POST(\"fcm/send\")\n Call<ReturnMessage> enviarNotificacao(@Body Sender body);\n\n\n //******************* SERVICE RETROFIT ******************************\n OkHttpClient okHttpClient = new OkHttpClient().newBuilder()\n .connectTimeout(15, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(15, TimeUnit.SECONDS)\n .build();\n\n public static final Retrofit retrofit = new Retrofit.Builder()\n\n .baseUrl(WebService)\n .client(okHttpClient)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n //*******************************************************************\n\n\n}", "public String generateNotificationMessage(NotificationBo notification);", "public void sendNotification(String str, String str2, String str3, String str4) {\n this.apiService.sendNotification(new Sender(new Data(FirebaseAuth.getInstance().getCurrentUser().getUid(), str3 + \":\" + str4, \"New \" + getIntent().getStringExtra(\"noti\"), str2), str)).enqueue(new Callback<MyResponse>() {\n public void onFailure(Call<MyResponse> call, Throwable th) {\n }\n\n public void onResponse(Call<MyResponse> call, Response<MyResponse> response) {\n if (response.code() == 200) {\n int i = response.body().success;\n }\n }\n });\n }", "@RequestMapping(value = \"/api/v1/device/notify\", method = RequestMethod.POST, consumes = \"application/json\", produces = \"application/json\")\n\tpublic RestResponse notify(@RequestBody NotifyConfigurationRequest request) {\n\t\tRestResponse response = new RestResponse();\n\n\t\ttry {\n\t\t\tAuthenticatedUser user = this.authenticate(request.getCredentials(), EnumRole.ROLE_USER);\n\n\t\t\tdeviceRepository.notifyConfiguration(user.getKey(), request.getDeviceKey(), request.getVersion(),\n\t\t\t\t\t\t\tnew DateTime(request.getUpdatedOn()));\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(ex.getMessage(), ex);\n\n\t\t\tresponse.add(this.getError(ex));\n\t\t}\n\n\t\treturn response;\n\t}", "@Override\n public String build() {\n final Result result = build.getResult();\n\n // Prepare title\n final String title = String.format(\"Job: %s Status: %s\", getJobName(), result != null ? result.toString() : \"None\");\n // Prepare text\n final String text = String.format(\"%s %s %s [View](%s)\", ICON_STATUS.get(build.getResult()), getCause(),\n getTime(), getUrl());\n\n // Prepare message for attachments\n final JsonObject msg = new JsonObject();\n msg.addProperty(\"text\", text);\n msg.addProperty(\"color\", ifSuccess() ? \"#228a00\" : \"#8B0000\");\n msg.addProperty(\"title\", title);\n\n // Prepare attachments\n final JsonArray attachments = new JsonArray();\n attachments.add(msg);\n\n // Prepare final json\n final JsonObject json = new JsonObject();\n json.addProperty(\"username\", \"Jenkins\");\n json.add(\"attachments\", attachments);\n\n return json.toString();\n }", "public void getNotificationApi() {\n mDialog.show();\n\n Log.e(\"notification_resp\", commonData.getString(USER_ID));\n Log.e(\"notification_resp\", commonData.getString(TOKEN));\n\n\n Call call = register_interfac.getNotifications(commonData.getString(USER_ID), commonData.getString(TOKEN));\n\n call.enqueue(new Callback() {\n\n @Override\n public void onResponse(Call call, Response response) {\n Log.e(\"notification_resp\", response.raw() + \"\");\n\n if (response.isSuccessful() && response.body() != null) {\n mDialog.dismiss();\n\n Log.e(\"notification_resp_succ\", new Gson().toJson(response.body()));\n String resp = new Gson().toJson(response.body());\n\n Log.e(\"notification_resp1\", resp);\n\n //getAllPosts = new Gson().fromJson(resp, GetAllPost.class);\n notificationResponse = new Gson().fromJson(resp, NotificationResponse.class);\n\n getNotificationData = notificationResponse.getNotificationRespLists();\n // getAllPost_data = getAllPosts.getObject();\n\n if (getNotificationData.size()>0) {\n rv_3notice.setVisibility(View.VISIBLE);\n tvNoDataFound.setVisibility(View.GONE);\n\n notice3_adapter = new Notice3_Adapter(getActivity(), getNotificationData);\n rv_3notice.setAdapter(notice3_adapter);\n }else {\n tvNoDataFound.setVisibility(View.VISIBLE);\n rv_3notice.setVisibility(View.GONE);\n }\n }\n }\n\n @Override\n public void onFailure(Call call, Throwable t) {\n mDialog.dismiss();\n Log.e(\"onFailure >>>>\", \"\" + t.getMessage());\n\n }\n });\n }", "public interface SendNotificationService {\n @FormUrlEncoded\n @POST(\"sendNotification3.php\")\n Call<SendNotificationApiResponse> sendNotification(@Field(\"to\") String to, @Field(\"message\") String message,\n @Field(\"title\") String title, @Field(\"time\") String time,\n @Field(\"sender\") String sender);\n}", "private void sendNotification() {\n }", "private Notifications createNotifications(JsonNode node) {\n Notifications n = new Notifications();\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> entry = it.next();\n n.addAll(this.createNotifications(entry.getKey(), entry.getValue()));\n }\n return n;\n }", "@Override\r\n public void onClick(View v) {\n try {\r\n postDatatoServer(\"reject_request\", notification.toJSON());\r\n fetchDatafromServer(\"notifications\");\r\n } \r\n catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic String requstPDDDataFlowNotify(MYNotifyDataFlowReq req) {\n\t\t// TODO Auto-generated method stub\n\t\tString status = req.getStatus().equals(\"4\")?\"SUCCESS\":\"FAIL\";\n\t\t\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\t\t\n\t\tmap.put(\"order_sn\", req.getOutTradeNo());\n\t\tmap.put(\"outer_order_sn\", req.getTaskID());\n\t\tmap.put(\"status\", status);\n\t\tmap.put(\"mall_id\", \"637786\");\n\t\tDate date = new Date();\n\t\tString timestamp = (date.getTime()/1000-60)+\"\";\n\t\tmap.put(\"type\", \"pdd.virtual.mobile.charge.notify\");\n\t\tmap.put(\"data_type\", \"JSON\");\n\t\tmap.put(\"timestamp\", timestamp);\n\t\t\t\t\n\t\tString sign = maiYuanService.PDD_Md5(map,Util.getMaiYuanConfig(\"PDD_SecretKey\"));\n\t\t\t\t\n\t\tString PDD_Url=\"http://open.yangkeduo.com/api/router?type=pdd.virtual.mobile.charge.notify&data_type=JSON&timestamp=\"+timestamp\n\t\t\t\t\t\t+\"&order_sn=\"+req.getOutTradeNo()\n\t\t\t\t\t\t+\"&outer_order_sn=\"+req.getTaskID()\n\t\t\t\t\t\t+\"&status=\"+status\n\t\t\t\t\t\t+\"&mall_id=637786&sign=\"+sign;\n\t\t\t\t\n\t\ttry {\n\t\t\tSystem.out.println(\"拼多多请求:\"+PDD_Url);\n\t\t\tString resp = Request.Post(PDD_Url).execute().returnContent().asString();\n\t\t\tSystem.out.println(\"拼多多回调数据:\"+resp);\n\t\t\treturn resp;\n\t\t\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 \"FAIL\";\n\t}", "@Override\n public void onResponse(Call<ArrayList<String>> call, retrofit2.Response<ArrayList<String>> response) {\n int statusCode = response.code();\n\n if(dialog != null)\n {\n dialog.dismiss();\n }\n try{\n if (statusCode == 200) {\n\n ArrayList<String> list = response.body();\n\n Toast.makeText(OneHotelOtheNotification.this, \"Notification Send Successfully\", Toast.LENGTH_SHORT).show();\n\n\n\n //sendEmailattache();\n app.zingo.com.billgenerate.Model.NotificationManager nf = new app.zingo.com.billgenerate.Model.NotificationManager();\n nf.setNotificationText(fireBaseModel.getTitle());\n nf.setNotificationFor(fireBaseModel.getMessage());\n nf.setHotelId(fireBaseModel.getHotelId());\n savenotification(nf);\n\n\n\n } else {\n\n Toast.makeText(OneHotelOtheNotification.this, \" failed due to status code:\" + statusCode, Toast.LENGTH_SHORT).show();\n }\n }catch (Exception e){\n if(dialog != null)\n {\n dialog.dismiss();\n }\n e.printStackTrace();\n }\n\n\n// callGetStartEnd();\n }", "protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }", "public abstract void sendNotification(String sendFrom, List<Object> sendTo, String sendToProperty, NoticeTemplate noticeTemplate, Object noticeData);", "@RequestMapping(value = \"/broadband-user/system/notification/create\")\n\tpublic String toNotificationCreate(Model model) {\n\n\t\tmodel.addAttribute(\"notification\", new Notification());\n\t\tmodel.addAttribute(\"panelheading\", \"Notification Create\");\n\t\tmodel.addAttribute(\"action\", \"/broadband-user/system/notification/create\");\n\n\t\treturn \"broadband-user/system/notification\";\n\t}", "public String getMessageInJsonFormat(){\n return messageInJsonFormat;\n }", "private void sendPushNotification(JSONObject json){\n //Display in log for debugging\n Log.e(TAG, \"Notification JSON: \"+json.toString() );\n try{\n //Fetching the data\n JSONObject data=json.getJSONObject(\"data\");\n\n //Parsing the data recieved\n String title=data.getString(\"title\");\n String message=data.getString(\"message\");\n String ImageUrl=data.getString(\"image\");\n\n //Notification Manager object\n MyNotificationManager mNotificationManager= new MyNotificationManager(getApplicationContext());\n\n //creating an intent for the notification\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n\n //Action when no image is present\n if(ImageUrl.equals(\"null\")){\n //Small notification\n mNotificationManager.showSmallNotification(title,message,intent);\n\n }else {\n //Big notification with image\n mNotificationManager.showBigNotification(title,message,ImageUrl,intent);\n }\n }catch (JSONException e){\n Log.e(TAG, \"JSON EXCEPTION: \"+e.getMessage() );\n }catch (Exception e){\n Log.e(TAG, \"Exception: \"+e.getMessage() );\n }\n }", "private void sendMessageToNews(){\r\n JSONObject jPayload = new JSONObject();\r\n JSONObject jNotification = new JSONObject();\r\n try {\r\n jNotification.put(\"message\", \"Leaderboard Activity\");\r\n jNotification.put(\"body\", \"New high score!\");\r\n jNotification.put(\"sound\", \"default\");\r\n jNotification.put(\"badge\", \"1\");\r\n jNotification.put(\"click_action\", \"OPEN_ACTIVITY_1\");\r\n\r\n // Populate the Payload object.\r\n // Note that \"to\" is a topic, not a token representing an app instance\r\n jPayload.put(\"to\", \"/topics/high_score\");\r\n jPayload.put(\"priority\", \"high\");\r\n jPayload.put(\"notification\", jNotification);\r\n\r\n // Open the HTTP connection and send the payload\r\n URL url = new URL(\"https://fcm.googleapis.com/fcm/send\");\r\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\r\n conn.setRequestMethod(\"POST\");\r\n conn.setRequestProperty(\"Authorization\", SERVER_KEY);\r\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\r\n conn.setDoOutput(true);\r\n\r\n // Send FCM message content.\r\n OutputStream outputStream = conn.getOutputStream();\r\n outputStream.write(jPayload.toString().getBytes());\r\n outputStream.close();\r\n\r\n // Read FCM response.\r\n InputStream inputStream = conn.getInputStream();\r\n final String resp = convertStreamToString(inputStream);\r\n\r\n Handler h = new Handler(Looper.getMainLooper());\r\n h.post(new Runnable() {\r\n @Override\r\n public void run() {\r\n Log.e(TAG, \"run: \" + resp);\r\n Toast.makeText(getActivity(),resp,Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n } catch (JSONException | IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public JSONObject b() throws JSONException {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"header\", UTrack.getInstance(this.f81249b).getHeader());\n if (InAppMessageManager.f81176a) {\n jSONObject.put(\"pmode\", PushConstants.PUSH_TYPE_NOTIFY);\n } else {\n jSONObject.put(\"pmode\", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);\n }\n return jSONObject;\n }", "@GetMapping(\"/publishJson\")\n\tpublic String publishMessage() {\n\t\n\t\tfinal String uri = \"http://localhost:8080/getBooks\";\n\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Object> responseEntity = restTemplate.getForEntity(uri, Object.class);\n \n\t\t// We have changed the Kafka publisher config to handle serialization\n\t\t// TODO: handle deserialising both string and Json together\n\t\t\n\t\tkafkaTemplate.send(topic, responseEntity.getBody() );\n\t\treturn \"Json Data published\";\n\t}", "@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Notification [id=\" + id + \", dateOfAdded=\" + dateOfAdded + \", notificationType=\" + notificationType\n\t\t\t\t+ \", notificationText=\" + notificationText + \", isActive=\" + isActive + \"]\";\n\t}", "public interface APIClient {\n @POST(\"fcm/devices/partner/\")\n Call<FCMDeviceResponse> registerDevice(@Body FCMDeviceBody body);\n\n @POST(\"respond/\")\n Call<ResponseBody> respondToken(@Body TokenRespondBody body);\n\n @POST(\"driver/start-shift/\")\n Call<ResponseBody> startShift(@Body UsernameBody body);\n\n @PATCH\n Call<UpdateDeliveryResponse> updateDelivery(@Url String url, @Body UpdateDeliveryBody body);\n}", "@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }", "private void postNotification(RoutingContext routingContext) {\n String body = routingContext.getBodyAsString();\n\n String response = \"\";\n \n try {\n // Send FCM message content.\n OutputStream outputStream;\n outputStream = fcmConn.getOutputStream();\n outputStream.write(body.getBytes());\n\n // Read FCM response.\n InputStream inputStream = fcmConn.getInputStream();\n response = IOUtils.toString(inputStream);\n logger.debug(response);\n\n response(routingContext, 201, response);\n\n } catch (IOException e) {\n System.out.println(\"Unable to send FCM message.\");\n System.out.println(\"Please ensure that API_KEY has been replaced by the server \" +\n \"API key, and that the device's registration token is correct (if specified).\");\n logger.debug(e.getMessage());\n \n JsonObject obj = new JsonObject();\n obj.put(\"error\", e.getMessage());\n \n response(routingContext, 404, obj);\n } \n \n }", "public JsonObject toJson(){\n JsonObject json = new JsonObject();\n if(username != null){\n json.addProperty(\"username\" , username);\n }\n json.addProperty(\"title\", title);\n json.addProperty(\"description\", description);\n json.addProperty(\"date\", date);\n json.addProperty(\"alarm\", alarm);\n json.addProperty(\"alert_before\", alert_before);\n json.addProperty(\"location\", location);\n\n return json;\n }", "public void sendFailedNotificationToClient(Map<String, String> dataForStoreOrder){\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n String serverAddress = \"http://dev.intaresta.com/smartsend/rest_controller/send_failed_notification_to_client\";\n\n pDialog.setMessage(\"Please Wait....\");\n pDialog.setTitle(\"Proccessing\");\n pDialog.setCancelable(false);\n showDialog();\n\n CustomRequest sendFailedNotificationToClientRequest = new CustomRequest(Request.Method.POST,\n serverAddress, dataForStoreOrder , new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject jObj) {\n hideDialog();\n\n try {\n boolean error = jObj.getBoolean(\"error\");\n\n if(!error){\n String successMessage = jObj.getString(\"success_message\");\n Toast.makeText(ctx, \"Success:\" + successMessage, Toast.LENGTH_LONG).show();\n\n }else{\n String errorMessage = jObj.getString(\"error_message\");\n Toast.makeText(ctx, \"Error Order: \"+errorMessage, Toast.LENGTH_LONG).show();\n connectivityDetector.showAlertDialog(ctx, \"Order Empty\", errorMessage);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(ctx, \"(2SO) Json catch error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n finish();\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Login Error\", \"Login Error: \" + error.getMessage());\n Toast.makeText(ctx,\n \" (2SO) Error Response: \"+ error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n connectivityDetector.showAlertDialog(ctx, \"Try Again\", \"Connection Failed\");\n finish();\n }\n });\n\n // Adding request to request queue\n Volley.newRequestQueue(ctx).add(sendFailedNotificationToClientRequest);\n }", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}", "private void projectListWork(){\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"https://platform.hurify.co/project/viewproject\", new Response.Listener<String>() {\n\n\n @Override\n public void onResponse(String response) {\n //response=\"{\\\"success\\\":\\\"1\\\", \\\"message\\\": {\\\"phantomPower\\\": {\\\"HIVEPIE-26862\\\": [{\\\"socket\\\": \\\"1\\\", \\\"PowerSavingPerMonth\\\": \\\"11.07852\\\", \\\"CostSavingPerMonth\\\": \\\"1.325376\\\"}, {\\\"socket\\\": \\\"2\\\", \\\"PowerSavingPerMonth\\\": \\\"114.319999999999999\\\", \\\"CostSavingPerMonth\\\": \\\"0.6626879999999999\\\"}, {\\\"socket\\\": \\\"3\\\", \\\"PowerSavingPerMonth\\\": \\\"1117.1987654321\\\", \\\"CostSavingPerMonth\\\": \\\"1.10448\\\"}, {\\\"socket\\\": \\\"4\\\", \\\"PowerSavingPerMonth\\\": \\\"23425.1250490876\\\", \\\"CostSavingPerMonth\\\": \\\"0.773136\\\"}]}}}\";\n\n response= \"{\\\"success\\\":1,\\\"message\\\":[{\\\"id\\\":35,\\\"email\\\":\\\"[email protected]\\\",\\\"project_name\\\":\\\"hur\\\",\\\"technology\\\":\\\"react js\\\",\\\"category\\\":\\\"Mobile,Webui\\\",\\\"price\\\":5,\\\"experience_level\\\":\\\"Beginner\\\",\\\"estimated_time\\\":30,\\\"project_description\\\":\\\"gfggfgrtghtrwgtrw\\\",\\\"project_creation_date\\\":\\\"2017-09-29T11:27:59.000Z\\\",\\\"abstract\\\":\\\"dewfd\\\",\\\"approval_flag\\\":1,\\\"days\\\":7,\\\"applications\\\":0,\\\"status\\\":\\\"Submitted\\\",\\\"verify\\\":\\\"User\\\"},{\\\"id\\\":36,\\\"email\\\":\\\"[email protected]\\\",\\\"project_name\\\":\\\"blockchain\\\",\\\"technology\\\":\\\"react js\\\",\\\"category\\\":\\\"Mobile,Webui\\\",\\\"price\\\":5,\\\"experience_level\\\":\\\"Beginner\\\",\\\"estimated_time\\\":30,\\\"project_description\\\":\\\"gfggfgrtghtrwgtrw\\\",\\\"project_creation_date\\\":\\\"2017-09-29T11:27:59.000Z\\\",\\\"abstract\\\":\\\"dewfd\\\",\\\"approval_flag\\\":1,\\\"days\\\":7,\\\"applications\\\":0,\\\"status\\\":\\\"Open\\\",\\\"verify\\\":\\\"User\\\"}]}\";\n\n\n\n\n try {\n JSONObject jsonObject = new JSONObject(response);\n Log.d(\"res\",response+\"\");\n int success = jsonObject.getInt(\"success\");\n Log.d(\"phantom success\",success+\"\");\n if (success == 1) {\n\n JSONArray jsonArray=jsonObject.optJSONArray(\"message\");\n for (int i=0;i<jsonArray.length();i++){\n\n JSONObject jsonObject3=jsonArray.getJSONObject(i);\n //String socket=jsonObject3.optString(\"socket\");\n int id=jsonObject3.getInt(\"id\");\n String ProjectName=jsonObject3.optString(\"project_name\");\n String Technology=jsonObject3.optString(\"technology\");\n String Category=jsonObject3.optString(\"category\");\n String Price=jsonObject3.optString(\"price\");\n String ExpertLevel=jsonObject3.optString(\"experience_level\");\n String EstTime=jsonObject3.optString(\"estimated_time\");\n String ProjectAbstract=jsonObject3.optString(\"abstract\");\n String DayValue=jsonObject3.optString(\"days\");\n String applicationCount=jsonObject3.optString(\"applications\");\n String status=jsonObject3.optString(\"status\");\n String verify=jsonObject3.optString(\"verify\");\n\n if(status.equals(\"Submitted\"))\n {\n ProjectInfoWorkModel model=new ProjectInfoWorkModel(id,ProjectName,DayValue,Technology,Category,ProjectAbstract,Price,ExpertLevel,EstTime,applicationCount,status,verify);\n modelList.add(model);\n adapter.notifyDataSetChanged();\n }else {\n ProjectInfoWorkModel model=new ProjectInfoWorkModel(id,ProjectName,DayValue,Technology,Category,ProjectAbstract,Price,ExpertLevel,EstTime,applicationCount,status);\n modelList.add(model);\n adapter.notifyDataSetChanged();\n }\n\n }\n\n\n } else {\n txtlisterror.setText(\"No Posted Project Till Now\");\n txtlisterror.setVisibility(View.VISIBLE);\n Toast.makeText(getActivity(),\"nothing\",Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n if(error.getMessage()==null) {\n Toast.makeText(getActivity(), \"Server down try after some time\", Toast.LENGTH_LONG).show();\n }else {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }\n ){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n\n Map<String,String> params=new HashMap<>();\n params.put(\"email\", email);\n Log.d(\"json_uuidf\", email);\n return params;\n }\n };\n RequestQueue requestQueue= Volley.newRequestQueue(getContext());\n requestQueue.add(stringRequest);\n\n }", "@Override\r\n\tpublic void sendGeneralNotification() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}", "void notifySuccess(final List<ShotBO> response);", "@Override\n\t\t\t\t\tpublic void onResponse(String response) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString responseObj =(String)response;\n\t\t\t\t\t\tJSONObject obj,resObj;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t obj = new JSONObject(responseObj);\n\t\t\t\t\t\t\t resObj = obj.getJSONObject(\"result\");\n\t\t\t\t\t\t\t String message = obj.getString(\"message\");\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t id = resObj.getInt(\"id\");\n\t\t\t\t\t\t\t Okler.getInstance().getPhysioMedBean().setOrder_id(\"\"+id);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UsersDataBean ubean = Utilities.getCurrentUserFromSharedPref(Physiotherapy.this);\n\t\t\t\t\t\t\t\tint cust_id = ubean.getId();\n\t\t\t\t\t\t\t\tString customer_name = ubean.getFname();\n\t\t\t\t\t\t\t\tString email = ubean.getEmail();\n\t\t\t\t\t\t\t\tString salutation = ubean.getSalutation();\n\t\t\t\t\t\t\t\tif(salutation==null)\n\t\t\t\t\t\t\t\t\tsalutation=\"\";\n\t\t\t\t\t\t\t\tif(salutation.equals(\"null\"))\n\t\t\t\t\t\t\t\t\tsalutation=\"\";\n\t\t\t\t\t\t\t\t// Physiotherapy service booking inserted successfully\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(message.equals(\"Physiotherapy service booking inserted successfully\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString relation1, service1;\n\t\t\t\t\t\t\t\t\tif(relation.equals(\"Relation\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\trelation1 = \"\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\trelation1 = relation;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(service.equals(\"Service Required For\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tservice1 = \"\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tservice1 = service;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcustomer_name = URLEncoder.encode(\n\t\t\t\t\t\t\t\t\t\t\tcustomer_name,\"UTF-8\");\n\t\t\t\t\t\t\t\t\tsalutation = URLEncoder.encode(\n\t\t\t\t\t\t\t\t\t\t\tsalutation, \"UTF-8\");\n\t\t\t\t\t\t\t\t\trelation1 = URLEncoder.encode(\n\t\t\t\t\t\t\t\t\t\t\trelation1, \"UTF-8\");\n\t\t\t\t\t\t\t\t\tservice1 = URLEncoder.encode(\n\t\t\t\t\t\t\t\t\t\t\tservice1, \"UTF-8\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString order_medical_email = getResources().getString(R.string.serverUrl)+getResources().getString(R.string.send_email_order_url)+\"cust_id=\"+cust_id+\"&salutation=\"+salutation+\"&customer_name=\"+customer_name+\"&email=\"+email+\"&required_type=\"+3+\"&appointment_date=\"+From+\"&appointment_end_date=\"+to+\"&relation=\"+relation1+\"&reason=\"+service1+\"&booking_id=\"+id;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tWebJsonObjectRequest webObjReq=new WebJsonObjectRequest(Method.GET, order_medical_email, new JSONObject(),new Response.Listener<JSONObject>() \n\t\t\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onResponse(JSONObject response) \n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tLog.i(\"email\", \"mail sent... \");\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t},new Response.ErrorListener() \n\t\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.i(\"email\", \"mail not sent... \");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tVolleyRequest.addJsonObjectRequest(getApplicationContext(),webObjReq);\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 (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//docCount=responseObj.getInt(\"TotalCount\");\n\t\t\t\t\t\tcatch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t//\tresponse_from = responseObj.getString(\"message\");\n\t\t\t\t\t\tLog.i(\"response\", responseObj);\n\t\t\t\t\t\t//id = result.getString(\"id\");\n\t\t\t\t\t\t//Okler.getInstance().getPhysioMedBean().setOrder_id(id);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tshowProgress(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\tIntent in = new Intent(Physiotherapy.this, MyOrderMS_History.class);\n\t\t\t\t\t\tin.putExtra(\"value\", 2);\n\t\t\t\t\t\tin.putExtra(\"orderId\", id);\n\t\t\t\t\t\tstartActivity(in);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t}", "public static String getNotificaciones() {\n\t\treturn getServer()+\"wsagenda/v1/notificaciones\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}", "@GET\n @Path(\"{thingName}/{status}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String recieveAlarm(@PathParam(\"thingName\") String thingName, \n @PathParam(\"status\") String status,@Context UriInfo info) {\n\n MultivaluedMap queryMap = info.getQueryParameters();\n Iterator itr = queryMap.keySet().iterator();\n HashMap<String, String> dataMap = new HashMap<>(); \n while(itr.hasNext()){\n Object key = itr.next();\n Object value = queryMap.getFirst(key);\n dataMap.put(key.toString(), value.toString());\n }\n ThingInfoMap thingInfoMap = new ThingInfoMap(thingName, new Timestamp(new Date().getTime()).toString(),status);\n thingInfoMap.setContent(dataMap);\n \n int alarmID = database.addAlarm(thingInfoMap);\n Dweet newDweet;\n if(alarmID != -1){\n thingInfoMap.setAlarmID(alarmID);\n newDweet = new Dweet(\"succeeded\", \"sending\", \"alarm\", thingInfoMap);\n newDweet.setTo(\"myMobileA\"); // it's not included in database\n String warningMsg = gson.toJson(newDweet);\n //send alarm to mobile use GCM\n sendToMobileByGCM(warningMsg);\n return warningMsg;\n } else {\n newDweet = new Dweet(\"failed\", \"alarm is failed to added\");\n return gson.toJson(newDweet);\n }\n\n }", "public void notifySlackOnCreation(Map<String, String> data, String channel) throws IOException {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n this.getClass().getClassLoader().getResourceAsStream(TemplatePaths.DEMO_SCHEDULED).transferTo(outputStream);\n\n String template = outputStream.toString(StandardCharsets.UTF_8);\n\n /* Compile Template */\n String payload = Mustache.compiler().compile(template).execute(data);\n String secret = slackWebhookUrlConfiguration.getSecrets().get(channel);\n\n ClientResponse clientResponse = webClient.post()\n .uri(secret)\n .body(BodyInserters.fromValue(payload))\n .exchange()\n .block();\n }", "private void sendNotification(Map<String, String> serverData) {\n Intent intent = new Intent(serverData.get(\"click_action\"));\n String title = serverData.get(\"title\");\n String body = serverData.get(\"body\");\n intent.putExtra(\"title\",title);\n intent.putExtra(\"body\",body);\n intent.putExtra(\"order\" , serverData.get(\"order\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0 /* request code */, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n long[] pattern = {500,500,500,500,500};\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ok)\n .setContentTitle(serverData.get(\"title\"))\n .setContentText(serverData.get(\"body\"))\n .setAutoCancel(true)\n .setVibrate(pattern)\n .setLights(Color.BLUE,1,1)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0 , notificationBuilder.build());\n }", "public interface AboutUnivStarService {\n\n @POST(\"/v1/m/user/setting/about\")\n Observable<AboutUnivStarBean> loadAboutUnivStarMessage();\n}", "public void receivePushNotification() {\n mBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n\n // checking for type intent filter\n if (intent.getAction().equals(Config.REGISTRATION_COMPLETE)) {\n // FCM successfully registered\n // now subscribe to `global` topic to receive app wide notifications\n FirebaseMessaging.getInstance().subscribeToTopic(Config.TOPIC_GLOBAL);\n\n\n } else if (intent.getAction().equals(Config.PUSH_NOTIFICATION)) {\n // new push notification is received\n\n String message = intent.getStringExtra(\"message\");\n\n String JSON_DATA = sessionManager.getPushNotification();\n\n try {\n JSONObject jsonObject = new JSONObject(JSON_DATA);\n\n if (jsonObject.getJSONObject(\"custom\").has(\"chat_status\") && jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getString(\"status\").equals(\"New message\")) {\n\n //getChatConversationList();\n String cumessage = jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getString(\"message\");\n ReceiveDateModel receiveDateModel;//=new ReceiveDateModel();\n String dateResp = String.valueOf(jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getJSONObject(\"received_date_time\"));\n changeChatIcon(1);\n //Resumes the Fragement and Gets the data from Api\n Fragment fragment = myAdapter.getFragment(2);\n if (fragment != null) {\n //fragment.onResume();\n fragment.setUserVisibleHint(true);\n }\n }\n if (jsonObject.getJSONObject(\"custom\").has(\"match_status\") && jsonObject.getJSONObject(\"custom\").getJSONObject(\"match_status\").getString(\"match_status\").equals(\"Yes\")){\n changeChatIcon(1);\n //Resumes the Fragement and Gets the data from Api\n Fragment fragment = myAdapter.getFragment(2);\n if (fragment != null) {\n //fragment.onResume();\n fragment.setUserVisibleHint(true);\n }\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n };\n }", "public String getNotification() {\n return notification;\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 String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }", "private void sendMyMessage(JSONObject jsonMsg) {\n String link = \"http://\"+ip+\":8065/api/v1/channels/\"+channel_id+\"/create\";\n String response;\n try{\n ConnectAPIs messageAPI = new ConnectAPIs(link,token);\n messageAPI.sendComment(jsonMsg,this,this);\n }catch(Exception e){\n System.out.println(\"Sending error: \" + e.toString());\n }\n }", "@Override\n public String toString() {\n return \"EnviarMensajeProposeUpdatedDemandForecast\";\n }", "public interface GetNotification {\n public void setNotificationId(String strGCMid);\n\n\n public void setProviderDetails(String strGCMid, String strName, String strImage, String straddress,String expertiseid,String strReferalcdoe);\n\n public void getProviderId(String strProviderId, String strType);\n\n public void getServicePrice(String n_price);\n public void getServiceDuration(String n_duration);\n\n public ArrayList<String> getServicName(TreeMap<Integer, String> str_serviceName);\n\n\n public void setProviderdet(String strGCMid, String strName, String strImage, String straddress,String strExpertise,String strReferalcode);\n\n public void NotifyFilter(String strFilterVal);\n\n public void setProvideraddress(String strlatitude, String strlongitude, String straddress);\n}", "@Override\n public void onResponse(JSONObject response) {\n report = response;\n try {\n messageSent = report.getString(Const.REPORT_MESSAGE); //Gives profId\n chatLog = report.getString(Const.REPORT_CHATLOG); //Gives Chatlog\n } catch (JSONException jse) {\n // if an error occurs with the JSON, log it\n Log.d(\"Prof_Info_Fill\", jse.toString());\n }\n }", "public JSONObject createJsonFromMessage(){\n\n JSONObject messageJson = new JSONObject();\n JSONObject contactJson = new JSONObject();\n try {\n messageJson.put(\"body\", this.getBody());\n contactJson.put(\"name\", this.getContact().getName());\n contactJson.put(\"number\", this.getContact().getNumber());\n messageJson.put(\"contact\", contactJson);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return messageJson;\n }", "@GET(\"user-notification-content?expand=notification,notification.translations,notification.notificationResultType&sort=-time_from\")\n Call<NotificationsResponse> getNotifications(@Query(\"from\") long from,\n @Query(\"to\") long to,\n @Query(\"notification_result_accepted\") int notification_result_accepted,\n @Query(\"per-page\") double per_page);", "protected String getAjaxJson(String code, boolean isSucess, String msg) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n sb.append(\"\\\"issuccess\\\":\");\n sb.append(\"\\\"\" + (isSucess ? \"true\" : \"flase\") + \"\\\"\");\n sb.append(\",\");\n sb.append(\"\\\"code\\\":\");\n sb.append(\"\\\"\" + code + \"\\\"\");\n if (!StringUtil.strIsNullOrEmpty(msg)) {\n sb.append(\",\");\n sb.append(\"\\\"msg\\\":\");\n sb.append(\"\\\"\" + msg + \"\\\"\");\n }\n sb.append(\"}\");\n return sb.toString();\n }", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "public NotificationAdapter getNoficationAdapter(NotificationAdapter madapter, String resString) \r\n\t{\r\n\t\tif (resString != null) \r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject mainJSON = new JSONObject(resString);\r\n\t\t\t\t\r\n\t\t\t\tObject intervention = mainJSON.get(\"output\");\r\n\t\t\t\t\r\n\t\t\t\tif (intervention instanceof JSONArray) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tJSONArray outJson = (JSONArray) intervention;\r\n\t\t\t\t\t\r\n\t\t\t\t\tJSONObject notiJSONObj = null;\r\n\t\t\t\t\tNotification notify = null;\r\n\t\t\t\t\tfor (int i = 0; i < outJson.length(); i++) {\r\n\t\t\t\t\t\tnotiJSONObj = outJson.getJSONObject(i);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnotify = new Notification();\r\n\t\t\t\t\t\t//set notification id\r\n\t\t\t\t\t\tnotify.setNotificationId(Integer.parseInt(notiJSONObj.getString(\"notification_id\")));\r\n\t\t\t\t\t\t//set link on web\r\n\t\t\t\t\t\tnotify.setLink(notiJSONObj.getString(\"link\"));\r\n\t\t\t\t\t\t//set time phrase;\r\n\t\t\t\t\t\tnotify.setTimePhrase(notiJSONObj.getString(\"time_phrase\"));\r\n\t\t\t\t\t\t//set user image;\r\n\t\t\t\t\t\tnotify.setUserImage(notiJSONObj.getString(\"user_image\"));\r\n\t\t\t\t\t\t//set icon\r\n\t\t\t\t\t\tif (!notiJSONObj.isNull(\"icon\")) {\r\n\t\t\t\t\t\t\tnotify.setIcon(notiJSONObj.getString(\"icon\"));\r\n\t\t\t\t\t\t}\r\n\r\n notify.setQbDialogId(notiJSONObj.getString(\"dialog_id\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJSONObject request = notiJSONObj.getJSONObject(\"social_app\").getJSONObject(\"link\").getJSONObject(\"request\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//if has item id\r\n\t\t\t\t\t\tif (request.has(\"item_id\")) {\r\n\t\t\t\t\t\t\tnotify.setItemId(request.getString(\"item_id\"));\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (request.has(\"type_id\")) {\r\n\t\t\t\t\t\t\tnotify.setTypeId(request.getString(\"type_id\"));\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (request.has(\"user_id\")) {\r\n\t\t\t\t\t\t\tnotify.setUserId(request.getString(\"user_id\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set message\r\n\t\t\t\t\t\tnotify.setMesage(notiJSONObj.getString(\"message\"));\r\n\r\n if (request.has(\"message_html\")) {\r\n notify.setMesage(request.getString(\"message_html\"));\r\n }\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmadapter.add(notify);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (intervention instanceof JSONObject) {\r\n\t\t\t\t\tJSONObject output = (JSONObject) intervention;\r\n\t\t\t\t\t\r\n\t\t\t\t\tNotification notify = new Notification();\r\n\t\t\t\t\tnotify.setNotice(output.getString(\"notice\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tmadapter.add(notify);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch(Exception ex) {\r\n notificationLayout.setVisibility(View.GONE);\r\n noInternetLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn madapter;\r\n\t}", "@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (sJSON.length() > 0) {\n\n\t\t\t\t\t\t\tJSONObject jsonObject2 = new JSONObject(sJSON);\n\n\t\t\t\t\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\t\t\t\t\t\t\tdata.Update(\"notificationcount\",\n\t\t\t\t\t\t\t\t\tjsonObject2.getInt(\"admincount\")\n\t\t\t\t\t\t\t\t\t\t\t+ jsonObject2.getInt(\"membercount\"));\n\n\t\t\t\t\t\t\tstartThread();\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\tString flag = null;\r\n\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tflag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\tif(\"no\".equals(flag)){\r\n\t\t\t\t\t\t\t\tLoger.i(\"TEST\", \"topic is empty yes\");\r\n\t\t\t\t\t\t\t\tmessage.what = NOINFO_SUCCESS_CODE;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tLoger.i(\"TEST\", \"topic is empty no\");\r\n\t\t\t\t\t\t\t\tmessage.what = INIT_FAILED_CODE;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tgetTopicHandler.sendMessage(message);\r\n\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\tLoger.i(\"TEST\", \"pullUpFromSrv-ERROR->\"+e.getMessage());\r\n\t\t\t\t\t\t\tmessage.what = INIT_FAILED_CODE;\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}", "public void sendNotificationToNextRider(Map<String, String> dataForStoreOrder){\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n String serverAddress = \"http://dev.intaresta.com/smartsend/rest_controller/send_notification_to_next_rider\";\n\n pDialog.setMessage(\"Please Wait....\");\n pDialog.setTitle(\"Proccessing\");\n pDialog.setCancelable(false);\n showDialog();\n\n CustomRequest sendNotificationToNextRiderRequest = new CustomRequest(Request.Method.POST,\n serverAddress, dataForStoreOrder , new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject jObj) {\n hideDialog();\n\n try {\n boolean error = jObj.getBoolean(\"error\");\n\n if(!error){\n String successMessage = jObj.getString(\"success_message\");\n Toast.makeText(ctx, \"Success:\" + successMessage, Toast.LENGTH_LONG).show();\n\n }else{\n String errorMessage = jObj.getString(\"error_message\");\n Toast.makeText(ctx, \"Error Order: \"+errorMessage, Toast.LENGTH_LONG).show();\n connectivityDetector.showAlertDialog(ctx, \"Order Empty\", errorMessage);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(ctx, \"(2SO) Json catch error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n finish();\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Login Error\", \"Login Error: \" + error.getMessage());\n Toast.makeText(ctx,\n \" (2SO) Error Response: \"+ error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n connectivityDetector.showAlertDialog(ctx, \"Try Again\", \"Connection Failed\");\n finish();\n }\n });\n\n // Adding request to request queue\n Volley.newRequestQueue(ctx).add(sendNotificationToNextRiderRequest);\n }", "public void UpdateNotif()\n {\n String url2=\"http://10.208.20.164:8000/default/notifications.json\" ;\n final List<String> noti_text = new ArrayList<String>();\n final List<String> noti_time = new ArrayList<String>();\n mRequestStartTime = System.currentTimeMillis();\n JsonObjectRequest json_not = new JsonObjectRequest (Request.Method.GET, url2,null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response)\n {\n Log.i(\"yo\", \"why this ... working\");\n/// System.out.println(response.toString());\n\n try\n {\n// no array named notification. :/\n JSONArray noti=response.getJSONArray(\"notifications\");\n for(int i=0;i<noti.length();i++)\n {\n\n noti_text.add(noti.getJSONObject(i).getString(\"description\"));\n// TODO: change this description, thread id & course code is clickable.\n noti_time.add(noti.getJSONObject(i).getString(\"created_at\"));\n// TODO: current - created at.\n }\n long totalRequestTime = System.currentTimeMillis() - mRequestStartTime;\n System.out.println(\"Response time for three is==\"+ totalRequestTime );\n\n } catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\n \"Error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"yo\", \"why this not working\");\n // Toast.makeText(Tab_view.this, error.toString(), Toast.LENGTH_LONG).show();\n }\n });\n Volley.newRequestQueue(this).add(json_not);\n System.out.println(\"here\");\n Bundle bundle3 = new Bundle();\n\n //bundle.putString(\"User\", Username);\n //bundle.putString(\"Pass\", Password);\n bundle3.putStringArrayList(\"noti_text\", (ArrayList<String>) noti_text);\n bundle3.putStringArrayList(\"noti_time\", (ArrayList<String>) noti_time);\n Three.setArguments(bundle3);\n\n }", "void notify(String data, PushType type);", "public interface GetAllNotificationBindr {\n StatusBarNotification[] getAllNotification();\n}", "public void usersUserIdNotificationsGlobalPatch (String userId, String unread, String delivered, String seen, String nonanswered, final Response.Listener<User> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = null;\n\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdNotificationsGlobalPatch\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdNotificationsGlobalPatch\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}/notifications/global\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"unread\", unread));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"delivered\", delivered));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"seen\", seen));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"nonanswered\", nonanswered));\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"PATCH\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((User) ApiInvoker.deserialize(localVarResponse, \"\", User.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "private Notifications createNotifications(String type, JsonNode node) {\n Notifications notifications = new Notifications();\n if (type.equals(\"shell\")) {\n if (node.isArray()) {\n for (JsonNode hook : node) {\n notifications.add(\n new Invoke(\n Invoke.WHEN.valueOf(hook.get(\"_on\").asText()),\n hook.get(\"cmd\").asText()));\n }\n } else {\n throw new CatalogException(\"Expected an array of hooks \" + node);\n }\n } else {\n throw new CatalogException(\"Unsupported notifications of type \" + type + \" - \" + node);\n }\n return notifications;\n }", "public Notifications() {\n \n \t}", "void templateNotify(TeampleAlarmMessage message);", "@Override\n\tpublic ResponseEntity<Object> generateMessage(Map<String, Object> processedRequest, String url) \n\t{\n\t\tJSONObject response = new JSONObject();\n\n\t\tresponse = new JSONObject();\n\t\tresponse.put(\"FName\", \"FirtName\");\n\t\tresponse.put(\"LName\", \"Second Nmae\");\n\n\t\tResponseEntity<Object> validationResponse = new ResponseEntity<Object>(response, HttpStatus.OK);\n\t\treturn validationResponse;\n\t}", "void sendScheduledNotifications(JobProgress progress);", "private String converttoJson(Object followUpDietStatusInfo) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.writeValueAsString(followUpDietStatusInfo);\n }", "public JsonResponse(String status, String[] message, String userid, String password, String name, String school, BigDecimal edollar) {\n this.status = status;\n this.message = message;\n this.userid = userid;\n this.password = password;\n this.name = name;\n this.school = school;\n this.edollar = edollar;\n }", "@Override\r\n\tpublic void httpResponse_success(Map<String, String> map,\r\n\t\t\tList<Object> list, Object jsonObj) {\n\t\tJSONObject json = (JSONObject) jsonObj;\r\n\t\ttry {\r\n\t\t\tJSONObject cg = json.getJSONObject(\"rvalue\").getJSONObject(\"cg\");\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tMessage msg1 = new Message();\r\n\t\tmsg1.what = 1;\r\n\t\tmHandler.sendMessage(msg1);\r\n\t}", "@Subscribe\n public void onDeviceInfo(final DeviceInformation event) {\n\n apiService.onSendDeviceInfo(event, new Callback<DeviceInfoSuccess>() {\n\n @Override\n public void success(DeviceInfoSuccess retroResponse, Response response) {\n\n if(retroResponse != null) {\n bus.post(new DeviceInfoSuccess(retroResponse));\n //ealmObjectController.cachedResult(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse));\n RealmObjectController.cachedResultWithType(MainFragmentActivity.getContext(), (new Gson()).toJson(retroResponse),\"SplashInfo\");\n\n }else{\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n }\n\n @Override\n public void failure(RetrofitError error) {\n BaseFragment.setAlertNotification(MainFragmentActivity.getContext());\n }\n\n });\n }", "private void sendNotification(Map<String, String> data) {\n int num = ++NOTIFICATION_ID;\n Bundle msg = new Bundle();\n for (String key : data.keySet()) {\n Log.e(key, data.get(key));\n msg.putString(key, data.get(key));\n }\n\n\n pref = getSharedPreferences(\"UPDATE_INSTANCE\", MODE_PRIVATE);\n edit = pref.edit();\n Intent backIntent;\n Intent intent = null;\n PendingIntent pendingIntent = null;\n backIntent = new Intent(getApplicationContext(), LoginActivity.class);\n backIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n SharedPreferences sp;\n SharedPreferences.Editor editor;\n\n\n if (!is_noty) {\n mNotificationManager = (NotificationManager) this\n .getSystemService(Context.NOTIFICATION_SERVICE);\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n this);\n\n mBuilder.setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(msg.getString(\"title\"))\n .setStyle(\n new NotificationCompat.BigTextStyle().bigText(msg\n .getString(\"msg\").toString()))\n .setAutoCancel(true)\n .setContentText(msg.getString(\"msg\"));\n\n if (Integer.parseInt(msg.getString(\"type\")) != 1) {\n mBuilder.setContentIntent(pendingIntent);\n }\n\n mBuilder.setDefaults(Notification.DEFAULT_ALL);\n\n mNotificationManager.notify(++NOTIFICATION_ID, mBuilder.build());\n }\n }", "@Override\n public void onResponse(Call<Token> call, Response<Token> response) {\n Map<String,String> contentSend = new HashMap<>();\n contentSend.put(\"title\",\"Dreymart\");\n contentSend.put(\"message\", \"Kamu mempunyai pesanan baru \"+orderResult.getOrderId());\n DataMessage dataMessage = new DataMessage();\n if (response.body().getToken() != null)\n dataMessage.setTo(response.body().getToken());\n dataMessage.setData(contentSend);\n\n IFCMService ifcmService = Common.getGetFCMService();\n ifcmService.sendNotification(dataMessage)\n .enqueue(new Callback<MyResponse>() {\n @Override\n public void onResponse(Call<MyResponse> call, Response<MyResponse> response) {\n if (response.code() == 200)\n {\n if (response.body().success == 1)\n {\n Toast.makeText(CartActivity.this, \"Terima Kasih Telah Memesan\", Toast.LENGTH_SHORT).show();\n //Clear Cart\n Common.cartRepository.emptyCart();\n finish();\n }\n else\n {\n Toast.makeText(CartActivity.this, \"Gagal mengirim notifikasi\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }\n\n @Override\n public void onFailure(Call<MyResponse> call, Throwable t) {\n Toast.makeText(CartActivity.this, \"\"+t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public String toJSONString() {\n JSONObject entry = new JSONObject();\n\n Map<String, Object> configuration = new LinkedHashMap<String, Object>();\n configuration.put(\"smtpHostname\", smtpHostname);\n configuration.put(\"smtpPort\", new Integer(smtpPort));\n configuration.put(\"tls\", tls);\n configuration.put(\"ssl\", ssl);\n configuration.put(\"username\", username);\n configuration.put(\"password\", password);\n configuration.put(\"fromEMail\", fromEMail);\n configuration.put(\"fromSenderName\", fromSenderName);\n\n entry.put(configurationName, configuration);\n\n /*\n * The JSONWriter will pretty-print the output\n */\n Writer jsonWriter = new JSONWriter();\n try {\n entry.writeJSONString(jsonWriter);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n\n return jsonWriter.toString();\n }", "private String createResponse(RequiredSpecs specs) {\r\n\t\t\tJSONObject response = new JSONObject();\r\n\t\t\tint waitingTime = getWaitingTime(specs);\r\n\t\t\tresponse.put(\"waitingTime\", waitingTime);\r\n\t\t\tresponse.put(\"price\", superPC.getPrice(specs,waitingTime));\r\n\t\t\treturn response.toJSONString();\r\n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(Config.REGISTRATION_COMPLETE)) {\n // FCM successfully registered\n // now subscribe to `global` topic to receive app wide notifications\n FirebaseMessaging.getInstance().subscribeToTopic(Config.TOPIC_GLOBAL);\n\n\n } else if (intent.getAction().equals(Config.PUSH_NOTIFICATION)) {\n // new push notification is received\n\n String message = intent.getStringExtra(\"message\");\n\n String JSON_DATA = sessionManager.getPushNotification();\n\n try {\n JSONObject jsonObject = new JSONObject(JSON_DATA);\n\n if (jsonObject.getJSONObject(\"custom\").has(\"chat_status\") && jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getString(\"status\").equals(\"New message\")) {\n\n //getChatConversationList();\n String cumessage = jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getString(\"message\");\n ReceiveDateModel receiveDateModel;//=new ReceiveDateModel();\n String dateResp = String.valueOf(jsonObject.getJSONObject(\"custom\").getJSONObject(\"chat_status\").getJSONObject(\"received_date_time\"));\n changeChatIcon(1);\n //Resumes the Fragement and Gets the data from Api\n Fragment fragment = myAdapter.getFragment(2);\n if (fragment != null) {\n //fragment.onResume();\n fragment.setUserVisibleHint(true);\n }\n }\n if (jsonObject.getJSONObject(\"custom\").has(\"match_status\") && jsonObject.getJSONObject(\"custom\").getJSONObject(\"match_status\").getString(\"match_status\").equals(\"Yes\")){\n changeChatIcon(1);\n //Resumes the Fragement and Gets the data from Api\n Fragment fragment = myAdapter.getFragment(2);\n if (fragment != null) {\n //fragment.onResume();\n fragment.setUserVisibleHint(true);\n }\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "private void generateNotification(int type , Geofence current) {\n\t\t\n\t\tLog.i(\"LOC TRAN \" , \" \" + type + \" \" + current.getRequestId());\n }", "void criticalNotification(PortletRequest request, MimeResponse response,\n String caption, String message, String details, String url)\n throws IOException {\n \n // clients JS app is still running, but server application either\n // no longer exists or it might fail to perform reasonably.\n // send a notification to client's application and link how\n // to \"restart\" application.\n \n if (caption != null) {\n caption = \"\\\"\" + caption + \"\\\"\";\n }\n if (details != null) {\n if (message == null) {\n message = details;\n } else {\n message += \"<br/><br/>\" + details;\n }\n }\n if (message != null) {\n message = \"\\\"\" + message + \"\\\"\";\n }\n if (url != null) {\n url = \"\\\"\" + url + \"\\\"\";\n }\n \n // Set the response type\n response.setContentType(\"application/json; charset=UTF-8\");\n final OutputStream out = response.getPortletOutputStream();\n final PrintWriter outWriter = new PrintWriter(new BufferedWriter(\n new OutputStreamWriter(out, \"UTF-8\")));\n outWriter.print(\"for(;;);[{\\\"changes\\\":[], \\\"meta\\\" : {\"\n + \"\\\"appError\\\": {\" + \"\\\"caption\\\":\" + caption + \",\"\n + \"\\\"message\\\" : \" + message + \",\" + \"\\\"url\\\" : \" + url\n + \"}}, \\\"resources\\\": {}, \\\"locales\\\":[]}]\");\n outWriter.close();\n }", "public static void createNotification(MainActivity a, CustomFBProfile profile, IMessagingMetaData meta, HashMap<String, String> loc) {\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(a)\n .setSmallIcon(R.drawable.acba)\n .setContentTitle(\"New Message\")\n .setContentText(meta.getName().toUpperCase()).setTicker(\"New Message!!\");\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n mBuilder.setStyle(inboxStyle);\n mBuilder.setVibrate(new long[]{2000, 2000, 1000});\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n mBuilder.setAutoCancel(true);\n\n// Creates an explicit intent for an Activity in your app\n Intent resultIntent = a.startMessagingActivityFromAnywhereInApp(profile, meta, loc);\n\n// The stack builder object will contain an artificial back stack for the\n// started Activity.\n// This ensures that navigating backward from the Activity leads out of\n// your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(a);\n// Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(MainActivity.class);\n// Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) a.getSystemService(Context.NOTIFICATION_SERVICE);\n// mId allows you to update the notification later on.\n mNotificationManager.notify(1, mBuilder.build());\n }", "public abstract MBeanNotificationInfo[] getNotificationInfo();", "public void onMessageReceived(RemoteMessage remoteMessage) {\n if (remoteMessage.getData().size() > 0) {\n Log.e(\"ORM\", \"Message data payload: \" + remoteMessage.getData());\n }\n PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n // Check if message contains a notification payload.\n if (remoteMessage.getNotification() != null) {\n // for foreground\n Map<String, String> data = null;\n if (remoteMessage.getData().get(\"type\") != null) {\n data = remoteMessage.getData();\n Log.i(TAG, \"onMessageReceived: type = \" + remoteMessage.getData().get(\"type\"));\n Log.i(TAG, \"onMessageReceived: time = \" + remoteMessage.getSentTime());\n sendNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody(), data);\n }\n } else {\n // for background\n if (remoteMessage.getData().size() > 0) {\n switch (remoteMessage.getData().get(\"type\")) {\n case \"alarm_alert\":\n String[] request_link = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n new JSONResponse(this, request_link[0], request_link[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: alarm_alert data json = \" + json);\n try {\n JSONArray jsonArr = json.getJSONArray(\"data\");\n for (int i = 0; i < jsonArr.length(); i++) {\n JSONObject obj = jsonArr.getJSONObject(i);\n String time = obj.getString(\"day\") + \" \" + obj.getString(\"time\");\n String task = \"\";\n for (int j = 0; j < obj.getJSONArray(\"task\").length(); j++) {\n if (j != 0) {\n task += \",\";\n }\n task += obj.getJSONArray(\"task\").getString(j);\n }\n String title = obj.getString(\"stage\");\n Log.i(TAG, \"onComplete: alarm_alert time = \" + time);\n Log.i(TAG, \"onComplete: alarm_alert task = \" + task);\n String value = obj.getString(\"value\");\n String[] a = time.split(\" \");\n String requestCode = a[0].replace(\"-\", \"\") + a[1].replace(\":\", \"\");\n requestCode = requestCode.substring(2, 12);\n int rc = Integer.parseInt(requestCode);\n Log.i(TAG, \"onComplete: requestCode = \" + rc);\n long delta = calculateDelay(time);\n boolean enable = value.equals(\"on\");\n if (delta >= 0) {\n sendMsgForAlertSystem(title, task, delta, rc, enable);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n case \"nutrition\":\n String[] request_link1 = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n Log.i(TAG, \"onMessageReceived: \" + request_link1);\n new JSONResponse(this, request_link1[0], request_link1[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: json = \" + json);\n try {\n int rc = json.getInt(\"rc\");\n if (rc == 0) {\n JSONArray data = json.getJSONObject(\"data\").getJSONArray(\"data\");\n Log.i(TAG, \"onComplete: json data = \" + data);\n for (int i = 0; i < data.length(); i++) {\n JSONObject obj = data.getJSONObject(i);\n Log.i(TAG, \"onComplete: json data item = \" + obj);\n String title = obj.getString(\"title\");\n String time = obj.getString(\"time\");\n String content = \"\";\n JSONArray food = obj.getJSONArray(\"food\");\n JSONArray quantity = obj.getJSONArray(\"quantity\");\n for (int j = 0; j < food.length(); j++) {\n content += food.getString(j) + \" \" + quantity.getString(j);\n if (j < food.length() - 1) {\n content += \",\";\n }\n }\n Log.i(TAG, \"onComplete: json data content = \" + content);\n String today = getRealFormat(\"yyyy-MM-dd\").format(new Date());\n if (time != null && isTime(time) && !title.equals(\"\") && !content.equals(\" \")) {\n long delta = calculateDelay(today + \" \" + (time.length() < 6 ? time + \":00\" : time));\n delta -= delta - 10 * 60 * 1000; // 10min before\n String requestCode = today.replace(\"-\", \"\") + i;\n int resC = Integer.parseInt(requestCode.substring(2));\n if (delta >= 0) {\n// sendMsgForNutrition(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_NUTRITION, title, content, time, delta, resC, i);\n } else {\n delta = delta + 24 * 60 * 60 * 1000;\n Date tmp = new Date();\n tmp.setTime(new Date().getTime() + 24 * 60 * 60 * 1000);\n String tomorrow = getRealFormat(\"yyyy-MM-dd\").format(tmp);\n requestCode = tomorrow.replace(\"-\", \"\") + i;\n resC = Integer.parseInt(requestCode.substring(2));\n// sendMsgForNutrition(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_NUTRITION, title, content, time, delta, resC, i);\n }\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n case \"client_alert\":\n String[] request_link2 = remoteMessage.getData().get(\"api\").split(\"\\\\?\");\n Log.i(TAG, \"onMessageReceived: \" + request_link2);\n new JSONResponse(this, request_link2[0], request_link2[1], new JSONResponse.onComplete() {\n @Override\n public void onComplete(JSONObject json) {\n Log.i(TAG, \"onComplete: json = \" + json);\n try {\n int rc = json.getInt(\"rc\");\n if (rc == 0) {\n JSONArray data = json.getJSONObject(\"data\").getJSONArray(\"data\");\n Log.i(TAG, \"onComplete: json data = \" + data);\n for (int i = 0; i < data.length(); i++) {\n JSONObject obj = data.getJSONObject(i);\n Log.i(TAG, \"onComplete: json data item = \" + obj);\n String title = obj.getString(\"title\");\n String time = obj.getString(\"time\");\n String content = \"\";\n JSONArray contentArr = obj.getJSONArray(\"content\");\n for (int j = 0; j < contentArr.length(); j++) {\n content += contentArr.getString(j);\n if (j < contentArr.length() - 1) {\n content += \",\";\n }\n }\n Log.i(TAG, \"onComplete: json data content = \" + content);\n String today = getRealFormat(\"yyyy-MM-dd\").format(new Date());\n Log.i(TAG, \"onComplete: isTime = \" + isTime(time));\n if (time != null && isTime(time) && !title.equals(\"\") && !content.equals(\" \")) {\n long delta = calculateDelay(today + \" \" + (time.length() < 6 ? time + \":00\" : time));\n delta -= delta - 10 * 60 * 1000; // 10min before\n String requestCode = today.replace(\"-\", \"\") + (i + 10);\n int resC = Integer.parseInt(requestCode.substring(2));\n if (delta >= 0) {\n// sendMsgForClientAlert(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_CLIENT_ALERT, title, content, time, delta, resC, i);\n } else {\n delta = delta + 24 * 60 * 60 * 1000;\n Date tmp = new Date();\n tmp.setTime(new Date().getTime() + 24 * 60 * 60 * 1000);\n String tomorrow = getRealFormat(\"yyyy-MM-dd\").format(tmp);\n requestCode = tomorrow.replace(\"-\", \"\") + (i + 10);\n resC = Integer.parseInt(requestCode.substring(2));\n// sendMsgForClientAlert(title, content, time, delta, resC, i);\n sendMsgFor(API.ACTION_CLIENT_ALERT, title, content, time, delta, resC, i);\n }\n }\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n break;\n }\n }\n }\n }", "public static void NotificationReceived(String json, boolean receivedInForeground, boolean coldStart) {\n\t\tString state = receivedInForeground ? \"foreground\" : \"background\";\n\t\tLog.v(TAG, \"state: \" + state + \", json:\" + json + \", coldStart: \" + coldStart);\n\n\t\t/*\n\n\t\t THE following is the comment from the iOS version explaining the motivation for copying the 'alert'\n\t\t files into data.message in case there is no explicit one set.\n\n\t\t on Android this isn't really needed but we keep it so the behavior is identical on both platforms.\n\n\t\t -------------------\n\n\t\t on iOS we must have the alert field set on the wrapping aps hash. in addition as we have severe\n\t\t limitation on the size of the payload we would normally avoid duplicating the notification text\n\t\t in both the aps wrapper and the payload object itself.\n\n\t\t in order to keep the interface identical between platforms\n\t\t the aps.alert value is required in order for the ios notification center to have something to show\n\t\t or else it wouls show the full JSON payload.\n\n\t\t however on the js side we want to access all the properties for this notification inside a single\n\t\t object and care not for ios specific implemenataion such as the aps wrapper\n\n\t\t we could just duplicate the text and have it in both *aps.alert* and inside data.message but as the\n\t\t payload size limit is only 256 bytes it is better to check if an explicit data.message value exists\n\t\t and if not just copy aps.alert into it\n\n\t\t */\n\n\t\ttry\n\t\t{\n\t\t\tJSONObject wrapper = new JSONObject(json);\n\t\t\tJSONObject data = wrapper.getJSONObject(\"data\");\n\n\t\t\tif(data != null){\n\t\t\t\tif(data.has(\"message\") == false){\n\t\t\t\t\tif(wrapper.has(\"alert\")){\n\t\t\t\t\t\tdata.put(\"message\", wrapper.getString(\"alert\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tjson = data.toString();\n\t\t} catch(JSONException e){}\n\t\tnotifications.put(json);\n\t\tLog.v(TAG, \"notifications: \" + notifications.toString());\n\t\tString js = \"javascript:setTimeout(function(){window.parsePush.ontrigger('\" + state + \"',\"+ json +\")},0)\";\n\t\tif (canDeliverNotifications && !coldStart) {\n\t\t\tgWebView.sendJavascript(js);\n\t\t} else{\n\t\t\tcallbackQueue.add(js);\n\t\t}\n\n\t}", "public interface JSONKeys {\n String msgType = \"msgType\";// 消息类型\n String userId = \"userId\";// 发送者Id\n String friendId = \"friendId\";// 接收者Id\n String friendName = \"friendName\";// 好友名\n\n String sendTime = \"sendTime\";// 发送时间\n String msgCotent = \"msgCotent\";// 聊天信息-文本信息\n String voiceTime = \"voiceTime\";// 聊天信息-语音信息长度\n String voicePath = \"voicePath\";// 聊天信息-语音文件路径\n String imagePath = \"imagePath\";// 聊天信息-图片路径\n\n String userEmail = \"userEmail\";// 用户注册邮箱,登录时用邮箱登录\n String userName = \"userName\";// 用户名\n String userSex = \"userSex\";// 用户性别\n String userBirthday = \"userBirthday\";// 用户生日\n String userPasswd = \"userPasswd\";// 登录密码\n String personSignature = \"personSignature\";// 个性签名\n\n String userHeadPath = \"userHeadPath\";// 用户头像路径\n\n String loc_province = \"loc_province\";// 所处省份\n String loc_Longitude = \"loc_Longitude\";// 经度\n String loc_Latitude = \"loc_Latitude\";// 纬度\n\n String distRange = \"distRange\";// 多少公里之内的\n\n String strangerList = \"strangerList\";// 陌生人列表\n\n String friendIdList = \"friendIdList\";// 好友Id列表\n\n String groupId = \"groupId\";// 群组Id\n String groupName = \"groupName\";// 群组名\n String groupTopic = \"groupTopic\";// 群组主题\n String groupCreator = \"groupCreator\";//创建者\n\n String isGroupMsg = \"isGroupMsg\";\n\n}", "@PostMapping(\"/push-notifications\")\n @Timed\n public ResponseEntity<PushNotificationsEntity> createPushNotifications(@RequestBody PushNotificationsEntity pushNotifications) throws URISyntaxException {\n log.debug(\"REST request to save PushNotifications : {}\", pushNotifications);\n if (pushNotifications.getId() != null) {\n throw new BadRequestAlertException(\"A new pushNotifications cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PushNotificationsEntity result = pushNotificationsRepository.save(pushNotifications);\n return ResponseEntity.created(new URI(\"/api/push-notifications/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId()))\n .body(result);\n }", "@GET\n @Produces({MediaType.APPLICATION_JSON})\n public Message getJSON_Ankit() {\n return new Message(\"Hello World, Jersey\");\n }", "private void sendNotificationAPI26(RemoteMessage remoteMessage) {\n Map<String,String> data = remoteMessage.getData();\n String title = data.get(\"title\");\n String message = data.get(\"message\");\n\n //notification channel\n NotificationHelper helper;\n Notification.Builder builder;\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n helper = new NotificationHelper(this);\n builder = helper.getHawkerNotification(title,message,defaultSoundUri);\n\n helper.getManager().notify(new Random().nextInt(),builder.build());\n }", "private void storeOrderDataAndSendNotificationToClient(Map<String, String> dataForStoreOrder){\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n String serverAddress = \"http://dev.intaresta.com/smartsend/rest_controller/store_order_data_and_send_notification_to_client\";\n\n pDialog.setMessage(\"Please Wait....\");\n pDialog.setTitle(\"Proccessing\");\n pDialog.setCancelable(false);\n showDialog();\n\n CustomRequest storeOrederRequest = new CustomRequest(Request.Method.POST,\n serverAddress, dataForStoreOrder , new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject jObj) {\n hideDialog();\n\n try {\n boolean error = jObj.getBoolean(\"error\");\n\n if(!error){\n String successMessage = jObj.getString(\"success_message\");\n Toast.makeText(ctx, \"Success:\" + successMessage, Toast.LENGTH_LONG).show();\n\n }else{\n String errorMessage = jObj.getString(\"error_message\");\n Toast.makeText(ctx, \"Error Order: \"+errorMessage, Toast.LENGTH_LONG).show();\n connectivityDetector.showAlertDialog(ctx, \"Order Empty\", errorMessage);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(ctx, \"(SO) Json catch error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n finish();\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Login Error\", \"Login Error: \" + error.getMessage());\n Toast.makeText(ctx,\n \" (SO) Error Response: \"+ error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n connectivityDetector.showAlertDialog(ctx, \"Try Again\", \"Connection Failed\");\n finish();\n }\n });\n\n // Adding request to request queue\n Volley.newRequestQueue(ctx).add(storeOrederRequest);\n\n }", "public abstract boolean sendNotification(Map<String, Object> processInfo, boolean mailToSend, Object obj);", "public void notifyUserInfo(String userInfo);", "public interface INotificationsListView {\n\n void onNotificationsLoadedSuccess(List<Notifications> list, Response response);\n\n void onNotificationsLoadedFailure(RetrofitError error);\n}", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n CharSequence name = MyShardPrefernces.myNotificationChannelName;\n\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(MyShardPrefernces.myNoficataionChannelID, name, importance);\n channel.setDescription(\"Notifications for alert Messenging\");\n // Register the channel with the system; you can't change the importance\n // or other notification behaviors after this\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(channel);\n }\n }", "@RequestMapping(value = { \"/\", \"/version\" }, method = RequestMethod.GET)\n\tpublic @ResponseBody Map<String, String> version() {\n\t\tMap<String, String> message = new HashMap<String, String>();\n\n\t\tmessage.put(\"name\", props.getProperty(\"build.artifact\"));\n\t\tmessage.put(\"version\", props.getProperty(\"build.version\"));\n\t\tmessage.put(\"timestamp\", props.getProperty(\"build.time\"));\n\n\t\treturn message;\n\t}", "public JSONObject m1425b() {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"permissionStatus\", this.f1228b.m1420d());\n jSONObject.put(\"subscriptionStatus\", this.f1227a.m1409e());\n jSONObject.put(\"emailSubscriptionStatus\", this.f1229c.m1397b());\n } catch (Throwable th) {\n th.printStackTrace();\n }\n return jSONObject;\n }" ]
[ "0.6045183", "0.59547615", "0.59154606", "0.5850425", "0.5837815", "0.58286613", "0.5806073", "0.57724077", "0.57412183", "0.5661836", "0.56225014", "0.5615757", "0.55874634", "0.55630404", "0.55591285", "0.5530151", "0.54154336", "0.53848654", "0.5365178", "0.53501946", "0.5348021", "0.5319672", "0.5313335", "0.53089845", "0.5296282", "0.52622646", "0.525832", "0.52568644", "0.5246403", "0.5241397", "0.5220484", "0.5184042", "0.51765156", "0.51728207", "0.51625943", "0.5157932", "0.51575774", "0.513132", "0.5115584", "0.51109034", "0.5108874", "0.51015127", "0.5094682", "0.50884944", "0.50778455", "0.50695646", "0.50695246", "0.50564504", "0.5049142", "0.5038905", "0.5038848", "0.5023119", "0.501478", "0.50108695", "0.49987867", "0.499847", "0.4995067", "0.4993299", "0.49921334", "0.49824888", "0.4982052", "0.49641263", "0.49627787", "0.49574664", "0.4953024", "0.4945277", "0.49356586", "0.4933785", "0.4931135", "0.49302137", "0.49299586", "0.49259987", "0.4925981", "0.49235356", "0.49225855", "0.4920378", "0.49189427", "0.4917035", "0.49163026", "0.4914928", "0.49140173", "0.49121162", "0.4907562", "0.49028414", "0.48940033", "0.48925376", "0.4890735", "0.48899922", "0.48835036", "0.48778862", "0.48735905", "0.4870258", "0.4869074", "0.4868961", "0.48674908", "0.48628813", "0.48612282", "0.48521075", "0.48506975", "0.4845463" ]
0.6058793
0
Populate email list by users cached attribute
public static String getEmailListByUsersCachedAttribute ( List<String> listGuid ) { Map<String, String> listCachedAttributes = new HashMap< >( ); List<String> listEmail = new ArrayList< >( ); int nIdEmailAttribute = AppPropertiesService.getPropertyInt( PROPERTY_ID_EMAIL_ATTRIBUTE, 1 ); listCachedAttributes.putAll( CacheUserAttributeService.getCachedAttributesByListUserIdsAndAttributeId( listGuid, nIdEmailAttribute ) ); for ( Map.Entry<String, String> cachedAttribute : listCachedAttributes.entrySet( ) ) { listEmail.add( cachedAttribute.getValue( ) ); } return StringUtils.join( listEmail, ";"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \r\n\tpublic Set<String> emailList() {\n\t\treturn new HashSet<String>(jdbcTemplate.query(\"select * from s_member\",\r\n\t\t\t\t(rs,idx)->{return rs.getString(\"email\");}));\r\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByUsedFor(UByte... values) {\n return fetch(UserEmail.USER_EMAIL.USED_FOR, values);\n }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "private void getRegisteredEmails() {\n\t\tAccountManager manager = (AccountManager)getSystemService(ACCOUNT_SERVICE);\n\t\tAccount [] account = manager.getAccounts();\n\t\tfinal String [] emails = new String [account.length];\n\t\tint x=0;\n\t\tfor(Account ac : account){\n\t\t\temails[x]=ac.name;\n\t\t\tx++;\n\t\t}\n\t\t\n\t\tif(emails.length==0){\n\t\t\treturn;\n\t\t}\n\t\tfinal Dialog alert = new Dialog(Authenticate.this, AlertDialog.THEME_HOLO_LIGHT);\n\t\tListView lvEmails = new ListView(Authenticate.this);\n\t\tlvEmails.setAdapter(new ArrayAdapter<String>(Authenticate.this, R.layout.device_email_list, R.id.device_email_list_textView_email, emails));\n\t\talert.setContentView(lvEmails);\n\t\t\n\t\tlvEmails.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tetPassword.setText(emails[position]);\n\t\t\t\talert.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\talert.show();\n\t\talert.setCancelable(true);\n\t\talert.setCanceledOnTouchOutside(true);\n\t\talert.setTitle(\"Choose an email\");\n\t}", "private static List<String> getEmailList(){\n List<String> lista = new ArrayList<>();\n lista.add(\"[email protected]\");\n lista.add(\"[email protected].\");\n lista.add(\"[email protected]\");\n lista.add(\"[email protected].\");\n lista.add(\"meu#[email protected]\");\n lista.add(\"[email protected]\");\n lista.add(\"[email protected]\");\n lista.add(\"[email protected]\");\n lista.add(\"[[email protected]\");\n lista.add(\"<[email protected]\");\n lista.add(\"[email protected]\");\n lista.add(\"[email protected]\");\n lista.add(\"[email protected]\");\n\n lista.add(\"[email protected]\");\n lista.add(\"[email protected]\");\n\n\n return lista;\n\n }", "public void populateUserListFromDatabase() {\n\t\tList<com.expensetracker.model.User> modelUserList = null;\n\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : Populating user list cache..\");\n\t\ttry {\n\t\t\tmodelUserList = Service.getService().getUserList();\n\t\t\tList<User> list = ConvertUtil.modelToPojo(modelUserList);\n\t\t\tif (list != null) {\n\t\t\t\tuserList.addAll(list);\n\t\t\t\tpopulateUserMap(list);\n\t\t\t} else {\n\t\t\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : No data received from database for populating userlist cache\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogger.logMessage(\"UserManager.populateUserListFromDatabase() : Error in getting list of users from database for populating userlist cache \"\n\t\t\t\t\t+ e);\n\t\t}\n\t}", "private List<InternetAddress> getEmailAddresses(List<String> userList) {\n\t\tRepositorySecurityManager securityManager = RepositoryComponentFactory.getDefault().getSecurityManager();\n\t\tList<InternetAddress> emailAddresses = new ArrayList<>();\n\t\t\n\t\tfor (String userId : userList) {\n\t\t\ttry {\n\t\t\t\tUserPrincipal user = securityManager.getUser( userId );\n\t\t\t\t\n\t\t\t\tif ((user != null) && (user.getEmailAddress() != null) && (user.getEmailAddress().length() > 0)) {\n\t\t\t\t\tString fullName = user.getLastName();\n\t\t\t\t\t\n\t\t\t\t\tif (user.getFirstName() != null) {\n\t\t\t\t\t\tfullName = user.getFirstName() + \" \" + fullName;\n\t\t\t\t\t}\n\t\t\t\t\temailAddresses.add( new InternetAddress( user.getEmailAddress(), fullName ) );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// Should never happen; ignore and keep going\n\t\t\t}\n\t\t}\n\t\treturn emailAddresses;\n\t}", "public ArrayList<String> getEmails(){\r\n return emails; //emails.toString();\r\n }", "private String SuggestEmail() {\n EmailDAOHE emaildaohe = new EmailDAOHE();\n List<String> suggestString = emaildaohe.findEmailByUserId(getUserId());\n List<Email> suggestList = new ArrayList<Email>();\n for (int i = 0; i < suggestString.size(); i++) {\n Email email = new Email();\n email.setUserId((long) i);\n email.setSender(StringEscapeUtils.escapeHtml(suggestString.get(i) + \"; \"));\n suggestList.add(email);\n }\n String listEmail = emaildaohe.convertToJSONArray(suggestList, \"userId\", \"sender\", \"sender\");\n return listEmail;\n }", "public List<Email> getUnregisteredEmailList(Ram ram);", "public ArrayList<String> getEmail(){\r\n\t\treturn email;\t\t\r\n\t}", "private void initObjects() {\n //listUsers = new ArrayList<>();\n //databaseHelper = new DatabaseHelper(activity);\n setUserData();\n\n usersRecyclerAdapter = new UsersRecyclerAdapter(currentUser);\n\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewUsers.setLayoutManager(mLayoutManager);\n recyclerViewUsers.setItemAnimator(new DefaultItemAnimator());\n recyclerViewUsers.setHasFixedSize(true);\n recyclerViewUsers.setAdapter(usersRecyclerAdapter);\n\n\n\n\n // String emailFromIntent = getIntent().getStringExtra(\"EMAIL\");\n\n // getDataFromSQLite();\n }", "public UserBaseEntity getSubscriberByUserNameAndEmail(List<String> attributes, List<String> values);", "public String getEmailFromAccountList(UUID uuid) {\n if (personsToBeReset == null)\n personsToBeReset = new Hashtable<UUID, String>();\n if (uuid == null)\n return null;\n\n return personsToBeReset.get(uuid);\n }", "public Usuario buscar(String email) {\n Usuario Usuario=null;\n //percorre toda a lista e checa se o Usuario existe\n for(Usuario u:listaUse){\n if (u.getEmail().equals(email) ){\n Usuario = u;\n return Usuario;\n }\n }\n return Usuario;\n }", "@Override\r\n\tpublic Map<String, MemberDto> nameList() {\n\t\tMap<String, MemberDto> list = new HashMap<>();\r\n\t\tfor (String email : emailList()) {\r\n\t\t\tlist.put(email, myInfo(email));\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "private void generateEmails(List<EmailAccount> emailAccounts, int count) {\n \t\t\n \t}", "public List<com.ims.dataAccess.tables.pojos.User> fetchByEmail(String... values) {\n return fetch(User.USER.EMAIL, values);\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchById(ULong... values) {\n return fetch(UserEmail.USER_EMAIL.ID, values);\n }", "protected String createEmailString(Set emails) {\n StringBuffer commaDelimitedString = new StringBuffer();\n Iterator emailIterator = emails.iterator();\n \n while (emailIterator.hasNext()) {\n String mappedUser = (String) emailIterator.next();\n // append default suffix if need to\n if (mappedUser.indexOf(\"@\") < 0) {\n mappedUser += defaultSuffix;\n }\n \n commaDelimitedString.append(mappedUser);\n if (emailIterator.hasNext()) {\n commaDelimitedString.append(\",\");\n }\n } \n \n LOG.debug(\"List of emails: \" + commaDelimitedString);\n \n return commaDelimitedString.toString();\n }", "public void pullingEmails() {\n new Thread(() -> {\n mySqlConn sql = new mySqlConn();\n EMAILS_LIST = sql.getAllEmailIDs(null);\n\n TextFields.bindAutoCompletion(txt_to, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_cc, EMAILS_LIST);\n TextFields.bindAutoCompletion(txt_bcc, EMAILS_LIST);\n }).start();\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByDescription(String... values) {\n return fetch(UserEmail.USER_EMAIL.DESCRIPTION, values);\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByEmailId(ULong... values) {\n return fetch(UserEmail.USER_EMAIL.EMAIL_ID, values);\n }", "private List<Email> fetchEmail(Date minDate, Matcher matcher) throws MessagingException {\n\t\tStore store = null;\n\t\ttry {\n\t\t\tlogger.debug(\"Opening store\");\n\t\t\tstore = openStore();\n\t\t\treturn fetchFromStore(minDate, matcher, store);\n\t\t} finally {\n\t\t\tif (store != null) store.close();\n\t\t}\n\t}", "Set<String> getUserRoles(String email);", "Collection<NotificationContact> getEmailContactsForUser(String userLoginId) throws UnifyException;", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfUsedFor(UByte lowerInclusive, UByte upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.USED_FOR, lowerInclusive, upperInclusive);\n }", "List<User> getActivatedUserList();", "@Schema(description = \"La lista de correos del negocio\")\n public List<String> getEmails() {\n return emails;\n }", "List<Friend> getPendingRequests(String email);", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "public User getAllUser(String email) {\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_USERNAME,\n COLUMN_USER_PASSWORD,\n COLUMN_USER_EMAIL,\n COLUMN_USER_NUME,\n COLUMN_USER_PRENUME,\n COLUMN_USER_AGE\n };\n String sortOrder =\n COLUMN_USER_NUME + \" ASC\";//ordine de sortare\n List<User> userList = new ArrayList<User>();\n String selection = COLUMN_USER_EMAIL+ \"=?\";//coloana de selectie\n String[] selectionArgs = {email};//argumentul de selectie\n\n //SELECT id, nume, prenume, username, email, password FROM useri ORDER BY nume;\n Cursor cursor = db.query(TABLE_USER, //tabel pentru query\n columns, //coloane de returnat\n selection, //coloane pentru clauza WHERE\n selectionArgs, //valori pentru clauza WHERE\n null, //grupare randuri\n null, //filtrare dupa gruparea randurilor\n sortOrder); //ordinea de sortare\n User user = new User();\n if (cursor.moveToFirst()) {// traversare randuri si adaugare in lista\n do {\n user.setId(parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setUsername(cursor.getString(cursor.getColumnIndex(COLUMN_USER_USERNAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n user.setPassword(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PASSWORD)));\n user.setNume(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NUME)));\n user.setPrenume(cursor.getString(cursor.getColumnIndex(COLUMN_USER_PRENUME)));\n user.setAge(cursor.getInt(cursor.getColumnIndex(COLUMN_USER_AGE)));\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n return user;//returnare lista\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchRangeOfEmail(String lowerInclusive, String upperInclusive) {\n return fetchRange(User.USER.EMAIL, lowerInclusive, upperInclusive);\n }", "public User get(String emailID);", "private UserData[] getEnvoyUsers(){\n UserData sofort = setUserData(\"DE\", \"EUR\");\n //Set custom regexp validation rule, set more short random valid email\n emailValidationRule.setRegexp(\"[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-]{1,6}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]{0,6}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]{1,8}[@]{1,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{1,21}[.]{0,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{0,30}[.]{1,1}[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]{2,4}\");\n sofort.setEmail(emailValidationRule.generateValidString());\n// UserData ibanq = setUserData(\"JP\", \"USD\");\n// UserData moneta = setUserData(\"RU\", \"USD\");\n// UserData poli = setUserData(\"AU\", \"AUD\");\n return new UserData[]{\n// ideal, //0\n// prezelwy, //1\n// eKonto, //2\n// euteller, //3\n// ewire, //4\n sofort, //5\n// ibanq, //6\n// moneta, //7\n// poli //8\n };\n }", "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "@Override\n\tpublic OrderBean getUser(String email) {\n\t\treturn null;\n\t}", "public void setEmail(Email email) { this.email = email; }", "private void populateUserList() {\n UserAdapter userAdapter = new UserAdapter(this, users.toArray((Map<String, String>[]) new Map[users.size()]));\n lstUsers.setAdapter(userAdapter);\n }", "private ArrayList<String> getContactsEmails() {\n //Credits go to \n //http://stackoverflow.com/questions/10117049/get-only-email-address-from-contact-list-android\n ArrayList<String> emlRecs = new ArrayList<String>();\n HashSet<String> emlRecsHS = new HashSet<String>();\n Context context = getBaseContext();\n ContentResolver cr = context.getContentResolver();\n String[] projection = new String[] { \n ContactsContract.RawContacts._ID, \n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA, \n ContactsContract.CommonDataKinds.Photo.CONTACT_ID };\n String order = \"CASE WHEN \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \", \" \n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, projection, filter, null, order);\n if (cursor.moveToFirst()) {\n do {\n // names comes in hand sometimes\n //String name = cursor.getString(1);\n String emaillAddress = cursor.getString(EMAIL_INDEX);\n\n // keep unique only\n if (emlRecsHS.add(emaillAddress.toLowerCase(Locale.US))) {\n emlRecs.add(emaillAddress.toLowerCase(Locale.US));\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n Collections.sort(emlRecs.subList(0, emlRecs.size()));\n return emlRecs;\n }", "public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "public String getAllGroupUserByEmail(String email) {\n String result;\n GroupList groupList = new GroupList();\n List<GroupUser> listGroups = new ArrayList<GroupUser>();\n groupList.setTotal(0);\n groupList.setItems(null);\n groupList.setStatus(StewConstant.STATUS_CODE_NOT_FOUND);\n if (email != null && !\"\".equals(email)) {\n if (userGroupDetailAdapter.checkUserIsSupperAdmin(email)) {\n listGroups = groupAdapter.getGroupUsers();\n } else {\n List<Long> listGroupId = userGroupDetailAdapter.getGroupByManagerId(email);\n listGroups = groupController.getUserGroupByListIds(listGroupId);\n }\n \n Map<String, GroupUser> mapGroupUsers = new HashMap<String, GroupUser>();\n \n for (GroupUser groupUser:listGroups) {\n if (groupUser != null)\n mapGroupUsers.put(groupUser.getName(), groupUser);\n }\n \n List<GroupUser> lstNewGroupUsers = new ArrayList<GroupUser>(mapGroupUsers.values());\n \n int total = lstNewGroupUsers.size();\n groupList.setTotal(total);\n groupList.setStatus(StewConstant.STATUS_CODE_OK);\n\n groupList.setItems(lstNewGroupUsers);\n }\n result = gson.toJson(groupList);\n return result;\n }", "public List<MailList> getMailsByUser(Mail mail) {\n\t\tSenderList s= senderList.findByName(mail.getUserEmail(),mail.getPassword(),mail.getSaveDate());\n\t\t\n\t\treturn repository.findFalseByNameAll(s.getSid());\n\t}", "private void createAllUsersList(){\n\t\tunassignedUsersList.clear();\n\t\tlistedUsersAvailList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tunassignedUsersList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t}\n\t}", "public ArrayList<String> getUsersPollIDs(String email){\n \tfor (User user : list){\n \t\tif (user.getEmail().equals(email))\n \t\t\treturn user.getPollIDs();\n \t}\n \treturn null;\n }", "private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}", "Collection lookupTransactions(String email);", "private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }", "public String getEmailAddresses()\n {\n return this.emailAddresses;\n }", "private Set<String> getEmailAccounts() {\n HashSet<String> emailAccounts = new HashSet<>();\n AccountManager manager = (AccountManager) getContext().getSystemService(Context.ACCOUNT_SERVICE);\n final Account[] accounts = manager.getAccounts();\n for (Account account : accounts) {\n if (!TextUtils.isEmpty(account.name) && Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) {\n emailAccounts.add(account.name);\n }\n }\n return emailAccounts;\n }", "public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }", "private void populateUserMap(List<User> list) {\n\t\tfor (User user : list) {\n\t\t\tuserMap.put(user.getUserName(), user);\n\t\t}\n\n\t}", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\r\n new ArrayAdapter<>(LoginUserActivity.this,\r\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\r\n mLoginEmailView.setAdapter(adapter);\r\n }", "List<Email> selectByExample(EmailCriteria example);", "List<User> getUsers();", "List<User> getUsers();", "@Override\r\n\tpublic List<Users> sendnotificationMail() {\n\t\t\r\n\t\t\r\n\t\t\t\tString sqlSelectQuery = \"select email from libuser where userid=(select userid from libtrx where trx_date<= (LocalDate.now()-14) and trx_status in ('RS','RN','CO'))\"; \r\n\t\t\t\tList<Users> usersList= jdbcTemplate.query(sqlSelectQuery,new BeanPropertyRowMapper(Users.class));\r\n\t\t return usersList;\r\n\t}", "public List<User> getUsers();", "private void initObjects() {\n listUsers = new ArrayList<>();\n usersRecyclerAdapter = new UsersRecyclerAdapter(listUsers,UsersListActivity.this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewUsers.setLayoutManager(mLayoutManager);\n recyclerViewUsers.setItemAnimator(new DefaultItemAnimator());\n recyclerViewUsers.setHasFixedSize(true);\n recyclerViewUsers.setAdapter(usersRecyclerAdapter);\n\n databaseHelper = new HomeDatabaseHelper(activity);\n Intent extras = getIntent();\n emailFromIntent = extras.getStringExtra(\"EMAIL\");\n textViewRole = this.findViewById(R.id.textViewName);\n textViewRole.setText(emailFromIntent);\n getDataFromSQLite();\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByState(UByte... values) {\n return fetch(UserEmail.USER_EMAIL.STATE, values);\n }", "public List<User> listMutualFriends(String email_id1, String email_id2) {\n\t\t\n\t\tString first = \"from User where email_id in (select email_id2 as email_id from Friend where\"\n\t\t\t\t+ \" (email_id1 = :email_id1 and friends = 1))\";\n\t\tString second = \"from User where email_id in (select email_id1 as email_id from Friend where\"\n\t\t\t\t+ \" (email_id2 = :email_id1 and friends = 1))\";\n\t\tString third = \"from User where email_id in (select email_id2 as email_id from Friend where\"\n\t\t\t\t+ \" (email_id1 = :email_id2 and friends = 1))\";\n\t\tString fourth = \"from User where email_id in (select email_id1 as email_id from Friend where\"\n\t\t\t\t+ \" (email_id2 = :email_id2 and friends = 1))\";\n\t\t\n\t\tQuery list1 = getSession().createQuery(first);\n\t\tQuery list2 = getSession().createQuery(second);\n\t\tQuery list3 = getSession().createQuery(third);\n\t\tQuery list4 = getSession().createQuery(fourth);\n\t\t\n\t\tlist1.setParameter(\"email_id1\", email_id1);\n\t\tlist2.setParameter(\"email_id1\", email_id1);\n\t\tlist3.setParameter(\"email_id2\", email_id2);\n\t\tlist4.setParameter(\"email_id2\", email_id2);\n\t\t\n\t\tList<User> temp1 = (List<User>)list1.list();\n\t\tList<User> temp2 = (List<User>)list2.list();\n\t\tList<User> temp3 = (List<User>)list3.list();\n\t\tList<User> temp4 = (List<User>)list4.list();\n\t\tfor(User temp : temp1) {\n\t\t\tSystem.out.println(\"temp1\" + temp.getEmail_id());\n\t\t}\n\t\tfor(User temp : temp2) {\n\t\t\tSystem.out.println(\"temp2\" + temp.getEmail_id());\n\t\t}\n\t\tfor(User temp : temp3) {\n\t\t\tSystem.out.println(\"temp3\" + temp.getEmail_id());\n\t\t}\n\t\tfor(User temp : temp4) {\n\t\t\tSystem.out.println(\"temp4\" + temp.getEmail_id());\n\t\t}\n\t\t\n\t\tList<User> combined1 = mutualList(temp1, temp2);\n\t\tList<User> combined2 = mutualList(temp3, temp4);\n\t\t\n\t\tfor(User temp : combined1) {\n\t\t\tSystem.out.println(\"combined1\" + temp.getEmail_id());\n\t\t}\n\t\tfor(User temp : combined2) {\n\t\t\tSystem.out.println(\"combined2\" + temp.getEmail_id());\n\t\t}\n\t\t\n\t\treturn combineList(combined1, combined2);\n\t\t\n\t}", "public User getUser(String email) {\n for (User user : list) {\n if (user.getEmail().equals(email))\n return user; // user found. Return this user.\n }\n return null; // user not found. Return null.\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchByUserId(ULong... values) {\n return fetch(UserEmail.USER_EMAIL.USER_ID, values);\n }", "public User getUserByEmail(String email);", "public User getUserByEmail(String email);", "private String findDisplayName(String emailText) {\n for (User user : userList) {\n //Log.i(TAG, \"findDisplayName() : for loop\");\n if (user.getEmail().equals(emailText)) {\n //Log.i(TAG, \"emailText: \" + emailText);\n //Log.i(TAG, \"user.getEmail(): \" + user.getEmail());\n //Log.i(TAG, \"user.getUserName(): \" + user.getUserName());\n if (user.getUserName() == null) {\n break;\n }\n return user.getUserName();\n }\n }\n return \"No UserName\";\n }", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "List<Post> getPostForUser(String email) throws Exception;", "public ArrayList<User> getUsers() {return users;}", "@SuppressWarnings(\"unchecked\")\n\tpublic User getUserByEmail(String email, User user) {\n\t\tSession session = sessionFactory.openSession();\n\t\tList<User> userList = new ArrayList<>();\n\t\tuserList = (List<User>) session.createQuery(\"from User\");\n\t\tfor (User tempUser : userList) {\n\t\t\tif (tempUser.getEmail().equalsIgnoreCase(email)) {\n\t\t\t\tuser = tempUser;\n\t\t\t\tSystem.out.println(\"get uswer by email: \" + user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}", "public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }", "protected void updateTaskEmailsManually() {\n List<Object> arguments = new ArrayList<Object>();\n String emailToReplace = \"[email protected]\";\n arguments.add(emailToReplace);\n List<Task> results = BeanHelper.getWorkflowDbService().searchTasksAllStores(\"(wfc_owner_email=? )\", arguments, -1).getFirst();\n Map<QName, Serializable> changedProps = new HashMap<QName, Serializable>();\n for (Task task : results) {\n changedProps.clear();\n try {\n String ownerId = task.getOwnerId();\n String newTaskOwnerEmail = BeanHelper.getUserService().getUserEmail(ownerId);\n if (StringUtils.isBlank(newTaskOwnerEmail)) {\n LOG.warn(\"The e-mail of following task was not updated because no user e-mail address was found:\\n\" + task);\n continue;\n }\n changedProps.put(WorkflowCommonModel.Props.OWNER_EMAIL, newTaskOwnerEmail);\n BeanHelper.getWorkflowDbService().updateTaskEntryIgnoringParent(task, changedProps);\n LOG.info(\"Updated task [nodeRef=\" + task.getNodeRef() + \"] e-mail manually: \" + emailToReplace + \" -> \" + newTaskOwnerEmail);\n } catch (Exception e) {\n LOG.error(e);\n continue;\n }\n }\n }", "private void updateMailingList(String user, final boolean addUser) {\n DatabaseReference emailReference = mFirebaseDatabase.getReference().child(Keys.USERS).child(user).child(Keys.EMAIL);\n emailReference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String email = dataSnapshot.getValue(String.class);\n if (addUser) {\n mailingList.add(email);\n } else {\n mailingList.remove(email);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "User getUserByEmail(String email);", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mStudentId.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\r\n new ArrayAdapter<>(LoginActivity.this,\r\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\r\n\r\n mEmailView.setAdapter(adapter);\r\n }", "@Override\n public void setEmail(String email) {\n\n }", "public Object[] getEmails() {\r\n String encodedEmails = insertMode ? null : stringValue(CONTACTS_EMAIL_ADDRESSES);\r\n return decodeEmails(encodedEmails);\r\n }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public void addEmail(String s){\r\n\t\temail.add(s);\t\t\r\n\t}", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "private void addEmailsToAutoComplete(List<String> emailAddressCollection) {\n ArrayAdapter<String> adapter =\n new ArrayAdapter<String>(LoginActivity.this,\n android.R.layout.simple_dropdown_item_1line, emailAddressCollection);\n\n mEmailView.setAdapter(adapter);\n }", "public List<User> getUserList();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "User getUserByEmail(final String email);", "public void testMultipleEmailAddresses() {\n rootBlog.setProperty(SimpleBlog.EMAIL_KEY, \"[email protected],[email protected]\");\n assertEquals(\"[email protected],[email protected]\", rootBlog.getEmail());\n assertEquals(2, rootBlog.getEmailAddresses().size());\n Iterator it = rootBlog.getEmailAddresses().iterator();\n assertEquals(\"[email protected]\", it.next());\n assertEquals(\"[email protected]\", it.next());\n }", "public User getUser(String email);", "private void createUserListQual() {\n\t\tuserListAvailQual.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tuserListAvailQual.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t}\n\t}", "public void cacheResult(\n java.util.List<com.refcodes.portlets.businesscenter.model.BusinessUser> businessUsers);", "void setEmail(String email);" ]
[ "0.6687878", "0.64342725", "0.6321577", "0.612716", "0.6024995", "0.6013052", "0.59690374", "0.59411335", "0.59272885", "0.59178287", "0.58428586", "0.5806764", "0.5791775", "0.57874227", "0.5786541", "0.5781843", "0.57807094", "0.5765513", "0.5742272", "0.5734903", "0.5730785", "0.57277656", "0.57265115", "0.5715596", "0.5713512", "0.569652", "0.56664157", "0.5661828", "0.5654819", "0.5653177", "0.5637563", "0.5627757", "0.5614558", "0.5609728", "0.55960715", "0.55932575", "0.55727977", "0.5571375", "0.5553312", "0.55512345", "0.5549094", "0.5544663", "0.5531659", "0.5523123", "0.55183214", "0.55178666", "0.5508681", "0.5508317", "0.54954714", "0.54919064", "0.5486259", "0.5485889", "0.5481622", "0.5476167", "0.5473217", "0.5466196", "0.54637593", "0.54637593", "0.5458056", "0.545766", "0.54460204", "0.54437643", "0.5442242", "0.5441606", "0.54411304", "0.5435773", "0.5435773", "0.5426193", "0.5423256", "0.5419154", "0.54159206", "0.541565", "0.54135627", "0.5405992", "0.53986543", "0.5379372", "0.5379372", "0.5379372", "0.5379372", "0.5379372", "0.5379372", "0.5379372", "0.5379372", "0.537837", "0.5375681", "0.53700566", "0.5364437", "0.5361556", "0.53605574", "0.53596467", "0.53559536", "0.53559536", "0.534863", "0.5348033", "0.53464293", "0.53458136", "0.53341126", "0.5327586", "0.532571", "0.5323128" ]
0.69000304
0
Get resource extender history filtered list for email notification
private List<ResourceExtenderHistory> getResourceExtenderHistoryListForEmail( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm ) { List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( ); for ( String extenderType : config.getListExtenderTypesForEmail( ) ) { ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( ); filter.setExtenderType( extenderType ); filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) ); filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) ); listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) ); } return listResourceExtenderHistory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<ResourceExtenderHistory> getResourceExtenderHistoryListForDashboard( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm )\n {\n List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( );\n\n for ( String extenderType : config.getListExtenderTypesForDashboard( ) )\n {\n ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( );\n filter.setExtenderType( extenderType );\n filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) );\n filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) );\n \n listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) );\n }\n return listResourceExtenderHistory;\n }", "INexusFilterDescriptor[] getFilterDescriptorHistory();", "java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();", "public Collection getReceivedNotifications();", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n if (exchangeHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exchangeHistoryList_);\n } else {\n return exchangeHistoryListBuilder_.getMessageList();\n }\n }", "public List<MessageResourceHistory> listMessageResourceHistory(Long messageResource) throws Exception;", "hr.client.appuser.CouponCenter.ExchangeRecord getExchangeHistoryList(int index);", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n return exchangeHistoryList_;\n }", "public List<InteractionEvent> getInteractionHistory() {\n \t\tSet<InteractionEvent> events = new HashSet<InteractionEvent>();\n \t\tfor (InteractionContext taskscape : contexts.values()) {\n \t\t\tevents.addAll(taskscape.getInteractionHistory());\n \t\t}\n \t\treturn new ArrayList<InteractionEvent>(events);\n \t}", "public ResourcesHistory resourcesHistory() {\n return this.resourcesHistory;\n }", "public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }", "public SubscriberNumberMgmtHistory getHistory()\r\n {\r\n return history_;\r\n }", "public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}", "java.util.List<? extends hr.client.appuser.CouponCenter.ExchangeRecordOrBuilder> \n getExchangeHistoryListOrBuilderList();", "public List<String> getNotificationList() throws Exception {\r\n ArrayList<String> cache = new ArrayList<String>();\r\n for (DOMFace nr : getChildren(\"notification\", DOMFace.class)) {\r\n cache.add(nr.getAttribute(\"pagekey\"));\r\n }\r\n return cache;\r\n }", "public List getAccessRequestHistoryExternal() {\n List sortedList = new ArrayList(getAccessRequestHistory());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "public AccountResourcesHistory accountResourcesHistory() {\n return this.accountResourcesHistory;\n }", "static HistoryEvent[] getHistoryEvents() {\n/* 73 */ HISTORY_RW_LOCK.readLock().lock();\n/* */ \n/* */ try {\n/* 76 */ return HISTORY.<HistoryEvent>toArray(new HistoryEvent[HISTORY.size()]);\n/* */ }\n/* */ finally {\n/* */ \n/* 80 */ HISTORY_RW_LOCK.readLock().unlock();\n/* */ } \n/* */ }", "public AccountAttachmentsHistory accountAttachmentsHistory() {\n return this.accountAttachmentsHistory;\n }", "public List<MessageFilter> getFilters();", "public hr.client.appuser.CouponCenter.ExchangeRecord getExchangeHistoryList(int index) {\n if (exchangeHistoryListBuilder_ == null) {\n return exchangeHistoryList_.get(index);\n } else {\n return exchangeHistoryListBuilder_.getMessage(index);\n }\n }", "@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }", "public hr.client.appuser.CouponCenter.ExchangeRecord getExchangeHistoryList(int index) {\n return exchangeHistoryList_.get(index);\n }", "public List<Email> getUnregisteredEmailList(Ram ram);", "int getExchangeHistoryListCount();", "List<ExchangeRateDto> getHistoryRates(ExchangeRateHistoryFilter filter);", "@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();", "public ArrayList<String> getAlerts() {\n ArrayList<String> finalList = new ArrayList<>();\n finalList.addAll(priorityAlerts);\n finalList.addAll(alerts);\n return finalList;\n }", "public java.util.List<? extends hr.client.appuser.CouponCenter.ExchangeRecordOrBuilder> \n getExchangeHistoryListOrBuilderList() {\n if (exchangeHistoryListBuilder_ != null) {\n return exchangeHistoryListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(exchangeHistoryList_);\n }\n }", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord.Builder> \n getExchangeHistoryListBuilderList() {\n return getExchangeHistoryListFieldBuilder().getBuilderList();\n }", "public RoleResourcesHistory roleResourcesHistory() {\n return this.roleResourcesHistory;\n }", "public Object getChannelActivityHistoryReport() {\n return channelActivityHistoryReport;\n }", "public List<Order> getOrderHistory();", "public List<ReceiverEntity> obtenerReceivers(){\r\n List<ReceiverEntity> receivers = persistence.findAll();\r\n return receivers;\r\n }", "@Override\n public List<EmailNotification> list() {\n DetachedCriteria criteria = DetachedCriteria.forClass(EmailNotification.class);\n List<EmailNotification> notifications = hibernateTemplate.findByCriteria(criteria);\n return notifications;\n }", "public ArrayList<String> getEvents() {\n // TODO\n return res;\n }", "private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}", "public Collection<String> getNotifyList() {\n Set<String> result;\n String list = getDbProperties().getProperty(Constants.NOTIFY_LIST);\n if (list != null) {\n result = Arrays.stream(list.split(\"[, ]+\"))\n .map(String::trim)\n .collect(Collectors.toSet());\n } else {\n result = new HashSet<>();\n }\n return result;\n }", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }", "AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}", "public Iterable<Console> getAllNotifications(){\n return consoleRepository.findAll();\n }", "@Override\n\tpublic List<ExchangeHistory> getMyExchangeHistoryList(int userID) {\n\t\treturn exchangeHistoryMapper.getMyExchangeHistoryList(userID);\n\t}", "@Override\n\tpublic List<String> getEventLog() {\n\t\tif(network != null)\n\t\t\treturn Arrays.asList(\n\t\t\t\t\tnetwork.getErrorLog()\n\t\t\t\t\t.toArray(new String[0]));\n\t\telse\n\t\t\treturn new ArrayList<>();\n\t}", "public String getHistory () {\n\t\treturn history;\n\t}", "@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "String getReportsTo();", "public Map getReceivers();", "public java.util.List<EncounterStatusHistory> statusHistory() {\n return getList(EncounterStatusHistory.class, FhirPropertyNames.PROPERTY_STATUS_HISTORY);\n }", "public List<PersistRequestBean<?>> listenerNotify() {\n return listenerNotify;\n }", "public java.util.List<? extends hr.client.appuser.CouponCenter.ExchangeRecordOrBuilder> \n getExchangeHistoryListOrBuilderList() {\n return exchangeHistoryList_;\n }", "NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;", "@Generated(hash = 465397896)\n public List<SearchHistoryTable> getListSearchHistory() {\n if (listSearchHistory == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n SearchHistoryTableDao targetDao = daoSession.getSearchHistoryTableDao();\n List<SearchHistoryTable> listSearchHistoryNew = targetDao._queryUserTable_ListSearchHistory(id);\n synchronized (this) {\n if (listSearchHistory == null) {\n listSearchHistory = listSearchHistoryNew;\n }\n }\n }\n return listSearchHistory;\n }", "@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}", "public List<ReceiverEntity> obtenerReceiversHora(){\r\n System.out.println(\"Se ejecuta cvapa logica\");\r\n List<ReceiverEntity> receivers = persistence.findByHour();\r\n return receivers;\r\n }", "public ArrayList<String> getBrowseHistory() {\n \treturn this.browseHistory;\n }", "public List<Invoke> getNotification() {\n return getInvoke();\n }", "public int getExchangeHistoryListCount() {\n return exchangeHistoryList_.size();\n }", "public List<RefineriesFilter> getRefineriesFilter();", "public List getChangedEvents() {\n return new ArrayList(originalDnr.keySet());\n }", "List<HistoryData> loadAllHistoryData();", "public RecordSet loadAllProcessEventHistory(Record inputRecord);", "public String getTravelRequisitionHistoryList() {\n\t\t// default method invoked when this action is called - struts framework rule\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"inside expense history action\");\n\t\tString status = \"\";\n\t\ttreqMaster = (TravelReqMasters) session.get(IConstants.TRAVEL_REQUISITION_SESSION_DATA);\n\n\t\tif (treqMaster == null) {\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t} else {\n\t\t\ttreqHistoryList = treqService.getTravelRequisitionHistory(treqMaster.getTreqeIdentifier().getTreqeIdentifier());\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t\tstatus = treqMaster.getStatus();\n\t\t\tString nextActionCode = null;\n\t\t\tnextActionCode = treqService.getNextActionCode(treqMaster);\n\t\t\tif (nextActionCode != null) {\n\t\t\t\tsetStatus(treqService.getRemainingApprovalPaths(\n\t\t\t\t\t\ttreqMaster.getTreqmIdentifier(), getUserSubject()));\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t\tif (status != null) {\n\t\t\t\t\tif (status.equals(IConstants.APPROVED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.EXTRACTED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.HOURS_ADJUSTMENT_SENT)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_APPROVED_EXTRACTED_HOURS_ADJUSTMENT_SENT);\n\t\t\t\t\t} else if (status.equals(IConstants.PROCESSED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_PROCESSED);\n\t\t\t\t\t} else if (status.equals(IConstants.REJECTED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_REJECTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_NEEDSTOBESUBMITTED);\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn IConstants.SUCCESS;\n\t}", "List<List<String>> getFilters(String resource);", "public List<Events> getAllSystemEventsListForAll();", "public List<MessageResource> listMessageResource();", "ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);", "ObservableList<ReadOnlyEvent> getFilteredEventList();", "List<RequestHistory> getQueries() throws RemoteException;", "public CallLog[] getCallLogs();", "public List<Weather> getHistory() {\n return weatherRepo.findAll();\n }", "public List<String> getRunLogAsList();", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "public CallLog[] getCallHistoryForAddress(Address addr);", "public Cursor getListAsResultSet() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetResultSet(sql);\n }", "List<Notification> getNotifications(String lineID);", "public String history(){\n return this.inventoryHistory.toString();\n }", "public List<DatastreamVersion> listChangedDatastreams();", "@SuppressWarnings(\"unused\")\n public static List<DiscordChatReceiver> getReceiversList() {\n return DiscordListener.receivers;\n }", "hr.client.appuser.CouponCenter.ExchangeRecordOrBuilder getExchangeHistoryListOrBuilder(\n int index);", "ResponseEntity<List<GenericRatesHistory>> getGenericRatesHistory();", "public float[] getCountHistory() {\n return countMonitor.getHistory();\n }", "public ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;", "public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }", "private List<DataRecord> loadRefTableChanges() {\n \n final DataSource changesDataSource =\n ProjectUpdateWizardUtilities\n .createDataSourceForTable(ProjectUpdateWizardConstants.AFM_FLDS_TRANS);\n changesDataSource.addRestriction(Restrictions.in(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHANGE_TYPE, DifferenceMessage.NEW.name()\n + \",\" + DifferenceMessage.REF_TABLE.name()));\n changesDataSource.addRestriction(Restrictions.eq(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHOSEN_ACTION,\n Actions.APPLY_CHANGE.getMessage()));\n\n return changesDataSource.getRecords();\n }", "public List<LogEvent> getEvents() {\n return publicEvents;\n }", "public List<SearchLog> getSearchLogList() {\n if (_searchLogList == null) { _searchLogList = newReferrerList(); }\n return _searchLogList;\n }", "public java.util.List<hr.client.appuser.CouponCenter.StreamCouponHistory> getStreamCouponHistoryListList() {\n if (streamCouponHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(streamCouponHistoryList_);\n } else {\n return streamCouponHistoryListBuilder_.getMessageList();\n }\n }", "public List<Events> getAllEventsAndHistoryForUser(long userId);", "private ArrayList<HashMap<String, String>> getList(){\n return alertList;\n }", "public Pipe[] getTails() {\n\t\tsetPrevious(history, mainstream);\n\n\t\t/* Rename history for join with main */\n\t\tfinal Fields masked = Fields.mask(fields, fields);\n\t\tPipe chronicle = new Rename(history, fields, masked);\n\n\t\t/* perform a right join the history with a main stream and filter out unchanged */\n\t\tPipe join = new CoGroup(chronicle, fields.selectPos(byKey), mainstream, byKey, new BufferJoin());\n\t\tjoin = new Every(join, new ChronicleJoiner(fields, sign), Fields.RESULTS);\n\n\t\tPipe nextHistory = new Pipe(\"next-history\", join);\n\t\tnextHistory = new Retain(nextHistory, masked);\n\t\tnextHistory = new Rename(nextHistory, masked, fields);\n\n\t\tPipe changed = new Pipe(\"changed\", join);\n\t\tchanged = new Retain(changed, fields);\n\t\tchanged = new Each(changed, fields, new FilterNull());\n\n\t\tsetTails(nextHistory, changed);\n\t\treturn super.getTails();\n\t}", "public Map<String, PropertyHistoryDTO> getPropertyHistory() {\n return propertyHistory;\n }", "List<String> getActiveFilters();", "public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }", "java.util.List<hr.client.appuser.CouponCenter.StreamCouponHistory> \n getStreamCouponHistoryListList();", "protected abstract AID[] getReceivers();", "public AccountsHistory accountsHistory() {\n return this.accountsHistory;\n }", "@Override\r\n\tpublic List<NoticeVO> recentNoticeList() {\n\t\treturn sqlSession.selectList(namespace + \".recentNoticeList\");\r\n\t}", "private List<Performance> quizHistory(){\n\t\treturn history;\n\t}" ]
[ "0.70336926", "0.66236037", "0.661627", "0.6372828", "0.6304487", "0.6221855", "0.61286515", "0.6045993", "0.6025018", "0.60130966", "0.59868574", "0.59828895", "0.5914531", "0.58753836", "0.5869433", "0.58632386", "0.5770808", "0.5767074", "0.5754002", "0.57025415", "0.56716883", "0.5657613", "0.56332403", "0.56147444", "0.5593585", "0.5590753", "0.55762756", "0.5572442", "0.5536377", "0.55140424", "0.5510318", "0.55037326", "0.5493648", "0.5491456", "0.5486322", "0.5484173", "0.5482845", "0.54325837", "0.5409172", "0.5409172", "0.5388205", "0.53842", "0.5380701", "0.537866", "0.53654957", "0.53586626", "0.5332924", "0.5327225", "0.5327137", "0.53164494", "0.5308216", "0.5303209", "0.52988887", "0.52972555", "0.5281341", "0.5279779", "0.52766246", "0.5276598", "0.52748746", "0.527459", "0.5273716", "0.5263218", "0.5254244", "0.52529395", "0.5244373", "0.5225255", "0.5211262", "0.5207128", "0.52024156", "0.5198865", "0.5192045", "0.5187501", "0.51858866", "0.51844835", "0.5176676", "0.5163773", "0.5146584", "0.51461977", "0.51460373", "0.51372373", "0.5134931", "0.51293504", "0.51239", "0.51220375", "0.5120873", "0.5120586", "0.51175535", "0.5112744", "0.5111841", "0.5108684", "0.51045763", "0.51013273", "0.5085228", "0.5085089", "0.5077922", "0.5077351", "0.5076074", "0.5072886", "0.5072738", "0.5066674" ]
0.7728827
0
Get resource extender history filtered list for dashboard notification
private List<ResourceExtenderHistory> getResourceExtenderHistoryListForDashboard( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm ) { List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( ); for ( String extenderType : config.getListExtenderTypesForDashboard( ) ) { ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( ); filter.setExtenderType( extenderType ); filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) ); filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) ); listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) ); } return listResourceExtenderHistory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<ResourceExtenderHistory> getResourceExtenderHistoryListForEmail( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm )\n {\n List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( );\n \n for ( String extenderType : config.getListExtenderTypesForEmail( ) )\n {\n ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( );\n filter.setExtenderType( extenderType );\n filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) );\n filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) );\n \n listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) );\n }\n \n return listResourceExtenderHistory;\n }", "INexusFilterDescriptor[] getFilterDescriptorHistory();", "public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }", "public ResourcesHistory resourcesHistory() {\n return this.resourcesHistory;\n }", "public List<MessageResourceHistory> listMessageResourceHistory(Long messageResource) throws Exception;", "java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();", "public AccountResourcesHistory accountResourcesHistory() {\n return this.accountResourcesHistory;\n }", "public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}", "static HistoryEvent[] getHistoryEvents() {\n/* 73 */ HISTORY_RW_LOCK.readLock().lock();\n/* */ \n/* */ try {\n/* 76 */ return HISTORY.<HistoryEvent>toArray(new HistoryEvent[HISTORY.size()]);\n/* */ }\n/* */ finally {\n/* */ \n/* 80 */ HISTORY_RW_LOCK.readLock().unlock();\n/* */ } \n/* */ }", "List<HistoryData> loadAllHistoryData();", "public List<InteractionEvent> getInteractionHistory() {\n \t\tSet<InteractionEvent> events = new HashSet<InteractionEvent>();\n \t\tfor (InteractionContext taskscape : contexts.values()) {\n \t\t\tevents.addAll(taskscape.getInteractionHistory());\n \t\t}\n \t\treturn new ArrayList<InteractionEvent>(events);\n \t}", "private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n if (exchangeHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(exchangeHistoryList_);\n } else {\n return exchangeHistoryListBuilder_.getMessageList();\n }\n }", "public List<Weather> getHistory() {\n return weatherRepo.findAll();\n }", "public SubscriberNumberMgmtHistory getHistory()\r\n {\r\n return history_;\r\n }", "public Collection getReceivedNotifications();", "public List getAccessRequestHistoryExternal() {\n List sortedList = new ArrayList(getAccessRequestHistory());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "public java.util.List<EncounterStatusHistory> statusHistory() {\n return getList(EncounterStatusHistory.class, FhirPropertyNames.PROPERTY_STATUS_HISTORY);\n }", "public List<DatastreamVersion> listChangedDatastreams();", "public Object getChannelActivityHistoryReport() {\n return channelActivityHistoryReport;\n }", "hr.client.appuser.CouponCenter.ExchangeRecord getExchangeHistoryList(int index);", "List<List<String>> getFilters(String resource);", "@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();", "public RoleResourcesHistory roleResourcesHistory() {\n return this.roleResourcesHistory;\n }", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> getExchangeHistoryListList() {\n return exchangeHistoryList_;\n }", "public List<String> getRunLogAsList();", "public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }", "public List<Events> getAllSystemEventsListForAll();", "public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }", "AbstractList<BalanceChange> recentActivity() {\r\n\t\tArrayList<BalanceChange> activity = new ArrayList<BalanceChange>();\r\n\t\t\r\n\t\tint i=10;\r\n\t\twhile (i > 0) {\r\n\t\t\t//TODO\r\n\t\t\ti--;\r\n\t\t}\r\n\t\t\r\n\t\treturn activity;\r\n\t}", "public String getTravelRequisitionHistoryList() {\n\t\t// default method invoked when this action is called - struts framework rule\n\t\tif (logger.isDebugEnabled())\n\t\t\tlogger.debug(\"inside expense history action\");\n\t\tString status = \"\";\n\t\ttreqMaster = (TravelReqMasters) session.get(IConstants.TRAVEL_REQUISITION_SESSION_DATA);\n\n\t\tif (treqMaster == null) {\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t} else {\n\t\t\ttreqHistoryList = treqService.getTravelRequisitionHistory(treqMaster.getTreqeIdentifier().getTreqeIdentifier());\n\t\t\tsuper.setJsonResponse(jsonParser.toJson(treqHistoryList));\n\t\t\tstatus = treqMaster.getStatus();\n\t\t\tString nextActionCode = null;\n\t\t\tnextActionCode = treqService.getNextActionCode(treqMaster);\n\t\t\tif (nextActionCode != null) {\n\t\t\t\tsetStatus(treqService.getRemainingApprovalPaths(\n\t\t\t\t\t\ttreqMaster.getTreqmIdentifier(), getUserSubject()));\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t\tif (status != null) {\n\t\t\t\t\tif (status.equals(IConstants.APPROVED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.EXTRACTED)\n\t\t\t\t\t\t\t|| status.equals(IConstants.HOURS_ADJUSTMENT_SENT)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_APPROVED_EXTRACTED_HOURS_ADJUSTMENT_SENT);\n\t\t\t\t\t} else if (status.equals(IConstants.PROCESSED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_PROCESSED);\n\t\t\t\t\t} else if (status.equals(IConstants.REJECTED)) {\n\t\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_REJECTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetStatus(IConstants.HISTORYMSG_NEEDSTOBESUBMITTED);\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn IConstants.SUCCESS;\n\t}", "List<ExchangeRateDto> getHistoryRates(ExchangeRateHistoryFilter filter);", "@Generated(hash = 465397896)\n public List<SearchHistoryTable> getListSearchHistory() {\n if (listSearchHistory == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n SearchHistoryTableDao targetDao = daoSession.getSearchHistoryTableDao();\n List<SearchHistoryTable> listSearchHistoryNew = targetDao._queryUserTable_ListSearchHistory(id);\n synchronized (this) {\n if (listSearchHistory == null) {\n listSearchHistory = listSearchHistoryNew;\n }\n }\n }\n return listSearchHistory;\n }", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public List<Order> getOrderHistory();", "java.util.List<com.google.monitoring.dashboard.v1.DashboardFilter> getDashboardFiltersList();", "public Iterable<Console> getAllNotifications(){\n return consoleRepository.findAll();\n }", "@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }", "public List<RefineriesFilter> getRefineriesFilter();", "public String getHistory () {\n\t\treturn history;\n\t}", "@Override\n\tpublic List<String> getEventLog() {\n\t\tif(network != null)\n\t\t\treturn Arrays.asList(\n\t\t\t\t\tnetwork.getErrorLog()\n\t\t\t\t\t.toArray(new String[0]));\n\t\telse\n\t\t\treturn new ArrayList<>();\n\t}", "public String history(){\n return this.inventoryHistory.toString();\n }", "java.util.List<hr.client.appuser.CouponCenter.StreamCouponHistory> \n getStreamCouponHistoryListList();", "@Override\n public List<Report> getStatusList(){\n List<Report> statusList = null;\n statusList = adminMapper.getStatusList();\n return statusList;\n }", "List<RequestHistory> getQueries() throws RemoteException;", "public List<MessageFilter> getFilters();", "org.naru.park.ParkController.CommonAction getGetUserHistory();", "public CallLog[] getCallLogs();", "List<String> getActiveFilters();", "ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);", "int getExchangeHistoryListCount();", "private List<Performance> quizHistory(){\n\t\treturn history;\n\t}", "java.util.List<io.opencannabis.schema.commerce.CommercialOrder.StatusCheckin> \n getActionLogList();", "public ArrayList<String> getEvents() {\n // TODO\n return res;\n }", "public List<String> getNotificationList() throws Exception {\r\n ArrayList<String> cache = new ArrayList<String>();\r\n for (DOMFace nr : getChildren(\"notification\", DOMFace.class)) {\r\n cache.add(nr.getAttribute(\"pagekey\"));\r\n }\r\n return cache;\r\n }", "public float[] getCountHistory() {\n return countMonitor.getHistory();\n }", "private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}", "ResponseEntity<List<GenericRatesHistory>> getGenericRatesHistory();", "public interface SlackChannelHistory {\n\n public Collection<? extends SlackMessageEvent> getChannelEvents();\n\n public SlackChannel getChannel();\n\n public String getLatest();\n\n public boolean hasMore();\n\n}", "public java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord.Builder> \n getExchangeHistoryListBuilderList() {\n return getExchangeHistoryListFieldBuilder().getBuilderList();\n }", "@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}", "java.util.List<? extends hr.client.appuser.CouponCenter.ExchangeRecordOrBuilder> \n getExchangeHistoryListOrBuilderList();", "public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}", "public ArrayList<String> getAlerts() {\n ArrayList<String> finalList = new ArrayList<>();\n finalList.addAll(priorityAlerts);\n finalList.addAll(alerts);\n return finalList;\n }", "public List<Events> getAllEventsAndHistoryForUser(long userId);", "List<ServiceAppliedStatusHistory> findAll();", "ObservableList<ReadOnlyEvent> getFilteredEventList();", "public List<MyStockHist> getMystockHistAlltList(MyStockHist myStockHist) ;", "public List<CommissionDistribution> lookupHistory(Long sourceAccount) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n // Adding to list\n history.add(glucosedata);\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }", "public java.util.List<hr.client.appuser.CouponCenter.StreamCouponHistory> getStreamCouponHistoryListList() {\n if (streamCouponHistoryListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(streamCouponHistoryList_);\n } else {\n return streamCouponHistoryListBuilder_.getMessageList();\n }\n }", "@GET\n @ApiOperation(\"Get process status history\")\n @javax.ws.rs.Path(\"/{instanceId}/history\")\n @Produces(MediaType.APPLICATION_JSON)\n @WithTimer\n public List<ProcessStatusHistoryEntry> getStatusHistory(@ApiParam @PathParam(\"instanceId\") UUID instanceId) throws IOException {\n ProcessKey pk = assertKey(instanceId);\n return queueDao.getStatusHistory(pk);\n }", "public List<String> getTelemetryList() {\n List<String> telemetryList = new ArrayList<String>();\n if (this.getTelemetrys().isEmpty()) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n for (TelemetryChartRef chartRef : client.getChartIndex().getTelemetryChartRef()) {\n getTelemetrys().put(chartRef.getName(), client.getChartDefinition(chartRef.getName()));\n }\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n telemetryList.addAll(this.getTelemetrys().keySet());\n Collections.sort(telemetryList);\n return telemetryList;\n }", "public ArrayList<AirTimeHistory> getAllHistory() {\n\t Cursor histories = db.query(TABLE_AIRTIME_HISTORY, null, null, null, null, null, KEY_ID + \" DESC\");\n\t \n\t ArrayList<AirTimeHistory> result = new ArrayList<AirTimeHistory>();\n\t if (histories.moveToFirst()){\n\t\t do {\n\t\t\t AirTimeHistory newItem = new AirTimeHistory();\n\t\t\t newItem.setID(histories.getString(0));\n\t\t\t newItem.setEmail(histories.getString(USER_EMAIL_COLUMN));\n\t\t\t newItem.setPhoneNumber(histories.getString(USER_NUMBER_COLUMN));\n\t\t\t newItem.setNetwork(histories.getString(NETWORK_COLUMN));\n\t\t\t newItem.setAmount(histories.getString(AMOUNT_COLUMN));\n\t\t\t newItem.setDateTime(histories.getString(DATE_TIME_COLUMN));\n\t\t\t newItem.setNetworkIndex(histories.getString(NETWORK_INDEX_COLUMN));\n\t\t\t newItem.setTransactionID(histories.getString(TRANSACTION_ID_COLUMN));\n\t\t\t newItem.setTransactionStatus(histories.getString(TRANSACTION_STATUS_COLUMN));\n\t\t\t newItem.setCountry(histories.getString(COUNTRY_COLUMN));\n\t\t\t newItem.setCountryIndex(histories.getString(COUNTRY_INDEX_COLUMN));\n\t\t\t newItem.setChosenAmountIndex(histories.getString(CHOSEN_AMOUNT_INDEX_COLUMN));\n\t\t\t newItem.setCurrency(histories.getString(CURRENCY_COLUMN));\n\t\t\t newItem.setTopupStatus(histories.getString(TOPUP_STATUS_COLUMN));\n\t\t\t newItem.setGatewayID(histories.getString(GATEWAY_ID3_COLUMN));\n\t\t\t newItem.setServerTime(histories.getString(SERVER_TIME_COLUMN));\n\t\t\t newItem.setAmountCharged(histories.getString(AMOUNT_CHARGED_COLUMN));\n\t\t\t newItem.setPayUrl(histories.getString(PAY_URL_COLUMN));\n\t\t\t \n\t\t\t result.add(newItem);\n\t\t } while(histories.moveToNext());\n\t }\n\t \n\t histories.close();\n\t \n\t return result;\n\t}", "public List<LogEvent> getEvents() {\n return publicEvents;\n }", "private IOperationHistory getOperationHistory() {\n return PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();\n }", "@Override\r\n\tpublic List<Logbook> viewRecords() {\n\t\treturn user.viewRecords();\r\n\t}", "public ArrayList<String> getCommandHistory() {\r\n return commandHistory;\r\n }", "public Map<String, PropertyHistoryDTO> getPropertyHistory() {\n return propertyHistory;\n }", "public RecordSet loadAllProcessEventHistory(Record inputRecord);", "public List getChangedEvents() {\n return new ArrayList(originalDnr.keySet());\n }", "public List<WatchRecord> getWatchList() throws Exception {\r\n List<WatchRecord> watchList = new Vector<WatchRecord>();\r\n List<WatchRecordXML> chilluns = this.getChildren(\"watch\", WatchRecordXML.class);\r\n for (WatchRecordXML wr : chilluns) {\r\n watchList.add(new WatchRecord(wr.getPageKey(), wr.getLastSeen()));\r\n }\r\n return watchList;\r\n }", "protected List<String> extractEventSuffixHyphenatedNameList(UrlReverseResource resource) {\n return restfulComponentAnalyzer.extractEventSuffixHyphenatedNameList(resource.getActionType());\n }", "@Test\n public void listAppHistoryTest() throws ApiException {\n Boolean naked = null;\n String appId = null;\n String status = null;\n String created = null;\n Long limit = null;\n Long offset = null;\n // HistoryEvent response = api.listAppHistory(naked, appId, status, created, limit, offset);\n\n // TODO: test validations\n }", "@RequestMapping(value = \"/clinicHistoryAddInfs\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ClinicHistoryAddInf> getAll(@RequestParam(required = false) String filter) {\n if (\"clinic_add_inf-is-null\".equals(filter)) {\n log.debug(\"REST request to get all ClinicHistoryAddInfs where clinic_add_inf is null\");\n List clinicHistoryAddInfs = new ArrayList<ClinicHistoryAddInf>();\n for (ClinicHistoryAddInf clinicHistoryAddInf : clinicHistoryAddInfRepository.findAll()) {\n if (clinicHistoryAddInf.getClinicHistory()== null) {\n clinicHistoryAddInfs.add(clinicHistoryAddInf);\n }\n }\n return clinicHistoryAddInfs;\n }\n\n log.debug(\"REST request to get all ClinicHistoryAddInfs\");\n return clinicHistoryAddInfRepository.findAll();\n }", "public hr.client.appuser.CouponCenter.ExchangeRecord getExchangeHistoryList(int index) {\n return exchangeHistoryList_.get(index);\n }", "public Collection<ReservationHistoryDTO> getReservationsHistory() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightReservationId(flightReservation.getId());\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\treservationDTO.setRoomReservationId(roomReservation.getId());\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t\t//Long hotelId videcemo kako\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\treservationDTO.setVehicleReservationId(vehicleReservation.getId());\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}", "public List<Invoke> getNotification() {\n return getInvoke();\n }", "public List<PatchLogInfo> listPatchLogInfo() {\n List<PatchLogInfo> x = new ArrayList<>();\n dataRegistry.forEach((id, ds)-> x.add(ds.getPatchLog().getDescription()));\n return x;\n }", "public abstract List<String> getCachedLogs(String readerName);", "@Override\n\tpublic List<ExchangeHistory> getMyExchangeHistoryList(int userID) {\n\t\treturn exchangeHistoryMapper.getMyExchangeHistoryList(userID);\n\t}", "public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);", "public List<SearchLog> getSearchLogList() {\n if (_searchLogList == null) { _searchLogList = newReferrerList(); }\n return _searchLogList;\n }", "public List<SensorResponse> getFilteredList(){\n return filteredList;\n }", "public ArrayList<String> getBrowseHistory() {\n \treturn this.browseHistory;\n }", "@JsonGetter(\"purchase_history\")\n public List<PurchaseInfo> getPurchaseHistory ( ) { \n return this.purchaseHistory;\n }", "public List<Activity> getAllActivities();", "public AccountsHistory accountsHistory() {\n return this.accountsHistory;\n }", "NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;" ]
[ "0.71513516", "0.6843377", "0.6459882", "0.64429516", "0.64009494", "0.6335435", "0.59773016", "0.59682906", "0.5944167", "0.59156275", "0.5902789", "0.5892813", "0.5886703", "0.58395773", "0.5832155", "0.5808384", "0.57758486", "0.57630104", "0.57481116", "0.5745351", "0.5744115", "0.57415605", "0.57272315", "0.5707304", "0.5703241", "0.56937593", "0.568136", "0.561139", "0.5605339", "0.5603979", "0.5572269", "0.5567915", "0.5560987", "0.5554777", "0.5554777", "0.55442095", "0.5544194", "0.55394197", "0.5529923", "0.550351", "0.55014354", "0.5495413", "0.5470834", "0.547067", "0.5469385", "0.5443622", "0.54376507", "0.5435289", "0.5430591", "0.5429118", "0.5401481", "0.5396801", "0.5396084", "0.5391296", "0.53888434", "0.5387039", "0.53870225", "0.53841984", "0.538184", "0.5362832", "0.53579164", "0.53570545", "0.53555155", "0.53494954", "0.5334065", "0.5328402", "0.5327006", "0.5314884", "0.5309386", "0.53073215", "0.52969074", "0.52933586", "0.5292103", "0.5289767", "0.52828825", "0.5280275", "0.5277218", "0.52742183", "0.52592576", "0.52581686", "0.52550393", "0.5252805", "0.52388847", "0.5224353", "0.5224085", "0.521879", "0.5215426", "0.52128476", "0.521018", "0.5201233", "0.519327", "0.51895136", "0.5188079", "0.5187177", "0.5185714", "0.51851267", "0.51849055", "0.5184408", "0.5183716", "0.51789945" ]
0.75217366
0
Constructor with mandatory data.
public TextAreaMessageDisplay(@NotNull final TextArea textArea) { super(); Utils4J.checkNotNull("textArea", textArea); this.textArea = textArea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Data() {\n \n }", "public InitialData(){}", "public DesastreData() { //\r\n\t}", "public CompanyData() {\r\n }", "protected VersionData() {}", "public PollData() {\n\n\n super(TYPE_NAME);\n }", "public SensorData() {\n\n\t}", "public CompositeData()\r\n {\r\n }", "public TradeData() {\r\n\r\n\t}", "public StringData() {\n\n }", "public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }", "public UserData() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public StringData1() {\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public NetworkData() {\n }", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "public mainData() {\n }", "public FilterData() {\n }", "public LineData()\n\t{\n\t}", "DataHRecordData() {}", "public Constructor(){\n\t\t\n\t}", "public DataAdapter() {\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public DataBean() {\r\n \r\n }", "public CreateStatus()\n {\n super(new DataMap(), null);\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public LocationData()\n {\n }", "@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}", "public RegisterNewData() {\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public ActuatorData()\n\t{\n\t\tsuper(); \n\t}", "public PickUpCasualtyRequest() {\n\n // empty\n }", "public ReportVersionData() {\n this(\"report_version_data\", null);\n }", "protected VideoData() {}", "public CalccustoRequest()\r\n\t{\r\n\t}", "private Noder(E data) {\n this.data = data;\n }", "private StaticData() {\n\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "@SuppressWarnings(\"unused\")\n\tprivate LedgerInitProposalData() {\n\t}", "public DataRequest() {\n\t\tfilters = new ArrayList<FilteringRule>();\n\t\tsort_by = new ArrayList<SortingRule>();\n\t}", "public Payload() {}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "public Matchdata()\n {\n }", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "public ListingData() {\r\n\t\tsuper();\r\n\t}", "public DataInt() {\n }", "public MessageClackData() {\n super();\n this.message = DEFAULT_MESSAGE;\n }", "public ReferenceBasePUSData() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "public InvalidUserDataException() {\n \n }", "public StringDataList() {\n }", "public CommonSenseAuthUserData() {\n \n }", "public DummyModel(String data) {\n textData = data;\n }", "public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }", "public PassPinDataItem() {\n }", "private TigerData() {\n initFields();\n }", "public Pasien() {\r\n }", "public UBERequest() {\r\n }", "public Potencial() {\r\n }", "public Customer() // default constructor to initialize data\r\n\t{\r\n\t\tthis.address = null;\r\n\t\tthis.name = null;\r\n\t\tthis.phoneNumber = null;\r\n\t\t// intializes the data\r\n\t}", "public CreateStatus(DataMap data)\n {\n super(data, null);\n }", "private SimpleBuildingJob(BuildingJobData data) {\n\t\tsuper(data.getDx(), data.getDy());\n\t\ttype = data.getType();\n\t\ttime = data.getTime();\n\t\tmaterial = data.getMaterial();\n\t\tdirection = data.getDirection();\n\t\tsearch = data.getSearchType();\n\t\tname = data.getName();\n\t\ttakeMaterialFromMap = data.isTakeMaterialFromMap();\n\t\tfoodOrder = data.getFoodOrder();\n\t}", "public Parameters() {\n\t}", "protected @Override\r\n abstract void initData();", "public WorkDataFile()\n\t{\n\t\tsuper();\n\t}", "public PaymentDetails () {\n\t}", "public Gps_dataResource() {\n }", "@Override\r\n\tpublic void initData() {\n\t}", "public StudentCourse() {\n this(\"student_course\", null);\n }", "public QBXMLRequest() {\n }", "@Test\n\tpublic void testConstructorForEvtDataParam()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tfinal Object evtData = new Object();\n\t\tfinal RawDataEvent testObj = new RawDataEvent(rawData, id, evtData);\n\n\t\tassertEquals(evtData, testObj.getEventObject());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "protected UserWordData() {\n\n\t}", "public Course() {\n this(\"course\", null);\n }", "private Params()\n {\n }", "public StudentRecord() {}", "@Test\n\tpublic void testConstructor()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tfinal DataSeries ds = new DataSeries();\n\t\tfinal RawDataEvent testObj = new RawDataEvent(rawData, id, ds);\n\n\t\tassertEquals(ds, testObj.getDataSeries());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "public FundingDetails() {\n super();\n }", "public DataManage() {\r\n\t\tsuper();\r\n\t}", "public ChangeData()\r\n\t\t{\r\n\t\t}", "public ItemInfo () {}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "public BaseParameters(){\r\n\t}", "public DeviceDataRequestCommand()\n {\n }", "public Clade() {}", "@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }" ]
[ "0.7703046", "0.76198286", "0.76198286", "0.757147", "0.7489552", "0.7036348", "0.6942842", "0.6894445", "0.68792385", "0.6865027", "0.6850808", "0.68383026", "0.6817499", "0.68145984", "0.6813137", "0.67934644", "0.67736113", "0.6763576", "0.67204726", "0.66975945", "0.6697211", "0.6653896", "0.6651892", "0.66135144", "0.66130984", "0.6608326", "0.65356624", "0.6508925", "0.65076476", "0.65076476", "0.64994717", "0.64989305", "0.6492312", "0.6492312", "0.6484674", "0.6477568", "0.6477568", "0.6477568", "0.6477568", "0.6477568", "0.6477568", "0.6472454", "0.6461398", "0.64426833", "0.6431948", "0.64315236", "0.64242727", "0.64198464", "0.6419411", "0.6413007", "0.6407604", "0.63952434", "0.6388921", "0.63887876", "0.63879275", "0.63879275", "0.63879275", "0.6380179", "0.6378285", "0.63721114", "0.63689375", "0.6367707", "0.6359431", "0.6355712", "0.6355171", "0.63469577", "0.6341735", "0.6338276", "0.6337217", "0.63288236", "0.63283885", "0.63281345", "0.63279355", "0.63267076", "0.6324645", "0.63155353", "0.63079935", "0.63074726", "0.63038313", "0.6299087", "0.62971157", "0.6295539", "0.6292327", "0.62840617", "0.6280294", "0.62789196", "0.62783515", "0.6266961", "0.62556285", "0.62554055", "0.6255288", "0.6249019", "0.62458026", "0.62457186", "0.62452245", "0.6243306", "0.62341505", "0.62333727", "0.6232864", "0.6226821", "0.6222048" ]
0.0
-1
Take action based on the selection
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) { selectedMenuItemAtPosition(position); //Close the drawer. mDrawerLayout.closeDrawer(mDrawerList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selected(String action);", "public void toSelectingAction() {\n }", "private void processSelection(int selection) {\n\t\tswitch (selection) {\n\t\tcase 1:\n\t\t\tcoach.displayAvailableSeats();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbookSeats();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trefundSeats();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tcoach.salesReport();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tSystem.out.println(\"Bye\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Invalid selection\");\n\t\t}\n\n\t}", "public void select(int action) {\n\t\tselected = true;\n\t\tthis.action = action;\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\t\t\r\n\t}", "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}", "public void selectionChanged(Action item);", "public void selectionChanged(IAction action, ISelection selection) {\n }", "protected void ACTION_B_SELECT(ActionEvent arg0) {\n\t\tchoseInterface();\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\t}", "protected void onSelectionPerformed(boolean success) {\n }", "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}", "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}", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "@Override\n\tpublic void selectionChanged(IAction arg0, ISelection arg1) {\n\n\t}", "public static void menuActions(int selection){\n\t\tselection = 1;\n\t\tswitch (selection){\n\t\t\tcase 1: //prompt user to input a new record, save response.\n\t\t\t\t//call method addNew here\n\t\t\tbreak; \n\t\t\tcase 2: //prompt user to search using first, last, or telephone\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//if multiple, select which to delete\n\t\t\t//call method for arraylist to delete \n\t\t\tbreak;\n\t\t\tcase 3: //prompt user to search by telephone\n\t\t\t//call method to search by #\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 4: //prompt user to search by first name\n\t\t\t//call method to search by firstName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 5: //prompt user to search by last name\n\t\t\t//call method to search by LastName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 6: //prompt user to search by methods 1,2, or 3\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//verify selection with user\n\t\t\t//prompt user to replace input\n\t\t\tbreak;\n\t\t\tcase 7: //terminate program;\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t\tdefault: \n\t\t\tSystem.out.print(\"Please enter a valid selection (1-7)\");\n\t\t\t//call userForm to prompt a new menu box;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionCommand(); \t \n }", "public void setButtonSelection(String action);", "@Override\n public void selectionChanged(SelectionChangedEvent event) {\n Iterator<String> iterator = selectionActions.iterator();\n while (iterator.hasNext()) {\n updateAction(iterator.next());\n }\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}", "private void processSelectedOption(int row, int col) {\n if (action.equals(Action.HEAL)) {\n\n processHealing();\n } else {\n desiredField = fields[row][col];\n\n Figure currentFigure = currentField.getCurrentFigure();\n\n int desiredRow = desiredField.getY();\n int desiredCol = desiredField.getX();\n int currentRow = currentField.getY();\n int currentCol = currentField.getX();\n\n if (Action.MOVE.equals(action) && currentFigure.getOwner().equals(currentPlayer)) {\n\n processMoving(currentFigure, desiredRow, desiredCol, currentRow, currentCol);\n\n } else if (Action.ATTACK.equals(action) ) {\n\n processAttack(currentFigure);\n }\n\n }\n }", "@Override\n\tpublic TurnAction selectAction() {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"action\");\n\n\t\tthis.sendInstruction(message);\n\t\tString selected = this.getResponse();\n\t\treturn TurnAction.valueOf(selected);\n\t}", "public void compareSelectionAction(QuantSearchSelection selection) {\n this.quantSearchSelection = selection;\n SelectionChanged(\"quant_compare\");\n\n }", "abstract public void cabMultiselectPrimaryAction();", "private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgsv.startSelectState();\n\t\t\t}", "public void onSelectionChanged();", "public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\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}", "private void processChoice() {\n switch (this.choice) {\n case 0:\n System.out.println(\"Log Out\");\n break;\n case 1:\n System.out.println(\"Open New Account\");\n break;\n case 2:\n System.out.println(\"View All Accounts\");\n break;\n case 3:\n System.out.println(\"View Transactions\");\n break;\n case 4:\n System.out.println(\"Transfer Funds\");\n break;\n default:\n System.out.println(\"Error! Invalid menu option\");\n break;\n }\n }", "public void searchSelectionAction(QuantSearchSelection selection) {\n this.quantSearchSelection = selection;\n SelectionChanged(\"quant_searching\");\n\n }", "void shapeOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb1.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strShape[0]) { // if \"Line\" selected \r\n System.out.println(\"Line of menu Shape is selected.\");\r\n System.out.println(\"calling method line().\");\r\n ge.line(gra); // call method line() of class PaintTool\r\n System.out.println(\"method line of class PaintTool executed.\");\r\n } else if (selStr == strShape[1]) { // if \"Rectangle\" selected\r\n System.out.println(\"Rectangle of menu Shape is selected.\");\r\n System.out.println(\"calling method rectangle().\");\r\n ge.rectangle(gra); // call method rectangle() of class PaintTool\r\n System.out.println(\"method rectangle() executed.\");\r\n } else if (selStr == strShape[2]) { // if \"Oval\" selected\r\n System.out.println(\"Oval of menu Shape is selected.\");\r\n System.out.println(\"calling method oval().\");\r\n ge.oval(gra); // call method oval() of class PaintTool\r\n System.out.println(\"method oval() executed.\");\r\n }\r\n\r\n }", "private void doSelect(MouseEvent e) {\n if (e != null && e.getClickCount() > 1)\n doOK();\n }", "protected abstract boolean takeAction (Shape selected, int x, int y);", "public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n GSelection<Variant> sel = viewer.getSelection();\n Variant v = sel.isEmpty() ? null : sel.first();\n\n ImOption.apply(viewer.getModel()).foreach(schedule -> {\n\n // Force a repaint of the action if it's a button. This is an AWT bug.\n if (source instanceof JButton)\n ((JButton) source).repaint();\n\n if (source == add) {\n\n // Add a new variant. Selection will not change but position might.\n VariantEditor ve = new VariantEditor(context.getShell().getPeer());\n if (JOptionPane.CANCEL_OPTION != ve.showNew(\"Untitled\", (byte) 0, (byte) 0, (byte) 0))\n schedule.addVariant(ve.getVariantName(), ve.getVariantConditions(), ve.getVariantWindConstraint(), ve.getVariantLgsConstraint());\n setUpDownEnabledState(sel);\n\n } else if (source == del) {\n\n // Delete the selected variant. Selection will change.\n if (JOptionPane.NO_OPTION == JOptionPane.showConfirmDialog(context.getShell().getPeer(),\n \"Do you really want to remove this variant?\",\n \"Confirm Remove\", JOptionPane.YES_NO_OPTION))\n return;\n\n schedule.removeVariant(v);\n\n } else if (source == up) {\n\n // Move up. Selection will not change but position will.\n schedule.moveVariant(v, -1);\n setUpDownEnabledState(sel);\n\n } else if (source == down) {\n\n // Move down. Selection will not change but position will.\n schedule.moveVariant(v, 1);\n setUpDownEnabledState(sel);\n\n } else if (source == dup) {\n\n // Duplicate. Selection will not change but position might.\n Variant dup = schedule.duplicateVariant(v);\n dup.setName(\"Copy of \" + dup.getName());\n setUpDownEnabledState(sel);\n\n }\n });\n }", "public abstract void select(boolean select);", "void colorOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb2.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strColor[0]) { // if \"Black\" selected\r\n System.out.println(\"Black of menu Color is selected.\");\r\n System.out.println(\"calling method black().\");\r\n ge.black(gra); // call method black() of class PaintTool\r\n System.out.println(\"method black() executed.\");\r\n } else if (selStr == strColor[1]) { // if \"Red\" selected\r\n System.out.println(\"Red of menu Color is selected.\");\r\n System.out.println(\"calling method red().\");\r\n ge.red(gra); // call method red() of class PaintToll\r\n System.out.println(\"method red() executed.\");\r\n } else if (selStr == strColor[2]) { // if \"Green\" selected\r\n System.out.println(\"Green of menu Color is selected.\");\r\n System.out.println(\"calling method green().\");\r\n ge.green(gra); // call method green() of class PaintTool\r\n System.out.println(\"method green() executed.\");\r\n } else if (selStr == strColor[3]) { // if \"Blue\" selected\r\n System.out.println(\"Blue of menu Color is selected.\");\r\n System.out.println(\"calling method blue().\");\r\n ge.blue(gra); // call method blue() of class PaintToll\r\n System.out.println(\"method blue() executed.\");\r\n }\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n state = \"select\";\r\n instruction.setText(\"Drag the rectangle to cover the whole shape which you want to select\");\r\n\r\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}", "@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}", "Select(){\n }", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }", "public static void userSelection(){\n\t\tint selection;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Which program would you like to run?\");\n\t\tselection=input.nextInt();\n\n\t\tif(selection == 1)\n\t\t\tmazeUnion();\n\t\tif(selection == 2)\n\t\t\tunionPathCompression();\n\t\tif(selection == 3)\n\t\t\tmazeHeight();\n\t\tif(selection == 4)\n\t\t\tmazeSize();\n\t\tif(selection == 5)\n\t\t\tsizePathCompression();\n\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n actionType = String.valueOf(actionTypeSpiner\n .getSelectedItem());\n if (actionType == \"Upload\"\n || actionType.equals(\"Upload\")) {\n viewLay.setVisibility(View.GONE);\n action = true;\n fileNameTxt.setVisibility(View.GONE);\n doOpen();\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n action = false;\n fileNameTxt.setVisibility(View.GONE);\n submitTxt.setEnabled(true);\n }\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void execute(View view){\n //method in view to show the choice\n }", "boolean applicable(Selection selection);", "void selectionModeChanged(SelectionMode mode);", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getActionCommand() == \"Submit selection\"){\n\t\t\tuserChoices.add(fpList.getFlightPlansList(modeLocal).get((int) flightPlanSpinner.getValue() - 1));\n\t\t\t// enter confirmation page if no return flight, otherwise call self?\n\t\t\tif(!isReturn && hasReturn){\n\t\t\t\tuserParams.SetReturnParams(userParams); // convert to return params\n\t\t\t\tnew SearchResultsGui(fpListArr, userChoices, true, 0, userParams);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew ConfirmationGui(userChoices);\n\t\t\t}\n\t\t\tdispose();\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Price\"){\n\t\t\tdispose();\n\t\t\tif(modeLocal == SORT_BY_PRICE_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_PRICE_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_PRICE_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Time\"){\n\t\t\tif(modeLocal == SORT_BY_TIME_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_TIME_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_TIME_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t\tdispose();\n\t\t}\n\t}", "@Override public void doAction(int option)\n {\n switch(option)\n {\n case 1: // create and start a new game\n // display the Game menu\n startNewGame();\n break;\n case 2: // get and start a saved game\n startSavedGame();\n break;\n case 3: // get help menu\n //runs the help menu\n HelpMenuView hmv = new HelpMenuView();\n hmv.displayMenu();\n break;\n case 4: // save game\n displaySaveGameView();\n break;\n case 5:\n System.out.println(\"Thanks for playing ... goodbye.\");\n break; // Fix Invalid Value. \n }\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void onEventSelected(int position);", "public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tString selection = \"o_orderdate > Str (\\\"1996-12-19\\\") && o_custkey < Int (100)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"o_orderkey\");\n\t\texprs.put(\"att2\", \"(o_totalprice * Float (1.5)) + Int (1)\");\n\t\texprs.put(\"att3\", \"o_orderdate + Str (\\\" this is my string\\\")\");\n\t\texprs.put(\"att4\", \"o_custkey\");\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Selection(inAtts, outAtts, selection, exprs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\talertChosen( row, col );\n\t\t\t\t\t}", "public void updateSelection() {\n\t\t\n\t}", "void stateSelected(State state);", "protected abstract void doSelection() throws IOException;", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem7) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t\t.getComponents()[0]).setMode(2);\n\t\t\t\t}\n\t\t\t}", "@FXML\n\tpublic void selectingDifficulty(ActionEvent event){\n\t\t\n\t\tif (level1.isSelected() || level2.isSelected() || level3.isSelected() || level4.isSelected()) {\n\t\t\tRadioButton rb = (RadioButton) difficulty.getSelectedToggle();\n\t\t\tint level = Character.getNumericValue(rb.getId().charAt(5));\n\t\t\tFileHandling.sortWordsIntoDifficulty(level+4);\n\t\t\tdifficultyLevel = level + 4;\n\t\t\tnextButton.setDisable(false);\n\t\t}\n\t}", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\teventHandler.invoke(new HarvestSelectedEvent());\n\t\t}", "public void selectionChanged(Selection selecton) {\r\n }", "protected void onSelect() {\n\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent actionevent) {\n\t\t\t\tif (select.isSelected()) {\r\n\t\t\t\t\tservice.selectTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tservice.cancleTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(false);\r\n\t\t\t\t}\r\n\t\t\t\t// System.out.println(\"after: \" + service.getSelectedSet());\r\n\r\n\t\t\t}", "public void select() {}", "private void menuOptionOne(){\n SimulatorFacade.printTransactions();\n pressAnyKey();\n }", "public void chooseYourMode(){\r\n ActionHandlers.ChooseModeHandler chooseModeHandler = (s) -> {\r\n try {\r\n choice.put(s);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n };\r\n runLater(() -> main.run(chooseModeHandler));\r\n }", "public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\t//TODO if scenario => is editing && is moving\r\n\t\t//TODO get selected entity\r\n\t\t//TODO if selected entity != null\r\n\t\t//TODO scale selected entity by scaleFactor\r\n\t}", "public void run()\n {\n getMenuChoice();\n }", "@Override public void doAction(int option)\r\n {\r\n switch(option)\r\n {\r\n \r\n case 1: \r\n displayJavaCollectView();\r\n break;\r\n \r\n case 2: \r\n {\r\n try {\r\n displayThreadsAndMore();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainMenuView.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n break;\r\n \r\n case 3: \r\n displayAppControlPatt();\r\n break;\r\n \r\n case 4:\r\n displayMVC();\r\n break;\r\n \r\n case 5:\r\n displayHibernate();\r\n break; \r\n \r\n case 6:\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdisplayJSON();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n break; \r\n \r\n case 7:\r\n displayHttpUrlCon();\r\n break; \r\n \r\n case 8:\r\n System.out.println(\"That's it\"); \r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tString technicalStaffName = (String) technicalStaffCombo.getSelectedItem();\n\t\t\t\tString qualityControllerName = (String) qualityControllerCombo.getSelectedItem();\n\n\t\t\t\tString error = null;\n\t\t\t\ttry {\n\t\t\t\t\tDatabase.switchPositions(technicalStaffName, qualityControllerName);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\terror = e1.getMessage();\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tshowResults(error, \"<html>Postions switched <br>\" + technicalStaffName + \"<->\" + qualityControllerName);\n\t\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tObject source = e.getSource();\r\n\t\tif (source == easy) {\r\n\t\t\tnavi.changeMode(NewApp.easy);\r\n\t\t} else if (source == medium) {\r\n\t\t\tnavi.changeMode(NewApp.medium);\r\n\t\t} else if (source == hard) {\r\n\t\t\tnavi.changeMode(NewApp.hard);\r\n\t\t} else if (source == quit) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else if (source == settings) {\r\n\t\t\tnavi.changeMode(NewApp.settings);\r\n\t\t} else if (source == help) {\r\n\t\t\tnavi.changeMode(NewApp.help);\r\n\t\t} else if (source == funky){\r\n\t\t\tnavi.changeMode(NewApp.funky);\r\n\t\t}\r\n\t}", "private void hookSingleClickAction() {\n\t\tthis.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tsingleClickAction.run();\n\t\t\t}\n\t\t});\n\t}", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "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}", "@Override public void widgetSelected(SelectionEvent arg0) {\n\t\t\t if((gameAlive == false)&&(! (domain.getText().isEmpty()))&&(! algorithm.getText().isEmpty())&&(! hardLevel.getText().isEmpty())) {\r\n\t\t\t\t //get selected combos and start conversation with the model\r\n\t\t\t\t String s = \"SelectGame \"+domain.getText()+\":\"+hardLevel.getText()+\",SelectAlgoritm \"+algorithm.getText()+\",play\";\r\n\t\t\t\t actions = s.split(\",\");\r\n\t\t\t\t gameAlive = true;\r\n\t\t\t\t if(domain.getText().equals(\"TicTacToe\")) {\r\n\t\t\t\t\t board = new TicTacToeCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t\t// board.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));\r\n\t\t\t\t }\r\n\t\t\t\t else if(domain.getText().equals(\"Reversi\")) {\r\n\t\t\t\t\t board = new ReversiCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t }\r\n\t\t\t\t try {\r\n\t\t\t\t\t startView();\r\n\t\t\t\t } catch (IOException e) {\r\n\t\t\t\t\t getExeptionMessage(e.getMessage());\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\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}", "@Override\r\n\t//Allows buttons on the graph to be controlled by changes in the DropDown boxes.\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tcitiesActive.clear();\r\n\t\tcitiesActive.add((String) t.getSelectedItem());\r\n\t\tthis.middleEarth.activateButton((String) t.getSelectedItem(), this.thatCity);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem6) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t\t.getComponents()[0]).setMode(1);\n\t\t\t\t}\n\t\t\t}", "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 selectAgent(int selected) {\n this.selected = selected;\n }", "void filledOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb3.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strFill[0]) { // if \"No\" selected\r\n System.out.println(\"No of menu Filled is selected.\");\r\n System.out.println(\"calling method notFilled().\");\r\n ge.notFilled(gra); // call method notFilled() of class PaintTool\r\n System.out.println(\"method notFilled() executed.\");\r\n } else if (selStr == strFill[1]) { // if \"Yes\" seleted\r\n System.out.println(\"Yes of menu Filled is selected.\");\r\n System.out.println(\"calling method filled().\");\r\n ge.filled(gra); // call method filled() of class PaintTool\r\n System.out.println(\"method filled() executed.\");\r\n }\r\n }", "private void adminMenuSelection(int choice) throws Exception {\n switch (choice) {\n case 1:\n System.out.println(\"Selection 1. Set Student Access Period\");\n this.setStudAccPeriod();\n break;\n\n case 2:\n System.out.println(\"Selection 2. Update Student Access Period\");\n this.updStudAccPeriod();\n break;\n\n case 3:\n System.out.println(\"Selection 3. Add A Student\");\n this.addStudentParticulars();\n break;\n\n case 4:\n System.out.println(\"Selection 4. Update A Student\");\n this.updStudentParticulars();\n break;\n\n case 5:\n System.out.println(\"Selection 5. Add A Course\");\n this.addCourse();\n break;\n\n case 6:\n System.out.println(\"Selection 6. Update A Course\");\n this.updCourse();\n break;\n\n case 7:\n System.out.println(\"Selection 7. Check Available Slot For an index number\");\n this.checkVacancy();\n break;\n\n case 8:\n System.out.println(\"Selection 8. Print student list by index \");\n this.printStudListByIndex();\n break;\n\n case 9:\n System.out.println(\"Selection 9. Print student list by course \");\n this.printStudListByCourse();\n break;\n\n default:\n System.out.println(\"\\nHang on a moment while we sign you out.\");\n System.out.println(\"......\");\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"See you next time! Bye bye ;)\\n\");\n System.exit(0);\n }\n }", "public void setActionTrackSelected(GralUserAction action){ actionSelectTrack = action; }", "@Override\n public void inputHandling() {\n if (input.clickedKeys.contains(InputHandle.DefinedKey.ESCAPE.getKeyCode())\n || input.clickedKeys.contains(InputHandle.DefinedKey.RIGHT.getKeyCode())) { \n if (sourceMenu != null) {\n exit();\n sourceMenu.activate(); \n return;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.UP.getKeyCode())) { \n if (selection > 0) {\n selection--;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.DOWN.getKeyCode())) { \n if (selection < choices.size() - 1) {\n selection++;\n } \n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.ENTER.getKeyCode())) {\n if (choices.size() > 0) {\n use();\n }\n exit(); \n }\n }", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "public void branchMenu(int option){\n switch(option){\n case 1:\n System.out.println(\"Starting security view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SECURITY);\n break;\n case 2:\n System.out.println(\"Starting application view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.APPLICATION);\n break;\n case 3:\n System.out.println(\"Starting manager view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.MANAGER);\n break;\n case 4:\n System.out.println(\"Starting swipe view...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.SWIPE);\n break;\n case 5:\n System.out.println(\"Quitting application...\");\n super.setCompleted(true);\n super.setNextState(StateStatus.QUIT);\n break;\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject target = e.getSource();\n\t\tif (target == b1) {\n\t\t\ttry {\n\t\t\t\tif (rb1.isSelected()) {\n\t\t\t\t\tthis.f = new Flavor(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 0;\n\t\t\t\t}\n\t\t\t\tif (rb2.isSelected()) {\n\t\t\t\t\tthis.d = new Decorator(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 1;\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Please enter vaild information!\", \"WARNING\",\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\n\t\t}\n\n\t\tif (target == b2) {\n\t\t\tt1.setText(\"\");\n\t\t\tt2.setText(\"\");\n\t\t}\n\n\t\tif (target == rb1) {\n\t\t\trb1.setSelected(true);\n\t\t\trb2.setSelected(false);\n\t\t}\n\n\t\tif (target == rb2) {\n\t\t\trb1.setSelected(false);\n\t\t\trb2.setSelected(true);\n\t\t}\n\t}", "public void selectSlot() {\n\t\t\r\n\t}", "@Override\n protected void processSelect() {\n \n }", "private void menu(){\n System.out.println(\"\");\n System.out.println(\"Round: \"+round);\n System.out.println(\"Please choose your action: \");\n\n Scanner tokenizer = parser.getCommand(); // prompt the user to put a new command in\n Command command = parser.parseCommand(tokenizer); // send the \"scanner\" result to make it into a command\n processCommand(command); // process the command\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "private boolean performAction(int action) {\n TagEditorFragment tagEditorFragment = (TagEditorFragment) caller;\n final int size = rows.getChildCount();\n List<TagEditRow> selected = new ArrayList<>();\n for (int i = 0; i < size; ++i) {\n View view = rows.getChildAt(i);\n TagEditRow row = (TagEditRow) view;\n if (row.isSelected()) {\n selected.add(row);\n }\n }\n switch (action) {\n case MENU_ITEM_DELETE:\n if (!selected.isEmpty()) {\n for (TagEditRow r : selected) {\n r.delete();\n }\n tagEditorFragment.updateAutocompletePresetItem(null);\n }\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_COPY:\n copyTags(selected, false);\n tagEditorFragment.updateAutocompletePresetItem(null);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CUT:\n copyTags(selected, true);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CREATE_PRESET:\n CustomPreset.create(tagEditorFragment, selected);\n tagEditorFragment.presetFilterUpdate.update(null);\n break;\n case MENU_ITEM_SELECT_ALL:\n ((PropertyRows) caller).selectAllRows();\n return true;\n case MENU_ITEM_DESELECT_ALL:\n ((PropertyRows) caller).deselectAllRows();\n return true;\n case MENU_ITEM_HELP:\n HelpViewer.start(caller.getActivity(), R.string.help_propertyeditor);\n return true;\n default:\n return false;\n }\n return true;\n }" ]
[ "0.7909599", "0.751264", "0.7224576", "0.7177272", "0.7168567", "0.7168567", "0.71490073", "0.71382034", "0.7115", "0.7106604", "0.7102816", "0.7028199", "0.7020854", "0.70086336", "0.70026493", "0.6951248", "0.6943875", "0.69279665", "0.6919341", "0.68829674", "0.683105", "0.6828982", "0.6821871", "0.68140614", "0.67949605", "0.676574", "0.66785014", "0.66605335", "0.6628145", "0.6614217", "0.6591515", "0.6588511", "0.6578159", "0.65743613", "0.65658027", "0.65514356", "0.6465482", "0.6450925", "0.64503974", "0.64373654", "0.6428817", "0.6428552", "0.6424344", "0.64083344", "0.6406728", "0.6395389", "0.6394824", "0.63857657", "0.63624346", "0.63516146", "0.6350067", "0.63329494", "0.6331571", "0.63269734", "0.63024426", "0.63010854", "0.62951463", "0.62925637", "0.6289365", "0.62815374", "0.62778884", "0.6277718", "0.6275667", "0.6274243", "0.6274227", "0.62729096", "0.6270447", "0.62681276", "0.6245727", "0.6244841", "0.6237947", "0.6235472", "0.6225796", "0.6224112", "0.6217311", "0.62121177", "0.62085897", "0.61993146", "0.6197919", "0.61959904", "0.61877334", "0.6186814", "0.61822796", "0.6164151", "0.61578", "0.6156477", "0.6156024", "0.61521727", "0.6147031", "0.61461395", "0.61405754", "0.61344707", "0.61225533", "0.6120092", "0.6106071", "0.6087111", "0.60821515", "0.60804516", "0.60791427", "0.6074502", "0.6063276" ]
0.0
-1
Called when a drawer has settled in a completely closed state.
public void onDrawerClosed(View view) { if (Build.VERSION.SDK_INT >= 11) { invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() } else { //Call it directly on gingerbread. onPrepareOptionsMenu(mMenu); } // startFullscreenIfNeeded(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerClosed(View view) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // Do whatever you want here\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tshowUp();\n\t\t\t}", "public void onDrawerClosed(View drawerView) {\n\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n\tpublic void onSidebarClosed() {\n\t\tLog.d(TAG, \"opened\");\n\t}", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tlayoutParams = new FrameLayout.LayoutParams(\n\t\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\t\tslidingDrawer.setLayoutParams(layoutParams);\n\t\t\t\tbottomLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "@Override\n public void onDrawerClosed() {\n if (lnr_option_pen.getVisibility() == View.VISIBLE)\n lnr_option_pen.setVisibility(View.GONE);\n\n if (lnr_option_brush.getVisibility() == View.VISIBLE)\n lnr_option_brush.setVisibility(View.GONE);\n\n if (lnr_option_size.getVisibility() == View.VISIBLE)\n lnr_option_size.setVisibility(View.GONE);\n }", "public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n resumeLocationUpdates();\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getActionBar().setTitle(R.string.drawer_close);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n handleEvent_onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n\t\t\t\tLog.d(TAG, \"nav drawer closed state\");\n\t\t\t\tgetActionBar().setTitle(title);\n\t\t\t\tinvalidateOptionsMenu(); // goes to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(\"Stored configurations\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\r\n super.onDrawerClosed(view);\r\n invalidateOptionsMenu();\r\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void closeDrawer() {\n final DrawerLayout mDrawerLayout;\n\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n mDrawerLayout.closeDrawer(GravityCompat.START);\n hideAddFeed();\n\n }\n }, 200);\n }", "public void setOnDrawerCloseListener(OnDrawerCloseListener onDrawerCloseListener) {\n/* 209 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n if (actionBar != null) actionBar.setTitle(activityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n invalidateOptionsMenu();\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n invalidateOptionsMenu();\n Log.d(\"Apps Main\", \"Close drawer \");\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "void checkClosed();", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //change toolbar title to the app's name\n toolbar.setTitle(getResources().getString(R.string.app_name));\n\n //hide the add feed menu option\n hideAddFeed();\n\n }", "@Override\n public void onPourWaterRaised() {\n if (theFSM.getCupPlaced()) {\n pouringState = true;\n }\n }", "private void closeDrawer(){\n if (drawerLayout.isDrawerOpen(GravityCompat.START)){\n drawerLayout.closeDrawer(GravityCompat.START);\n }\n }", "public void onDrawerOpened(View drawerView) {\n\n }", "public void onDrawerClosed(View view) {\n menuvalue = 0;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.menu);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n\t\t\t\tsuper.onDrawerClosed(view);\n\t\t\t\tgetSupportActionBar().setTitle(mActivityTitle);\n\t\t\t\tinvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerClosed(View view) {\r\n\t\t\t\tsuper.onDrawerClosed(view);\r\n\t\t\t\tgetActionBar().setTitle(mTitle);\r\n\t\t\t}", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }", "public boolean checkClosed();", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n linearLayout.removeAllViews();\n linearLayout.invalidate();\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n boolean onBeforePopDir() {\n int size = mState.stack.size();\n\n if (mDrawer.isPresent()\n && (System.currentTimeMillis() - mDrawerLastFiddled) > DRAWER_NO_FIDDLE_DELAY) {\n // Close drawer if it is open.\n if (mDrawer.isOpen()) {\n mDrawer.setOpen(false);\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n\n final Intent intent = getIntent();\n final boolean launchedExternally = intent != null && intent.getData() != null\n && mState.action == State.ACTION_BROWSE;\n\n // Open the Close drawer if it is closed and we're at the top of a root, but only when\n // not launched by another app.\n if (size <= 1 && !launchedExternally) {\n mDrawer.setOpen(true);\n // Remember so we don't just close it again if back is pressed again.\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n }\n\n return false;\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }" ]
[ "0.7114474", "0.6925135", "0.68684775", "0.6848966", "0.6848966", "0.67969453", "0.67969453", "0.67589223", "0.6744687", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6724894", "0.6720071", "0.6688338", "0.6688084", "0.6563002", "0.65550435", "0.65550435", "0.65550435", "0.65550435", "0.65351313", "0.64501935", "0.6363633", "0.6355033", "0.63458776", "0.6334313", "0.6272993", "0.6272993", "0.6272993", "0.6271507", "0.62073547", "0.6146907", "0.6146907", "0.60605097", "0.6054831", "0.6025727", "0.6012674", "0.6003485", "0.60000396", "0.60000396", "0.60000396", "0.60000396", "0.598669", "0.5976939", "0.59756666", "0.5963209", "0.58996534", "0.58996534", "0.5877285", "0.5861349", "0.5850432", "0.5837571", "0.5826389", "0.58187836", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.58163965", "0.5813527", "0.58074546", "0.5800036", "0.57926565", "0.578778", "0.5770544", "0.57656425", "0.57656425", "0.57579374", "0.57387286", "0.5734273", "0.5734273", "0.5734273", "0.5722612", "0.57161826", "0.5713261", "0.57109284", "0.57109284", "0.57109284", "0.57094675", "0.57079065", "0.5655542", "0.5655542", "0.5655542" ]
0.5851618
61
Called when a drawer has settled in a completely open state.
public void onDrawerOpened(View drawerView) { if (Build.VERSION.SDK_INT >= 11) { invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() } else { //Call it directly on gingerbread. onPrepareOptionsMenu(mMenu); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n handleEvent_onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tshowUp();\n\t\t\t}", "public void onDrawerClosed(View view) {\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n Log.d(\"Apps Main\", \"Open drawer \");\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n }", "public void onDrawerOpened(View drawerView) {\n\t\t\t\tLog.d(TAG, \"nav drawer opened state\");\n\t\t\t\tgetActionBar().setTitle(drawerTitle);\n\t\t\t\tinvalidateOptionsMenu();// goes to onPrepareOptionsMenu()\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getActionBar().setTitle(R.string.drawer_open);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\tpublic void onSidebarOpened() {\n\t\tLog.d(TAG, \"opened\");\n\n\t}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n }", "public void onDrawerOpened(View drawerView) {\r\n super.onDrawerOpened(drawerView);\r\n if(!mUserLearnedDrawer){\r\n\r\n mUserLearnedDrawer=true;\r\n Utility utility=new Utility();\r\n utility.writeToSharedPref(getApplicationContext(),KEY_USER_LEARNED_DRAWER,mUserLearnedDrawer+\"\");\r\n }\r\n invalidateOptionsMenu();\r\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // Do whatever you want here\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n }", "@Override\n boolean onBeforePopDir() {\n int size = mState.stack.size();\n\n if (mDrawer.isPresent()\n && (System.currentTimeMillis() - mDrawerLastFiddled) > DRAWER_NO_FIDDLE_DELAY) {\n // Close drawer if it is open.\n if (mDrawer.isOpen()) {\n mDrawer.setOpen(false);\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n\n final Intent intent = getIntent();\n final boolean launchedExternally = intent != null && intent.getData() != null\n && mState.action == State.ACTION_BROWSE;\n\n // Open the Close drawer if it is closed and we're at the top of a root, but only when\n // not launched by another app.\n if (size <= 1 && !launchedExternally) {\n mDrawer.setOpen(true);\n // Remember so we don't just close it again if back is pressed again.\n mDrawerLastFiddled = System.currentTimeMillis();\n return true;\n }\n }\n\n return false;\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n Log.d(TAG, \"onDrawerClosed\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n\n }", "public void onTrackingStarted() {\n this.mFalsingManager.onTrackingStarted(!this.mKeyguardStateController.canDismissLockScreen());\n super.onTrackingStarted();\n if (this.mQsFullyExpanded) {\n this.mQsExpandImmediate = true;\n this.mNotificationStackScroller.setShouldShowShelfOnly(true);\n }\n int i = this.mBarState;\n if (i == 1 || i == 2) {\n this.mAffordanceHelper.animateHideLeftRightIcon();\n }\n this.mNotificationStackScroller.onPanelTrackingStarted();\n }", "@Override\n public void onDrawerOpened(@NonNull View drawerView) {\n drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);\n }", "@Override\n\tpublic void onSidebarClosed() {\n\t\tLog.d(TAG, \"opened\");\n\t}", "public void onDrawerOpened(View drawerView) {\n\t\t\t\tsuper.onDrawerOpened(drawerView);\n\t\t\t\tgetSupportActionBar().setTitle(\"Munchies\");\n\t\t\t\tinvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n\t\t\t}", "private void notifyOnOpen() {\n synchronized (globalLock) {\n if (isRunning) {\n onOpen();\n }\n }\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Timesheet\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public void onPourWaterRaised() {\n if (theFSM.getCupPlaced()) {\n pouringState = true;\n }\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n //updateView(5, 99, true);\n }", "public void onDrawerClosed(View drawerView) {\n\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n if (actionBar != null) actionBar.setTitle(R.string.choose_to_do_list);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n resumeLocationUpdates();\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mDrawerTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tlayoutParams = new FrameLayout.LayoutParams(\n\t\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\t\tslidingDrawer.setLayoutParams(layoutParams);\n\t\t\t\tbottomLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }", "private boolean isDrawerOpen() {\n return mDrawerLayout != null && mDrawerLayout.isDrawerOpen(Gravity.LEFT);\n }", "public void onDrawerOpened(View drawerView) {\n supportInvalidateOptionsMenu();\n }", "public void setOnDrawerOpenListener(OnDrawerOpenListener onDrawerOpenListener) {\n/* 201 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void onDrawerOpened(View drawerView) {\n\n super.onDrawerOpened(drawerView);\n\n //change toolbar title to 'Add a feed'\n toolbar.setTitle(getResources().getString(R.string.feedmenu));\n\n //show the add feed menu option\n showAddFeed();\n\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n //invalidateOptionsMenu();\n //creates call to onPrepareOptionsMenu()\n }", "private void setUpNavigationDrawer() {\n navigationView.setNavigationItemSelectedListener(item -> {\n Fragment nextFragment = findNextFragment(item.getItemId());\n\n if (nextFragment instanceof WalkFragment && areLocationServicesDisabled()) {\n MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);\n builder.setTitle(R.string.location_services_not_enabled_title);\n builder.setMessage(R.string.location_services_not_enabled_message);\n builder.setPositiveButton(R.string.ok, null);\n\n builder.show();\n } else {\n changeFragment(nextFragment);\n\n item.setChecked(true);\n drawerLayout.closeDrawers();\n setUpNewFragment(item.getTitle(), item.getItemId());\n }\n\n return true;\n });\n }", "public void onDrawerOpened(View drawerView) {\n getActionBar().setTitle(\"Opened Drawer\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Navigation!\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getActionBar().setTitle(mTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(\"Options\");\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n\tprotected void on_door_change_state(String door_name, boolean is_open) {\n\n\t}", "public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }" ]
[ "0.70580786", "0.69017404", "0.6729584", "0.6729584", "0.6729584", "0.6729584", "0.67231274", "0.67104286", "0.67104286", "0.67104286", "0.67104286", "0.65841967", "0.64536935", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.64504313", "0.6445091", "0.6432134", "0.6397777", "0.63891923", "0.63891923", "0.63891923", "0.63891923", "0.63828707", "0.6378719", "0.6378719", "0.6378719", "0.6368206", "0.63040847", "0.6246888", "0.6198055", "0.6198055", "0.615238", "0.6144291", "0.6143929", "0.6143929", "0.614295", "0.6132458", "0.6130871", "0.6130871", "0.60975355", "0.6096003", "0.60881066", "0.6087088", "0.6083034", "0.6059723", "0.6046809", "0.6035643", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.6033525", "0.60282767", "0.60174906", "0.6016316", "0.6008996", "0.5988958", "0.5982052", "0.597532", "0.5974282", "0.59644157", "0.59644157", "0.59479594", "0.59404594", "0.59341764", "0.5920165", "0.58877087", "0.58676594", "0.58628386", "0.58565265", "0.58511406", "0.5819529", "0.5819529", "0.5819529", "0.5808981", "0.57971203", "0.57822984", "0.57761323", "0.57761323", "0.5750784", "0.57475406", "0.5741062" ]
0.6020119
71
Called as the drawer slides by percentage
@Override public void onDrawerSlide(View drawerView, float slideOffset) { super.onDrawerSlide(drawerView, slideOffset); //SlideOffset comes in on a scale of 0-1. //40% looks roughly about right to swap out if (slideOffset > 0.4) { getSupportActionBar().setTitle(R.string.drawer_close); stopFullscreenIfNeeded(); } else { setTitleForActiveTag(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n }", "@Override\r\n\tpublic void sliding(float percent) {\n\t\tif (0 <= percent && percent <= 100) {\r\n\t\t\tmGridView.getScreenScroller().setScrollPercent(percent);\r\n\t\t}\r\n\t}", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n final float diffScaledOffset = slideOffset * (1 - 0.7f);\n final float offsetScale = 1 - diffScaledOffset;\n binding.contentView.setScaleX(offsetScale);\n// contentView.setScaleY(offsetScale);\n\n // Translate the View, accounting for the scaled width\n final float xOffset = drawerView.getWidth() * slideOffset;\n final float xOffsetDiff = binding.contentView.getWidth() * diffScaledOffset / 2;\n final float xTranslation = xOffset - xOffsetDiff;\n binding.contentView.setTranslationX(xTranslation);\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n final float diffScaledOffset = slideOffset * (1 - END_SCALE);\n final float offsetScale = 1 - diffScaledOffset;\n contentView.setScaleX(offsetScale);\n contentView.setScaleY(offsetScale);\n\n //Translate the View,accounting for the scaled width\n final float xOffset = drawerView.getWidth() * slideOffset;\n final float xOffsetDiff = contentView.getWidth() * diffScaledOffset / 2;\n final float xTranslation = xOffset - xOffsetDiff;\n contentView.setTranslationX(xTranslation);\n\n }", "private void animateDrawer(){\n int[] location = new int[2];\n int leftDelta;\n pageFontEl.getLocationOnScreen(location);\n if(switchState == \"off\"){\n leftDelta = 0;\n switchState = \"on\";\n } else{\n leftDelta = common.dip2px(HomeActivity.this, 130);\n switchState = \"off\";\n }\n pageFontEl.layout(leftDelta, 0, leftDelta + pageFontEl.getWidth(), 0 + pageFontEl.getHeight());\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n final float diffScaledOffset = slideOffset * (1 - END_SCALE);\n final float offsetScale = 1 - diffScaledOffset;\n contentView.setScaleX(offsetScale);\n contentView.setScaleY(offsetScale);\n\n // Translate the View, accounting for the scaled width\n final float xOffset = drawerView.getWidth() * slideOffset;\n final float xOffsetDiff = contentView.getWidth() * diffScaledOffset / 2;\n final float xTranslation = xOffset - xOffsetDiff;\n contentView.setTranslationX(xTranslation);\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n final float diffScaledOffset = slideOffset * (1 - END_SCALE);\n final float offsetScale = 1 - diffScaledOffset;\n contentView.setScaleX(offsetScale);\n contentView.setScaleY(offsetScale);\n\n // Translate the View, accounting for the scaled width\n final float xOffset = drawerView.getWidth() * slideOffset;\n final float xOffsetDiff = contentView.getWidth() * diffScaledOffset / 2;\n final float xTranslation = xOffset - xOffsetDiff;\n contentView.setTranslationX(xTranslation);\n }", "@Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n float moveFactor = (drawerView.getWidth() * slideOffset) * -1;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)\n {\n frame.setTranslationX(moveFactor);\n }\n else\n {\n TranslateAnimation anim = new TranslateAnimation(lastTranslate, moveFactor, 0.0f, 0.0f);\n anim.setDuration(0);\n anim.setFillAfter(true);\n frame.startAnimation(anim);\n\n lastTranslate = moveFactor;\n }\n }", "@Override\n public void onSlideChanged() {\n }", "@Override\n public void onSlide(@NonNull View view, float v)\n {\n }", "private void updateSlide() {\n\t\tfloat slideHideX = mSlideLeft.getSlideHideX();\n\t\tfloat paddingLeftAndRight = mSlideRight.getPaddingLeft() + mSlideRight.getPaddingRight();\n\n\t\tif (mSlide < 0) {\n\t\t\tmSlideRight.setRevealPercent(-mSlide);\n\t\t\tmSlideRight.setTranslationX(0);\n\t\t\tmSlideLeft.setRevealPercent(0);\n\t\t\tmSlideLeft.setTranslationX(slideHideX + mSlideRight.getSlideRevealX() - paddingLeftAndRight);\n\t\t}\n\t\telse if (mSlide == 0) {\n\t\t\tmSlideRight.setRevealPercent(0);\n\t\t\tmSlideRight.setTranslationX(0);\n\t\t\tmSlideLeft.setRevealPercent(0);\n\t\t\tmSlideLeft.setTranslationX(slideHideX - paddingLeftAndRight);\n\t\t}\n\t\telse {\n\t\t\tmSlideLeft.setRevealPercent(mSlide);\n\t\t\tmSlideLeft.setTranslationX((1 - mSlide) * slideHideX - (1 - mSlide) * paddingLeftAndRight);\n\t\t\tmSlideRight.setRevealPercent(0);\n\t\t\tmSlideRight.setTranslationX(-mSlideLeft.getSlideRevealX());\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "@Override\r\n\tpublic void onScreenSlidingCompleted() {\n\r\n\t}", "@Override\n public void onPanelSlide(View panel, float slideOffset) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\n\t\t\tfloat halfWidth = imswitcher.getWidth() / 2.0f;\n\t\t\tfloat halfHeight = imswitcher.getHeight() / 2.0f;\n\t\t\tint duration = 500;\n\t\t\tint depthz = 0;// viewFlipper.getWidth()/2;\n\n\t\t\tRotate3D rdin = new Rotate3D(75, 0, 0, halfWidth, halfHeight);\n\t\t\trdin.setDuration(duration);\n\t\t\trdin.setFillAfter(true);\n\t\t\timswitcher.setInAnimation(rdin);\n\t\t\tRotate3D rdout = new Rotate3D(-15, -90, 0, halfWidth, halfHeight);\n\n\t\t\trdout.setDuration(duration);\n\t\t\trdout.setFillAfter(true);\n\t\t\timswitcher.setOutAnimation(rdout);\n\n\t\t\ti = (i + 1);\n\t\t\tint p = i % 4;\n\n\t\t\tif (p >= 0) {\n\t\t\t\tsetpic(p);\n\t\t\t\timswitcher.setImageResource(imageIds[p]);\n\t\t\t} else {\n\n\t\t\t\tint k = 4 + p;\n\t\t\t\tsetpic(k);\n\t\t\t\timswitcher.setImageResource(imageIds[k]);\n\t\t\t}\n\n\t\t}", "public void dispatchOnSlide(int i) {\n View view = (View) this.viewRef.get();\n if (view != null) {\n BottomSheetCallback bottomSheetCallback = this.callback;\n if (bottomSheetCallback != null) {\n int i2 = this.collapsedOffset;\n if (i > i2) {\n bottomSheetCallback.onSlide(view, ((float) (i2 - i)) / ((float) (this.parentHeight - i2)));\n } else {\n bottomSheetCallback.onSlide(view, ((float) (i2 - i)) / ((float) (i2 - getExpandedOffset())));\n }\n }\n }\n }", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideLeftIn);\n viewFlipper.setOutAnimation(slideLeftOut);\n viewFlipper.showNext();\n setNextViewItem();\n// initData();\n }", "private void makeSlideList() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tnavDrawerItems = new ArrayList<NavDrawerItem>();\n\n\t\t// adding nav drawer items to array\n\t\t// Home\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[0], navMenuIcons.getResourceId(0, -1)));\n\t\t// Find People\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[1], navMenuIcons.getResourceId(1, -1)));\n\t\t// Photos\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[2], navMenuIcons.getResourceId(2, -1)));\n\t\t// Communities, Will add a counter here\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[3], navMenuIcons.getResourceId(3, -1), true, \"22\"));\n\t\t// Pages\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[4], navMenuIcons.getResourceId(4, -1)));\n\t\t// What's hot, We will add a counter here\n\t\tnavDrawerItems.add(new NavDrawerItem(navMenuTitles[5], navMenuIcons.getResourceId(5, -1), true, \"50+\"));\n\t\t\n\n\t\t// Recycle the typed array\n\t\tnavMenuIcons.recycle();\n\n\t\tmDrawerList.setOnItemClickListener(new SlideMenuClickListener());\n\n\t\t// setting the nav drawer list adapter\n\t\tadapter = new NavDrawerListAdapter(getApplicationContext(),\n\t\t\t\tnavDrawerItems);\n\t\tmDrawerList.setAdapter(adapter);\n\n\t}", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "public void animateNavigationDrawer() {\n\n drawerLayout.setScrimColor(getResources().getColor(R.color.colorMenuNavigation));\n drawerLayout.addDrawerListener(new DrawerLayout.SimpleDrawerListener() {\n @Override\n public void onDrawerSlide(View drawerView, float slideOffset) {\n\n // Scale the View based on current slide offset\n final float diffScaledOffset = slideOffset * (1 - END_SCALE);\n final float offsetScale = 1 - diffScaledOffset;\n contentView.setScaleX(offsetScale);\n contentView.setScaleY(offsetScale);\n\n // Translate the View, accounting for the scaled width\n final float xOffset = drawerView.getWidth() * slideOffset;\n final float xOffsetDiff = contentView.getWidth() * diffScaledOffset / 2;\n final float xTranslation = xOffset - xOffsetDiff;\n contentView.setTranslationX(xTranslation);\n }\n });\n }", "@Override\n public void onScrolled(int distanceX, int distanceY) {\n\n }", "public void onSidebar(double fraction, CoState cos) {\n\t}", "void onSwipeProgress(int position, float progress);", "public final void slidePanel() {\n //Gdx.app.log(\"PhasesUISettings\", \"slidePanel executed\");\n if (!toggle) {\n easeIn();\n toggle = true;\n } else {\n easeOut();\n toggle = false;\n }\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tPieSlice s;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfloat temp=0,total=0;\n\t\t\t\t\t\tfor (int i = 0; i < pg.getSlices().size(); i++) {\n\t\t\t\t\t\t\ttemp=Float.parseFloat(BackgroundService.itemdata[i][4]);\n\t\t\t\t\t\t\ts = pg.getSlice(i);\n\t\t\t\t\t\t\ts.setGoalValue(temp);\n\t\t\t\t\t\t\ttotal+=temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 0; i < pg.getSlices().size(); i++) {\n\t\t\t\t\t\t\ttemp=Float.parseFloat(BackgroundService.itemdata[i][4]);\n\t\t\t\t\t\t\ttper[i].setText((int)(temp/total*100+0.5) + \"%\");\n\t\t\t\t\t\t\tttime[i].setText((int)(temp/120) + \"d\" +(int)(temp%120)/5 +\"h\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpg.setInterpolator(new AccelerateDecelerateInterpolator());\n\t\t\t\t\t\tpg.setAnimationListener(getAnimationListener());\n\t\t\t\t\t\tpg.animateToGoalValues();\n\n\t\t\t\t\t}", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tImgLeft.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tImgRight.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tImgLeft.setVisibility(0);\n\t\t\t\tImgRight.setVisibility(0);\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tlayoutParams = new FrameLayout.LayoutParams(\n\t\t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\t\tslidingDrawer.setLayoutParams(layoutParams);\n\t\t\t\tbottomLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "void slideUpDownWithHandle(int byPixels);", "public void extendCollector() { \n m_fourBarLeft.set(FOURBAR_SPEED);\n m_fourBarRight.set(FOURBAR_SPEED);\n\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onScroll(float scrollProgressPercent) {\n }", "protected void auto() {\n\t\tmPagefactory.onDraw(mCurPageCanvas);\n\t\tmPageWidget.setBitmaps(mCurPageBitmap, mNextPageBitmap);\n\t\tmPageWidget.startAnimation(1000);\n\t}", "public void animateDice() {\n pos += vel*tickCounter + ACC*tickCounter*tickCounter/2;\n if(pos<(TILE_SIZE*15-DICE_SIZE)/2){\n if(this.pIndex%3==0)\n diceImg = diceAnimation[tickCounter%diceAnimation.length];\n else\n diceImg = diceAnimation[diceAnimation.length-1-(tickCounter%diceAnimation.length)];\n tickCounter++;\n vel += ACC;}\n else{\n diceImg = dice[result-1];\n pos=(TILE_SIZE*15-DICE_SIZE)/2;}\n setCoordinates(pos);\n //System.out.println(\"dice pos \"+pos);\n }", "void onSwiping(RecyclerView.ViewHolder viewHolder, float ratio, int direction);", "public void slideFragmentsToLeft();", "@Override\n public void onDrawerOpened(View drawerView) {\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideRightIn);\n viewFlipper.setOutAnimation(slideRightOut);\n viewFlipper.showPrevious();\n setPrevViewItem();\n// initData();\n }", "@Override\n\t\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n \n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n \n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tslideShow();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\r\n\t\t\t}", "public void onDrawerOpened(View drawerView) {\n\n }", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onScrolled (RecyclerView recyclerView, int dx, int dy){\n }", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\n\t\t}", "public void update() {\r\n\t\t\r\n\t\tif (page == 0 && updates - updates0 > 480) {\r\n\t\t\tpage++;\r\n\t\t}\r\n\t\tif (page == 7 && updates - updates1 > 300) {\r\n\t\t\tpage++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\tint one = offset * 2 + bmpW;// 页卡1 -> 页卡2 偏移量\n\t\tint two = one * 2;// 页卡1 -> 页卡3 偏移量\n\t\t\n\t\tAnimation animation = new TranslateAnimation(one * currIndex, one * arg0, 0, 0);// 显然这个比较简洁,只有一行代码。\n\t\t\n\t\tanimation.setFillAfter(true);// True:图片停在动画结束位置\n\t\tanimation.setDuration(300);\n\t\timageView.startAnimation(animation);\n\t\t\n\t\tchosenTwoLevelTVColor(arg0);\n\t\t\n\t\tif(arg0 == 0){\n\t\t\tbatchAudit.setVisibility(View.VISIBLE);\n\t\t\tbatchReturn.setVisibility(View.VISIBLE);\n\t\t}else if(arg0 == 1){\n\t\t\tbatchAudit.setVisibility(View.GONE);\n\t\t\tbatchReturn.setVisibility(View.GONE);\n\t\t}\n\t\t\n\t\tcurrIndex = arg0;\n\t}", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n }", "public void autoSwipeViews() {\n mTimer = new Timer();\n mTimer.scheduleAtFixedRate(new SliderTimer(), 10000, 10000);\n }", "public void perder() {\n // TODO implement here\n }", "public abstract void onPull(float scaleOfLayout);", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n }", "public void onSwipe() {\n\n this.listner.onValueSelected(this, 10.5f);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n }", "@Override\n public void onCardDragging(Direction direction, float ratio) {\n Log.d(TAG, \"onCardDragging: d=\" + direction.name() + \" ratio=\" + ratio);\n }", "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t\t\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\r\n public void onStart() {\n LogManager.print(\"Rating onStart\");\r\n progressBar.setVisibility(View.VISIBLE);\r\n }", "public abstract void updateSlider();" ]
[ "0.7172811", "0.7171446", "0.7171446", "0.7171446", "0.7103148", "0.6854072", "0.6647569", "0.6427705", "0.6374646", "0.6318756", "0.6318756", "0.61858314", "0.61042005", "0.60914963", "0.5950339", "0.59232444", "0.58951914", "0.5844745", "0.58128726", "0.58128726", "0.58128726", "0.58128726", "0.5811447", "0.57628006", "0.575915", "0.574209", "0.5741267", "0.5733412", "0.5714758", "0.5689135", "0.5685853", "0.5652189", "0.5602326", "0.55629426", "0.5561258", "0.5556971", "0.5548062", "0.55281925", "0.5519995", "0.55179983", "0.5467396", "0.5457657", "0.54571396", "0.5427626", "0.5416831", "0.54129434", "0.5400914", "0.5400026", "0.5400026", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.53813744", "0.537735", "0.53718615", "0.53718615", "0.53714293", "0.53704226", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.53698325", "0.5365362", "0.535876", "0.5355999", "0.53467226", "0.5338047", "0.5336385", "0.533261", "0.5328804", "0.5325515", "0.5325515", "0.53176475", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5316446", "0.5313279", "0.53082037", "0.5306788", "0.5306275", "0.5305027" ]
0.6789544
6
Note: For this to fire, you have to declare in your AndroidManifest.xml what changes you're handling. For this activity, I've declared android:configChanges="orientation|screenSize", to show that this activity is going to handle rotation.
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // Pass any configuration change to the drawer toggle mDrawerToggle.onConfigurationChanged(newConfig); //If there's a custom view, then set the customViewContainer as the content view. if (mCustomView != null) { setContentView(mCustomViewContainer); //TODO: Better handling of rotation including maintenance of play/pause state. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t}", "default void onOrientationChange(int orientation) { }", "public void onOrientationChanged(int orientation);", "@Override\n public void onActivityCreated(Activity arg0, Bundle arg1) {\n arg0.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "@Override\n public void onConfigurationChanged(Configuration config) {\n super.onConfigurationChanged(config);\n\n if (config.orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n } else if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n try {\n super.onConfigurationChanged(newConfig);\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setContentView(R.layout.activity_main);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n CamB.setRotation(0);\n\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n CamB.setRotation(90);\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n \tsuper.onConfigurationChanged(newConfig);\n \t//If mode is landscape\n\t\tif (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\t\t\t//Set corresponding xml view\n\t\t\tsetContentView(R.layout.activity_game_initializerlandscape);\n\t\t\tinitializeGame();\n\t\t} else {\n\t\t\tsetContentView(R.layout.activity_game_initializer);\n\t\t\tinitializeGame();\n\t\t} \t\n }", "public void onSetOrientation() {\n }", "public void onResume() {\n if (getRequestedOrientation() != 0) {\n setRequestedOrientation(0);\n }\n super.onResume();\n }", "public void onLayoutOrientationChanged(boolean isLandscape);", "private void startOrientationSensor() {\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }", "private void orientationChanged(int change) {\n orientation += change;\n if (orientation > 4) {\n orientation = orientation - 4;\n }\n }", "public void onLayoutOrientationChanged(BaseActivity.LayoutOrientation layoutOrientation) {\n super.onLayoutOrientationChanged(layoutOrientation);\n int n = layoutOrientation == BaseActivity.LayoutOrientation.Portrait ? 1 : 2;\n StateMachine stateMachine = this.mStateMachine;\n StateMachine.StaticEvent staticEvent = StateMachine.StaticEvent.EVENT_ON_ORIENTATION_CHANGED;\n Object[] arrobject = new Object[]{n};\n stateMachine.sendStaticEvent(staticEvent, arrobject);\n }", "public void onSensorChanged(SensorEvent event) {\n switch (event.sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n acceleration_vals = event.values.clone();\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n magnetic_vals = event.values.clone();\n break;\n }\n \n \n // If we have all the necessary data, update the orientation.\n if (acceleration_vals != null && magnetic_vals != null) {\n float[] R = new float[16];\n float[] I = new float[16];\n \n SensorManager.getRotationMatrix(R, I, acceleration_vals, \n magnetic_vals);\n \n float[] orientation = new float[3];\n SensorManager.getOrientation(R, orientation);\n \n acceleration_vals = null;\n magnetic_vals = null;\n \n // Use the pitch to determine whether we are in ID mode or\n // conference mode.\n if (orientation[1] <= -0.2) { // we're in conference mode\n this.setRequestedOrientation(\n ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n showScheduleView();\n } else if (orientation[1] >= 0.2) { // we're in ID mode\n this.setRequestedOrientation(\n ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);\n showBadgeView();\n }\n }\n }", "public abstract void setRequestedOrientation(int requestedOrientation);", "private void mLockScreenRotation()\n {\n switch (this.getResources().getConfiguration().orientation)\n {\n case Configuration.ORIENTATION_PORTRAIT:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n case Configuration.ORIENTATION_LANDSCAPE:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n }\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tgetActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\t}", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tnotOrientationChange=false;\n\t super.onConfigurationChanged(newConfig);\n\t}", "public boolean getOrientationChanged(){ return mOrientationChange; }", "@Override\n public void onSensorChanged(SensorEvent event) {\n mOrientation = event.values[0];\n }", "public void setOnOrientationChange(boolean changed){\n //orientation change flag\n mOrientationChange = changed;\n }", "@Override\n public void onRotationChanged(int rotation) {\n stateHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n rotationChanged();\n }\n }, ROTATION_LISTENER_DELAY_MS);\n }", "private void startOrientationSensor() {\n orientationValues = new float[3];\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n Sensor orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);\n sensorManager.registerListener(this, orientationSensor, SensorManager.SENSOR_DELAY_UI);\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t// Verifica la orientación\n\t\tcheckOrientation();\n\t}", "public interface OrientationListener {\n\t \n /**\n * On orientation changed.\n *\n * @param azimuth the azimuth\n * @param pitch the pitch\n * @param roll the roll\n */\n public void onOrientationChanged(float azimuth, \n float pitch, float roll);\n \n /**\n * Top side of the phone is up\n * The phone is standing on its bottom side.\n */\n public void onTopUp();\n \n /**\n * Bottom side of the phone is up\n * The phone is standing on its top side.\n */\n public void onBottomUp();\n \n /**\n * Right side of the phone is up\n * The phone is standing on its left side.\n */\n public void onRightUp();\n \n /**\n * Left side of the phone is up\n * The phone is standing on its right side.\n */\n public void onLeftUp();\n \n /**\n * screen down.\n */\n public void onFlipped();\n}", "@Override\n\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t float[] rotationMatrix;\n\t\t\t rotationMatrix = new float[16];\n\t SensorManager.getRotationMatrixFromVector(rotationMatrix,\n\t event.values);\n\t determineOrientation(rotationMatrix);\n\t\t\t\n\t\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\t// 夜间模式开启\n\t\tif (sp.getBoolean(Constants.PREFERENCES_NIGHT_MODE, false)) {\n\t\t\tnight();\n\t\t} else {\n\t\t\tday();\n\t\t}\n\t\tif (0 == sp.getInt(Constants.PREFERENCES_SCREEN_ORIENTATION, 0)) {\n\t\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t\t} else if (1 == sp.getInt(Constants.PREFERENCES_SCREEN_ORIENTATION, 0)) {\n\t\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\t\t} else if (2 == sp.getInt(Constants.PREFERENCES_SCREEN_ORIENTATION, 0)) {\n\t\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);\n\t\t}\n\t}", "private void rotationChanged() {\n if(isActive() && getDisplayRotation() != openedOrientation) {\n pause();\n resume();\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n // Checks the orientation of the screen\n if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n // Set Layout both the Fragments in one screen in 1/3 and 2/3\n setLayout();\n } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){\n //Set Layout only Fragment First Fragment if click show only second fragment\n setLayout();\n }\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\n\t\tIntent it = new Intent(this, MeasureAppWindowSize.class);\n\t\tstartActivity(it);\n\t\tfinish();\n\t}", "@Override\n public void onOrientationChanged(int orientation) {\n if (orientation == OrientationEventListener.ORIENTATION_UNKNOWN || mPaused) {\n return;\n }\n int newOrientation = Utils.roundOrientation(orientation, mGSensorOrientation);\n if (mGSensorOrientation != newOrientation) {\n mGSensorOrientation = newOrientation;\n }\n mAbstractModuleUI.onOrientationChanged(mGSensorOrientation);\n mAaaControl.onOrientationChanged(mGSensorOrientation);\n mDetectionManager.onOrientationChanged(mGSensorOrientation);\n mCurrentMode.onOrientationChanged(mGSensorOrientation);\n mRemoteTouchFocus.setLocalOrientation(mGSensorOrientation);\n }", "@Override\n public void onResume() {\n super.onResume();\n // Use the fastest sensor readings.\n sensorManager.registerListener(\n phoneOrientationListener, orientationSensor, SensorManager.SENSOR_DELAY_FASTEST);\n mediaLoader.resume();\n }", "@Override\n public void ChangeMode() {\n if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {\n\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;\n getWindow().setAttributes(attrs);\n getWindow().addFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams layoutParams =\n new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n\n videoView.setLayoutParams(layoutParams);\n otherview.setVisibility(View.GONE);\n\n ivSendGift.setVisibility(View.GONE);\n\n\n } else {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setAttributes(attrs);\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 240);\n ivSendGift.setVisibility(View.VISIBLE);\n videoView.setLayoutParams(lp);\n otherview.setVisibility(View.VISIBLE);\n\n\n }\n }", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "@Override\n\t\tpublic void onOrientationChanged(int orientation) {\n\t\t\tif (orientation == ORIENTATION_UNKNOWN)\n\t\t\t\treturn;\n\t\t\tmLastRawOrientation = orientation;\n\t\t\tmCurrentModule.onOrientationChanged(orientation);\n\t\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onConfigurationChanged(Configuration updatedConfig) {\n super.onConfigurationChanged(updatedConfig);\n\n // Checks the orientation of the screen\n if (updatedConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n nav_bar.setVisibility(View.GONE);\n\n } else if (updatedConfig.orientation == Configuration.ORIENTATION_PORTRAIT){\n nav_bar.setVisibility(View.VISIBLE);\n }\n }", "public void surfaceCreated(SurfaceHolder holder) {\n\t \n camera = Camera.open();\n Camera.Parameters p = camera.getParameters();\n p.set(\"orientation\", \"landscape\");\n }", "@Override\r\n\tpublic void onOrientationChanged(float[] aValues, float[] mValues) {\n\t\trefreshDisplay(calculateOrientation(aValues, mValues));\r\n\t}", "@Override\n protected void onResume() {\n Sensor orientationSensor = sensormanager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);\n sensormanager.registerListener(sensorEventListener, orientationSensor, SensorManager.SENSOR_DELAY_NORMAL);\n\n Sensor accelerometerSensor = sensormanager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);\n sensormanager.registerListener(sensorEventListener, accelerometerSensor, SensorManager.SENSOR_DELAY_NORMAL);\n super.onResume();\n //注册监听器,监听加速度传感器的变化\n //SensorManager.SENSOR_DELAY_UI表示灵敏度,这个是适合用户界面一般行为的频率\n //还有SENSOR_DELAY_GAME、 SENSOR_DELAY_FASTEST、SENSOR_DELAY_NORMAL 顾名思义,具体可以看api。\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onPause() {\n mediaLoader.pause();\n sensorManager.unregisterListener(phoneOrientationListener);\n super.onPause();\n }", "@Override\n\t\t\tpublic void onGlobalLayout() {\n\t\t\t\tint [] location = new int[2];\n\t\t\t\tgetLocationOnScreen(location);\n\t\t\t\tif (mWindowMgrParams.y == location[1]) {\n\t\t\t\t\t// is full screen\n\t\t\t\t\tisNotFullScreen = false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisNotFullScreen = true;\n\t\t\t\t}\n\n\t\t\t\t//detect screen orientation change\n\t\t\t\tPoint tempDimension = ScreenUtils.getScreenDimen((Activity) mContext);\n\t\t\t\tif (screendimension.x == tempDimension.y) {\n\t\t\t\t\t//now is in landscape\n\t\t\t\t\tif (currentdimension.x == screendimension.x) {\n\t\t\t\t\t\t// this is the first time that detect screen orientation\n\t\t\t\t\t\t// is changed to landscape\n\t\t\t\t\t\tcurrentdimension = tempDimension;\n\t\t\t\t\t\tonOrientationChanged(ScreenStateListener.ORIENTATION_LANDSCAPE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//now is in portrait\n\t\t\t\t\tif (currentdimension.x != screendimension.x) {\n\t\t\t\t\t\t// this is the first time that screen orientation\n\t\t\t\t\t\t// is recovered from landscape for the first time\n\t\t\t\t\t\tcurrentdimension = tempDimension;\n\t\t\t\t\t\tonOrientationChanged(ScreenStateListener.ORIENTATION_PORTRAIT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void onOrientationChanged(float azimuth, float pitch, float roll) {\n\r\n\t}", "@Override\r\npublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n\t\r\n}", "private void initializeSecondTime() {\n //mOrientationListener.enable();\n }", "@Override\n\tpublic void onHeadingSensorChanged(float[] orientation) {\n\t\t\n\t}", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t super.onConfigurationChanged(newConfig);\n\t //setContentView(R.layout.main);\n\t}", "void onOrientationChanged(float azimuth, float pitch, float roll);", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t//Checks the orientation of the screen\n\t\tif(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){\n\t\t\t\n\t\t\tToast.makeText(this, \"landscapte\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}else if(newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){\n\t\t\t\n\t\t\tToast.makeText(this,\"portrait\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}\n\t\t//Checks whether a hardware keyboard is available\n\t\tif(newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO){\n\t\t\t\n\t\t\tToast.makeText(this, \"keyboard visible\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}else if(newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES){\n\t\t\t\n\t\t\tToast.makeText(this,\"keyboard hidden\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onSensorChanged(android.hardware.SensorEvent event) {\n int azimuth = (int) event.values[0];\n switch (cz.kruch.track.TrackingMIDlet.getActivity().orientation) {\n case 0: // portrait\n // nothing to do\n break;\n case 1: // landscape\n azimuth = (azimuth + 90) % 360;\n break;\n case 2: // portrait reversed\n azimuth = (azimuth + 180) % 360;\n break;\n case 3: // landscape reversed\n azimuth = (azimuth + 270) % 360;\n break;\n }\n// android.util.Log.w(\"TrekBuddy\", \"[app] fixed azimuth = \" + azimuth);\n notifySenser(azimuth);\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n // background.setImageDrawable(ContextCompat.getDrawable(getContext(),\n // resid));\n background.setBackgroundResource(resid);\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n // background.setImageDrawable(ContextCompat.getDrawable(getContext(),\n // resid_land));\n background.setBackgroundResource(resid_land);\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n Log.d(TAG, TAG + \" onConfigurationChanged\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main2);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n OnClickImage();\n\n\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t super.onCreate(savedInstanceState);\r\n\t //Set full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n setContentView(R.layout.creditlayout);\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);\r\n\t}", "@Override public void onSensorChanged(SensorEvent event) \n\t{\n\t\tif (Sensor.TYPE_ACCELEROMETER == event.sensor.getType())\n\t\t{\n\t\t\t//The values provided from the accelerometer are always relative to the default screen orientation which can change\n\t\t\t//from device to device. To alleviate this we are converting into \"screen\" coordinates. This has been taken from\n\t\t\t//the nvidia accelerometer white paper which can be found at : http://developer.download.nvidia.com/tegra/docs/tegra_android_accelerometer_v5f.pdf\n\t\t\tActivity activity = CSApplication.get().getActivity();\n\t\t\tWindowManager windowManager = (WindowManager)activity.getSystemService(Activity.WINDOW_SERVICE);\n\t\t\tint rotationIndex = windowManager.getDefaultDisplay().getRotation();\n\t\t\tAxisSwap axisSwap = m_axisSwapForRotation[rotationIndex];\n\t\t\tfloat fScreenX = ((float)axisSwap.m_negateX) * event.values[axisSwap.m_sourceX];\n\t\t\tfloat fScreenY = ((float)axisSwap.m_negateY) * event.values[axisSwap.m_sourceY];\n\t\t\tfloat fScreenZ = event.values[2];\n\n\t\t\t//the values provided by android are in ms^-2. Accelerometer values are more typically given in\n\t\t\t//terms of \"g\"'s so we are converting here. We are also converting from a x, y and z positive in the\n\t\t\t//left, up and backward directions respectively to right, up and forward directions to be more consistent with iOS.\n\t\t\tfinal float k_gravity = 9.80665f;\n\t\t\tfinal float k_accelerationX = -fScreenX / k_gravity;\n\t\t\tfinal float k_accelerationY = fScreenY / k_gravity;\n\t\t\tfinal float k_accelerationZ = -fScreenZ / k_gravity;\n\t\t\t\n\t\t\t//update acceleration on main thread.\n\t\t\tRunnable task = new Runnable()\n\t\t\t{ \n\t\t\t\t@Override public void run() \n\t\t\t\t{\n\t\t\t\t\tif (true == mbHasAccelerometer && true == mbListening)\n\t\t\t\t\t{\n\t\t\t UpdateAcceleration(k_accelerationX, k_accelerationY, k_accelerationZ);\n\t\t\t }\n\t\t\t\t}\n\t\t\t};\n\t\t\tCSApplication.get().scheduleMainThreadTask(task);\n\t\t}\n\t}", "@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\tint height) {\n\t\tLog.v(LOGTAG, \"surfaceChanged Called\");\r\n\t}", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width,\n int height) {\n\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }", "public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {\n Log.v(TAG, \"Test application surface changed\");\n }", "@Override\n\tprotected void onRestoreInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onRestoreInstanceState(savedInstanceState);\n\t\tLog.e(\"mainactivity\", \"onrestore\");\n\t\t\n\t}", "@Override\r\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Log.i(tag, \"-----------------------------onCreate--------------------\");\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); // 应用运行时,保持屏幕高亮,不锁屏\n\n }", "public void onResume() {\n sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\r\n protected void onResume() {\r\n Log.d(LOGTAG, \"onResume\");\r\n super.onResume();\r\n\r\n // This is needed for some Droid devices to force portrait\r\n if (mIsDroidDevice) {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n }\r\n\r\n try {\r\n vuforiaAppSession.resumeAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Resume the GL view:\r\n if (mGlView != null) {\r\n mGlView.setVisibility(View.VISIBLE);\r\n mGlView.onResume();\r\n }\r\n }", "@Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n if (LOGGING) Log.d(LOG_TAG, \"surfaceChanged(\" + width + \", \" + height + \")\");\n mRenderCallback.onResized(width, height);\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n mAccelerometer = event.values;\n }\n if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {\n mGeomagnetic = event.values;\n }\n\n if (mAccelerometer != null && mGeomagnetic != null) {\n float R[] = new float[9];\n float I[] = new float[9];\n boolean success = SensorManager.getRotationMatrix(R, I, mAccelerometer, mGeomagnetic);\n if (success) {\n float orientation[] = new float[3];\n SensorManager.getOrientation(R, orientation);\n // at this point, orientation contains the azimuth(direction), pitch and roll values.\n azimuth = 180*orientation[0] / Math.PI;\n double pitch = 180*orientation[1] / Math.PI;\n double roll = 180*orientation[2] / Math.PI;\n\n // Toast.makeText(getApplicationContext(),azimuth+\"--\",Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\r\n public void onConfigurationChanged(Configuration config) {\r\n Log.d(LOGTAG, \"onConfigurationChanged\");\r\n super.onConfigurationChanged(config);\r\n\r\n vuforiaAppSession.onConfigurationChanged();\r\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t// setContentView(R.layout.main);\n\n\t\t// InitializeUI();\n\t}", "@Override\n public void onOrientationChanged(double orientation, double tilt) {\n if (!getUserVisibleHint()) {\n return;\n }\n if (mMap == null) {\n return;\n }\n\n /*\n If we're in map mode, we have a location fix, and we have a preference to rotate the map based on sensors,\n then do the map camera reposition\n */\n if (mMapController.getMode().equals(MODE_MAP) && mMyLocationMarker != null && mRotate) {\n mMap.setMapOrientation((float) -orientation);\n }\n mMap.invalidate();\n }", "void unlockOrientation() {\n if (!mOrientationLocked) {\n return;\n }\n\n mOrientationLocked = false;\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n }", "private void flipOrientation() {\n try {\n if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_0) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_180);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_90) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_270);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_180) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_0);\n } else {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_90);\n }\n } catch (Settings.SettingNotFoundException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n sensorManager.registerListener(this, senorAccelerometer, sensorManager.SENSOR_DELAY_NORMAL);\n }", "private void changeCalculatePreviewOrientation() {\n\n if (mHolder.getSurface() == null) {\n // preview surface does not exist\n Log.d(TAG, \"Preview surface does not exist\");\n return;\n }\n\n // stop preview before making changes\n stopCamera();\n\n int orientation = calculatePreviewOrientation(mCameraInfo, mDisplayOrientation);\n mCamera.setDisplayOrientation(orientation);\n\n startCamera();\n }", "@Override\n public void setOrientation(Orientation orientation) {\n this.orientation = orientation;\n }", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surface,\n int width, int height) {\n Log.e(TAG, \"onSurfaceTextureSizeChanged\");\n }", "@Override\n\tpublic void onRestoreInstanceState(Bundle savedInstanceState) {\n\t}", "public interface OrientationChangeEventListener {\n\n /* compiled from: organic_product */\n public enum DeviceOrientation {\n PORTRAIT,\n LANDSCAPE_LEFT,\n LANDSCAPE_RIGHT\n }\n\n void mo469a(DeviceOrientation deviceOrientation);\n}", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tint sensorType = event.sensor.getType(); \n //values[0]:X轴,values[1]:Y轴,values[2]:Z轴 \n float[] values = event.values; \n if (sensorType == Sensor.TYPE_ACCELEROMETER) \n { \n if ((Math.abs(values[0]) > 17 || Math.abs(values[1]) > 17 || Math \n .abs(values[2]) > 17)) \n { \n Log.d(\"sensor x \", \"============ values[0] = \" + values[0]); \n Log.d(\"sensor y \", \"============ values[1] = \" + values[1]); \n Log.d(\"sensor z \", \"============ values[2] = \" + values[2]); \n Intent intent = new Intent(this, MapActivity.class);\n startActivity(intent);\n //摇动手机后,再伴随震动提示~~ \n vibrator.vibrate(500); \n } \n \n } \n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) \n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t if (savedInstanceState == null)\n\t\t {\n\t\t\t if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) \n\t\t\t {\n\t\t\t\t setContentView(R.layout.activity_main);\n\t\t\t\t FragmentOne frag = new FragmentOne();\n\t\t\t\t getSupportFragmentManager().beginTransaction().add(R.id.Fragment_One, frag).commit();\n\t\t\t }\n\t\t\t if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) \n\t\t\t {\n\t\t\t\t setContentView(R.layout.single_fragment);\n\t\t\t\t FragmentOne frag = new FragmentOne();\n\t\t\t\t getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, frag).commit();\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) \n\t\t\t {\n\t\t\t\t setContentView(R.layout.activity_main);\n\t\t\t\t FragmentOne frag = new FragmentOne();\n\t\t\t\t FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\t\t\t\t transaction.replace(R.id.Fragment_One, frag);\n\t\t\t\t transaction.commit();\n\t\t\t }\n\t\t\t if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) \n\t\t\t {\n\t\t\t\t setContentView(R.layout.single_fragment);\n\t\t\t\t FragmentOne frag = new FragmentOne();\n\t\t\t\t FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\t\t\t\t transaction.replace(R.id.fragment_container, frag);\n\t\t\t\t transaction.commit();\n\t\t\t }\n\t\t }\n\t\t \n\t\t\n\t}", "@Override\n\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\tscreenWidth = getWidth();\n\t\tscreenHeight = getHeight();\n\t}", "@Override\n public void onViewResume() {\n }", "private void stopOrientationSensor() {\n SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n sensorManager.unregisterListener(this);\n }" ]
[ "0.7501346", "0.7385723", "0.7342114", "0.7321669", "0.717653", "0.7063117", "0.70427966", "0.69904965", "0.68924177", "0.6697558", "0.66059226", "0.65554583", "0.6513684", "0.65086967", "0.6471585", "0.6433439", "0.6410583", "0.6406114", "0.63965654", "0.6362466", "0.6335808", "0.63337046", "0.63170093", "0.6312602", "0.6290287", "0.6268481", "0.62559855", "0.61921734", "0.6189833", "0.6158829", "0.6139793", "0.6032368", "0.6002653", "0.59735405", "0.5946897", "0.59443444", "0.59331405", "0.5927206", "0.5927206", "0.59243673", "0.59243673", "0.5918907", "0.590405", "0.590278", "0.58965355", "0.5889242", "0.5874742", "0.5874742", "0.58305645", "0.58305645", "0.58305645", "0.58305645", "0.58305645", "0.58305645", "0.5826573", "0.5824171", "0.5818848", "0.58146363", "0.5809385", "0.5808884", "0.58087915", "0.5792665", "0.5781703", "0.5771769", "0.5757418", "0.5745316", "0.57392097", "0.5735063", "0.57307285", "0.57290673", "0.57121605", "0.5707464", "0.5698398", "0.5693046", "0.56882805", "0.56789994", "0.5677787", "0.5660258", "0.56570834", "0.5649922", "0.56416583", "0.564107", "0.563815", "0.5635162", "0.5627649", "0.56156343", "0.5597934", "0.5595984", "0.5589658", "0.5586666", "0.55791", "0.5566866", "0.55620813", "0.5561758", "0.5561758", "0.5561039", "0.5558928", "0.55583125", "0.55491966", "0.5529664" ]
0.5547916
99
The action bar home/up action should open or close the drawer. ActionBarDrawerToggle will take care of this.
@Override public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true; } //If the drawer toggle was not selected, switch (item.getItemId()) { case R.id.action_share: Toast.makeText(this, "Share!", Toast.LENGTH_LONG).show(); break; default: Log.d(Constants.LOG_TAG, "Unhandled action item!"); break; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n switch (item.getItemId()) {\n case android.R.id.home:\n drawerLayout.openDrawer(GravityCompat.START);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\r\n return true;\r\n }\r\n\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n mDrawerLayout.openDrawer(GravityCompat.START);\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n }\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n if (drawerLayout.isDrawerOpen(listViewSliding)){\n drawerLayout.closeDrawer(listViewSliding);\n }else{\n drawerLayout.openDrawer(listViewSliding);\n }\n break;\n\n default:\n break;\n }\n return true;\n\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\nint home=item.getItemId();\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_settings) {\r\n return true;\r\n }\r\nif(home==R.id.home){\r\n drawerlayout.openDrawer(Gravity.LEFT);\r\n}\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n if (drawerLayout.isDrawerOpen(linearLayout)) {\n drawerLayout.closeDrawers();\n } else {\n drawerLayout.openDrawer(linearLayout);\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n \tLog.d(\"MainActivity\", \"onOptionsItemSelected\");\r\n if (mDrawerToggle.onOptionsItemSelected(item)) {\r\n \tLog.d(\"MainActivity\", \"======\");\r\n// \treturn true;\r\n }\r\n debugMemory(\"title:\"+item.getTitle()+\"--itemId:\"+item.getItemId()+\" android.id\"+android.R.id.home);\r\n \r\n switch (item.getItemId()) {\r\n\t\tcase R.id.action_search:\r\n\t\t\tLog.d(\"MainActivity\", \"===action_search==\");\r\n\t\t\tgetActionBar().setIcon(R.drawable.search_white);\r\n\t\t\tmDrawerToggle.setDrawerIndicatorEnabled(false);\r\n\t\t\tbreak;\r\n\t\tcase R.id.action_alarm:\r\n\t\t\tmDrawerToggle.setDrawerIndicatorEnabled(false);\r\n\t\t\tLog.d(\"MainActivity\", \"===action_alarm==\");\r\n\t\t\tbreak;\r\n\t\tcase android.R.id.home:\r\n\t\t\tif (mDrawerToggle.isDrawerIndicatorEnabled() == false) {\r\n\t\t\t\tgetActionBar().setIcon(null);\r\n\t\t\t\tmDrawerToggle.setDrawerIndicatorEnabled(true);\r\n\t\t\t\tdebugMemory(\"android.R.id.home\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n \r\n // Handle your other action bar items...\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public final boolean onOptionsItemSelected(MenuItem item) {\n if (actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_filter) {\n if (myDrawer.isDrawerOpen(rightDrawer)) {\n myDrawer.closeDrawer(rightDrawer);\n } else {\n myDrawer.openDrawer(rightDrawer);\n if (myDrawer.isDrawerOpen(leftDrawer)) {\n myDrawer.closeDrawer(leftDrawer);\n }\n }\n return true;\n } else if (id == android.R.id.home) {\n if (myDrawer.isDrawerOpen(leftDrawer)) {\n myDrawer.closeDrawer(leftDrawer);\n } else {\n myDrawer.openDrawer(leftDrawer);\n if (myDrawer.isDrawerOpen(rightDrawer)) {\n myDrawer.closeDrawer(rightDrawer);\n }\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\r\n return true;\r\n }\r\n // Handle your other action bar items...\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n //noinspection SimplifiableIfStatement\n case android.R.id.home:\n drawerLayout.openDrawer(GravityCompat.START);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n mDrawerLayout.openDrawer(GravityCompat.START);\n return true;\n case R.id.action_settings:\n return true;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n mDrawerLayout.openDrawer(GravityCompat.START);\n return true;\n case R.id.action_settings:\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onHomeButtonClick() {\n drawerLayout.openDrawer(Gravity.LEFT);\n\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_settings) {\r\n return true;\r\n } else if (id == android.R.id.home) {\r\n mDrawerLayout.openDrawer(GravityCompat.START);\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "public void onDrawerOpened(View drawerView) {\n menuvalue = 1;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.back_arrow);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n if (id == android.R.id.home) {\n mDrawerLayout.openDrawer(GravityCompat.START);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void toggleDrawer() {\n DrawerLayout drawer = (DrawerLayout)findViewById(R.id.menu);\n if(drawer.isDrawerOpen(Gravity.START)) {\n drawer.closeDrawer(Gravity.START);\n }\n else drawer.openDrawer(Gravity.START);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "private void toggleDrawer() {\n ActionBarDrawerToggle drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar,\n R.string.navigation_drawer_open, R.string.navigation_drawer_close);\n drawerLayout.addDrawerListener(drawerToggle);\n drawerToggle.syncState();\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t if (mDrawerToggle.onOptionsItemSelected(item)) {\n\t return true;\n\t }\n\t else{\n\t return super.onOptionsItemSelected(item);\n\t }\n\t }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\t switch (item.getItemId()) {\n\t case R.id.action_settings:\n\t \tToast.makeText(getApplicationContext(), \"Refresh!\", Toast.LENGTH_SHORT).show();\n\t break;\n\t }\n\t return true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n if (_actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n switch(item.getItemId()) {\n case R.id.item_logout:\n LogOut();\n return true;\n case R.id.item_about:\n showErrorMessage(\"Clicked About\");\n return true;\n case R.id.item_refresh:\n Reload();\n return true;\n case R.id.item_search:\n LaunchSearch();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n //}\n // Handle other action bar items...\n //return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n//done: set a button to open drawer\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n if (!drawerLayout.isDrawerOpen(drawer))\n drawerLayout.openDrawer(drawer);\n else\n drawerLayout.closeDrawers();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(mDrawerToggle.onOptionsItemSelected(item)){\n return true;\n }\n\n\n// int id = item.getItemId();\n//\n// //noinspection SimplifiableIfStatement\n// if (id == R.id.action_settings) {\n// return true;\n// }\n\n return super.onOptionsItemSelected(item);\n }", "void displayDrawer() {\n //toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n actionbar = getSupportActionBar();\n actionbar.setDisplayHomeAsUpEnabled(true);\n\n actionbar.setHomeAsUpIndicator(R.drawable.ic_menu);\n\n navigationView.setNavigationItemSelectedListener(\n new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n // set item as selected to persist highlight\n menuItem.setChecked(true);\n // close drawer when item is tapped\n mdrawer.closeDrawers();\n\n String choice = menuItem.getTitle().toString();\n\n switch (choice) {\n case \"Register\":\n Intent i = new Intent(getBaseContext(), SignIn.class);\n startActivity(i);\n break;\n case \"Log In\":\n Intent p = new Intent(getBaseContext(), LoginActivity.class);\n startActivity(p);\n break;\n\n case \"Profile Picture\":\n Intent pic = new Intent(getBaseContext(), ImageUpload.class);\n startActivity(pic);\n break;\n\n case \"Users\":\n Intent users = new Intent(getBaseContext(), Userlist.class);\n startActivity(users);\n break;\n\n case \"Chats\":\n Intent chats = new Intent(getBaseContext(), ChatList.class);\n startActivity(chats);\n break;\n }\n\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\n }\n });\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle your other action bar items...\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(\"WXTJ Student Radio\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if (mDrawerToggle.onOptionsItemSelected(item))\n {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n DrawerLayout drawerLayout = findViewById(R.id.drawer_layout);\n\n switch (item.getItemId()) {\n case R.id.action_menu:\n drawerLayout.openDrawer(GravityCompat.START);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "private ActionBarDrawerToggle setupDrawerToggle() {\n return new ActionBarDrawerToggle(this, mDrawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);\n }", "public void onDrawerClosed(View view) {\n getActionBar().setTitle(\"Closed Drawer\");\n }", "private ActionBarDrawerToggle setupDrawerToggle() {\n return new ActionBarDrawerToggle(this, mDrawer, toolbar, R.string.drawer_open, R.string.drawer_close);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.action_search: {\n isSearch = true;\n searchToolbar.setVisibility(View.VISIBLE);\n prepareActionBar(searchToolbar);\n ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(\n this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);\n drawer.addDrawerListener(toggle);\n toggle.syncState();\n\n return true;\n }\n case android.R.id.home:\n closeSearch();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n switch(item.getItemId()){\n case R.id.action_settings:\n openSettings();\n break;\n\n case R.id.action_refresh:\n if (mLastFragment != null) {\n mLastFragment.refresh();\n }\n break;\n\n default: return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n // Activate the navigation drawer toggle\n if (id == R.id.action_location_found)\n {\n Toast.makeText(Home.this, \"Action Location\", Toast.LENGTH_SHORT).show();\n }\n else if (id == R.id.action_refresh)\n {\n Toast.makeText(Home.this, \"Action Refresh\", Toast.LENGTH_SHORT).show();\n }\n else if (id == R.id.action_help)\n {\n Toast.makeText(Home.this, \"Action Help\", Toast.LENGTH_SHORT).show();\n }\n else if (id == R.id.action_check_updates)\n {\n Toast.makeText(Home.this, \"Action Check Updates\", Toast.LENGTH_SHORT).show();\n }\n\n if (mDrawerToggle.onOptionsItemSelected(item))\n {\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "@Test\n public void clickOnAndroidHomeIcon_OpensNavigationDrawer() {\n onView(withId(R.id.drawer_layout))\n .check(matches(isClosed(Gravity.LEFT))); // Left Drawer should be closed.\n\n // Open Drawer\n onView(withId(R.id.drawer_layout))\n .perform(open());\n\n // Check if drawer is open\n onView(withId(R.id.drawer_layout))\n .check(matches(isOpen(Gravity.LEFT))); // Left drawer is open open.\n }", "@Test\n public void clickOnAndroidHomeIcon_OpensNavigation() {\n onView(withId(R.id.drawer_layout))\n .check(matches(isClosed(Gravity.LEFT))); // Left Drawer should be closed.\n\n // Open Drawer\n String navigateUpDesc = mActivityTestRule.getActivity()\n .getString(android.support.v7.appcompat.R.string.abc_action_bar_up_description);\n// onView(withContentDescription(navigateUpDesc)).perform(click());\n onView(withId(R.id.drawer_layout)).perform(open());\n // Check if drawer is open\n onView(withId(R.id.drawer_layout))\n .check(matches(isOpen(Gravity.LEFT))); // Left drawer is open open.\n }", "public void onDrawerClosed(View view) {\n menuvalue = 0;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.menu);\n }", "public void onDrawerClosed(View view) {\n \tactivity.getSupportActionBar().setTitle(\"Txootx!\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (item != null && item.getItemId() == android.R.id.home) {\n if (drawer.isDrawerOpen(Gravity.RIGHT)) {\n drawer.closeDrawer(Gravity.RIGHT);\n } else {\n drawer.openDrawer(Gravity.RIGHT);\n }\n }\n //noinspection SimplifiableIfStatement\n return super.onOptionsItemSelected(item);\n }", "private void setupDrawer(){\n drawerToggle = new ActionBarDrawerToggle(\n this,\n drawerLayout,\n R.string.drawer_open,\n R.string.drawer_close) {\n\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(appTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n drawerToggle.setDrawerIndicatorEnabled(true);\n drawerLayout.addDrawerListener(drawerToggle);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n if (id == R.id.action_log_out) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n switch (item.getItemId())\n {\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void onDrawerOpened(View drawerView) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "private ActionBarDrawerToggle setupDrawerToggle() {\n return new ActionBarDrawerToggle(this, mDrawer, toolbar, R.string.drawer_open, R.string.drawer_close);\n }", "private ActionBarDrawerToggle setupDrawerToggle() {\n return new ActionBarDrawerToggle(this, mDrawer, toolbar, R.string.drawer_open, R.string.drawer_close);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Handle action buttons\n\t\tswitch (item.getItemId()) {\n\t\t// this is not a desirable approach!\n\t\tcase android.R.id.home:\n\t\t\t// Toast.makeText(this, \"Need to be implemented\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t/*\n\t\t\t * android.support.v4.app.FragmentTransaction ft =\n\t\t\t * getSupportFragmentManager().beginTransaction();\n\t\t\t * ft.replace(R.id.container, fmt); ft.commit();\n\t\t\t */\n\n\t\t\tbreak;\n\t\tcase R.id.action_websearch:\n\t\t\t// // create intent to perform web search for this planet\n\t\t\t// Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n\t\t\t// intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n\t\t\t// // catch event that there's no activity to handle intent\n\t\t\t// if (intent.resolveActivity(getPackageManager()) != null) {\n\t\t\t// startActivity(intent);\n\t\t\t// } else {\n\t\t\t// Toast.makeText(this, R.string.app_not_available,\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t// }\n\n\t\t\t// item.expandActionView();\n\t\t\treturn false;\n\t\tcase R.id.menu_exit:\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tcase R.id.action_share:\n\n\t\t\t// String message = \"Text I wan't to share.\";\n\t\t\t// Intent share = new Intent(Intent.ACTION_SEND);\n\t\t\t// share.setType(\"text/plain\");\n\t\t\t// share.putExtra(Intent.EXTRA_TEXT, message);\n\t\t\t// startActivity(Intent.createChooser(share,\n\t\t\t// \"Title of the dialog the system will open\"));\n\n\t\t\tbreak;\n\t\tcase R.id.menu_settings2:\n\t\t\tIntent intent3 = new Intent(this, SettingsPreferences.class);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\tcase R.id.set_date:\n\n\t\t\tfinal CharSequence[] items;\n\t\t\titems = getResources().getTextArray(R.array.dates_for_police);\n\n\t\t\tAlertDialog.Builder builder = Global.giveMeDialog(this, \"Choose a month for police data\");\n\n\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tint i = 0;\n\t\t\tfor (; i < items.length; i++) {\n\t\t\t\tif (items[i].equals(Global.POLICE_DATA_REQUEST_MONTH))\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuilder.setSingleChoiceItems(items, i, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tGlobal.setPOLICE_DATA_REQUEST_MONTH(items[which].toString());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tbuilder.show();\n\n\t\t\tbreak;\n\t\tcase R.id.register_dialgo_action_bar:\n\t\t\tif (!Global.isRegistered(this)) {\n\t\t\t\tif (regDialog == null) {\n\t\t\t\t\tregDialog = new RegDialogFragment();\n\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t} else {\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t\t// Toast.makeText(this, DEBUG + \" ID Yes\",\n\t\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\titem.setVisible(false);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.email_developer:\n\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\t\t\tintent.setType(\"message/rfc822\");\n\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"[DESURBS] - YOURSafe\");\n\t\t\tintent.putExtra(Intent.EXTRA_TEXT, \"Hi, Yang \\n\\n\");\n\t\t\ttry {\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Send mail...\"));\n\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\tToast.makeText(this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.survey_developer:\n\n\t\t\tString url = \"https://docs.google.com/forms/d/1HgHhfY-Xgt53xqMPCZC_Q_rL8AKUhNi9LiPXyhKkPq4/viewform\";\n\t\t\tintent = new Intent(Intent.ACTION_VIEW);\n\t\t\tintent.setData(Uri.parse(url));\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\n\t\tcase R.id.menu_about:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\n\t}", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n invalidateOptionsMenu();\n Log.d(\"Apps Main\", \"Close drawer \");\n }", "private ActionBarDrawerToggle setupDrawerToggle() {\n return new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.drawer_open, R.string.drawer_close);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n try {\n getSupportActionBar().setTitle(activityTitle);\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }", "@Override\n\t\t\tpublic void onDrawerClosed() {\n\t\t\t\tshowUp();\n\t\t\t}", "private void setupDrawer(){\n\n drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.string.drawerOpen,\n R.string.drawerClose){\n\n public void onDrawerOpened(View drawerView){\n\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(R.string.app_name);\n invalidateOptionsMenu();\n }\n\n public void onDrawerClosed(View view){\n\n super.onDrawerClosed(view);\n getSupportActionBar().setTitle(activityTitle);\n invalidateOptionsMenu();\n }\n };\n drawerToggle.setDrawerIndicatorEnabled(true);\n drawerLayout.setDrawerListener(drawerToggle);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n drawerLayout.openDrawer(GravityCompat.START);\n return true;\n case R.id.action_qr_code:\n showQrDialog();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.center) {\n centerMapFile();\n } else\n // Activate the filter control\n if (item.getItemId() == R.id.filter) {\n if (mic != null && mic.getActivationListener() != null) {\n mic.getActivationListener().onClick(item.getActionView());\n }\n } else \n // Drawer part\n if (item.getItemId() == android.R.id.home) {\n\n if (mDrawerList != null && mDrawerLayout.isDrawerOpen(mDrawerList)) {\n mDrawerLayout.closeDrawer(mDrawerList);\n } else {\n if (mDrawerList != null) {\n mDrawerLayout.openDrawer(mDrawerList);\n }\n if (mLayerMenu != null) {\n mDrawerLayout.closeDrawer(mLayerMenu);\n }\n }\n // layer menu part\n } else if (item.getItemId() == R.id.layer_menu_action) {\n if (mLayerMenu != null && mDrawerLayout.isDrawerOpen(mLayerMenu)) {\n mDrawerLayout.closeDrawer(mLayerMenu);\n } else {\n if (mLayerMenu != null) {\n mDrawerLayout.openDrawer(mLayerMenu);\n }\n if (mDrawerList != null) {\n mDrawerLayout.closeDrawer(mDrawerList);\n }\n }\n } else if (item.getItemId() == R.id.settings) {\n Intent pref = new Intent(this, EditPreferences.class);\n startActivity(pref);\n } else if (item.getItemId() == R.id.infoview) {\n Intent info = new Intent(this, InfoView.class);\n startActivity(info);\n } else if (item.getItemId() == R.id.exitview) {\n confirmExit();\n }\n return super.onOptionsItemSelected(item);\n \n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n //getSupportActionBar().setTitle(mActivityTitle);\n invalidateOptionsMenu();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n //Handle action bar item clicks here. The action bar will\n //automatically handle clicks on the Home/Up button, so long\n //as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n //getSupportActionBar().setTitle(\"Navigation Drawer\");\n invalidateOptionsMenu();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (actionBarDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Log.d(\"ppgllrd\", \"onOptionsItemSelected: \"+item);\n\n if (studentInfoFragment.isShown())\n return false; //don't open drawer\n\n if (actionBarTitleController.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) {\n case R.id.action_filter:\n \tif(mDrawerLayout.isDrawerOpen(mDrawerRight)){\n \t\tmDrawerLayout.closeDrawer(mDrawerRight);\n\t } else {\n\t \tmDrawerLayout.openDrawer(mDrawerRight);\n\t }\n \treturn true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t// The action bar home/up action should open or close the drawer.\n\t\t// ActionBarDrawerToggle will take care of this.\n\n\t\tIntent i;\n\t\t// Handle action buttons\n\t\t// switch (item.getItemId()) {\n\t\t// case R.id.menu_add_new_list:\n\t\t// if (task.getString(\"user_id\", null) != null) {\n\t\t// i = new Intent(getBaseContext(), MyMap.class);\n\t\t// startActivity(i);\n\t\t// } else {\n\t\t// Toast.makeText(this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t// }\n\t\t// return true;\n\t\t// case R.id.menu_dashboard:\n\t\t// if (task.getString(\"user_id\", null) != null) {\n\t\t// i = new Intent(this, dashboard_main.class);\n\t\t// i.putExtra(\"edit\", \"12344\");\n\t\t// startActivity(i);\n\t\t// } else {\n\t\t// Toast.makeText(this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t// }\n\t\t// return true;\n\t\t// case R.id.menu_login:\n\t\t// if (bedMenuItem.getTitle().equals(\"Logout\")) {\n\t\t// SharedPreferences.Editor editor = getSharedPreferences(\"user\",\n\t\t// MODE_PRIVATE).edit();\n\t\t// editor.clear();\n\t\t// editor.commit();\n\t\t// bedMenuItem.setTitle(\"Login/Register\");\n\t\t// } else {\n\t\t// Intent i_user = new Intent(getBaseContext(), user_login.class);\n\t\t// startActivity(i_user);\n\t\t// }\n\t\t//\n\t\t// return true;\n\t\t//\n\t\t// // case R.id.menu_search:\n\t\t// // showSearchDialog();\n\t\t// // return true;\n\t\t//\n\t\t// case android.R.id.home:\n\t\t//\n\t\t// finish();\n\t\t//\n\t\t// return super.onOptionsItemSelected(item);\n\t\t// default:\n\t\treturn super.onOptionsItemSelected(item);\n\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle action bar actions click\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_settings:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle action bar actions click\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_settings:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.menu_star) {\n Toast.makeText(this,\"click star!\",Toast.LENGTH_SHORT).show();\n return true;\n } if (id == R.id.menu_search) {\n Toast.makeText(this,\"click search!\",Toast.LENGTH_SHORT).show();\n return true;\n } else if(id == android.R.id.home){\n mDrawerLayout.openDrawer(GravityCompat.START);\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerClosed(View view) {\n invalidateOptionsMenu();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n mDrawerLayout.openDrawer(GravityCompat.START);\n return true;\n case R.id.action_camera:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_settings:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_edit_urls:\n Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n return true;\n case R.id.action_about:\n //Toast.makeText(MainActivity.this, item.getTitle(), Toast.LENGTH_LONG).show();\n startActivity(new Intent(this, AboutActivity.class));\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n if (actionBar != null) actionBar.setTitle(activityTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "public void onDrawerClosed(View view) {\n if (Build.VERSION.SDK_INT >= 11) {\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n } else {\n //Call it directly on gingerbread.\n onPrepareOptionsMenu(mMenu);\n }\n\n// startFullscreenIfNeeded();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n case R.id.help:\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, new SettingsFragment()).commit();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "@Test\n public void onPressMenuHome(){\n onView(withId(R.id.drawer_layout))\n .check(matches(isClosed(Gravity.LEFT))) // Left Drawer should be closed.\n .perform(DrawerActions.open()); // Open Drawer\n\n // Show Content\n onView(withId(R.id.nav_view))\n .perform(NavigationViewActions.navigateTo(R.id.nav_home));\n }", "public boolean onOptionsItemSelected(android.view.MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerOpened(View drawerView) {\n invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n try {\n getSupportActionBar().setTitle(\"Settings\");\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(\"Select Destination\");\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }" ]
[ "0.7326823", "0.72217923", "0.72066426", "0.709211", "0.7061509", "0.7045113", "0.70420563", "0.70230347", "0.6996679", "0.6996679", "0.69864404", "0.69864404", "0.6963795", "0.6963547", "0.69378424", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.6937765", "0.69097465", "0.69097465", "0.6900741", "0.68738323", "0.6794535", "0.6794535", "0.67883307", "0.6778533", "0.6778365", "0.67378604", "0.6708664", "0.66877425", "0.6682836", "0.66557676", "0.664422", "0.66422516", "0.662967", "0.66287804", "0.65875775", "0.6577732", "0.65548074", "0.6538338", "0.65312904", "0.65309894", "0.6520462", "0.65142775", "0.6512701", "0.6512701", "0.64817196", "0.64795977", "0.6479091", "0.6463861", "0.645115", "0.64347935", "0.64294624", "0.64283323", "0.6414985", "0.6411039", "0.6409179", "0.6392824", "0.6388773", "0.6386788", "0.6368021", "0.6366596", "0.6362748", "0.63613033", "0.63613033", "0.6359028", "0.6356699", "0.6356699", "0.63524324", "0.63446695", "0.6342645", "0.6338295", "0.6330479", "0.63298327", "0.6319325", "0.6314638", "0.6314012", "0.630243", "0.62984705", "0.6292223", "0.6290904", "0.62841964", "0.62823695", "0.62823695", "0.62749434", "0.6248526", "0.6247501", "0.62468404", "0.62464523", "0.624372", "0.6237644", "0.62155956", "0.62009674", "0.61727333", "0.6172709", "0.61702925", "0.6165471" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { mMenu = menu; getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.724863", "0.7203384", "0.7197011", "0.71784776", "0.71090055", "0.7040796", "0.7039464", "0.7013998", "0.70109546", "0.6982435", "0.6946134", "0.6939684", "0.6935636", "0.69193685", "0.69193685", "0.6892893", "0.6884914", "0.68768066", "0.68763", "0.68635243", "0.68635243", "0.68635243", "0.68635243", "0.6854071", "0.68483156", "0.6820635", "0.6818679", "0.68139905", "0.68138844", "0.68138844", "0.68068254", "0.68019366", "0.67988884", "0.6792257", "0.6791312", "0.67894673", "0.6785093", "0.67605865", "0.67587006", "0.67494637", "0.6745356", "0.6745356", "0.67428446", "0.6741961", "0.6726888", "0.67248803", "0.67236483", "0.67236483", "0.6722583", "0.6712873", "0.6707795", "0.67058164", "0.67011815", "0.669981", "0.66978544", "0.6695866", "0.66877913", "0.66849333", "0.66849333", "0.6684108", "0.66811496", "0.6680523", "0.6678561", "0.6669383", "0.66685265", "0.6664329", "0.6658405", "0.6658405", "0.6658405", "0.66576266", "0.6655998", "0.6655998", "0.6655998", "0.6653282", "0.66530126", "0.6651592", "0.6650151", "0.6648575", "0.6647844", "0.6647643", "0.6647611", "0.66465765", "0.6646401", "0.6644694", "0.6643749", "0.6643608", "0.6640089", "0.66356236", "0.6634635", "0.6633641", "0.6633641", "0.6633641", "0.66333216", "0.6630465", "0.66291285", "0.662822", "0.66277045", "0.6625648", "0.6621995", "0.6620415", "0.6620415" ]
0.0
-1
/ Called whenever we call invalidateOptionsMenu()
@Override public boolean onPrepareOptionsMenu(Menu menu) { // If the nav drawer is open, hide action items related to the content view boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList); // If the nav drawer is open, hide action items that are related to the content view. menu.findItem(R.id.action_share).setVisible(!drawerOpen); return super.onPrepareOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDrawerOpened(View drawerView) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@Override\r\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\r\n }", "public void onDrawerOpened(View drawerView) {\n invalidateOptionsMenu();\n }", "@Override\n public boolean onPrepareOptionsMenu (Menu menu) {\n \n return super.onPrepareOptionsMenu (menu);\n \n }", "public void onSearchStarted() {\n mActivity.invalidateOptionsMenu();\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@Override\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\n }", "@Override\n public boolean onPrepareOptionsMenu(android.view.Menu menu) {\n\n return super.onPrepareOptionsMenu(menu);\n }", "public void onDrawerOpened(View drawerView) {\n supportInvalidateOptionsMenu();\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n\treturn super.onPrepareOptionsMenu(menu);\n\n }", "public static void invalidateOptionsMenu(Activity act)\n {\n try {\n itsInvalidateOptionsMenuMeth.invoke(act);\n }\n catch (Exception e) {\n PasswdSafeUtil.showFatalMsg(e, act);\n }\n }", "public void onDrawerClosed(View view) {\n invalidateOptionsMenu();\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.order_list_actions,menu);\n if(isFinalized){\n MenuItem item = menu.findItem(R.id.action_finalized);\n item.setVisible(false);\n //this.invalidateOptionsMenu();\n }\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n\n return true;\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t\tmenu.clear();\r\n\t\tinflater.inflate(R.menu.browsecourse, menu);\r\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.optionsbar, menu);\n \treturn super.onPrepareOptionsMenu(menu);\n }", "@Override\n public void onDrawerClosed(View drawerView) {\n invalidateOptionsMenu();\n Log.d(\"Apps Main\", \"Close drawer \");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n invalidateOptionsMenu();\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n menu.removeItem(R.id.action_settings);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n menu.add(0, 0, 0, \"Refresh\");\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\n\t\t \n return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n return super.onCreateOptionsMenu(menu);\n }", "protected void refreshActionBar() {\n if (mActionBarController != null) {\n mActionBarController.refresh();\n }\n mActivity.invalidateOptionsMenu();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \n return true;\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n invalidateOptionsMenu();\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\tsuper.onCreateOptionsMenu(menu, inflater);\n\tinflater.inflate(R.menu.menu_main, menu);\n\tmenu.findItem(R.id.action_edit).setVisible(false);\n\tmenu.findItem(R.id.action_share).setVisible(false);\n\tmenu.findItem(R.id.action_settings).setVisible(true);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n return true;\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (!fragmentNavigationDrawer.isDrawerOpen())\n restoreActionBar();\n return true;\n// return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem item = menu.findItem(R.id.refresh);\n item.setVisible(false);\n this.invalidateOptionsMenu();\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\n menu.findItem(R.id.action_switch_provider).setVisible(true);\n menu.findItem(R.id.action_save_scheme).setVisible(false);\n super.onCreateOptionsMenu(menu, inflater);\n\n //return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n MenuItem languageItem = menu.findItem(R.id.toolbar_ic_language);\n MenuItem currencyItem = menu.findItem(R.id.toolbar_ic_currency);\n MenuItem profileItem = menu.findItem(R.id.toolbar_edit_profile);\n MenuItem searchItem = menu.findItem(R.id.toolbar_ic_search);\n MenuItem cartItem = menu.findItem(R.id.toolbar_ic_cart);\n profileItem.setVisible(false);\n languageItem.setVisible(false);\n currencyItem.setVisible(false);\n searchItem.setVisible(false);\n cartItem.setVisible(false);\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n\n return true;\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t{\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(TAG, \"onCreateOptionMenu\");\n super.onCreateOptionsMenu(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return false;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return false;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n return true;\n }" ]
[ "0.74695104", "0.7392627", "0.7339764", "0.72670704", "0.72611153", "0.724913", "0.7239336", "0.7216229", "0.7208133", "0.71414095", "0.7135056", "0.7113613", "0.7102028", "0.70916605", "0.70880747", "0.7076588", "0.7076588", "0.703805", "0.7026065", "0.7019834", "0.7002915", "0.7001892", "0.6988815", "0.69740653", "0.6953473", "0.6947934", "0.6946973", "0.6936677", "0.69200945", "0.6919082", "0.6911448", "0.6895925", "0.6889121", "0.6889121", "0.6889121", "0.6889121", "0.6889121", "0.6881024", "0.68711036", "0.68654716", "0.68654716", "0.68654716", "0.68654716", "0.68654716", "0.68654716", "0.68629456", "0.6861564", "0.6858288", "0.68405056", "0.68405056", "0.68246263", "0.68215555", "0.6820502", "0.6812598", "0.6810502", "0.6810502", "0.68054676", "0.6800405", "0.67932904", "0.67932904", "0.67932904", "0.67864096", "0.67834467", "0.67704046", "0.6763834", "0.675878", "0.6757711", "0.67518854", "0.6748959", "0.6740993", "0.6737701", "0.67302144", "0.67302144", "0.67302144", "0.67252016", "0.67252016", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895", "0.67241895" ]
0.0
-1
Method to handle selection from the drawer menu.
private void selectedMenuItemAtPosition(int position) { switch (DrawerIndex.fromInteger(position)) { case INDEX_VIDEO: Log.d(Constants.LOG_TAG, "Selected Video"); FullscreenVideoWebviewFragment videoFragment = new FullscreenVideoWebviewFragment(); showFragment(videoFragment, TAG_VIDEO_FRAGMENT); break; case INDEX_KITTENS: Log.d(Constants.LOG_TAG, "Selected Kittens!"); KittensFragment kittensFragment = new KittensFragment(); showFragment(kittensFragment, TAG_KITTENS_FRAGMENT); break; case INDEX_TEXT_SPAN: Log.d(Constants.LOG_TAG, "Selected Text Span!"); SpannedTextFragment spannedTextFragment = new SpannedTextFragment(); showFragment(spannedTextFragment, TAG_TEXT_SPAN_FRAGMENT); break; // case INDEX_IMMERSIVE: // Log.d(Constants.LOG_TAG, "Selected Immersive!"); // ImmersiveFragment immersiveFragment = new ImmersiveFragment(); // showFragment(immersiveFragment, TAG_IMMERSIVE_FRAGMENT); // break; case INDEX_NOTIFICATION: Log.d(Constants.LOG_TAG, "Selected Notifications!"); NotificationFragment notificationFragment = new NotificationFragment(); showFragment(notificationFragment, TAG_NOTIFICATION_FRAGMENT); break; default: Log.e(Constants.LOG_TAG, "Unhandled position selection from drawer " + position); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void itemSelection(int mSelectedId) {\n switch(mSelectedId){\n\n case R.id.navigation_Home:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n\n break;\n\n case R.id.navigation_PreEngineering:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n break;\n\n case R.id.navigation_Setup:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n break;\n\n case R.id.navigation_Create_Report:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n break;\n\n case R.id.navigation_Open_Report:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n break;\n\n case R.id.navigation_Current_Report:\n mDrawerLayout.closeDrawer(GravityCompat.START);\n break;\n }\n\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "public void menuClicked(MenuItem menuItemSelected);", "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}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.nav_home:\n fragmentClass = MainFragment.class;\n startFragment(fragmentClass);\n break;\n case R.id.nav_fav:\n fragmentClass = FavoriteFragment.class;\n startFragment(fragmentClass);\n break;\n case R.id.nav_upd:\n openLink(\"https://play.google.com/store/apps/details?id=com.satyajit.gamex\");\n\n break;\n case R.id.nav_settings:\n fragmentClass = SettingsFragment.class;\n startFragment(fragmentClass);\n break;\n case R.id.nav_rate:\n openLink(\"https://play.google.com/store/apps/details?id=com.satyajit.gamex\");\n break;\n case R.id.nav_share:\n shareApp();\n break;\n }\n\n\n if (menuItem.getItemId()!= R.id.nav_share && menuItem.getItemId()!= R.id.nav_rate && menuItem.getItemId()!= R.id.nav_upd ) {\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n\n }\n\n else {\n\n\n }\n // Close the navigation drawer\n mDrawer.closeDrawers();\n }", "public void selectDrawerItem(MenuItem menuItem) {\n ListFragment Listfragment = null;\n Fragment fragment = null;\n\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.bar_code_search:\n fragmentClass = BarCodeSearchFragment.class;\n break;\n case R.id.magazzino_search:\n fragmentClass = MagazzinoSearchFragment.class;\n break;\n case R.id.aggiungi_nuovo:\n fragmentClass = InserisciNuovoFragment.class;\n break;\n case R.id.settings:\n fragmentClass = SettingsFragment.class;\n break;\n default:\n fragmentClass = MagazzinoSearchFragment.class;\n }\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n\n if (Listfragment!=null){\n try {\n Listfragment = (ListFragment) fragmentClass.newInstance();\n fragmentManager.beginTransaction().replace(R.id.flContent, Listfragment).commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n menuItem.setChecked(true);\n setTitle(menuItem.getTitle());\n mDrawer.closeDrawers();\n }", "private void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n boolean flag = false;\n switch (menuItem.getItemId()) {\n case R.id.nav_organization_fragment:\n fragmentClass = OrganizationFragment.class;\n flag = true;\n break;\n case R.id.nav_home_fragment:\n fragmentClass = HomeFragment.class;\n flag = true;\n break;\n case R.id.nav_template_fragment:\n fragmentClass = TemplateFragment.class;\n flag = true;\n break;\n case R.id.nav_checklist_fragment:\n fragmentClass = ChecklistFragment.class;\n flag = true;\n break;\n case R.id.nav_activity_fragment:\n fragmentClass = ActivityFragment.class;\n flag = true;\n break;\n case R.id.nav_settings_fragment:\n fragmentClass = SettingFragment.class;\n flag = true;\n break;\n case R.id.nav_logout:\n fragmentClass = HomeFragment.class;\n revokeAccess();\n break;\n default:\n fragmentClass = HomeFragment.class;\n }\n\n try {\n Bundle args = new Bundle();\n args.putInt(\"status_checklist\", 0);\n fragment = (Fragment) fragmentClass.newInstance();\n fragment.setArguments(args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (flag) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager\n .beginTransaction()\n .add(R.id.flContent, fragment)\n .commit();\n }\n\n\n\n menuItem.setChecked(true); // Highlight the selected item has been done by NavigationView\n setTitle(menuItem.getTitle());\n mDrawerLayout.closeDrawers();\n }", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "void onNavigationDrawerItemSelected(int resourceId);", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.builder:\n fragmentClass = UserFragment.class;\n Toast.makeText(getApplicationContext(), \"Builder \", Toast.LENGTH_LONG).show();\n break;\n case R.id.nav_component:\n Intent usericon=new Intent(this,UserActivity.class);\n startActivity(usericon);\n finish();\n case R.id.user_menu:\n Toast.makeText(getApplicationContext(), \"User List \", Toast.LENGTH_LONG).show();\n fragmentClass = UserFragment.class;\n break;\n default:\n fragmentClass = UserFragment.class;\n }\n\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n // Close the navigation drawer\n mDrawer.closeDrawers();\n }", "void onNavigationDrawerItemSelected(int position);", "void onNavigationDrawerItemSelected(int position);", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItem.setChecked(true);\n // close drawer when item is tapped\n drawer.closeDrawers();\n\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\n }", "public void onSelectionChanged();", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n // Handle the camera action\n handleselection(\"home\");\n } else if (id == R.id.nav_profile) {\n handleselection(\"profile\");\n } else if (id == R.id.nav_favorite_meals) {\n handleselection(\"favorite meals\");\n } else if (id == R.id.nav_diet_plan) {\n handleselection(\"diet plan\");\n } else if (id == R.id.nav_news) {\n handleselection(\"news\");\n } else if (id == R.id.nav_share) {\n handleselection(\"share\");\n } else if (id == R.id.nav_send) {\n handleselection(\"send\");\n } else if (id == R.id.nav_people) {\n handleselection(\"people\");\n }else if (id == R.id.nav_settings) {\n handleselection(\"settings\");\n }else if (id == R.id.nav_support) {\n handleselection(\"support\");\n }else if (id == R.id.nav_about) {\n handleselection(\"about\");\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void onShowMushroomSelectionDialogSelected(Context context);", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch (menuItem.getItemId()) {\n case R.id.nav_home:\n// if (!isTotalLayoutVisible()) {\n// Database mydb = new Database(this);\n// List<FoodItemCart> foodItemCartList = mydb.getAllFoodItemCart();\n// if (foodItemCartList.size() > 0)\n// setLinlaHeaderProgressVisible();\n// }\n fragmentClass = HomeFragment.class;\n break;\n case R.id.nav_orders:\n lastPosition=-1;\n setTotalLayoutGone();\n fragmentClass = MyOrdersFragment.class;\n break;\n// case R.id.nav_notification:\n// fragmentClass = HomeFragment.class;\n// break;\n case R.id.nav_setting:\n lastPosition=-1;\n setTotalLayoutGone();\n fragmentClass = SettingsFragment.class;\n break;\n case R.id.nav_help:\n lastPosition=-1;\n setTotalLayoutGone();\n fragmentClass = HelpFragment.class;\n break;\n default:\n fragmentClass = HomeFragment.class;\n }\n\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n // Close the navigation drawer\n mDrawer.closeDrawers();\n }", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.my_cards_navigation_drawer:\n setFragmentToFrameLayout(null);\n attachViewPager();\n break;\n case R.id.rooms_navigation_drawer:\n detachViewPager();\n setFragmentToFrameLayout(RoomsFragment.class);\n break;\n case R.id.settings_navigation_drawer:\n detachViewPager();\n setFragmentToFrameLayout(SettingsFragment.class);\n break;\n case R.id.info_navigation_drawer:\n detachViewPager();\n setFragmentToFrameLayout(InfoFragment.class);\n break;\n case R.id.login_navigation_drawer:\n detachViewPager();\n setFragmentToFrameLayout(LoginFragment.class);\n break;\n }\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n // Close the navigation drawer\n m_DrawerLayout.closeDrawers();\n }", "public interface OnSelectedItemChangeListener {\n void OnSelectedItemChange(PieMenuView source, int currentItem);\n }", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "void onItemSelected(Bundle args);", "void onItemSelected();", "void onItemSelected();", "public void selectionChanged(Action item);", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void onItemSelected(int id);", "@Override\n public void onNavigationItemSelectecCompleted(String message, MenuItem menuItem) {\n Snackbar.make(this.getCurrentFocus(),menuItem.getTitle() + \" pressed\" , Snackbar.LENGTH_LONG).show();\n binding.drawerLayout.closeDrawers();\n }", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "private void selectItem(int position) \n {\n \tFragment fragment = null;\n Bundle args = new Bundle();\n switch(position){\n \n case 0:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new StaticViewer();\n args.putInt(\"static_viewer\", position);\n break;\n case 1:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new DoctorPanel();\n args.putInt(\"doctor_panel\", position);\n break;\n case 2:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new Panel();\n \targs.putInt(\"panel\", position);\n \tbreak;\n case 3:\n \tfragment = new Help();\n \targs.putInt(\"help\", position);\n case 4:\n \tfragment = new About();\n \targs.putInt(\"about\", position);\n default:\n \tDrawerTest.this.getActionBar().show();\n \tbreak;\n }\n //args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n displaySelected(id);\n// if (id == R.id.nav_camera) {\n// // Handle the camera action\n// } else if (id == R.id.nav_gallery) {\n//\n// } else if (id == R.id.nav_slideshow) {\n//\n// } else if (id == R.id.nav_manage) {\n//\n// } else if (id == R.id.nav_share) {\n//\n// } else if (id == R.id.nav_send) {\n//\n// }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n displaySelectedScreen(id);\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.nav_home:\n fragmentClass = AccountFragment.class;\n break;\n case R.id.nav_bill:\n fragmentClass = BillFragment.class;\n break;\n case R.id.nav_transfer:\n fragmentClass = MoneyTransferFragment.class;\n break;\n default:\n fragmentClass = AccountFragment.class;\n }\n\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.detail_fragment_container, fragment).commit();\n\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n // Close the navigation drawer\n mDrawer.closeDrawers();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "protected void onSelectionPerformed(boolean success) {\n }", "void selectionModeChanged(SelectionMode mode);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.dices) {\n\n Answers.getInstance().logContentView(new ContentViewEvent()\n .putContentName(\"Dados\")\n .putContentType(\"Package access from menu\"));\n\n Intent intent_dices=new Intent(this, MainDicesActivity.class);\n this.startActivity(intent_dices);\n\n } else if (id == R.id.voting) {\n\n Answers.getInstance().logContentView(new ContentViewEvent()\n .putContentName(\"Votaciones\")\n .putContentType(\"Package access from menu\"));\n\n Intent intent_voting=new Intent(this, ConfigVotingActivity.class);\n this.startActivity(intent_voting);\n\n } else if (id == R.id.acts) {\n\n Answers.getInstance().logContentView(new ContentViewEvent()\n .putContentName(\"Actas\")\n .putContentType(\"Package access from menu\"));\n\n Intent intent_acts=new Intent(this, MainActsActivity.class);\n this.startActivity(intent_acts);\n\n } else if (id == R.id.expenses) {\n\n Answers.getInstance().logContentView(new ContentViewEvent()\n .putContentName(\"Gastos\")\n .putContentType(\"Package access from menu\"));\n\n Intent intent_expenses=new Intent(this, MainExpensesActivity.class);\n this.startActivity(intent_expenses);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n\n }", "@Override\n public void menuDeselected(MenuEvent e) {\n\n }", "public void onItemSelected(Long id);", "public void selected(String action);", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "private int getMenuSelection() {\n return view.printMenuAndGetSelection();\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}", "public void onItemSelected(int position);", "private void handleSelect(MouseEvent event) {\n\t\tWidget widget = tree.getItem(new Point(event.x, event.y));\n\t\tif (!(widget instanceof TreeItem))\n\t\t\treturn;\n\t\tTreeItem item = (TreeItem) widget;\n\t\tObject o = item.getData();\n\t\tif (o == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tthis.action.handleAction(o);\n\t\t} catch (ApplicationException e) {\n\t\t\tGUI.getStatusBar().setErrorText(e.getMessage());\n\t\t}\n\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "protected void onSelect() {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void onItemSelected(String studentSelected);", "private void selectItem(int position) {\n if(position==0){\n Intent myIntent= new Intent(this, ConnectActivity.class);\n startActivity(myIntent);}\n if(position==1){\n Intent myIntent= new Intent(this, ShowActivity.class);\n startActivity(myIntent);}\n if(position==2){\n Intent myIntent= new Intent(this, DiagnosisActivity.class);\n startActivity(myIntent);}\n if(position==3){\n Intent myIntent= new Intent(this, RemoteActivity.class);\n startActivity(myIntent);}\n if(position==4){\n Intent myIntent= new Intent(this, CommandActivity.class);\n startActivity(myIntent);}\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "void onMenuItemClicked();", "public void onEventSelected(int position);", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n if (menuItem.isChecked()) menuItem.setChecked(false);\n else menuItem.setChecked(true);\n\n //Closing drawer on item click\n drawerLayout.closeDrawers();\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n\n case R.id.menuPerfil:\n Toast.makeText(getApplicationContext(),\"Perfil Selected\",Toast.LENGTH_SHORT).show();\n return true;\n case R.id.menuMarcas:\n Toast.makeText(getApplicationContext(),\"Marcas Selected\",Toast.LENGTH_SHORT).show();\n return true;\n case R.id.menuLisatdo:\n Toast.makeText(getApplicationContext(),\"Listado Selected\",Toast.LENGTH_SHORT).show();\n return true;\n case R.id.menuSesion:\n logout();\n return true;\n default:\n return true;\n\n }\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n kondisi(id);\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch (menuItem.getItemId()) {\n case R.id.game_menu_item:\n fragmentClass = GameFragment.class;\n break;\n case R.id.scores_menu_item:\n fragmentClass = ScoresFragment.class;\n break;\n default:\n fragmentClass = GameFragment.class;\n }\n\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n loadFragment(fragment, menuItem);\n\n // Close the navigation drawer\n drawerLayout.closeDrawers();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItem.setChecked(true);\n // close drawer when item is tapped\n switch (menuItem.getItemId()) {\n case R.id.weather:\n Intent net = new Intent (MainActivity.this, WeatherActivity.class);\n startActivity(net);\n break;\n case R.id.settings:\n Intent conf = new Intent(MainActivity.this, PreferencesActivity.class);\n startActivity(conf);\n break;\n default:\n break;\n }\n mDrawerLayout.closeDrawers();\n\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onClick(View v) {\n onItemSelected.onToolSelected(mToolList.get(getLayoutPosition()).getToolType());\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItem.setChecked(true);\n // close drawer when item is tapped\n mdrawer.closeDrawers();\n\n String choice = menuItem.getTitle().toString();\n\n switch (choice) {\n case \"Register\":\n Intent i = new Intent(getBaseContext(), SignIn.class);\n startActivity(i);\n break;\n case \"Log In\":\n Intent p = new Intent(getBaseContext(), LoginActivity.class);\n startActivity(p);\n break;\n\n case \"Profile Picture\":\n Intent pic = new Intent(getBaseContext(), ImageUpload.class);\n startActivity(pic);\n break;\n\n case \"Users\":\n Intent users = new Intent(getBaseContext(), Userlist.class);\n startActivity(users);\n break;\n\n case \"Chats\":\n Intent chats = new Intent(getBaseContext(), ChatList.class);\n startActivity(chats);\n break;\n }\n\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n selectedMenuItemAtPosition(position);\n\n //Close the drawer.\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n\n displaySelectedScreen(item.getItemId());\n\n item.setChecked(true);\n\n drawer.closeDrawers();\n return true;\n }", "void itemSelected(OutlineItem item);", "@Override\n public void onItemSelected(AdapterView<?> parent4, View view4, int position4, long id4) {\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItemClicked = menuItem;\n drawerLayout.closeDrawers();\n return true;\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "@Override\n public void selectGolem(int id) {\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItem.setChecked(true);\n // close drawer when item is tapped\n\n navDrawer.closeDrawers();\n\n int itemId = menuItem.getItemId();\n switch (itemId) {\n case R.id.nav_sale:\n Intent intent = new Intent(getApplicationContext(), SaleActivity.class);\n startActivity(intent);\n return true;\n }\n // Add code here to update the UI based on the item selected\n // For example, swap UI fragments here\n\n return true;\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}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n areaId = dbHendler.getAreaID(item);\n }", "@Override\n\tpublic void menuDeselected(MenuEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}" ]
[ "0.7317215", "0.71194994", "0.71194994", "0.7057776", "0.70137763", "0.6945798", "0.68625975", "0.68599075", "0.6855485", "0.6806737", "0.6804475", "0.6734881", "0.6625697", "0.66172785", "0.6613255", "0.6613255", "0.6604024", "0.6603713", "0.6576625", "0.656779", "0.6557535", "0.65520424", "0.65476996", "0.6547191", "0.65402985", "0.6516693", "0.6516693", "0.6512189", "0.648898", "0.64638233", "0.64383054", "0.6433181", "0.6416873", "0.64084786", "0.6398979", "0.63943446", "0.6391976", "0.63812613", "0.63812613", "0.63809663", "0.63797176", "0.6372337", "0.63685256", "0.63685256", "0.63685256", "0.63685256", "0.63685256", "0.6366723", "0.63587654", "0.63561517", "0.6349963", "0.6343038", "0.6339965", "0.6339564", "0.6339564", "0.63240534", "0.63186085", "0.63120985", "0.6297774", "0.6292475", "0.62833583", "0.627852", "0.62756926", "0.6273093", "0.6270106", "0.6261882", "0.6257985", "0.62515926", "0.62477833", "0.624106", "0.6231926", "0.6230877", "0.62281555", "0.6226084", "0.62259907", "0.6225484", "0.62220126", "0.622159", "0.6220199", "0.6217029", "0.6213442", "0.62090015", "0.62023866", "0.62011844", "0.61998355", "0.6199587", "0.61990756", "0.61924636", "0.61911935", "0.6187616", "0.6182866", "0.61788106", "0.6177362", "0.6177201", "0.61727285", "0.6168136", "0.61649555", "0.6164733", "0.61599207", "0.61557066" ]
0.6786764
11
Shows the given fragment and updates the action bar title
public void showFragment(Fragment fragment, String tag) { fragment.setRetainInstance(true); getSupportFragmentManager() .beginTransaction() .replace(R.id.content_frame, fragment, tag) .addToBackStack(null) .commit(); setTitleForTag(tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(\"Toán Học\");\n return inflater.inflate(R.layout.fragment_toan_hoc, container, false);\n }", "private void showAbout() {\n toolbar.setTitle(R.string.about);\n AboutFragment aboutFragment = new AboutFragment();\n displaySelectedFragment(aboutFragment);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((MainActivity) getActivity()).getSupportActionBar().setTitle(\"Tiếng anh\");\n return inflater.inflate(R.layout.fragment_english, container, false);\n }", "private void setUpActionBar() {\n\t\tUtil.setFragmentActionBarTitle((BaseActivity)getActivity(), getResources().getString(R.string.navigation_menu_faq_question));\n\t}", "public void setTitle(int title){\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(title);\n }\n }", "@SuppressLint(\"ResourceType\")\n public void fragmentManager(String tag, Fragment fragment) {\n FragmentManager fm = getSupportFragmentManager();\n\n fm.findFragmentByTag(tag);\n\n FragmentTransaction ft = fm.beginTransaction();\n ft.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right);\n ft.replace(R.id.fragment_container, fragment, tag);\n ft.commit();\n\n getSupportActionBar().setTitle(tag + \" Forecast\");\n }", "public void loadFragment(Fragment fragment, MenuItem menuItem) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment_content, fragment).commit();\n // Highlight the selected item has been done by NavigationView\n menuItem.setChecked(true);\n // Set action bar title\n setTitle(menuItem.getTitle());\n }", "void showTitle(String title);", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "@Override\n public void onReceivedTitle(WebView view, String title) {\n getSupportActionBar().setTitle(title);\n }", "@Override\n public void setTitle(CharSequence title) {\n mTitle = title;\n getSupportActionBar().setTitle(mTitle);\n }", "public void show(android.app.FragmentManager fragmentManager,\r\n\t\t\tString string) {\n\t\t\r\n\t}", "private void showFragment(Fragment fragment) {\n Log.d(TAG, \"showFragment: Run selected fragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n }", "public void showActionBar(){\n getSupportActionBar().show();\n yell(\"Showing action bar\");\n }", "private void setTitleForActiveTag() {\n String activeTag = getActiveFragmentTag();\n getSupportActionBar().setTitle(titleForTag(activeTag));\n }", "public void onTabSelected(Tab tab, android.app.FragmentTransaction ft) {\n FragmentTransaction sft = mActivity.getSupportFragmentManager().beginTransaction();\n // Check if the fragment is already initialized\n MainActivity.tab = tab.getPosition();\n switch (tab.getPosition()) {\n case 0:\n // My List\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"My List\" + \"</font>\"));\n break;\n \n case 1:\n // Favorites\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Favorites \" + \"</font>\"));\n break;\n \n case 2:\n // Search\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Search\" + \"</font>\"));\n break;\n\n case 3:\n // Recipes\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Recipes\" + \"</font>\"));\n break;\n\n default:\n break;\n }\n if (mFragment == null) {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n sft.add(mfragmentContainerId, mFragment, mTag);\n } else {\n // If it exists, simply attach it in order to show it\n sft.attach(mFragment);\n }\n sft.commit();\n }", "@Override\n public void onBackPressed() {\n if (getSupportActionBar().getTitle() == getString(R.string.title_home) ){\n super.onBackPressed();\n }\n else{\n\n fragment = new HomeFragment();\n title = getString(R.string.title_home);\n if (fragment != null) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container_body, fragment);\n fragmentTransaction.commit();\n\n // set the toolbar title\n getSupportActionBar().setTitle(title);\n }\n\n }\n\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n getSupportActionBar().setTitle(mDrawerTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }", "private void setActivityTitle(){\n binding.actionbar.title.setText(R.string.application_guide);\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.ibtnName:\n changeFragment(\"name\");\n \n\t\t\tbreak;\n\t\tcase R.id.ibtnScore:\n\t\t\tchangeFragment(\"score\");\n\t\t\t\n\t\t\tbreak;\n\t\tcase R.id.ibtnAdd:\n\t\t\tchangeFragment(\"add\");\n\t\t\t\n\t\t\tbreak;\n\t\tcase R.id.ibtnTitle:\n\t\t\tfragment_title ft=new fragment_title();\n\t\t\tft.show(fm, \"title\");\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onDrawerClosed(View drawerView) {\n getSupportActionBar().setTitle(mTitle);\n ActivityCompat.invalidateOptionsMenu(NavDrawerFragmentActivity.this);\n }", "private void setTitlePage() {\n mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n Log.d(\"onPageScrolled\", \"Khi scroll được gọi,\" + \"Mới\" + position);\n }\n\n @Override\n public void onPageSelected(int position) {\n Log.d(\"SELECT TAB\", mTabTitle[position]);\n if (position == 0) {\n if (AppSingleton.isClickDetail == false) {\n getSupportActionBar().setTitle(mTabTitle[0]);\n } else {\n getSupportActionBar().setTitle(mTitleDetail);\n }\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(true);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n } else if (position == 1) {\n getSupportActionBar().setTitle(mTabTitle[1]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(true);\n }\n\n } else if (position == 2) {\n getSupportActionBar().setTitle(mTabTitle[2]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n\n }\n\n\n } else if (position == 3) {\n getSupportActionBar().setTitle(mTabTitle[3]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n }\n\n }\n// getSupportActionBar().setTitle(tabTitle[position]);\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n\n });\n\n }", "private void setUpNewFragment(CharSequence title, int id) {\n toolbar.setTitle(title);\n toolbar.setContentDescription(title);\n\n if (id == R.id.navigationMyPets || id == R.id.navigationPetsCommunity) {\n floatingActionButton.show();\n } else {\n floatingActionButton.hide();\n }\n }", "private void loadFragment(Fragment fragment){\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction();\n trans.replace(R.id.frame_event, fragment);\n trans.commit();\n\n appbar.setExpanded(true);\n }", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n getActivity().setTitle(\"Home\");\n return view;\n }", "public void RitiroLibri()\r\n {\r\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Ritiro Libri\");\r\n FragmentManager fragmentManager = getFragmentManager();\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n fragmentTransaction.replace(R.id.main_conteiner, new SistudiaFragmentRitiroLibri());\r\n fragmentTransaction.commit();\r\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = TvShowFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"TV Show\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "public void onDrawerOpened(View drawerView) {\n\t\t\t\t// getSupportActionBar().setTitle(mTitle);\n\t\t\t}", "@Override\n public void onResume() {\n super.onResume();\n\n //Cambia el titulo de la ventana\n ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();\n if (actionBar != null) {\n actionBar.setTitle(R.string.title_register_screen);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n\n //This fragment has toolbar\n setToolbarVisibility(true);\n\n //Set the title of this fragment\n mTitle = getString(R.string.register_email_title);\n setToolbarTitle(mTitle);\n }", "public void showFragment(Fragment fragment, String tagFragment) {\n // In tablet layout, do not try to display the Home Fragment again. Show empty fragment.\n if (isDualPanel() && tagFragment.equalsIgnoreCase(BudgetListFragment.class.getName())) {\n fragment = new Fragment();\n tagFragment = \"Empty\";\n }\n\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_right,\n R.anim.slide_out_left);\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack.\n if (isDualPanel()) {\n transaction.replace(R.id.fragmentDetail, fragment, tagFragment);\n } else {\n // Single panel UI.\n transaction.replace(R.id.fragmentMain, fragment, tagFragment);\n\n // todo: enable going back only if showing the list.\n// boolean showingList = tagFragment.equals(BudgetListFragment.class.getName());\n// setDisplayHomeAsUpEnabled(showingList);\n\n transaction.addToBackStack(null);\n }\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(R.string.titleBarText_NewsStory);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_back_arrow);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onSwap(String FragmentName, Bundle bundle) {\n\n Fragment fragmentToSwap = null;\n FragmentTransaction fragmentTransaction = FM.beginTransaction();\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n\n getSupportActionBar().setTitle(\"\");\n try {\n switch (FragmentName) {\n case \"Popular\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"TopRated\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Upcoming\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Detail\":\n fragmentToSwap = new DetailMovieFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n fragmentTransaction.addToBackStack(\"MoviesListFragment\");\n\n break;\n }\n fragmentTransaction.commit();\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n try {\n getSupportActionBar().setTitle(activityTitle);\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }", "protected void setActionBarTitle(String title) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof ContentActivity) {\n\t\t\tContentActivity activity = (ContentActivity) mContext;\n\t\t\tactivity.setActionBarTitle(title);\n\t\t}\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((AllThingsActivity) getActivity()).getSupportActionBar().setTitle(\n \"Our Team\");\n getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n return inflater.inflate(R.layout.fragment_our_team, container, false);\n }", "private void showHelpFragment() {\n if (!helpFragment.isVisible()) {\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.add(R.id.relativeLayout, helpFragment, \"helpFragment\");\n transaction.commit();\n }\n\n else getFragmentManager().beginTransaction().remove(getFragmentManager().findFragmentByTag(\"helpFragment\")).commit();\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "private void layoutActionBar() {\n ActionBar ab = getSupportActionBar();\n if(ab != null) {\n if (mode == 2) {\n ab.setTitle(\"Route Record\");\n } else {\n ab.setTitle(\"Recommend Route\");\n }\n ab.setDisplayHomeAsUpEnabled(true);\n }\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n try {\n getSupportActionBar().setTitle(\"Settings\");\n }catch(NullPointerException e){\n Toast.makeText(NavigationDrawerActivity.this, \"ActionBar \"+ e, Toast.LENGTH_SHORT).show();\n }\n //invalidateOptionsMenu();\n }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "private void setupActionBar(String title) {\n Button openDrawer = findViewById(R.id.open_drawer);\n TextView activityTitle = findViewById(R.id.activity_title);\n\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n openDrawer.setBackgroundDrawable(new IconicsDrawable(this).icon(GoogleMaterial.Icon.gmd_menu).sizeDp(30).color(getResources().getColor(R.color.colorPrimary)));\n openDrawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mainDrawer.openDrawer();\n }\n });\n\n activityTitle.setText(title); //sets the TextViews text\n }", "public void setTitle(java.lang.String title);", "public void setToolbarTitle(String title)\n {\n if(_act.getSupportActionBar() !=null)\n (_act).getSupportActionBar().setTitle(title);\n\n\n }", "public void onDrawerOpened(View drawerView) {\n getActionBar().setTitle(\"Opened Drawer\");\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n ActionBar actionBar = ((AppCompatActivity)activity).getSupportActionBar();\n actionBar.setTitle(\"Home\");\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH1 demoFragment = new ShowFragmentXXH1();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "void setTitle(java.lang.String title);", "protected void setShow() {\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (showFragment == null) {\r\n\t\t\tfTransaction\r\n\t\t\t\t\t.add(R.id.content, new ShowFragment(), ShowFragment.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(showFragment);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.show);\r\n\t\tleftTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}\r\n\t\t});\r\n\t\trightTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void setRegisterFragment() {\n setTitle(R.string.register_account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, new RegisterFragment())\n .commit();\n }", "public void setActionBarTitle(CharSequence title) {\r\n\t\tViewGroup actionBar = getActionBarCompat();\r\n\t\tif (actionBar == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tTextView titleText = (TextView) actionBar\r\n\t\t\t\t.findViewById(R.id.actionbar_compat_text);\r\n\t\tif (titleText != null) {\r\n\t\t\ttitleText.setText(title);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onTitleChanged(String newTitle) {\n\t\tif (!newTitle.matches(\"\")) {\n getSupportActionBar().setSubtitle(newTitle);\n }\n\t}", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //Indicating that this fragment has menu options to show\n setHasOptionsMenu(true);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_cart) {\n toolbar.setTitle(\"Your food cart\");\n Fragment fragment = new CartFragment();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.content_customer_main, fragment, \"visible_fragment\");\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.commit();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerOpened(View drawerView) {\n \tactivity.getSupportActionBar().setTitle(\"Menua\");\n \tactivity.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "private void updateTileBar(String title) {\r\n toolbar.setTitle(title);\r\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n setHasOptionsMenu(true); // Options menu in the fragment\n super.onCreate(savedInstanceState);\n }", "private void updateActionBar() {\n\t\tif (!(getContext() instanceof AppCompatActivity)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttoolbar.setSubtitle(R.string.cvv_enter_security_code);\n\t}", "private void showHome(){\n fragment = new HomeFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.mainLayout, fragment, fragment.getTag()).commit();\n }", "@Override\n public void run() {\n ActionBar actionBar = getActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "@Override\n public CharSequence getPageTitle(int position) {\n //Fragment frag = getItem(position);\n // return ((HomeScreenFragment) frag).getTitle();\n //String arrNavItems[] = ;\n assert(navItems!=null && navItems.length >= position);\n\n return navItems[position].toString();\n //return \"Tab \"+(position+1);\n //return super.getPageTitle(position);\n }", "public void changeActionBarTitle(int position_product) {\n\n Resources r = getResources();\n if (position_product == r.getInteger(R.integer.WIRE_CLIP_POSITION) ) {\n getSupportActionBar().setTitle(\"WIRE CLIPS\");\n } if (position_product == r.getInteger(R.integer.CONCEAL_BOX_POSITION) ) {\n getSupportActionBar().setTitle(\"CONCEAL BOARDS\");\n } if (position_product == r.getInteger(R.integer.MCB_BOXES_POSITION) ) {\n getSupportActionBar().setTitle(\"MCBS\");\n } if(position_product == r.getInteger(R.integer.CASING_CAPING_ACCESSORIES_POSITION)){\n getSupportActionBar().setTitle(\"CASING ACCESSORIES\");\n } if(position_product == r.getInteger(R.integer.MULTICORE_CABLE_POSITION)){\n getSupportActionBar().setTitle(\"MULTICORE CABLE\");\n } if(position_product == r.getInteger(R.integer.EXHAUST_FAN_POSITION)){\n getSupportActionBar().setTitle(\"EXHAUST FANS\");\n } if(position_product == r.getInteger(R.integer.CASING_POSITION)){\n getSupportActionBar().setTitle(\"CASING CAPING\");\n } if(position_product == r.getInteger(R.integer.GANG_BOX_POSITION)){\n getSupportActionBar().setTitle(\"GANG BOXES\");\n }\n }", "@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return getResources().getString(R.string.mine);\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return getResources().getString(R.string.all);\n default:\n return \"\";\n }\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(mDrawerTitle);\n }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n// getActionBar().setTitle(mDrawerTitle);\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = HorlogeAtomiqueFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Horloge\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "public void setPrefTitle(int resId) {\n if (getActivity() == null)\n return;\n\n ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME\n | ActionBar.DISPLAY_USE_LOGO\n | ActionBar.DISPLAY_SHOW_TITLE);\n\n actionBar.setLogo(R.drawable.ic_icon);\n actionBar.setTitle(resId);\n }\n }", "void setTitle(@NonNull String title);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_myths, container, false);\n Toolbar toolbar = view.findViewById(R.id.mythToolbar);\n toolbar.setTitle(\"Myths\");\n toolbar.setTitleTextColor(Color.WHITE);\n ( (AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n return view;\n }", "public interface FragmentTransactionListener {\n void setFragmentTitle(String title);\n}", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getActionBar().setTitle(mDrawerTitle);\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_liqueurs);\n ActionBar supportActionBar = getSupportActionBar();\n this.toolbar = supportActionBar;\n supportActionBar.setTitle((CharSequence) \"PooL Liqueurs\");\n }", "void requestActionBar();", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = InfosDeviceFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Infos Device\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_infos_device_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH2 demoFragment = new ShowFragmentXXH2();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "private void setTitleForTag(String tag) {\n getSupportActionBar().setTitle(titleForTag(tag));\n }", "public void setTitle(String title) { this.title = title; }", "public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n getSupportActionBar().setTitle(mTitle);\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }", "private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }", "private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n getSupportFragmentManager().beginTransaction().\n replace(R.id.container, PlaceholderFragment.newInstance(id)).commit();\n\n return super.onOptionsItemSelected(item);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n// getActionBar().setTitle(mTitle);\n }", "protected void initToolbar(int titleFromResurce, boolean showUp) {\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(showUp);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayShowHomeEnabled(showUp);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(getString(titleFromResurce));\n }", "private void initToolbarTitle() {\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n toolbar.setTitle(R.string.string_settings);\n }" ]
[ "0.66312367", "0.6543402", "0.65173507", "0.6482803", "0.64350176", "0.643457", "0.6429912", "0.6362567", "0.63599205", "0.6343877", "0.63064206", "0.6298341", "0.6297696", "0.6295421", "0.62558484", "0.62548745", "0.62179047", "0.61500853", "0.61473036", "0.61385316", "0.61385316", "0.61376643", "0.6137561", "0.6134719", "0.6111012", "0.6065879", "0.6047415", "0.6022338", "0.6019786", "0.6010162", "0.6007331", "0.5994158", "0.59729767", "0.5955683", "0.5930075", "0.59045637", "0.5901636", "0.5901636", "0.5901636", "0.5900495", "0.588486", "0.58775645", "0.58770734", "0.58721364", "0.5857365", "0.5857345", "0.58548063", "0.5847109", "0.5841731", "0.5822946", "0.58168745", "0.58136535", "0.5809241", "0.58088213", "0.58043", "0.5801251", "0.5801251", "0.5801251", "0.5801251", "0.5801251", "0.58000773", "0.5798587", "0.5794865", "0.578951", "0.5787505", "0.5771286", "0.57709074", "0.5769066", "0.5757516", "0.5757234", "0.5746688", "0.57464534", "0.57417136", "0.5741428", "0.57390434", "0.5733116", "0.5716773", "0.5716644", "0.5716644", "0.5700433", "0.5675879", "0.566689", "0.56587124", "0.563487", "0.5632882", "0.5624765", "0.5624585", "0.56235397", "0.56190854", "0.5615956", "0.5615473", "0.5605289", "0.5600886", "0.5600886", "0.55979514", "0.55898505", "0.5588278", "0.5588278", "0.55770457", "0.5573738" ]
0.6506737
3
Gets the fragment tag of the currently visible fragment
private String getActiveFragmentTag() { List<Fragment> fragments = getSupportFragmentManager().getFragments(); if (fragments == null) { return null; } for (Fragment fragment : fragments) { if (fragment.isVisible()) { return fragment.getTag(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFragmentTag() {\n return this.getClass().getSimpleName();\n }", "public String getFragment() {\n\t\treturn fragment;\n\t}", "public String getFragment() {\n return m_fragment;\n }", "public Fragment getFragment() {\n return fragment;\n }", "public abstract String getFragmentName();", "public abstract int getFragmentView();", "@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}", "public Fragment getCurrentFragment()\n {\n return getFragmentInContainer(R.id.fragmentFrameContainer);\n }", "public String customFragment() {\n return this.customFragment;\n }", "public String getTopFragmentName() {\n\t\tBackStackEntry backStackEntry = this.getSupportFragmentManager()\n\t\t\t\t.getBackStackEntryAt(getBackStackCount() - 1);\n\t\tif (backStackEntry != null) {\n\t\t\treturn backStackEntry.getName();\n\t\t}\n\t\treturn null;\n\t}", "public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }", "public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}", "private GraphFragment getGraphFragment() {\n String tag = this.getString(R.string.fragment_graph_tag);\n Fragment fragment = this.getSupportFragmentManager().findFragmentByTag(tag);\n\n if(fragment == null)\n return null;\n\n return (GraphFragment) fragment;\n }", "public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }", "String getLastNavFragment(Context context) {\n\t\treturn null;\n\t}", "public int getRootFragmentContainerId();", "public String getTag() {\n if (mTag == null) {\n try {\n mTag = mSessionBinder.getTag();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getTag.\", e);\n }\n }\n return mTag;\n }", "public BaseFragment getCurrentFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentById(R.id.mFrameContainer);\n }", "public abstract Fragment getFragment();", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "public final String mo60917a() {\n return \"tag_fragment_discover\";\n }", "int getMinorFragmentId();", "int getSendingMinorFragmentId();", "public String getFragmentPath() {\n return fragmentPath;\n }", "java.lang.String getTag();", "java.lang.String getTag();", "@Override\n protected String getTag(int position) {\n List<String> tagList = new ArrayList<String>();\n tagList.add(SingleChanelListFragment.class.getName() + 0);\n tagList.add(SingleChanelListFragment.class.getName() + 1);\n tagList.add(SingleChanelListFragment.class.getName() + 2);\n tagList.add(SingleChanelListFragment.class.getName() + 3);\n return tagList.get(position);\n }", "private String determineViewTag() {\r\n\t\tif (viewTag == null) {\r\n\t\t\tviewTag = ClearCaseUtils.getViewTag(getViewPath(), getProject());\r\n\t\t}\r\n\t\treturn viewTag;\r\n\t}", "@Nullable\n public BaseFragment getCurrentMainFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentByTag(MAIN_FRAGMENT_TAG);\n }", "private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }", "private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }", "public static /* synthetic */ String m118730a(Live live, KmarketFragmentInterface kmarketFragmentInterface) {\n return kmarketFragmentInterface.getLiveDetailFragmentTag(live.f40306id);\n }", "public Object getWindowTag() {\n if (null != mChatMap) {\n Object tag = mChatMap.getTag();\n return tag;\n } else {\n Logger.w(TAG, \"getWindowTag() mChatMap is null\");\n return null;\n }\n }", "public abstract int getFragmentLayout();", "public int getCurrentTabId() {\n\t\treturn viewPager.getCurrentItem();\n\t}", "public String getFromTag();", "public String getFromTag() {\n return fromHeader == null? null: fromHeader.getTag();\n }", "public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}", "int getActivityLayoutId();", "public String getCurrentTagName() throws ParseException {\n return findCurrentTag(html, position);\n }", "public String getTAG() {\r\n return TAG;\r\n }", "private Fragment getFragmentByTag(String tag) {\r\n\r\n if (!StringUtils.isBlank(tag)) {\r\n return getSupportFragmentManager().findFragmentByTag(tag);\r\n }\r\n\r\n return null;\r\n }", "String getTag();", "private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "public int getTagPosition() {\n\t\treturn (position);\n\t}", "public String getTag() {\n\t\treturn mStag;\n\t}", "public String getName() {\n return getActivityInfo().name;\n }", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "Long onFragmentInteraction();", "public String getUfrag() {\n\t\treturn ufrag;\n\t}", "public java.lang.String getTag() {\n java.lang.Object ref = tag_;\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 tag_ = s;\n return s;\n }\n }", "public String getFragmentNameAtPosition(int position) {\n\t\tif (position <= getBackStackCount()) {\n\t\t\treturn this.getSupportFragmentManager()\n\t\t\t\t\t.getBackStackEntryAt(position - 1).getName();\n\t\t}\n\t\treturn null;\n\t}", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "int getReceivingMajorFragmentId();", "int getSendingMajorFragmentId();", "public Long getFragments() {\n return this.fragments;\n }", "protected abstract int getFirstFrag();", "public String getTag() {\n return tagNum;\n }", "int getMajorFragmentId();", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "public String getTag();", "public int mo2142B() {\n if (this.f12261b == -1) {\n Log.e(\"UI_OPERATION\", \"missing fragment container id\", m16892a());\n System.exit(0);\n }\n return this.f12261b;\n }", "String fragment();", "public GTag getTag() {\r\n\t\treturn tag;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "public Integer getActivityName() {\n return activityName;\n }", "public int getTag() {\n return tag;\n }", "public int getTagNum() {\n return Integer.parseInt(getTag());\n }", "public int getFragmentBundles();", "public Fragment findFragment(int position) {\n return fragments[position];\n }", "public String tag()\r\n {\r\n return this.tag;\r\n }", "protected abstract Fragment getFragmentByPosition(int position);", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag() {\n\t\treturn tag;\n\t}", "public String getTag() {\n return new String(XML_TAG);\n }", "ITagView getTagView();", "public int getTag()\n {\n return this.m_descriptor[0] & 0xFF;\n }", "public @NotNull String getTag() {\n\n String tag = getConfig().getString(\"messages.tag\");\n return (tag == null) ? \"\" : Utils.format(tag);\n }", "private String titleForTag(String fragmentTag) {\n if (fragmentTag == null) {\n return getString(R.string.app_name);\n }\n DrawerIndex tagIndex = DrawerIndex.fromTag(fragmentTag);\n int tagValue = DrawerIndex.valueOf(tagIndex);\n\n String title = getResources().getStringArray(R.array.examples_array)[tagValue];\n return title;\n }", "void onFragmentInteraction(int spotId);", "public String getActivity(){\n return Activity;\n }", "public String getTag() {\r\n return new String(XML_TAG);\r\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "@VisibleForTesting\n public FragmentActivity getFragmentActivity() {\n return PanelFragment.this.getActivity();\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public int getMyTag()\n\t{\n\t\treturn myTag;\n\t}", "@Override\n public int getTag() {\n return this.tag;\n }", "public String eTag() {\n return this.eTag;\n }", "public String getTag()\n {\n return this.tag;\n }", "public static UpdaterFragment getInstance(){\n return current;\n }", "public String getTag() {\r\n return tag;\r\n }", "public String getActivityName() {\n return getNameFromType(this.getType());\n }", "public String getTag() {\n return this.tag;\n }" ]
[ "0.75224376", "0.6811579", "0.6634773", "0.6388855", "0.63854116", "0.63011795", "0.62251097", "0.6129852", "0.61155766", "0.60286254", "0.598937", "0.59693563", "0.5887596", "0.5879297", "0.5752021", "0.57505167", "0.5720415", "0.569118", "0.56878567", "0.56706274", "0.5667199", "0.5657888", "0.56507695", "0.56488395", "0.56459355", "0.56459355", "0.5644006", "0.563896", "0.56313515", "0.56303823", "0.5620401", "0.5614069", "0.5600738", "0.5564295", "0.5556066", "0.55511034", "0.5530955", "0.55296475", "0.5527072", "0.5513631", "0.54959995", "0.5481838", "0.54471534", "0.5440821", "0.54339707", "0.54179287", "0.54115635", "0.54008764", "0.53904086", "0.53819066", "0.5375981", "0.53759336", "0.5375549", "0.5366284", "0.5366284", "0.5366284", "0.53592193", "0.53011936", "0.52943456", "0.528413", "0.5283997", "0.52821225", "0.52765256", "0.52572596", "0.5256867", "0.52397734", "0.52304345", "0.5213242", "0.5209653", "0.52068716", "0.5197674", "0.5197008", "0.5150554", "0.51305234", "0.51302105", "0.5128366", "0.5128366", "0.51177573", "0.51151353", "0.5104049", "0.51005816", "0.5099304", "0.509692", "0.5085832", "0.5085812", "0.5085024", "0.50845045", "0.5082951", "0.50821334", "0.50818944", "0.50818944", "0.50789934", "0.50768685", "0.50727254", "0.5070474", "0.50673914", "0.50664467", "0.5065211", "0.5063086", "0.50627154" ]
0.7797167
0
Gets the title based on the passed in fragment tag.
private String titleForTag(String fragmentTag) { if (fragmentTag == null) { return getString(R.string.app_name); } DrawerIndex tagIndex = DrawerIndex.fromTag(fragmentTag); int tagValue = DrawerIndex.valueOf(tagIndex); String title = getResources().getStringArray(R.array.examples_array)[tagValue]; return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "public String getTitle(int position) {\n return getString(Browser.HISTORY_PROJECTION_TITLE_INDEX, position);\n }", "@NonNull\n String getTitle() throws Exception;", "String getNavigationBarTitle(String title, String url);", "@Override\n public CharSequence getPageTitle(int position) {\n //Fragment frag = getItem(position);\n // return ((HomeScreenFragment) frag).getTitle();\n //String arrNavItems[] = ;\n assert(navItems!=null && navItems.length >= position);\n\n return navItems[position].toString();\n //return \"Tab \"+(position+1);\n //return super.getPageTitle(position);\n }", "public String getTitle() {\n/* 354 */ return getTitle((String)null);\n/* */ }", "@Override\n public String getPageTitle(int position) {\n switch (position) {\n case 0:\n return mContext.getString(R.string.current_fragment);\n case 1:\n return mContext.getString(R.string.past_fragment);\n default:\n return null;\n }\n }", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "IDisplayString getTitle();", "@NotNull\n String getTitle();", "private String readTitle(XmlPullParser parser) throws IOException,\n XmlPullParserException {\n parser.require(XmlPullParser.START_TAG, null, \"title\");\n String title = readText(parser);\n parser.require(XmlPullParser.END_TAG, null, \"title\");\n return title;\n }", "private String readTitle(XmlPullParser parser) throws IOException, XmlPullParserException {\n\t parser.require(XmlPullParser.START_TAG, ns, \"title\");\n\t String title = readText(parser);\n\t parser.require(XmlPullParser.END_TAG, ns, \"title\");\n\t return title;\n\t }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n }\n return s;\n }\n }", "public abstract CharSequence getTitle();", "@java.lang.Override\n public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public String getTitle() {\n Object ref = title_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _candidate.getTitle();\n\t}", "public GHFrom getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return getResources().getString(R.string.mine);\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return getResources().getString(R.string.all);\n default:\n return \"\";\n }\n }", "public String getTitle() {\n Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@NonNull\n public String getTitle() {\n return this.title;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTabTitle();", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public String getTitle(final String title) {\n\t\treturn getTitle(title, null);\n\t}", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\t\tpublic CharSequence getPageTitle(int position) {\n\t\t\treturn TITLE[position];\n\t\t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract String getFragmentName();", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle(String lang) {\n/* 363 */ return getLangAlt(lang, \"title\");\n/* */ }", "String extractTitle() {\r\n int indexToSplit;\r\n\r\n if (paramsByIndex != null && paramsFromIndex != null) {\r\n assert paramsByIndex > 0;\r\n assert paramsFromIndex > 0;\r\n indexToSplit = Math.min(paramsByIndex, paramsFromIndex);\r\n } else if (paramsByIndex != null) {\r\n indexToSplit = paramsByIndex;\r\n } else if (paramsFromIndex != null) {\r\n indexToSplit = paramsFromIndex;\r\n } else {\r\n return Joiner.on(\" \").join(params);\r\n }\r\n\r\n return Joiner.on(\" \").join(Arrays.copyOfRange(params, 0, indexToSplit));\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle() { return mTitle; }", "String title();", "String title();", "public CharSequence getPageTitle(int position) {\n // generate title based on item position\n return tabTitles[position];\n }", "@Override\n public CharSequence getPageTitle(int position) {\n if(position == 0)\n return getString(R.string.app_name);\n else\n return mPickFragments.get(position - 1).getResultCounterStr();\n }", "public String getTitle(String pHtml) {\r\n String locTitle=\"\";\r\n int startTitle=pHtml.indexOf(\"<title>\");\r\n int stopTitle=pHtml.indexOf(\"</title>\");\r\n locTitle=pHtml.substring(startTitle, stopTitle);\r\n locTitle=locTitle.replace(\"&ndash; \", \"\");\r\n locTitle=locTitle.replace(\"<title>\", \"\");\r\n locTitle=locTitle.replace(\"RESULT\", \"\"); \r\n\r\n \r\n return locTitle;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "@Override\r\n public String getTitle() {\n return title;\r\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _esfTournament.getTitle();\n\t}", "public String getTitle() {\n \t\treturn title;\n \t}", "public String getTitle()\n {\n return title;\n }" ]
[ "0.6991958", "0.6991958", "0.6991958", "0.6991958", "0.6991958", "0.66002506", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.6516644", "0.64538664", "0.63106835", "0.62912625", "0.62771547", "0.6195735", "0.6168682", "0.6136315", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.61229175", "0.6072421", "0.6069813", "0.60589135", "0.60324556", "0.5998539", "0.5998346", "0.5984307", "0.5979648", "0.5976151", "0.5975444", "0.59734106", "0.5962296", "0.5962214", "0.59518576", "0.59518576", "0.5947671", "0.59197897", "0.5918517", "0.5916504", "0.5916504", "0.5914971", "0.58994305", "0.5898168", "0.58926016", "0.58895874", "0.58778733", "0.586959", "0.5855796", "0.58411014", "0.58411014", "0.58411014", "0.58393824", "0.5830036", "0.58248734", "0.58248734", "0.58211315", "0.582045", "0.5818717", "0.5817442", "0.5817442", "0.5812893", "0.5809076", "0.58012205", "0.5798223", "0.5798223", "0.5798223", "0.5798223", "0.5798223", "0.5798223", "0.5798223", "0.57961", "0.579569", "0.5788575", "0.5785617" ]
0.7815011
0
Sets the title based on a given fragment's tag to the action bar.
private void setTitleForTag(String tag) { getSupportActionBar().setTitle(titleForTag(tag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitleForActiveTag() {\n String activeTag = getActiveFragmentTag();\n getSupportActionBar().setTitle(titleForTag(activeTag));\n }", "protected void setActionBarTitle(String title) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof ContentActivity) {\n\t\t\tContentActivity activity = (ContentActivity) mContext;\n\t\t\tactivity.setActionBarTitle(title);\n\t\t}\n\t}", "@Override\n public void setTitle(CharSequence title) {\n mTitle = title;\n getSupportActionBar().setTitle(mTitle);\n }", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "public void setTitle(int title){\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(title);\n }\n }", "public void setActionBarTitle(CharSequence title) {\r\n\t\tViewGroup actionBar = getActionBarCompat();\r\n\t\tif (actionBar == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tTextView titleText = (TextView) actionBar\r\n\t\t\t\t.findViewById(R.id.actionbar_compat_text);\r\n\t\tif (titleText != null) {\r\n\t\t\ttitleText.setText(title);\r\n\t\t}\r\n\t}", "@Override\n public void onReceivedTitle(WebView view, String title) {\n getSupportActionBar().setTitle(title);\n }", "private void setUpActionBar() {\n\t\tUtil.setFragmentActionBarTitle((BaseActivity)getActivity(), getResources().getString(R.string.navigation_menu_faq_question));\n\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "private void setToolbarTitle(Bundle searchParams) {\n this.searchParams = searchParams;\n if (searchParams != null) {\n if (searchParams.containsKey(PLAYLIST_BUNDLE) && searchParams.containsKey(SEARCH_QUERY)) {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_playlist_search_title,\n ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle(),\n searchParams.getString(SEARCH_QUERY) ));\n } else if (searchParams.containsKey(PLAYLIST_BUNDLE)) {\n titleTabTitle = getString(R.string.replay_toolbar_playlist_title, ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle());\n getSupportActionBar().setTitle(titleTabTitle);\n } else {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_search_title, searchParams.getString(SEARCH_QUERY)));\n }\n } else {\n getSupportActionBar().setTitle(R.string.replay_toolbar_normal_title);\n }\n }", "void setTitle(@NonNull String title);", "void setTitle(java.lang.String title);", "private void setActivityTitle(){\n binding.actionbar.title.setText(R.string.application_guide);\n }", "public void setToolbarTitle(String title)\n {\n if(_act.getSupportActionBar() !=null)\n (_act).getSupportActionBar().setTitle(title);\n\n\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) { this.title = title; }", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "private String titleForTag(String fragmentTag) {\n if (fragmentTag == null) {\n return getString(R.string.app_name);\n }\n DrawerIndex tagIndex = DrawerIndex.fromTag(fragmentTag);\n int tagValue = DrawerIndex.valueOf(tagIndex);\n\n String title = getResources().getStringArray(R.array.examples_array)[tagValue];\n return title;\n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void initToolbarTitle() {\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n toolbar.setTitle(R.string.string_settings);\n }", "private void setTitle(String userTitle){\n title = userTitle;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(final String title)\n {\n this.title = title;\n }", "@SuppressLint(\"ResourceType\")\n public void fragmentManager(String tag, Fragment fragment) {\n FragmentManager fm = getSupportFragmentManager();\n\n fm.findFragmentByTag(tag);\n\n FragmentTransaction ft = fm.beginTransaction();\n ft.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right);\n ft.replace(R.id.fragment_container, fragment, tag);\n ft.commit();\n\n getSupportActionBar().setTitle(tag + \" Forecast\");\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(final String title) {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "private void updateToolbarTitle(int position) {\n //no need to update title if the toolbar is null for some reason\n if (getSupportActionBar() == null) return;\n\n //figure out if we should use format 1 or 2 for the title and format the title accordingly\n final SuggestionsStatePagerAdapter pagerAdapter = (SuggestionsStatePagerAdapter) viewPager.getAdapter();\n final int count = pagerAdapter.getCount();\n\n //set the title\n getSupportActionBar().setTitle(\n getString(R.string.title_detail_parameterized,\n String.valueOf(1+position), //add 1 since users are not used to seeing zero-based indexing\n String.valueOf(count)));\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }" ]
[ "0.73806715", "0.72805864", "0.7266485", "0.7227987", "0.72150123", "0.714091", "0.69626546", "0.6905081", "0.68812466", "0.68335915", "0.68335915", "0.68335915", "0.6828761", "0.67941934", "0.6786958", "0.67294514", "0.6708314", "0.66937464", "0.66718906", "0.6649696", "0.6623048", "0.66229117", "0.66229117", "0.66229117", "0.66229117", "0.66229117", "0.6590515", "0.657362", "0.657362", "0.65720356", "0.6570987", "0.656185", "0.6538379", "0.6538283", "0.653525", "0.653525", "0.6527346", "0.65237224", "0.65237224", "0.65237224", "0.65237224", "0.65214384", "0.65214384", "0.65214384", "0.6517277", "0.65165323", "0.65153795", "0.6512818", "0.6506714", "0.6506066", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.6488923", "0.648064", "0.64786494", "0.647798", "0.647798", "0.647798", "0.647798", "0.647798", "0.6477838", "0.64718074", "0.6461488", "0.6458481", "0.6439135", "0.64203227", "0.6412233", "0.6407866", "0.64073294", "0.64007664", "0.63972336", "0.63801754", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6376289", "0.6372908", "0.63632053", "0.63632053", "0.63632053" ]
0.75072545
0
Sets the title to the action bar based on the tag of the currently active fragment.
private void setTitleForActiveTag() { String activeTag = getActiveFragmentTag(); getSupportActionBar().setTitle(titleForTag(activeTag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitleForTag(String tag) {\n getSupportActionBar().setTitle(titleForTag(tag));\n }", "protected void setActionBarTitle(String title) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof ContentActivity) {\n\t\t\tContentActivity activity = (ContentActivity) mContext;\n\t\t\tactivity.setActionBarTitle(title);\n\t\t}\n\t}", "public void setTitle(int title){\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(title);\n }\n }", "private void setUpActionBar() {\n\t\tUtil.setFragmentActionBarTitle((BaseActivity)getActivity(), getResources().getString(R.string.navigation_menu_faq_question));\n\t}", "@Override\n public void setTitle(CharSequence title) {\n mTitle = title;\n getSupportActionBar().setTitle(mTitle);\n }", "public void setActionBarTitle(CharSequence title) {\r\n\t\tViewGroup actionBar = getActionBarCompat();\r\n\t\tif (actionBar == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tTextView titleText = (TextView) actionBar\r\n\t\t\t\t.findViewById(R.id.actionbar_compat_text);\r\n\t\tif (titleText != null) {\r\n\t\t\ttitleText.setText(title);\r\n\t\t}\r\n\t}", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "private void setActivityTitle(){\n binding.actionbar.title.setText(R.string.application_guide);\n }", "public void setTitle(java.lang.String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setToolbarTitle(String title)\n {\n if(_act.getSupportActionBar() !=null)\n (_act).getSupportActionBar().setTitle(title);\n\n\n }", "@Override\n public void onReceivedTitle(WebView view, String title) {\n getSupportActionBar().setTitle(title);\n }", "void setTitle(java.lang.String title);", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "private void setToolbarTitle(Bundle searchParams) {\n this.searchParams = searchParams;\n if (searchParams != null) {\n if (searchParams.containsKey(PLAYLIST_BUNDLE) && searchParams.containsKey(SEARCH_QUERY)) {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_playlist_search_title,\n ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle(),\n searchParams.getString(SEARCH_QUERY) ));\n } else if (searchParams.containsKey(PLAYLIST_BUNDLE)) {\n titleTabTitle = getString(R.string.replay_toolbar_playlist_title, ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle());\n getSupportActionBar().setTitle(titleTabTitle);\n } else {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_search_title, searchParams.getString(SEARCH_QUERY)));\n }\n } else {\n getSupportActionBar().setTitle(R.string.replay_toolbar_normal_title);\n }\n }", "private void initToolbarTitle() {\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n toolbar.setTitle(R.string.string_settings);\n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String title) { this.title = title; }", "public void setPrefTitle(int resId) {\n if (getActivity() == null)\n return;\n\n ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME\n | ActionBar.DISPLAY_USE_LOGO\n | ActionBar.DISPLAY_SHOW_TITLE);\n\n actionBar.setLogo(R.drawable.ic_icon);\n actionBar.setTitle(resId);\n }\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "private void setTitlePage() {\n mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n Log.d(\"onPageScrolled\", \"Khi scroll được gọi,\" + \"Mới\" + position);\n }\n\n @Override\n public void onPageSelected(int position) {\n Log.d(\"SELECT TAB\", mTabTitle[position]);\n if (position == 0) {\n if (AppSingleton.isClickDetail == false) {\n getSupportActionBar().setTitle(mTabTitle[0]);\n } else {\n getSupportActionBar().setTitle(mTitleDetail);\n }\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(true);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n } else if (position == 1) {\n getSupportActionBar().setTitle(mTabTitle[1]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(true);\n }\n\n } else if (position == 2) {\n getSupportActionBar().setTitle(mTabTitle[2]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n\n }\n\n\n } else if (position == 3) {\n getSupportActionBar().setTitle(mTabTitle[3]);\n if (mCustomMenu != null) {\n mCustomMenu.findItem(R.id.change_view_actionbar).setVisible(false);\n mCustomMenu.findItem(R.id.action_search).setVisible(false);\n }\n\n }\n// getSupportActionBar().setTitle(tabTitle[position]);\n\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n\n });\n\n }", "void setTitle(@NonNull String title);", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setActionBarTitle(String title,boolean isBackEnable) {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null)\n {\n actionBar.setTitle(title);\n actionBar.setDisplayHomeAsUpEnabled(isBackEnable);\n }\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private void updateToolbarTitle(int position) {\n //no need to update title if the toolbar is null for some reason\n if (getSupportActionBar() == null) return;\n\n //figure out if we should use format 1 or 2 for the title and format the title accordingly\n final SuggestionsStatePagerAdapter pagerAdapter = (SuggestionsStatePagerAdapter) viewPager.getAdapter();\n final int count = pagerAdapter.getCount();\n\n //set the title\n getSupportActionBar().setTitle(\n getString(R.string.title_detail_parameterized,\n String.valueOf(1+position), //add 1 since users are not used to seeing zero-based indexing\n String.valueOf(count)));\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "private void setTitle(String userTitle){\n title = userTitle;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "@Override\n\tpublic void onTitleChanged(String newTitle) {\n\t\tif (!newTitle.matches(\"\")) {\n getSupportActionBar().setSubtitle(newTitle);\n }\n\t}", "public void setTitle(String title) {\n mTitle = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n ActionBar actionBar = ((AppCompatActivity)activity).getSupportActionBar();\n actionBar.setTitle(\"Home\");\n }", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_scienceApp.setTitle(title);\n\t}", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "private void updateTileBar(String title) {\r\n toolbar.setTitle(title);\r\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void changeActionBarTitle(int position_product) {\n\n Resources r = getResources();\n if (position_product == r.getInteger(R.integer.WIRE_CLIP_POSITION) ) {\n getSupportActionBar().setTitle(\"WIRE CLIPS\");\n } if (position_product == r.getInteger(R.integer.CONCEAL_BOX_POSITION) ) {\n getSupportActionBar().setTitle(\"CONCEAL BOARDS\");\n } if (position_product == r.getInteger(R.integer.MCB_BOXES_POSITION) ) {\n getSupportActionBar().setTitle(\"MCBS\");\n } if(position_product == r.getInteger(R.integer.CASING_CAPING_ACCESSORIES_POSITION)){\n getSupportActionBar().setTitle(\"CASING ACCESSORIES\");\n } if(position_product == r.getInteger(R.integer.MULTICORE_CABLE_POSITION)){\n getSupportActionBar().setTitle(\"MULTICORE CABLE\");\n } if(position_product == r.getInteger(R.integer.EXHAUST_FAN_POSITION)){\n getSupportActionBar().setTitle(\"EXHAUST FANS\");\n } if(position_product == r.getInteger(R.integer.CASING_POSITION)){\n getSupportActionBar().setTitle(\"CASING CAPING\");\n } if(position_product == r.getInteger(R.integer.GANG_BOX_POSITION)){\n getSupportActionBar().setTitle(\"GANG BOXES\");\n }\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}" ]
[ "0.754064", "0.73957485", "0.73066723", "0.72411335", "0.7219707", "0.7209292", "0.71918774", "0.7097873", "0.68938005", "0.68873405", "0.68873405", "0.68873405", "0.68640894", "0.68419576", "0.6831007", "0.6817119", "0.67750674", "0.6748344", "0.6715526", "0.6715526", "0.6715526", "0.6715526", "0.6715526", "0.66624177", "0.6655499", "0.6632861", "0.661189", "0.661189", "0.66005546", "0.6596397", "0.655197", "0.6525807", "0.6525807", "0.65185094", "0.65161973", "0.64950293", "0.64950293", "0.64831764", "0.6479938", "0.64753336", "0.6471249", "0.6469416", "0.6467698", "0.6467698", "0.6467698", "0.6467698", "0.64662486", "0.6460724", "0.6459106", "0.6459106", "0.6459106", "0.6459106", "0.6459106", "0.6454311", "0.6453802", "0.6453802", "0.6453802", "0.64518064", "0.64475304", "0.6446503", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6435836", "0.6432516", "0.6429786", "0.64241827", "0.64229465", "0.641537", "0.64132583", "0.6411642", "0.64090544", "0.6398184", "0.6392284", "0.63847375", "0.6372232", "0.635987", "0.63558173", "0.6348532", "0.6348532", "0.6348532", "0.6348532", "0.6348532", "0.6348532", "0.6348532", "0.6348532" ]
0.822465
0
Calculates the height of the Status Sar (the bar at the top of the screen).
private int getStatusBarHeight() { if (mStatusBarHeight == 0) { Rect screenFrame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame); mStatusBarHeight = screenFrame.top; } return mStatusBarHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getStatusBarHeight(int position);", "private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = _act.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = _act.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }", "private static int getStatusBarHeight(Context context) {\n int result = 0;\n int resId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resId > 0) {\n result = context.getResources().getDimensionPixelOffset(resId);\n }\n return result;\n }", "public static int getStatusBarHeight(Context context){\n Resources resources = context.getResources();\n int resourceId = resources.getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n return resources.getDimensionPixelSize(resourceId);\n }\n return 0;\n }", "public int getHeightScreen(){\n return heightScreen ;\n }", "public int sHeight(){\n\t\t\n\t\tint Measuredheight = 0; \n\t\tPoint size = new Point();\n\t\tWindowManager w = activity.getWindowManager();\n\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t w.getDefaultDisplay().getSize(size);\n\t\t Measuredheight = size.y; \n\t\t}else{\n\t\t Display d = w.getDefaultDisplay(); \n\t\t Measuredheight = d.getHeight(); \n\t\t}\n\t\t\n\t\treturn Measuredheight;\n\t}", "public int getScreenHeight();", "public int getScreenHeight();", "Integer getCurrentHeight();", "public int getCurrentHeight();", "public double getRectHeight() {\n return (hexHeight * 1.5) + 0.5;\n }", "int getheight();", "public int getHeight() {\n return bala.getHeight();\n }", "public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "int getHeight() {return height;}", "public int getDisplayHeight()\n {\n if ( amiga.isPAL() ) {\n return isInterlaced() ? 512 : 256;\n }\n return isInterlaced() ? 400 : 200;\n }", "public int getHeight(){\n \treturn height;\n }", "public int getHeight() {\r\n return Display.getHeight();\r\n }", "public int getHeight() { return height; }", "public int getScreenHeight() {\n return this.screenHeight;\n }", "public int getHeight() {return height;}", "public int getHeight(){\n return height;\n }", "public void computeHeight() {\n\t\tif (getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 3 / 4);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight * 4 / 5);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 2 / 3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight - 80);\n\t\t\t}\n\t\t}\n\t}", "private double getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public abstract int getDisplayHeight();", "public int getHeight(){\n return height;\n }", "public int getHeight()\n {\n \treturn height;\n }", "public static int getDeviceHeight(Context context) {\n if (context != null) {\n if (Build.MODEL.equalsIgnoreCase(\"SM-T835\") || Build.MODEL.equalsIgnoreCase(\"SM-T595\")) {\n int resource = context.getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (resource > 0) {\n statusBarHeight = context.getResources().getDimensionPixelSize(resource);\n }\n }\n return context.getResources().getDisplayMetrics().heightPixels + statusBarHeight;\n } else\n return 0;\n\n }", "public int getHeight()\n {\n return height;\n }", "public int getHeight(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getHeight();\n } else {\n return 0;\n }\n }", "public final int getHeight() {\r\n return (int) size.y();\r\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "private int getWindowHeight() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n return displayMetrics.heightPixels;\n }", "int getHeight()\n {\n return height;\n }", "public int getHeight()\n {\n return height;\n }", "long getHeight();", "public int getHeight() {\r\n\t\treturn height + yIndent;\r\n\t}", "public int getHeight()\n {return height;}", "@SuppressWarnings(\"unused\")\n public int getProgressBarHeight() {\n LayoutParams lp = getLayoutParams();\n\n if (lp==null) return 0;\n\n return lp.height;\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn windowHeight;\n\t}", "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "public int getScreenHeight()\r\n\t{\r\n\t\treturn mScreen.getHeight();\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\n\treturn height;\n}", "public int getHeight() {\n return (int) Math.round(height);\n }", "double getHeight();", "public final int getHeight() {\r\n return config.height;\r\n }", "public int getBarSize() { return _barSize; }", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "public int getHeight() {\n return height_;\n }", "public int getHeight() {\r\n return Height;\r\n }", "public int getH() { return height; }", "public int getHeight() \n\t{\n\t\treturn height;\n\t}", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "public final int getHeight(){\n return height_;\n }", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}" ]
[ "0.78515995", "0.77735597", "0.7693139", "0.7561896", "0.7561896", "0.7558338", "0.7276038", "0.7151325", "0.6999906", "0.688343", "0.6838436", "0.6838436", "0.6797281", "0.6703044", "0.6699787", "0.6680192", "0.6675784", "0.6656688", "0.65989983", "0.6584444", "0.65824574", "0.6578643", "0.6566217", "0.6563939", "0.65485823", "0.6535079", "0.64996666", "0.64976555", "0.6492944", "0.6492944", "0.6492944", "0.64912534", "0.648586", "0.64831287", "0.6481354", "0.6472918", "0.6472049", "0.64680064", "0.6455273", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64478", "0.64439833", "0.64435345", "0.6442596", "0.64420485", "0.6435407", "0.64338684", "0.64332014", "0.6417973", "0.641501", "0.64141095", "0.64102405", "0.64102405", "0.6403721", "0.6400599", "0.6396817", "0.6380857", "0.63759315", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63738465", "0.63717026", "0.63688415", "0.63651973", "0.6362484", "0.6355768", "0.6355768", "0.63550663", "0.63520837", "0.63520837", "0.63510525", "0.63510525", "0.63510525", "0.63510525", "0.63510525", "0.63510525", "0.63510525", "0.63510525" ]
0.75268954
6
Calculates the height of the Navigation Bar (ie, the bar at the bottom of the screen with the Home, Back, and Recent buttons).
@SuppressLint("Deprecation") //Device getHeight() is deprecated but the replacement is API 13+ public int getNavigationBarHeight() { if (mNavigationBarHeight == 0) { Rect visibleFrame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(visibleFrame); DisplayMetrics outMetrics = new DisplayMetrics(); if (Build.VERSION.SDK_INT >= 17) { //The sane way to calculate this. getWindowManager().getDefaultDisplay().getRealMetrics(outMetrics); mNavigationBarHeight = outMetrics.heightPixels - visibleFrame.bottom; } else { getWindowManager().getDefaultDisplay().getMetrics(outMetrics); //visibleFrame will return the same as the outMetrics the first time through, // then will have the visible frame the full size of the screen when it comes back // around to close. OutMetrics will always be the view - the nav bar. mNavigationBarHeight = visibleFrame.bottom - outMetrics.heightPixels; } } return mNavigationBarHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private int getNavigationBarHeight() {\n int resourceId = getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (!hasPermanentKeys() && resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }", "public static int getNavigationBarHeight(Context context) {\n Resources resources = context.getResources();\n int resourceId = resources.getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n return resources.getDimensionPixelSize(resourceId);\n }\n\n return 0;\n }", "protected int getHeightDelta() {\n return super.getHeightDelta()+ menuBarHeightDelta;\n }", "public int getHeight() {\r\n\t\treturn height + yIndent;\r\n\t}", "public static int getDeviceHeight(Context context) {\n if (context != null) {\n if (Build.MODEL.equalsIgnoreCase(\"SM-T835\") || Build.MODEL.equalsIgnoreCase(\"SM-T595\")) {\n int resource = context.getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (resource > 0) {\n statusBarHeight = context.getResources().getDimensionPixelSize(resource);\n }\n }\n return context.getResources().getDisplayMetrics().heightPixels + statusBarHeight;\n } else\n return 0;\n\n }", "public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getScreenHeight();", "public int getScreenHeight();", "public int getCurrentHeight();", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = _act.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = _act.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }", "public int getHeight() {\n return bala.getHeight();\n }", "Integer getCurrentHeight();", "public void computeHeight() {\n\t\tif (getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 3 / 4);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight * 4 / 5);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 2 / 3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight - 80);\n\t\t\t}\n\t\t}\n\t}", "private int getWindowHeight() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n return displayMetrics.heightPixels;\n }", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }", "public int getStatusBarHeight() {\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }", "public final int getHeight() {\r\n return config.height;\r\n }", "public float getHeight();", "public int getBarSize() {\n return mBarSize;\n }", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "private int getStatusBarHeight() {\n if (mStatusBarHeight == 0) {\n Rect screenFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame);\n mStatusBarHeight = screenFrame.top;\n }\n\n return mStatusBarHeight;\n }", "public int getHeight() {\n return mHeight;\n }", "public int getHeight() {\n return mHeight;\n }", "public int getHeight()\r\n\t{\r\n\t\treturn mHeight;\r\n\t}", "public abstract int getStatusBarHeight(int position);", "public int getHeight()\n\t{\n\t\treturn mHeight;\n\t}", "@Override\n\tpublic int getHeight() {\n\t\treturn windowHeight;\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public final int getHeight() {\r\n return height;\r\n }", "public int getHeight() \n\t{\n\t\treturn height;\n\t}", "public int getHeight() {\n return height;\n }", "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public float getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\t\treturn height;\n\t\t}", "int getheight();", "public float getHeight() {\r\n\t\treturn height;\r\n\t}", "@SuppressWarnings(\"unused\")\n public int getProgressBarHeight() {\n LayoutParams lp = getLayoutParams();\n\n if (lp==null) return 0;\n\n return lp.height;\n }", "public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}", "public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}", "private double getHeight() {\n\t\treturn height;\n\t}", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "public int getHeight() {\n\t\treturn WORLD_HEIGHT;\n\t}", "public int getHeight() {\r\n return Height;\r\n }", "public int getHeight()\n {\n return height;\n }", "public float getHeight() {\n return height;\n }", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }", "public int getScreenHeight() {\n return this.screenHeight;\n }", "public final int getHeight() {\r\n return (int) size.y();\r\n }", "public int getHeight()\n {\n \treturn height;\n }", "public final float getHeight() {\n return mHeight;\n }", "public float getHeight()\n {\n return getBounds().height();\n }", "public int getHeight() {\n return height;\n }" ]
[ "0.81968313", "0.7628664", "0.70133996", "0.64783025", "0.64414936", "0.6431897", "0.6421459", "0.6362958", "0.6362958", "0.6359861", "0.6358111", "0.6353921", "0.6350182", "0.63246125", "0.6319038", "0.6250031", "0.6232908", "0.6232908", "0.62244654", "0.6196046", "0.61852145", "0.6167667", "0.61634886", "0.61634886", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6162442", "0.6154751", "0.6153034", "0.6153034", "0.6152916", "0.61468333", "0.6144282", "0.61379623", "0.6137732", "0.6137732", "0.613352", "0.61316365", "0.61309093", "0.6129555", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6125573", "0.6118532", "0.61184514", "0.61162263", "0.61126685", "0.6111584", "0.61098754", "0.60941136", "0.60827065", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60807645", "0.60802233", "0.60798925", "0.60785925", "0.6078359", "0.60766655", "0.60766655", "0.60766655", "0.60766655", "0.60766655", "0.60766655", "0.6075193", "0.607126", "0.60708207", "0.6063537", "0.605181", "0.60485977", "0.6047212" ]
0.774967
1
Method to mirror onShowCustomView from the WebChrome client, allowing WebViews in a Fragment to show custom views.
public void showCustomView(View view, WebChromeClient.CustomViewCallback callback) { //If there's already a custom view, this is a duplicate call, and we should // terminate the new view, then bail out. if (mCustomView != null) { callback.onCustomViewHidden(); return; } //Create a reusable set of FrameLayout.LayoutParams FrameLayout.LayoutParams fullscreenParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT); //Save the drawer view into an instance variable, then hide it. mContentView = findViewById(R.id.drawer_layout); mContentView.setVisibility(View.GONE); //Create a new custom view container mCustomViewContainer = new FrameLayout(MainActivity.this); mCustomViewContainer.setLayoutParams(fullscreenParams); mCustomViewContainer.setBackgroundResource(android.R.color.black); //Set view to instance variable, then add to container. mCustomView = view; view.setLayoutParams(fullscreenParams); mCustomViewContainer.addView(mCustomView); mCustomViewContainer.setVisibility(View.VISIBLE); //Save the callback an instance variable. mCustomViewCallback = callback; //Hide the action bar getSupportActionBar().hide(); //Set the custom view container as the activity's content view. setContentView(mCustomViewContainer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onShowCustomView(View view,CustomViewCallback callback) {\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n mCustomView = view;\n webView.setVisibility(View.GONE);\n customViewContainer.setVisibility(View.VISIBLE);\n customViewContainer.addView(view);\n customViewCallback = callback;\n }", "@Override\n\t\t\tpublic void onShowCustomView(View view,\n\t\t\t\t\tfinal WebChromeClient.CustomViewCallback callback) {\n\t\t\t\tif (mCustomView != null) {\n\t\t\t\t\tcallback.onCustomViewHidden();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Add the custom view to its container.\n\t\t\t\tfinal ImageButton fs = new ImageButton(getActivity());\n\t\t\t\tfs.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tfs.setVisibility(View.GONE);\n\t\t\t\t\t\tonHideCustomView();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.rightMargin = 16;\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.bottomMargin = 16;\n\n\t\t\t\tmCustomViewContainer.addView(view, COVER_SCREEN_GRAVITY_CENTER);\n\t\t\t\tmCustomViewContainer.addView(fs, GRAVITY_BOTTOM_RIGHT);\n\t\t\t\tmCustomView = view;\n\t\t\t\tmCustomViewCallback = callback;\n\n\t\t\t\t// hide main browser view\n\t\t\t\tmContentView.setVisibility(View.GONE);\n\n\t\t\t\t// Finally show the custom view container.\n\t\t\t\tmCustomViewContainer.setVisibility(View.VISIBLE);\n\t\t\t\tmCustomViewContainer.bringToFront();\n\t\t\t}", "private void showCustomView(View view, CustomViewCallback callback) {\n if (customView != null) {\n callback.onCustomViewHidden();\n return;\n }\n MainActivity.this.getWindow().getDecorView();\n FrameLayout decor = (FrameLayout) getWindow().getDecorView();\n fullscreenContainer = new FullscreenHolder(MainActivity.this);\n fullscreenContainer.addView(view, COVER_SCREEN_PARAMS);\n decor.addView(fullscreenContainer, COVER_SCREEN_PARAMS);\n customView = view;\n setStatusBarVisibility(false);\n customViewCallback = callback;\n }", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "public void hideCustomView() {\n if (mCustomView == null) {\n //Nothing to hide - return.\n return;\n } else {\n // Hide the custom view.\n mCustomView.setVisibility(View.GONE);\n\n // Remove the custom view from its container.\n mCustomViewContainer.removeView(mCustomView);\n mCustomViewContainer.setVisibility(View.GONE);\n mCustomViewCallback.onCustomViewHidden();\n mCustomView = null;\n\n // Show the ActionBar\n getSupportActionBar().show();\n\n // Show the content view.\n mContentView.setVisibility(View.VISIBLE);\n setContentView(mContentView);\n }\n }", "public void launchWithCustomReferrer(View view) {\n // The ergonomics will be improved here, since we're basically replicating the work of\n // TwaLauncher, see https://github.com/GoogleChrome/android-browser-helper/issues/13.\n\n TwaProviderPicker.Action action = TwaProviderPicker.pickProvider(getPackageManager());\n if (!serviceBound) {\n CustomTabsClient\n .bindCustomTabsService(this, action.provider, customTabsServiceConnection);\n serviceBound = true;\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_fitbit_web_view, container, false);\n\n button = (Button) v.findViewById(R.id.launchChromeButton);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n launchNativeChrome();\n }\n });\n\n\n return v;\n }", "@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}", "@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_contentslist, container, false);\n //View tv = v.findViewById(R.id.text);\n //((TextView)tv).setText(mLabel != null ? mLabel : \"(no label)\");\n //tv.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.gallery_thumb));\n webView = (WebView)v.findViewById(ddoba.android.lwsoft.ddoba.R.id.webView);\n\n customViewContainer = (FrameLayout) v.findViewById(ddoba.android.lwsoft.ddoba.R.id.customViewContainer);\n mWebViewClient = new myWebViewClient();\n webView.setWebViewClient(mWebViewClient);\n\n mWebChromeClient = new myWebChromeClient();\n webView.setWebChromeClient(mWebChromeClient);\n\n //MainActivity.setWebViewSettings(webView);\n setwebsetting(webView);\n\n\n webView.loadUrl(\"http://www.dasibogi.com/\");\n return v;\n }", "public void onCustomViewHidden() {\n mTimer.cancel();\n mTimer = null;\n if (mVideoView.isPlaying()) {\n mVideoView.stopPlayback();\n }\n if (isVideoSelfEnded)\n mCurrentProxy.dispatchOnEnded();\n else\n mCurrentProxy.dispatchOnPaused();\n\n // Re enable plugin views.\n mCurrentProxy.getWebView().getViewManager().showAll();\n\n isVideoSelfEnded = false;\n mCurrentProxy = null;\n mLayout.removeView(mVideoView);\n mVideoView = null;\n if (mProgressView != null) {\n mLayout.removeView(mProgressView);\n mProgressView = null;\n }\n mLayout = null;\n }", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "public void onShow(Context context);", "@Override\n\tpublic View getCustomView() {\n\t\treturn null;\n\t}", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n public String onSendView() {\n return C6969H.m41409d(\"G6F82DE1FAA22A773A9419158E2F3CAD27ECCC313AF7FBC20E209955CE1\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_risk_inspection, container, false);\n initTitle(view, mTitle);\n WebView webView = (WebView) view.findViewById(R.id.risk_webview);\n CircleProgressBar bar = (CircleProgressBar) view.findViewById(R.id.risk_progressbar);\n initWebView(webView, bar, mUrl, new WebRiskInspectionJSInterface() {\n @JavascriptInterface\n @Override\n public void WebGetResult(String json) {\n if (BuildConfig.DEBUG) {\n Log.e(TAG, json);\n }\n RiskResult riskResult = RiskResult.parser(json);\n final String uri = Strings.getIntentUri(RiskInspectionFragment.class.getSimpleName(),\n Strings.INTENT_CONTENT, String.valueOf(riskResult.getData().getF2()));\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onButtonPressed(Uri.parse(uri));\n }\n });\n }\n });\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_electro_potential, container, false);\n fordisplay = (WebView)view.findViewById(R.id.displayPotential);\n fordisplay.getSettings().setJavaScriptEnabled(true);\n fordisplay.getSettings().setBuiltInZoomControls(true);\n fordisplay.loadUrl(\"file:///android_asset/potential.html\");\n return view;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tif (savedInstanceState != null) {\n\t\t\tmCurrentPosition = savedInstanceState.getInt(ARG_POSITION);\n\t\t\tmCurrentLink = savedInstanceState.getString(ARG_LINK);\n\t\t}\n\n\t\t// Inflate the layout for this fragment\n\t\tview = inflater.inflate(R.layout.browser, container, false);\n\n\t\t// //////////////\n\t\tintent = getActivity().getIntent();\n\t\tnewLink = intent.getStringExtra(\"newLink\");\n\n\t\t_webView = (WebView) view.findViewById(R.id.wv);\n\n\t\tWebSettings webSettings = _webView.getSettings();\n\t\twebSettings.setJavaScriptEnabled(true);\n\t\twebSettings.setLoadWithOverviewMode(true);\n\t\twebSettings.setPluginState(WebSettings.PluginState.ON);\n\t\t_webView.setInitialScale(1);\n\t\t_webView.getSettings().setBuiltInZoomControls(true);\n\t\t_webView.getSettings().setUseWideViewPort(true);\n\t\t_webView.getSettings().setDisplayZoomControls(false);\n\n\t\taddressEditText = (EditText) view.findViewById(R.id.web_address_edit_text);\n\t\t_goButton = (ImageButton) view.findViewById(R.id.web_go_button);\n\t\t_goButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (addressEditText.getText().toString().startsWith(HTTP)) {\n\t\t\t\t\t_webView.loadUrl(addressEditText.getText().toString());\n\t\t\t\t} else {\n\t\t\t\t\t_webView.loadUrl(HTTP + addressEditText.getText().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\taddressEditText.setOnEditorActionListener(new OnEditorActionListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\tif (addressEditText.getText().toString().startsWith(HTTP)) {\n\t\t\t\t\t_webView.loadUrl(addressEditText.getText().toString());\n\t\t\t\t} else {\n\t\t\t\t\t_webView.loadUrl(HTTP + addressEditText.getText().toString());\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tWebViewClient webClient = new WebViewClient() {\n\t\t\t@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageStarted(WebView view, final String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\taddressEditText.post(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\taddressEditText.setText(url);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t_webView.setDownloadListener(new DownloadListener() {\n\t\t\t@Override\n\t\t\tpublic void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) {\n\t\t\t\tboolean isExternalStorageConnected = false;// getExternalStorageController().isExtStorage();\n\n\t\t\t\tif (!isExternalStorageConnected) {\n\t\t\t\t\t// makeInfoNotification(MessagesManager.getTitle($insert_usb_to_download,\n\t\t\t\t\t// getResources().getString(R.string.insert_usb_to_download)));\n\t\t\t\t} else {\n\t\t\t\t\t// Intent intent = new Intent(WebActivity.this,\n\t\t\t\t\t// DownloadChooseActivity.class);\n\t\t\t\t\t// intent.putExtra(\"url\", url);\n\t\t\t\t\t// startActivityForResult(intent, DOWNLOAD_RESULTCODE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t_webView.setWebViewClient(webClient);\n\t\t// _webView.setWebViewClient(new WebViewClient());\n\t\t_webView.setWebChromeClient(new WebChromeClient() {\n\t\t\t@Override\n\t\t\tpublic void onShowCustomView(View view,\n\t\t\t\t\tfinal WebChromeClient.CustomViewCallback callback) {\n\t\t\t\t// if a view already exists then immediately terminate the new\n\t\t\t\t// one\n\t\t\t\tif (mCustomView != null) {\n\t\t\t\t\tcallback.onCustomViewHidden();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Add the custom view to its container.\n\t\t\t\tfinal ImageButton fs = new ImageButton(getActivity());\n\t\t\t\tfs.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tfs.setVisibility(View.GONE);\n\t\t\t\t\t\tonHideCustomView();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.rightMargin = 16;\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.bottomMargin = 16;\n\n\t\t\t\tmCustomViewContainer.addView(view, COVER_SCREEN_GRAVITY_CENTER);\n\t\t\t\tmCustomViewContainer.addView(fs, GRAVITY_BOTTOM_RIGHT);\n\t\t\t\tmCustomView = view;\n\t\t\t\tmCustomViewCallback = callback;\n\n\t\t\t\t// hide main browser view\n\t\t\t\tmContentView.setVisibility(View.GONE);\n\n\t\t\t\t// Finally show the custom view container.\n\t\t\t\tmCustomViewContainer.setVisibility(View.VISIBLE);\n\t\t\t\tmCustomViewContainer.bringToFront();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onHideCustomView() {\n\t\t\t\tif (mCustomView == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// Hide the custom view.\n\t\t\t\tmCustomView.setVisibility(View.GONE);\n\t\t\t\t// Remove the custom view from its container.\n\t\t\t\tmCustomViewContainer.removeView(mCustomView);\n\t\t\t\tmCustomView = null;\n\t\t\t\t// mCustomViewContainer.setVisibility(View.GONE);\n\t\t\t\tmCustomViewCallback.onCustomViewHidden();\n\n\t\t\t\t// Show the content view.\n\t\t\t\tmContentView.setVisibility(View.VISIBLE);\n\t\t\t\tmContentView.bringToFront();\n\t\t\t}\n\n\t\t\t// For Android 3.0+\n\t\t\tpublic void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType) {\n\t\t\t\t// mUploadMessage = uploadMsg;\n\t\t\t\t// final boolean isExternalStorageConnected =\n\t\t\t\t// getExternalStorageController().isExtStorage();\n\t\t\t\t//\n\t\t\t\t// runOnUiThread(new Runnable()\n\t\t\t\t// {\n\t\t\t\t//\n\t\t\t\t// @Override\n\t\t\t\t// public void run()\n\t\t\t\t// {\n\t\t\t\t// if(!isExternalStorageConnected)\n\t\t\t\t// {\n\t\t\t\t// //makeInfoNotification(MessagesManager.getTitle($insert_usb_to_upload,\n\t\t\t\t// getResources().getString(R.string.insert_usb_to_upload)));\n\t\t\t\t// mUploadMessage.onReceiveValue(null);\n\t\t\t\t// return;\n\t\t\t\t// }\n\t\t\t\t//\n\t\t\t\t// // Intent intent = new Intent(WebActivity.this,\n\t\t\t\t// UploadChooserActivity.class);\n\t\t\t\t// // startActivityForResult(intent, UPLOAD_RESULTCODE);\n\t\t\t\t// }\n\t\t\t\t// });\n\n\t\t\t}\n\n\t\t\t// For Android < 3.0\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tpublic void openFileChooser(ValueCallback<Uri> uploadMsg) {\n\t\t\t\topenFileChooser(uploadMsg, \"\");\n\t\t\t}\n\n\t\t\t// For Android > 4.1\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tpublic void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {\n\t\t\t\topenFileChooser(uploadMsg, acceptType);\n\t\t\t}\n\n\t\t});\n\n\t\tfinal ImageButton homeImageView = (ImageButton) view.findViewById(R.id.web_home_image_view);\n\t\thomeImageView.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t_webView.loadUrl(HOME_PAGE);\n\t\t\t}\n\t\t});\n\n\t\tfinal ImageButton webBackImageView = (ImageButton) view.findViewById(R.id.web_back_image_view);\n\t\twebBackImageView.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (_webView.canGoBack()) {\n\t\t\t\t\t_webView.goBack();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tfinal ImageButton webForwardImageView = (ImageButton) view.findViewById(R.id.web_forward_image_view);\n\t\twebForwardImageView.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (_webView.canGoForward()) {\n\t\t\t\t\t_webView.goForward();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (getActivity().getIntent().getExtras() != null) {\n\t\t\tString _url = getActivity().getIntent().getExtras()\n\t\t\t\t\t.getString(LINK_PARAM, null);\n\t\t\tif (_url != null) {\n\t\t\t\turl = _url;\n\t\t\t}\n\t\t}\n\t\t_webView.loadUrl(url);\n\t\treturn view;\n\t}", "@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_web_view, container, false);\n ButterKnife.bind(this, view);\n if(savedInstanceState == null) {\n radioWebView.reset();\n if (getArguments() != null) {\n radioWebView.loadUrl(getArguments().getString(urlTag));\n if (holder.getTimeShiftPlayer() != null)\n radioWebView.setTimeshiftPlayer(holder.getTimeShiftPlayer());\n }\n }\n return view;\n }", "public abstract int getFragmentView();", "public String customFragment() {\n return this.customFragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_web_view, container, false);\n ButterKnife.bind(this, view);\n\n getDataFromBundle();\n wvHomepage.setWebViewClient(new WebViewClient());\n wvHomepage.loadUrl(url);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_program_unggulan, container, false);\n wvPage1 = (WebView)v.findViewById(R.id.activity_main_webview);\n WebSettings settings = wvPage1.getSettings();\n settings.setJavaScriptEnabled(true);\n wvPage1.setWebViewClient(new MyWebViewClient());\n\n wvPage1.loadUrl(url);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tv_show, container, false);\n }", "public void show(WebContents webContents) {\n // If inflating for the first time or showing from hidden, start animation\n if (mView == null) {\n // If the view has not been created, lazily inflate from the view stub.\n mView = mDelegate.getZoomControlView();\n PropertyModelChangeProcessor.create(mModel, mView, PageZoomViewBinder::bind);\n mView.startAnimation(getInAnimation());\n } else if (mView.getVisibility() != View.VISIBLE) {\n mView.setVisibility(View.VISIBLE);\n mView.startAnimation(getInAnimation());\n }\n\n // Adjust bottom margin for any bottom controls\n setBottomMargin(mBottomControlsOffset);\n\n mMediator.setWebContents(webContents);\n mWebContentsObserver = new WebContentsObserver(webContents) {\n @Override\n public void navigationEntryCommitted(LoadCommittedDetails details) {\n // When navigation occurs (i.e. navigate to another link, forward/backward\n // navigation), hide the dialog\n // Only on navigationEntryCommitted to avoid premature dismissal during transient\n // didStartNavigation events\n hide();\n }\n\n @Override\n public void wasHidden() {\n // When the web contents are hidden (i.e. navigate to another tab), hide the dialog\n hide();\n }\n\n @Override\n public void onWebContentsLostFocus() {\n // When the web contents loses focus (i.e. omnibox selected), hide the dialog\n hide();\n }\n };\n\n mGestureListenerManager = GestureListenerManager.fromWebContents(webContents);\n mGestureListener = new GestureStateListener() {\n @Override\n public void onScrollStarted(\n int scrollOffsetY, int scrollExtentY, boolean isDirectionUp) {\n // On scroll, hide the dialog\n hide();\n }\n };\n mGestureListenerManager.addListener(mGestureListener);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View v = inflater.inflate(R.layout.fragment_share_flickr, container, false);\n WebView myWebView = v.findViewById(R.id.flickrWebView);\n myWebView.setWebViewClient(new WebViewClient());\n myWebView.loadUrl(flickrUrl);\n return v;\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5F8AC70EAA31A708E50D9F5DFCF1F3D66E86\");\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n pd.setVisibility(View.VISIBLE);\n webView.setVisibility(View.VISIBLE);\n super.onPageStarted(view, url, favicon);\n\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_condition, container, false);\n webView = v.findViewById(R.id.webView);\n webView.loadUrl(\"http://www.mazad-sa.net/ma5dom/api/webview\");\n return v;\n\n }", "@Override\n public void onAdShown(final String target){\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onAdShown', {'zone':'\"+target+\"'})\";\n webView.loadUrl(event);\n }\n });\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "protected abstract void showFrontFace();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_show, container, false);\n findViews(view);\n initView();\n\n setListener();\n return view;\n }", "@CalledByNative\n @Override\n protected boolean isCustomTab() {\n return mDelegate.isCustomTab();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_synthetic_video, container, false);\n }", "void onFragmentInteraction(View v);", "@Override\n\tpublic void setCustomView(int resId) {\n\t\t\n\t}", "public /* synthetic */ void lambda$getSeeMoreListener$4$PanelFragment(View view) {\n this.mPanelClosedKey = \"see_more\";\n if (this.mPanel.isCustomizedButtonUsed()) {\n this.mPanel.onClickCustomizedButton();\n return;\n }\n FragmentActivity activity = getActivity();\n activity.startActivityForResult(this.mPanel.getSeeMoreIntent(), 0);\n activity.finish();\n }", "@Override\n public void onShow(String s) {\n Log.d(\"TAG\",\"TAG---RV onShow-------->\"+RVisReady()+\" (RVisReady())\");\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_tab_tracking_sovilocation, container, false);\r\n\r\n setup(mView);\r\n GetData(true,\"\");\r\n\r\n return mView;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tv, container, false);\n WebView webView_video = view.findViewById(R.id.webView_video);\n String url = \"https://www.google.com/\";\n webView_video.loadUrl(url);\n// String header = \"<iframe width=\\\"\\\" height=\\\"480\\\" src=\\\"https://www.youtube.com/embed/MM4ShEnKw3A\\\" frameborder=\\\"0\\\" allow=\\\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\\\" allowfullscreen></iframe>\";\n// webView_video.loadData(header, \"text/html\", \"UTF-8\");\n webView_video.setWebViewClient(new WebViewClient());\n webView_video.getSettings().setJavaScriptEnabled(true);\n// webView_video.setWebViewClient(new WebViewClient(){\n// @Override\n// public boolean shouldOverrideUrlLoading(WebView view, String url){\n// view.loadUrl(url);\n// return false;\n// }\n// });\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_browser, container, false);\n\n webViewContainer = (LinearLayout) view.findViewById(R.id.webViewContainer);\n\n //Add the previous WebView to the view if one exists.\n if(webView != null) {\n ViewGroup oldParent = (ViewGroup) webView.getParent();\n oldParent.removeView(webView);\n webViewContainer.addView(webView);\n } else {\n createNewWebView();\n }\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mview=inflater.inflate(R.layout.fragment_smartgrid, container, false);\n mywebview=(WebView)mview.findViewById(R.id.web);\n mywebview.loadUrl(\"https://solarrooftop.gov.in/rooftop_calculator\");\n WebSettings webSettings=mywebview.getSettings();\n webSettings.setJavaScriptEnabled(true);\n mywebview.setWebViewClient(new WebViewClient());\n return mview;\n }", "public void Clickweb(View v){\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_article, container, false);\n\n mProgressBar = view.findViewById(R.id.progress_bar);\n mProgressBar.setVisibility(View.VISIBLE);\n\n mWebView = view.findViewById(R.id.web_view);\n WebSettings webSettings = mWebView.getSettings();\n webSettings.setJavaScriptEnabled(true);\n\n// WebViewClientImpl webViewClient = new WebViewClientImpl(getActivity());\n// mWebView.setWebViewClient(webViewClient);\n\n view.findViewById(R.id.image_view_back).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dismiss();\n }\n });\n\n mWebView.setWebViewClient(new WebViewClient() {\n @Override\n public void onPageFinished(WebView view, String url) {\n Log.e(TAG, \"onPageFinished: \");\n mPresenter.dismissProgressBar();\n }\n });\n\n Bundle bundle = getArguments();\n mPresenter = new ArticlePresenter(this);\n mPresenter.checkBundle(bundle);\n\n return view;\n }", "abstract void onShown();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View fragmentView = inflater.inflate(R.layout.fragment_quiz_intro_nasilje, container, false);\n WebView webView = fragmentView.findViewById(R.id.webViewKviz1);\n webView.loadUrl(\"file:///android_asset/upute_kviz__nasilje.html\");\n unbinder = ButterKnife.bind(this, fragmentView);\n return fragmentView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_opening, container, false);\n\n ImageView ivOpening = rootView.findViewById(R.id.ivOpening);\n ivOpening.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n browserIntent.setData(Uri.parse(URL));\n if (browserIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n Toast.makeText(getActivity(), getActivity().getString(R.string.website_is_opening), Toast.LENGTH_SHORT).show();\n getActivity().startActivity(browserIntent);\n } else {\n Toast.makeText(getActivity(), getActivity().getString(R.string.url_not_found_error), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_near_peoples, container, false);\n getActivity().setTitle(\"Share Card\");\n initUI();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_rewarded_video, container, false);\n\n mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(getActivity());\n mRewardedVideoAd.setRewardedVideoAdListener(this);\n loadRewardedVideoAd();\n\n btn_show_video = view.findViewById(R.id.btn_show_video);\n btn_show_video.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mRewardedVideoAd.isLoaded()) {\n mRewardedVideoAd.show();\n }\n }\n });\n // Use an activity context to get the rewarded video instance.\n\n\n return view;\n }", "@Override\n public void showView(final boolean show, final View view) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n view.animate().setDuration(shortAnimTime).alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_theory, container, false);\n\n //Call method ClickedCardView\n ClickedAtCardView(view);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_web, container, false);\n webView = root.findViewById(R.id.web_webView);\n webView.setWebViewClient(new WebViewClient());\n webView.loadUrl(\"https://www.google.com\");\n webView.setOnKeyListener(new View.OnKeyListener(){\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK\n && event.getAction() == MotionEvent.ACTION_UP\n && webView.canGoBack()) {\n handler.sendEmptyMessage(1);\n return true;\n }\n return false;\n }\n });\n return root;\n }", "public interface AddPaymentMvpView extends MvpView {\n\n void showSettingsFragment();\n\n void showProgress(boolean show);\n\n}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dis_websearch, container, false);\n\n setHasOptionsMenu(true);\n\n noItemsLayout = view.findViewById(R.id.noItemsLayout);\n\n // set up search view\n searchView = view.findViewById(R.id.searchView);\n searchView.setOnQueryTextListener(new android.widget.SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String s) {\n Log.println(Log.INFO, \"websearch\", s);\n // obtain the list of web-pages from the search query\n CustomListViewValuesArr = WebSearch.getWebSearch(s);\n if (CustomListViewValuesArr.size() != 0) {\n // show the search results\n noItemsLayout.setVisibility(View.GONE);\n list.setVisibility(View.VISIBLE);\n setAdapter();\n // hide keyboard\n InputMethodManager imm = (InputMethodManager)getActivity().\n getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(searchView.getWindowToken(), 0);\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String s) {\n return false;\n }\n });\n\n // set up the listview\n CustomListView = this;\n list = view.findViewById( R.id.list );\n setAdapter();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tv, container, false);\n pb = view.findViewById(R.id.pb);\n pb.setVisibility(View.VISIBLE);\n setRecyclerView(view);\n\n return view;\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.topic.fragment.StickyTabsFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_chat, container, false);\n\n w = (WebView)view.findViewById(R.id.wi);\n progressBar = (ProgressBar) view.findViewById(R.id.progressBar);\n w.setWebViewClient(new WebViewClient(){\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n progressBar.setVisibility(View.GONE);\n }\n });\n WebSettings ws = w.getSettings();\n ws.setJavaScriptEnabled(true);\n w.loadUrl(\"https://tawk.to/chat/5c3b502e494cc76b7872d77a/default\");\n w.getSettings().setJavaScriptEnabled(true);\n w.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tv_shows, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_login, container, false);\n init();\n\n btnLoginRegister.setOnClickListener(view1 -> checkEditTexts());\n tvForgotPass.setOnClickListener(view1 ->\n changeFragment(new ForgetPassFragment())\n );\n\n tvPrivacyPolicy.setOnClickListener(view1 -> {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(Constants.webViewLink));\n startActivity(i);\n });\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_hand_view, container, false);\n //if you would like to test this call the following: loadTestData()\n getSubviews(v);\n\n presenter = new HandPresenter(this);\n return v;\n }", "void OpenFragmentInteraction();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n v = inflater.inflate(R.layout.fragment_blank, container, false);\n webView = v.findViewById(R.id.webv);\n if (activity!=null)\n\n ((MainActivity) activity).showDialog(false);\n\n\n alertDialog = new AlertDialog.Builder(activity)\n//set title\n//set message\n .setView(R.layout.loadind_dialog)\n // .setMessage(\"برجاء الانتظار وسيتم تحويلك تلقائيا\")\n//set positive button\n .setCancelable(false)\n .create();\n\n\n final String mimeType = \"text/html\";\n final String encoding = \"UTF-8\";\n String html = getArguments().getString(\"html\");\n\n\n // webView.setWebViewClient(new WebViewClient());\n\n webView.getSettings().setJavaScriptEnabled(true);\n webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);\n webView.loadDataWithBaseURL(\"\", html, mimeType, encoding, \"\");\n webView.addJavascriptInterface(new MyJavaScriptInterface(activity), \"HtmlViewer\");\n\n\n webView.setWebChromeClient(new WebChromeClient() {\n public boolean onConsoleMessage(ConsoleMessage cmsg) {\n\n /* process JSON */\n\n Log.e(\"console\",\"message is \"+cmsg.message());\n\n try {\n JSONObject jsonObject = new JSONObject(cmsg.message());\n System.out.println(\"json is \" + cmsg.message());\n int status = Integer.parseInt(jsonObject.getString(\"status\"));\n boolean success = (boolean) jsonObject.getBoolean(\"success\");\n\n if (status == 200 && success) {\n\n\n // ((MainActivity)activity).setPaymentSuccess(true);\n\n // ((MainActivity)activity).fragmentStack.replace(new OrderDoneFragment());\n\n\n\n } else {\n // ((MainActivity)activity).setPaymentSuccess(false);\n\n\n // ((MainActivity)activity).fragmentStack.pop();\n\n }\n\n } catch (JSONException e) {\n\n }\n\n\n return true;\n\n }\n });\n\n\n webView.setWebViewClient(new WebViewClient() {\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {\n\n // Log.d(\"webb \", \"shouldOverrideUrlLoading \" + request.getUrl().toString());\n\n return super.shouldOverrideUrlLoading(view, request);\n }\n\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n // Log.d(\"webb \", \"shouldOverrideUrlLoading \" + url);\n\n return super.shouldOverrideUrlLoading(view, url);\n }\n\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n\n if (url.contains(\"handle-payment-response\"))\n webView.setVisibility(View.INVISIBLE);\n Log.d(\"webb \", \"onPageStarted \" + url);\n if (url.equals(\"http://www.mawared.badee.com.sa/api/v1/payment/return\")||url.contains(\".payfort.com/FortAPI/general/backToMerchant\")) {\n // Toast.makeText(activity, \"please wait\", Toast.LENGTH_SHORT).show();\n showDialog();\n //startActivity(new Intent(activity,MainActivity.class));\n }\n if (url.equals(BASE_URL+\"payments/status/failure\")) {\n ((MainActivity)activity).setPaymentSuccess(false);\n\n ((MainActivity) activity).fragmentStack.pop();\n\n }\n else if (url.equals(BASE_URL+\"payments/status/success\")){\n ((MainActivity)activity).setPaymentSuccess(true);\n\n ((MainActivity) activity).fragmentStack.pop();\n ((MainActivity) activity).fragmentStack.pop();\n\n }\n\n }\n\n @Override\n public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {\n super.onReceivedError(view, request, error);\n\n // Log.d(\"webb \", \"onReceivedError \" + error.getDescription() + error.getErrorCode());\n\n }\n\n\n @Nullable\n @Override\n public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) {\n //Log.d(\"requestto\", request.getMethod() + \" \" + request.getUrl() + \" \" + request.getRequestHeaders().toString());\n\n\n return super.shouldInterceptRequest(view, request);\n }\n\n @Override\n public void onPageFinished(WebView view, String url) {\n // Toast.makeText(activity, \"is \"+url, Toast.LENGTH_SHORT).show();\n // Toast.makeText(activity, \"web \"+view.toString(), Toast.LENGTH_LONG).show();\n\n Log.d(\"webb \", \"onPageFinished \" + url);\n Log.d(\"webb \", \"webview \" + view.toString());\n if (url.equals(\"http://www.mawared.badee.com.sa/api/v1/payment/return\")||url.contains(\".payfort.com/FortAPI/general/backToMerchant\")) {\n // Toast.makeText(activity, \"please wait\", Toast.LENGTH_SHORT).show();\n showDialog();\n //startActivity(new Intent(activity,MainActivity.class));\n }\n\n Log.e(\"console\",\"url is \"+url);\n webView.loadUrl(\"javascript:console.log(document.body.getElementsByTagName('pre')[0].innerHTML);\");\n\n }\n });\n return v;\n }", "public interface CustomOpenActionCallback {\n\n /**\n * Listener called when a custom WebView should be opened, apart from the default one.\n */\n void onOpenCMPConsentToolActivity(ServerResponse response, CMPSettings settings);\n\n}", "@Override\n public void onClick(View v) {\n ((MainActivity)getActivity()).showFragment(new ListeAnnonceFragment());\n\n }", "public interface ISupportView {\n /**\n * 同级下的 懒加载 + ViewPager下的懒加载 的结合回调方法,只回调一次\n */\n void onLazyInitView();\n\n /**\n * 每次用户页面显示回调\n */\n void onFragmentShow();\n}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_favourite_fragment_view_pager, container, false);\n viewPager = (ViewPager)view.findViewById(R.id.viewpager1);\n setupViewPager(viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabs1);\n tabLayout.setupWithViewPager(viewPager);\n Typeface typeface=Typeface.createFromAsset(context.getAssets(), getString(R.string.custom_font));\n TextView tabOne=(TextView)LayoutInflater.from(context).inflate(R.layout.custom_tab,null);\n tabOne.setText(getString(R.string.stories));\n tabOne.setTypeface(typeface);\n TextView tabTwo=(TextView)LayoutInflater.from(context).inflate(R.layout.custom_tab,null);\n tabTwo.setText(getString(R.string.quotes));\n tabTwo.setTypeface(typeface);\n tabLayout.getTabAt(0).setCustomView(tabOne);\n tabLayout.getTabAt(1).setCustomView(tabTwo);\n return view;\n }", "@Override\n\t\t\tpublic void onReceivedIcon(WebView view, Bitmap icon) {\n\t\t\t\tsuper.onReceivedIcon(view, icon);\n\t\t\t}", "private BaseWatchMeFragment openFragment(FragmentManager manager,\n BaseWatchMeFragment fragment,\n Bundle args, String name){\n if(args != null){\n fragment.setArguments(args);\n }\n\n manager.beginTransaction()\n .replace(R.id.container, fragment, name)\n .addToBackStack(name)\n .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)\n .commit();\n\n return fragment;\n }", "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n logToast(\"MWebViewClient \" + url);\n view.loadUrl(url);\n return true;\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "public void onViewLoaded(XViewLink link, XView view);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = getActivity().getApplicationContext();\n\n View view = inflater.inflate(R.layout.fragment_custom, container, false);\n mImageLoader = ImageLoaderFactory.create(context);\n listView = (ListView)view.findViewById(R.id.customlist);\n mPtrFrame_Health = (PtrClassicFrameLayout) view.findViewById(R.id.customlist_frame);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }\n });\n listView.setDividerHeight(0);\n return view;\n }", "public void mo91944c(View view) {\n super.mo91944c(view);\n this.f94782aB = view.findViewById(R.id.c58);\n View findViewById = view.findViewById(R.id.jo);\n View findViewById2 = view.findViewById(R.id.e7);\n View findViewById3 = view.findViewById(R.id.c2r);\n findViewById3.setOnClickListener(new OnClickListener() {\n public final void onClick(View view) {\n ClickInstrumentation.onClick(view);\n if (!C27326a.m89578a(view)) {\n MusMyProfileFragment.this.mo92090i(view);\n }\n }\n });\n this.f94792am = (AnimationImageView) view.findViewById(R.id.ew);\n this.f94791al = view.findViewById(R.id.djz);\n this.f94793an = (RecommendPointView) view.findViewById(R.id.cp4);\n if (\"from_main\".equals(this.f94527M)) {\n findViewById.setVisibility(8);\n findViewById2.setVisibility(0);\n } else {\n findViewById.setVisibility(0);\n findViewById.setOnClickListener(new OnClickListener() {\n public final void onClick(View view) {\n ClickInstrumentation.onClick(view);\n if (MusMyProfileFragment.this.f94798as != null) {\n MusMyProfileFragment.this.f94798as.mo74012a();\n return;\n }\n if (MusMyProfileFragment.this.getActivity() != null && !MusMyProfileFragment.this.getActivity().isFinishing()) {\n MusMyProfileFragment.this.getActivity().finish();\n }\n }\n });\n findViewById2.setVisibility(8);\n if (ProfileNewStyleExperiment.INSTANCE.getENABLE_NEW_STYLE() && this.f94750v != null) {\n this.f94750v.setVisibility(4);\n }\n }\n if (C43122ff.m136767b()) {\n findViewById2.setVisibility(8);\n findViewById3.setVisibility(8);\n }\n if (getView() != null && ProfileNewStyleExperiment.INSTANCE.getCOMMOM_M()) {\n MChooseAccountWidget mChooseAccountWidget = new MChooseAccountWidget(getView(), findViewById3, this.f94791al, view.findViewById(R.id.title), view.findViewById(R.id.a0), view.findViewById(R.id.cr1));\n this.f94787aG = mChooseAccountWidget;\n m116774U().mo60152a(LayoutInflater.from(getContext()).inflate(R.layout.a0w, (ViewGroup) getView(), false), (Widget) this.f94787aG);\n }\n this.f94736h.setBorderColor(R.color.ye);\n this.f94788aH = (ImageView) view.findViewById(R.id.bv4);\n this.f94781aA = (ImageView) view.findViewById(R.id.c2l);\n mo92081M();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView==null) {\n rootView = inflater.inflate(R.layout.fragment_about_scrolls, container, false);\n web_view = (WebView) rootView.findViewById(R.id.about_scrolls_web_view);\n final WebSettings webSettings = web_view.getSettings();\n webSettings.setJavaScriptEnabled(true);\n web_view.setWebViewClient(new myWebClient());\n web_view.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n //Blank listener to disable long click text selection\n return true;\n }\n });\n web_view.setWebViewClient(new WebViewClient() {\n\n @Override\n public void onPageFinished(final WebView view, final String url) {\n super.onPageFinished(view, url);\n web_view.invalidate();\n }\n });\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_data_visible, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "private void showShareView() {\n Timber.d(\"showShareView\");\n }", "public void launchWithCustomColors(View view) {\n TrustedWebActivityIntentBuilder builder = new TrustedWebActivityIntentBuilder(LAUNCH_URI)\n .setNavigationBarColor(Color.RED)\n .setToolbarColor(Color.BLUE);\n\n\n TwaLauncher launcher = new TwaLauncher(this);\n launcher.launch(builder, mCustomTabsCallback, null, null);\n launchers.add(launcher);\n }", "private BaseWatchMeFragment openFragmentWithoutAddingBackStack(FragmentManager manager,\n BaseWatchMeFragment fragment,\n Bundle args, String name){\n if(args != null){\n fragment.setArguments(args);\n }\n\n manager.beginTransaction()\n .replace(R.id.container, fragment, name)\n .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)\n .commit();\n\n return fragment;\n }", "@Override\n\tpublic boolean isViewInteractable() {\n\t\treturn true;\n\t}", "public void Custom(View view) {\r\n Intent intent = new Intent(this,Customize.class);\r\n startActivity(intent);\r\n\r\n }", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n mLoadError = false;\r\n mRllGoShopping.setVisibility(View.VISIBLE);\r\n mMainWebView.setVisibility(View.GONE);\r\n super.onPageStarted(view, url, favicon);\r\n\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View myView = inflater.inflate(R.layout.fragment_second, container, false);\n TextView myTextView = (TextView) myView.findViewById(R.id.textView2);\n //set the value of the TextView to include the position\n myTextView.setText(tag);\n\n WebView webView = (WebView) myView.findViewById(R.id.webView);\n webView.setWebViewClient(new WebViewClient() {\n\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n // TODO Auto-generated method stub\n view.loadUrl(url);\n return true;\n }\n });\n\n webView.getSettings().setJavaScriptEnabled(true);\n webView.loadUrl(url);\n return myView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_history_, container, false);\n\n /*Wmapa = (WebView) v.findViewById(R.id.WV_mapa);\n Wmapa.loadUrl(\"https://www.google.com/maps/d/viewer?mid=1eDeBiKh_C2h9i5agIXyxrYzGLFaYR3kb&ll=19.410357954684365%2C-99.08837564999999&z=11\");\n\n // this will enable the javascipt.\n Wmapa.getSettings().setJavaScriptEnabled(true);\n\n // WebViewClient allows you to handle\n // onPageFinished and override Url loading.\n Wmapa.setWebViewClient(new WebViewClient());*/\n\n\n mapFragmentHistory = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.historyMap);\n if (mapFragmentHistory == null){\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n mapFragmentHistory = SupportMapFragment.newInstance();\n fragmentTransaction.replace(R.id.historyMap, mapFragmentHistory).commit();\n\n mapFragmentHistory.getMapAsync(this);\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_account, parent, false);\n\n setOnClickListeners(v);\n\n return v;\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n getChildFragmentManager()\n .beginTransaction()\n .add(R.id.container_wifi_presenter, WifiMainFragment.newInstance(), Constant.TAG_WIFI_FRAGMENT)\n .commit();\n\n // declare var to register to broadcast receiver\n mWifiReciever = new ScanWifiBroadcastReceiver(this);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_mainpage_, container, false);\n initUI(v);\n clickEvents();\n return v;\n }", "public abstract void mo8519a(View view);", "public interface Example6ParentFragmentView extends BaseView {\n\n void showSomething(String something);\n}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return super.onCreateView(inflater, (ViewGroup) inflater.inflate(R.layout.fragment_display_good_detial, container, false), savedInstanceState);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "@Override\n public View onCreateView( LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState ) {\n return inflater.inflate( R.layout.fragment_turn_over, container, false );\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_web, container, false);\n\n progressBar = (ProgressBar)rootView.findViewById(R.id.progressBarWeb);\n final FloatingActionButton fab = (FloatingActionButton) rootView.findViewById(R.id.fab_email);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String[] addresses = {getString(R.string.contact_email)};\n composeEmail(addresses,\"\");\n }\n });\n\n WebView webView = (WebView) rootView.findViewById(R.id.webView);\n\n //set client so link clicks do not load external browser\n webView.setWebViewClient(new WebViewClient(){\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n //disable all links, users should use float button to send email\n //return true;\n return false;\n }\n @Override\n public void onPageFinished(WebView view, String url){\n //show float email button after page has loaded\n if (url.equals(getString(R.string.urlContact))) {\n fab.show();\n }\n progressBar.setVisibility(View.INVISIBLE);\n }\n });\n\n\n webView.getSettings().setJavaScriptEnabled(true);\n webView.loadUrl(url);\n\n // Inflate the layout for this fragment\n return rootView;\n }", "private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_share_picture_tab, container, false);\n\n imageView = v.findViewById(R.id.imageViewShare);\n editText = v.findViewById(R.id.editTextShare);\n button = v.findViewById(R.id.buttonShare);\n\n imageView.setOnClickListener(this);\n button.setOnClickListener(this);\n return v;\n }", "@Override\n public void showLoginView() {\n calledMethods.add(\"showLoginView\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_gui_ge_xq, container, false);\n WebView webView= (WebView) inflate.findViewById(R.id.webView_gg);\n\n webView.getSettings().setJavaScriptEnabled(true);\n// webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);\n webView.loadUrl(\"http://product.suning.com/pds-web/product/graphicDetailsApp/0000000000/102295661/10051/R9000413/1.html\");\n return inflate;\n\n\n }" ]
[ "0.7800526", "0.7622201", "0.64313", "0.6107888", "0.60119575", "0.59459573", "0.58645207", "0.57972324", "0.5762246", "0.5704724", "0.5698005", "0.5656398", "0.56296843", "0.55775464", "0.54804474", "0.54612947", "0.5423833", "0.5414461", "0.53922474", "0.53574556", "0.5341762", "0.5326764", "0.5322367", "0.53141993", "0.5284207", "0.5283493", "0.52649826", "0.52521884", "0.52521884", "0.5244817", "0.5235289", "0.5223122", "0.52200663", "0.5219472", "0.52064794", "0.52030784", "0.5182853", "0.51715505", "0.5170552", "0.5149403", "0.51466715", "0.51263505", "0.5115913", "0.510467", "0.5104363", "0.51014423", "0.5095276", "0.50946015", "0.5093643", "0.5088455", "0.5077197", "0.5077112", "0.5038609", "0.503832", "0.50366145", "0.50345594", "0.50236154", "0.5015319", "0.49997595", "0.49977392", "0.49802852", "0.4979061", "0.49773514", "0.49691054", "0.49666303", "0.49635598", "0.49623272", "0.49584815", "0.4958462", "0.49582082", "0.49562156", "0.49555203", "0.49511415", "0.49437246", "0.49403316", "0.4939161", "0.49372223", "0.49301618", "0.4927856", "0.49152815", "0.49092475", "0.49084646", "0.49074686", "0.49047366", "0.49040604", "0.4903631", "0.49021205", "0.48983747", "0.4898373", "0.48942947", "0.4887966", "0.48826623", "0.48799407", "0.4879536", "0.48760793", "0.48691738", "0.4866929", "0.4859692", "0.48583877", "0.48581776" ]
0.7097764
2
Method to mirror onShowCustomView from the WebChrome client, allowing WebViews in a Fragment to hide custom views.
public void hideCustomView() { if (mCustomView == null) { //Nothing to hide - return. return; } else { // Hide the custom view. mCustomView.setVisibility(View.GONE); // Remove the custom view from its container. mCustomViewContainer.removeView(mCustomView); mCustomViewContainer.setVisibility(View.GONE); mCustomViewCallback.onCustomViewHidden(); mCustomView = null; // Show the ActionBar getSupportActionBar().show(); // Show the content view. mContentView.setVisibility(View.VISIBLE); setContentView(mContentView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onShowCustomView(View view,CustomViewCallback callback) {\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n mCustomView = view;\n webView.setVisibility(View.GONE);\n customViewContainer.setVisibility(View.VISIBLE);\n customViewContainer.addView(view);\n customViewCallback = callback;\n }", "@Override\n\t\t\tpublic void onShowCustomView(View view,\n\t\t\t\t\tfinal WebChromeClient.CustomViewCallback callback) {\n\t\t\t\tif (mCustomView != null) {\n\t\t\t\t\tcallback.onCustomViewHidden();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Add the custom view to its container.\n\t\t\t\tfinal ImageButton fs = new ImageButton(getActivity());\n\t\t\t\tfs.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tfs.setVisibility(View.GONE);\n\t\t\t\t\t\tonHideCustomView();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.rightMargin = 16;\n\t\t\t\tGRAVITY_BOTTOM_RIGHT.bottomMargin = 16;\n\n\t\t\t\tmCustomViewContainer.addView(view, COVER_SCREEN_GRAVITY_CENTER);\n\t\t\t\tmCustomViewContainer.addView(fs, GRAVITY_BOTTOM_RIGHT);\n\t\t\t\tmCustomView = view;\n\t\t\t\tmCustomViewCallback = callback;\n\n\t\t\t\t// hide main browser view\n\t\t\t\tmContentView.setVisibility(View.GONE);\n\n\t\t\t\t// Finally show the custom view container.\n\t\t\t\tmCustomViewContainer.setVisibility(View.VISIBLE);\n\t\t\t\tmCustomViewContainer.bringToFront();\n\t\t\t}", "public void showCustomView(View view, WebChromeClient.CustomViewCallback callback) {\n //If there's already a custom view, this is a duplicate call, and we should\n // terminate the new view, then bail out.\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n\n //Create a reusable set of FrameLayout.LayoutParams\n FrameLayout.LayoutParams fullscreenParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,\n FrameLayout.LayoutParams.MATCH_PARENT);\n\n //Save the drawer view into an instance variable, then hide it.\n mContentView = findViewById(R.id.drawer_layout);\n mContentView.setVisibility(View.GONE);\n\n //Create a new custom view container\n mCustomViewContainer = new FrameLayout(MainActivity.this);\n mCustomViewContainer.setLayoutParams(fullscreenParams);\n mCustomViewContainer.setBackgroundResource(android.R.color.black);\n\n //Set view to instance variable, then add to container.\n mCustomView = view;\n view.setLayoutParams(fullscreenParams);\n mCustomViewContainer.addView(mCustomView);\n mCustomViewContainer.setVisibility(View.VISIBLE);\n\n //Save the callback an instance variable.\n mCustomViewCallback = callback;\n\n //Hide the action bar\n getSupportActionBar().hide();\n\n //Set the custom view container as the activity's content view.\n setContentView(mCustomViewContainer);\n }", "public void onCustomViewHidden() {\n mTimer.cancel();\n mTimer = null;\n if (mVideoView.isPlaying()) {\n mVideoView.stopPlayback();\n }\n if (isVideoSelfEnded)\n mCurrentProxy.dispatchOnEnded();\n else\n mCurrentProxy.dispatchOnPaused();\n\n // Re enable plugin views.\n mCurrentProxy.getWebView().getViewManager().showAll();\n\n isVideoSelfEnded = false;\n mCurrentProxy = null;\n mLayout.removeView(mVideoView);\n mVideoView = null;\n if (mProgressView != null) {\n mLayout.removeView(mProgressView);\n mProgressView = null;\n }\n mLayout = null;\n }", "private void showCustomView(View view, CustomViewCallback callback) {\n if (customView != null) {\n callback.onCustomViewHidden();\n return;\n }\n MainActivity.this.getWindow().getDecorView();\n FrameLayout decor = (FrameLayout) getWindow().getDecorView();\n fullscreenContainer = new FullscreenHolder(MainActivity.this);\n fullscreenContainer.addView(view, COVER_SCREEN_PARAMS);\n decor.addView(fullscreenContainer, COVER_SCREEN_PARAMS);\n customView = view;\n setStatusBarVisibility(false);\n customViewCallback = callback;\n }", "@Override\n\tpublic void onHide() {\n\n\t}", "protected abstract void onHideRuntime();", "@Override\n\tpublic View getCustomView() {\n\t\treturn null;\n\t}", "abstract void onHidden();", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}", "public void onShow(Context context);", "private void hide() {\n if (inflatedView != null && activityWeakReference != null && activityWeakReference.get() != null) {\n inflatedView.startAnimation(hideAnimation);\n inflatedView = null;\n } else {\n Timber.e(\"Trying to call hide() on a null view InternetIndicatorOverlay.\");\n }\n }", "public void show(WebContents webContents) {\n // If inflating for the first time or showing from hidden, start animation\n if (mView == null) {\n // If the view has not been created, lazily inflate from the view stub.\n mView = mDelegate.getZoomControlView();\n PropertyModelChangeProcessor.create(mModel, mView, PageZoomViewBinder::bind);\n mView.startAnimation(getInAnimation());\n } else if (mView.getVisibility() != View.VISIBLE) {\n mView.setVisibility(View.VISIBLE);\n mView.startAnimation(getInAnimation());\n }\n\n // Adjust bottom margin for any bottom controls\n setBottomMargin(mBottomControlsOffset);\n\n mMediator.setWebContents(webContents);\n mWebContentsObserver = new WebContentsObserver(webContents) {\n @Override\n public void navigationEntryCommitted(LoadCommittedDetails details) {\n // When navigation occurs (i.e. navigate to another link, forward/backward\n // navigation), hide the dialog\n // Only on navigationEntryCommitted to avoid premature dismissal during transient\n // didStartNavigation events\n hide();\n }\n\n @Override\n public void wasHidden() {\n // When the web contents are hidden (i.e. navigate to another tab), hide the dialog\n hide();\n }\n\n @Override\n public void onWebContentsLostFocus() {\n // When the web contents loses focus (i.e. omnibox selected), hide the dialog\n hide();\n }\n };\n\n mGestureListenerManager = GestureListenerManager.fromWebContents(webContents);\n mGestureListener = new GestureStateListener() {\n @Override\n public void onScrollStarted(\n int scrollOffsetY, int scrollExtentY, boolean isDirectionUp) {\n // On scroll, hide the dialog\n hide();\n }\n };\n mGestureListenerManager.addListener(mGestureListener);\n }", "@Override\n public void hide() {\n \n }", "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n pd.setVisibility(View.VISIBLE);\n webView.setVisibility(View.VISIBLE);\n super.onPageStarted(view, url, favicon);\n\n }", "@Override\n\tprotected void onPause()\n\t{\n\t\tsuper.onPause();\n\t\ttry\n\t\t{\n\t\t\tmWebView.getClass().getMethod(\"onPause\").invoke(mWebView, (Object[]) null);\n\t\t}\n\t\tcatch (IllegalArgumentException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (InvocationTargetException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchMethodException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmChromeClient.onHideCustomView();\n\t\tmWebView.onPause();\n\t\tmWebView.pauseTimers();\n\n\t}", "@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}", "@Override\n public void handleHideEt(View relatedEt, int hideDistance) {\n }", "@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tif (!hidden) {\n\t\t\t// 当前fragment重新show出来的时候再次加载数据\n\t\t\t// isNetWork();\n\t\t\t// toPage = 1;\n\t\t\t// getData();\n\t\t\t// 不请求数据只刷新状态\n\t\t\tif (CommonUtils.isNetworkConnected(mContext)) {// 有网\n\t\t\t\tsetVisibilityForView(View.VISIBLE, view.GONE);\n\t\t\t} else {// 无网\n\t\t\t\tsetVisibilityForView(View.GONE, view.VISIBLE);\n\t\t\t\tCustomToast.showToast(mContext, getResources().getString(R.string.net_error));\n\t\t\t}\n\t\t}\n\t\tsuper.onHiddenChanged(hidden);\n\t}", "@Override\n public void onBackPressed() {\n if (mCustomView != null) {\n hideCustomView();\n } else {\n //Otherwise, treat back press normally.\n super.onBackPressed();\n }\n }", "@Override\n public void onDestroyView() {\t\t\n \t\t\t \n mIsWebViewAvailable = false;\n super.onDestroyView();\n }", "@Override\r\n\tpublic void aboutToBeHidden() {\n\t\tsuper.aboutToBeHidden();\r\n\t}", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "@Override\n public void makeHidden(Player viewer) {\n \n }", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "void onRemoveShowFromMySeriesFragmentClick(boolean removed, Show show);", "@Override\n public void onWebContentsLostFocus() {\n hide();\n }", "private void hideOrShowSomeViews() {\n if (mIsWithMultimediaMethod) {\n mBtnMedia.setVisibility(View.VISIBLE);\n mBtnEmotion.setVisibility(View.VISIBLE);\n } else {\n mBtnMedia.setVisibility(View.GONE);\n mBtnEmotion.setVisibility(View.GONE);\n }\n\n // 重新 inflate 面板,并设置点击事件\n layoutMediaWrapper.removeAllViews();\n if (mIsWithCallMethod) {\n LayoutInflater.from(mContext).inflate(R.layout.msg_message_composer_inputmedia,\n layoutMediaWrapper, true);\n } else {\n LayoutInflater.from(mContext).inflate(R.layout.msg_message_composer_inputmedia_without_call,\n layoutMediaWrapper, true);\n }\n setupMediaInputButtonsClickEventHandler();\n }", "public void willBeHidden() {\n\t\tif (fragmentContainer != null) {\n\t\t\tAnimation fadeOut = AnimationUtils.loadAnimation(getActivity(), R.anim.fade_out);\n\t\t\tfragmentContainer.startAnimation(fadeOut);\n\t\t}\n\t}", "@Override\n\tpublic void onInvisible() {\n\n\t}", "@Override\n public void hide() {\n mHandler.post(mHide);\n }", "@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n mLoadError = false;\r\n mRllGoShopping.setVisibility(View.VISIBLE);\r\n mMainWebView.setVisibility(View.GONE);\r\n super.onPageStarted(view, url, favicon);\r\n\r\n }", "public void launchWithCustomReferrer(View view) {\n // The ergonomics will be improved here, since we're basically replicating the work of\n // TwaLauncher, see https://github.com/GoogleChrome/android-browser-helper/issues/13.\n\n TwaProviderPicker.Action action = TwaProviderPicker.pickProvider(getPackageManager());\n if (!serviceBound) {\n CustomTabsClient\n .bindCustomTabsService(this, action.provider, customTabsServiceConnection);\n serviceBound = true;\n }\n }", "public void onPageFinished(WebView view, String url){\n wb.loadUrl(\"javascript:(function(){\"+\"document.getElementById('show').style.display ='none';\"+\"})()\");\n //Call to a function defined on my myJavaScriptInterface\n wb.loadUrl(\"javascript: window.CallToAnAndroidFunction.setVisible()\");\n }", "public /* synthetic */ void lambda$getSeeMoreListener$4$PanelFragment(View view) {\n this.mPanelClosedKey = \"see_more\";\n if (this.mPanel.isCustomizedButtonUsed()) {\n this.mPanel.onClickCustomizedButton();\n return;\n }\n FragmentActivity activity = getActivity();\n activity.startActivityForResult(this.mPanel.getSeeMoreIntent(), 0);\n activity.finish();\n }", "@Override\n public void wasHidden() {\n hide();\n }", "@Override\n public void showView(final boolean show, final View view) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n view.animate().setDuration(shortAnimTime).alpha(show ? 1 : 0)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n view.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }", "@Override\n\tpublic void onHideScene() {\n\t\t\n\t}", "@SuppressWarnings(\"ConstantConditions\")\n @Override\n public void setUserVisibleHint(boolean visible) {\n super.setUserVisibleHint(visible);\n if (visible) {\n setUpScreen();\n }\n else {\n try {\n ViewFlipper layout = (ViewFlipper)getView().findViewById(R.id.currency_items);\n layout.removeAllViews();\n TextView viewAmount = (TextView)getView().findViewById(R.id.txtAmount);\n viewAmount.setBackground(null);\n }\n catch (NullPointerException npe) {\n // This happens when this is called before the view is created\n }\n }\n }", "@Override\r\n public void hide() {\n }", "@CalledByNative\n @Override\n protected boolean isCustomTab() {\n return mDelegate.isCustomTab();\n }", "@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_contentslist, container, false);\n //View tv = v.findViewById(R.id.text);\n //((TextView)tv).setText(mLabel != null ? mLabel : \"(no label)\");\n //tv.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.gallery_thumb));\n webView = (WebView)v.findViewById(ddoba.android.lwsoft.ddoba.R.id.webView);\n\n customViewContainer = (FrameLayout) v.findViewById(ddoba.android.lwsoft.ddoba.R.id.customViewContainer);\n mWebViewClient = new myWebViewClient();\n webView.setWebViewClient(mWebViewClient);\n\n mWebChromeClient = new myWebChromeClient();\n webView.setWebChromeClient(mWebChromeClient);\n\n //MainActivity.setWebViewSettings(webView);\n setwebsetting(webView);\n\n\n webView.loadUrl(\"http://www.dasibogi.com/\");\n return v;\n }", "@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tif (!hidden) {\n\t\t\tchangeviewbylogin();\n\t\t\tStatService.onPageStart(getActivity(),\t\"会员卡模块\");\n\t\t}else{\n\t\t\tStatService.onPageEnd(getActivity(),\"会员卡模块\");\n\t\t}\n\t\tsuper.onHiddenChanged(hidden);\n\t}", "void onFadingViewVisibilityChanged(boolean visible);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_fitbit_web_view, container, false);\n\n button = (Button) v.findViewById(R.id.launchChromeButton);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n launchNativeChrome();\n }\n });\n\n\n return v;\n }", "@Override\r\n public void hide() {\r\n\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dis_websearch, container, false);\n\n setHasOptionsMenu(true);\n\n noItemsLayout = view.findViewById(R.id.noItemsLayout);\n\n // set up search view\n searchView = view.findViewById(R.id.searchView);\n searchView.setOnQueryTextListener(new android.widget.SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String s) {\n Log.println(Log.INFO, \"websearch\", s);\n // obtain the list of web-pages from the search query\n CustomListViewValuesArr = WebSearch.getWebSearch(s);\n if (CustomListViewValuesArr.size() != 0) {\n // show the search results\n noItemsLayout.setVisibility(View.GONE);\n list.setVisibility(View.VISIBLE);\n setAdapter();\n // hide keyboard\n InputMethodManager imm = (InputMethodManager)getActivity().\n getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(searchView.getWindowToken(), 0);\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String s) {\n return false;\n }\n });\n\n // set up the listview\n CustomListView = this;\n list = view.findViewById( R.id.list );\n setAdapter();\n\n return view;\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n public String onSendView() {\n return C6969H.m41409d(\"G6F82DE1FAA22A773A9419158E2F3CAD27ECCC313AF7FBC20E209955CE1\");\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tLog.e(TAG,\"video view click\");\n\t\tif (v.getId() == R.id.clickview){\n\t\t\tshowCtl = !showCtl;\n\t\t\tif(showCtl){\n\t\t\t\tctlTop.startAnimation(AnimationUtils.loadAnimation(this, R.anim.show_top));\n\t\t\t\tctlBottom.startAnimation(AnimationUtils.loadAnimation(this, R.anim.show_btm));\n\t\t\t\tif (!uid.equals(\"120\")){\n\t\t\t\t\tctlBottom.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\tctlTop.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tctlTop.startAnimation(AnimationUtils.loadAnimation(this, R.anim.gone_top));\n\t\t\t\tctlBottom.startAnimation(AnimationUtils.loadAnimation(this, R.anim.gone_btm));\n\n\t\t\t\tctlTop.setVisibility(View.GONE);\n\t\t\t\tctlBottom.setVisibility(View.GONE);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\tvideo_webview.loadDataWithBaseURL(null, url, \"text/html\", \"UTF-8\", \"\");\n\t\t\t}", "private void switchShowHideReexposed() {\n if (!showReuses) {\n return;\n }\n showReexposed = !showReexposed;\n menu.toggleAction(showReexposed, ACTION_SHOW_HIDE_REEXPOSED);\n\n featureDiagramView.switchShowReexposed();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_data_visible, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n public void onFragmentVisible() {\n db = LegendsDatabase.getInstance(getContext());\n\n refreshCursor();\n\n if (emptyView.isShown()) {\n Crossfader.crossfadeView(emptyView, loadingView);\n }\n else {\n Crossfader.crossfadeView(listView, loadingView);\n }\n }", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "abstract void onShown();", "void onFinishHiding();", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "public void onfff() {\r\n\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n if(!(frag.isHidden()))\r\n {\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .hide(frag)\r\n .commit();\r\n }\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_electro_potential, container, false);\n fordisplay = (WebView)view.findViewById(R.id.displayPotential);\n fordisplay.getSettings().setJavaScriptEnabled(true);\n fordisplay.getSettings().setBuiltInZoomControls(true);\n fordisplay.loadUrl(\"file:///android_asset/potential.html\");\n return view;\n }", "@Override\n public void onAdShown(final String target){\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onAdShown', {'zone':'\"+target+\"'})\";\n webView.loadUrl(event);\n }\n });\n }", "protected abstract void showFrontFace();", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}" ]
[ "0.7790519", "0.74489003", "0.6981145", "0.69237053", "0.6221333", "0.5936551", "0.58458745", "0.5726643", "0.57186425", "0.57079375", "0.57005924", "0.54546", "0.5408783", "0.5404337", "0.53841716", "0.5379586", "0.5368325", "0.5350706", "0.53355217", "0.53283566", "0.5315461", "0.5311649", "0.53115314", "0.52598715", "0.5257996", "0.5251184", "0.5251184", "0.5251184", "0.5243484", "0.5238886", "0.5230477", "0.52250254", "0.52075976", "0.52030694", "0.5202043", "0.519952", "0.5192068", "0.5191502", "0.5191473", "0.51905155", "0.5181417", "0.5180498", "0.51802814", "0.51787287", "0.5174923", "0.5165022", "0.51548696", "0.515217", "0.5140676", "0.5134312", "0.51056534", "0.5094427", "0.5084713", "0.50766045", "0.5061304", "0.50570774", "0.50570774", "0.50570774", "0.50570774", "0.50486773", "0.50481385", "0.50481385", "0.50481385", "0.50481385", "0.5022284", "0.5021885", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.502061", "0.5018416", "0.4997907", "0.49901918", "0.49891078", "0.49828926", "0.49828926", "0.49828926", "0.49828926", "0.49828926", "0.49828926", "0.49828926", "0.49828926" ]
0.71686244
2
If there's a custom view, hide it
@Override public void onBackPressed() { if (mCustomView != null) { hideCustomView(); } else { //Otherwise, treat back press normally. super.onBackPressed(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hideCustomView() {\n if (mCustomView == null) {\n //Nothing to hide - return.\n return;\n } else {\n // Hide the custom view.\n mCustomView.setVisibility(View.GONE);\n\n // Remove the custom view from its container.\n mCustomViewContainer.removeView(mCustomView);\n mCustomViewContainer.setVisibility(View.GONE);\n mCustomViewCallback.onCustomViewHidden();\n mCustomView = null;\n\n // Show the ActionBar\n getSupportActionBar().show();\n\n // Show the content view.\n mContentView.setVisibility(View.VISIBLE);\n setContentView(mContentView);\n }\n }", "public void onCustomViewHidden() {\n mTimer.cancel();\n mTimer = null;\n if (mVideoView.isPlaying()) {\n mVideoView.stopPlayback();\n }\n if (isVideoSelfEnded)\n mCurrentProxy.dispatchOnEnded();\n else\n mCurrentProxy.dispatchOnPaused();\n\n // Re enable plugin views.\n mCurrentProxy.getWebView().getViewManager().showAll();\n\n isVideoSelfEnded = false;\n mCurrentProxy = null;\n mLayout.removeView(mVideoView);\n mVideoView = null;\n if (mProgressView != null) {\n mLayout.removeView(mProgressView);\n mProgressView = null;\n }\n mLayout = null;\n }", "@Override\r\n public void hide() {\n }", "@Override\r\n public void hide() {\r\n\r\n }", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n public void hide() {\n \n }", "@Override\n\tpublic void hide()\n\t{\n\n\t}", "@Override\n\tpublic void hide()\n\t{\n\n\t}", "public void hide() {\n // TODO(mschillaci): Add a FrameLayout wrapper so the view can be removed.\n if (mView != null && mView.getVisibility() == View.VISIBLE) {\n Animation animation = getOutAnimation();\n mView.startAnimation(animation);\n mView.setVisibility(View.GONE);\n }\n }", "private void hide() {\n\t}", "protected void hideViewContents() {\n\t\tnoData.heightHint = -1;\n\t\tyesData.heightHint = 0;\n\n\t\tnoData.exclude = false;\n\t\tyesData.exclude = true;\n\n\t\tnoLabel.setVisible(true);\n\t\tyesComposite.setVisible(false);\n\t\tredraw();\n\t}", "@Override\n\tpublic void onHide() {\n\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "public void hide() {\n super.hide();\n }", "@Override\n public void wasHidden() {\n hide();\n }", "public void hide() {\n }", "private void hide() {\n if (inflatedView != null && activityWeakReference != null && activityWeakReference.get() != null) {\n inflatedView.startAnimation(hideAnimation);\n inflatedView = null;\n } else {\n Timber.e(\"Trying to call hide() on a null view InternetIndicatorOverlay.\");\n }\n }", "void hide();", "default void hide() { }", "void hideNoneParametersView();", "@Override\n\tpublic void onHideScene() {\n\t\t\n\t}", "public void hide() {\n visible=false;\n }", "public void hide() {\n\t\tLinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) mContentView\n\t\t\t\t.getLayoutParams();\n\t\tlp.height = 0;\n\t\tmContentView.setLayoutParams(lp);\n\t}", "public void hide() {\n hidden = true;\n }", "public void hideIt(){\n this.setVisible(false);\n }", "@Override\n public void handleHideEt(View relatedEt, int hideDistance) {\n }", "@Override\n public void hide() {\n mHandler.post(mHide);\n }", "@Override\n\tpublic void hide() {\n\t\tdispose();\n\t}", "public void hide() {\r\n\t\tif (item != null) { \r\n\t ShowCaseStandalone.slog(Level.FINEST, \"Hiding showcase: \" + getSHA1());\r\n\t item.remove();\r\n\t \r\n\t int\t\tx\t= getSpawnLocation().getBlockX();\r\n\t int \ty \t= 0;\r\n\t int \tz\t= getSpawnLocation().getBlockZ();\r\n\t World\tw\t= getSpawnLocation().getWorld();\r\n\t \r\n\t item.teleport(new Location(w, x, y, z));\r\n\t\t\titem \t= null;\r\n\t\t}\r\n\t\tisVisible\t= false;\r\n\t}", "public void hide() {\n\t\thidden = true;\n\t}", "@Override\n\tpublic void hide() {\n\t\tdispose();\n\n\t}", "public boolean isHidden();", "@Override\r\n\tpublic void hide() {\n\t\tthis.dispose();\r\n\t\t\r\n\t}", "@Override\n public void makeHidden(Player viewer) {\n \n }", "public void removeFromSuperview(){\n setVisibility(View.INVISIBLE);\n if (listener != null){\n listener.OnVisible(false);\n }\n }", "abstract void onHidden();", "@Override\n\tpublic View getCustomView() {\n\t\treturn null;\n\t}", "private void hideOrShowSomeViews() {\n if (mIsWithMultimediaMethod) {\n mBtnMedia.setVisibility(View.VISIBLE);\n mBtnEmotion.setVisibility(View.VISIBLE);\n } else {\n mBtnMedia.setVisibility(View.GONE);\n mBtnEmotion.setVisibility(View.GONE);\n }\n\n // 重新 inflate 面板,并设置点击事件\n layoutMediaWrapper.removeAllViews();\n if (mIsWithCallMethod) {\n LayoutInflater.from(mContext).inflate(R.layout.msg_message_composer_inputmedia,\n layoutMediaWrapper, true);\n } else {\n LayoutInflater.from(mContext).inflate(R.layout.msg_message_composer_inputmedia_without_call,\n layoutMediaWrapper, true);\n }\n setupMediaInputButtonsClickEventHandler();\n }", "public void hide() {\n \t\tmContext.unregisterReceiver(mHUDController.mConfigChangeReceiver);\n \t\tmHighlighter.hide();\n \t\tmHUDController.hide();\n \t}", "protected abstract void onHideRuntime();", "private void chooseView(final LinearLayout SHOWN, final LinearLayout HIDDEN)\n {\n SHOWN.setVisibility( View.GONE );\n HIDDEN.setVisibility( View.VISIBLE );\n }", "private void hideMatchView() {\n mMatchShadowView.animate().alpha(0);\n\n mMatchView.animate()\n .translationY(-mMatchView.getHeight())\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n mMatchView.setVisibility(View.INVISIBLE);\n }\n });\n }", "private void switchToNoContentView() {\n no_content.setVisibility(View.VISIBLE);\n mRecyclerView.setVisibility(View.GONE);\n }", "public void hideGebruikersBeheerPanel() {gebruikersBeheerView.setVisible(false);}", "@Override\n\tpublic void onInvisible() {\n\n\t}", "public void hideChat() {\n eventView.setVisible(false);\n }", "@Override\n public void onShowCustomView(View view,CustomViewCallback callback) {\n if (mCustomView != null) {\n callback.onCustomViewHidden();\n return;\n }\n mCustomView = view;\n webView.setVisibility(View.GONE);\n customViewContainer.setVisibility(View.VISIBLE);\n customViewContainer.addView(view);\n customViewCallback = callback;\n }", "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"hide called\"); \n\t}", "@Override\r\n public void hide() {\r\n dispose();\r\n }", "private void showNoView(boolean isShown){\n if(isShown){\n mNoMatchesImageView.setVisibility(View.VISIBLE);\n mNoMatchesTextView.setVisibility(View.VISIBLE);\n }else{\n mNoMatchesImageView.setVisibility(View.GONE);\n mNoMatchesTextView.setVisibility(View.GONE);\n }\n }", "public void delhiFalse(View view) {\n delhi = false;\n }", "public boolean shouldHide() {\n\t\treturn hide;\n\t}" ]
[ "0.7967074", "0.7256161", "0.72066396", "0.7197229", "0.71449065", "0.71449065", "0.71449065", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.71322477", "0.7130868", "0.7130868", "0.7130868", "0.7130868", "0.7130868", "0.7130868", "0.7130868", "0.7130868", "0.71292835", "0.71292835", "0.71292835", "0.71292835", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.7122224", "0.71210265", "0.7061242", "0.7061242", "0.7039695", "0.7014032", "0.7009144", "0.7005716", "0.7003191", "0.7003191", "0.7003191", "0.7003191", "0.6963624", "0.69466114", "0.6939097", "0.69386125", "0.693374", "0.675792", "0.6750976", "0.67075974", "0.6705423", "0.6704604", "0.66855055", "0.6668731", "0.66518104", "0.66391164", "0.6626347", "0.6614694", "0.6613738", "0.66013443", "0.65361416", "0.65225226", "0.6508203", "0.6463203", "0.64572847", "0.64522463", "0.6451311", "0.6427996", "0.64163226", "0.64115745", "0.64028233", "0.63875884", "0.6346445", "0.63429666", "0.6341255", "0.6331866", "0.6330168", "0.6327374", "0.6300228", "0.62899244", "0.62886095" ]
0.0
-1
Created by matthew on 2020/5/17 15:34 day day up!
public interface IHistoryDaoCallback { /** * 添加历史的结果 * * @param isSuccess */ void onHistoryAdd(boolean isSuccess); /** * 删除历史的结果 * * @param isSuccess */ void onHistoryDel(boolean isSuccess); /** * 历史数据加载的结果 * * @param tracks */ void onHistoriesLoaded(List<Track> tracks); /** * 历史内容清楚结果 */ void onHistoriesClean(boolean isSuccess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public void mo21877s() {\n }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo4359a() {\n }", "public final void mo91715d() {\n }", "public abstract void mo56925d();", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21878t() {\n }", "public void mo55254a() {\n }", "public void mo21779D() {\n }", "private void m50367F() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo3749d() {\n }", "public void mo12628c() {\n }", "@Override\n public void perish() {\n \n }", "public void mo12930a() {\n }", "public void mo97908d() {\n }", "public void mo21794S() {\n }", "public void method_4270() {}", "protected void mo6255a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo21795T() {\n }", "public void mo56167c() {\n }", "public void mo1531a() {\n }", "public void mo21785J() {\n }", "public abstract String mo13682d();", "public abstract long mo9229aD();", "public static void listing5_14() {\n }", "public void m23075a() {\n }", "public void mo21783H() {\n }", "zzafe mo29840Y() throws RemoteException;", "private void poetries() {\n\n\t}", "public void mo44053a() {\n }", "public void mo2470d() {\n }", "public void mo9848a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public abstract void mo70713b();", "public void mo3376r() {\n }", "public String getName() {\n/* 50 */ return \"M\";\n/* */ }", "public void mo21782G() {\n }", "public void mo21787L() {\n }", "private Zeroes() {\n // This space intentionally left blank.\n }", "public void mo2471e() {\n }", "public void mo21792Q() {\n }", "public Pitonyak_09_02() {\r\n }", "public void mo1405e() {\n }", "public static void listing5_16() {\n }", "public void mo115190b() {\n }", "void m1864a() {\r\n }", "private void kk12() {\n\n\t}", "public void mo21788M() {\n }", "zzang mo29839S() throws RemoteException;", "void mo17013d();", "public void mo5382o() {\n }", "public abstract String mo41079d();", "void mo60893b();", "public void mo21793R() {\n }", "public void mo21791P() {\n }", "public void mo21879u() {\n }", "public abstract String mo9239aw();", "public abstract String mo118046b();", "public abstract void mo6549b();", "public void mo1403c() {\n }", "abstract String mo1748c();", "public void mo5248a() {\n }", "public void mo6944a() {\n }", "static void feladat7() {\n\t}", "public void mo21786K() {\n }", "public void mo21780E() {\n }", "public void mo21789N() {\n }", "zzana mo29855eb() throws RemoteException;", "void mo1506m();", "void mo21073d();", "public abstract long mo9743h();", "static void feladat5() {\n\t}", "public abstract int mo9754s();", "static void feladat6() {\n\t}", "public void mo1976s() throws cf {\r\n }", "void mo57277b();", "public void mo9137b() {\n }", "static void feladat9() {\n\t}", "void mo17023d();", "public final void mo8775b() {\n }", "public void mo115188a() {\n }", "public abstract void mo27386d();", "void mo67924c();", "void mo1507n();", "public static void listing5_15() {\n }" ]
[ "0.5209859", "0.5202735", "0.51136553", "0.51021653", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5074399", "0.5039181", "0.50339526", "0.5008947", "0.49992177", "0.49832502", "0.49763894", "0.49069637", "0.49055064", "0.48970243", "0.48924702", "0.48879853", "0.48860437", "0.48708072", "0.48702112", "0.4862834", "0.48554388", "0.48545513", "0.48535863", "0.4848277", "0.48408693", "0.48406997", "0.48383868", "0.4826019", "0.48242143", "0.48151332", "0.48107332", "0.4807924", "0.48043704", "0.4797603", "0.4794884", "0.47896188", "0.4783388", "0.477136", "0.47688422", "0.4765872", "0.47571066", "0.47565225", "0.47535306", "0.47495455", "0.47477472", "0.47425893", "0.4732196", "0.47184077", "0.47154737", "0.47087592", "0.47009176", "0.47005737", "0.46931776", "0.46851972", "0.4684675", "0.4678424", "0.4677548", "0.4676203", "0.4675699", "0.4665738", "0.46655622", "0.46608052", "0.4646178", "0.46450064", "0.4644276", "0.4643975", "0.46402976", "0.4636676", "0.46364728", "0.46267885", "0.4618416", "0.46172488", "0.46159136", "0.4613914", "0.46131074", "0.4613037", "0.46117988", "0.4610727", "0.46099764", "0.46097854", "0.4604215", "0.46039388", "0.46015185", "0.4600465", "0.45970544", "0.45965117", "0.45931506", "0.4593059", "0.45910448", "0.4588491", "0.45854178", "0.4583701", "0.45820886", "0.4579384", "0.45776924" ]
0.0
-1
O array de valores (vals) nao pode ser null Se este for o caso, gostariamos de indicar que aconteceu um erro Para isso, gostariamos de usar a mesma abordagem do metodo acima No entanto, como a media pode ser um valor positivo, zero ou um valor negativo, nao temos um valor especial que seja diferente de todos os possiveis valores de retorno deste metodo Se o array de valores (vals) eh null, o que fazer?
public double calculaMedia(int[] vals) { if (vals == null) { System.out.println("vals == null: Como indicar que aconteceu um" + " erro e interromper a execucao normal do metodo " + "calculaMedia?"); } int soma = 0; for(int val : vals) { soma += val; } return soma / vals.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "public void setValoracionMedia(int valoracionMedia){\n if(valoracionMedia < 0 || valoracionMedia > 5){\n throw new IllegalArgumentException(\"Valoracion media fuera del rango [0, 5]. Valoracion media recibida = \"+valoracionMedia);\n }\n this.valoracionMedia = valoracionMedia;\n }", "@Test\r\n public void testDesvioPadrao() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87); \r\n \r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 1.2);\r\n }", "@Ignore\n\t@Test\n\tpublic void testaMediaDeZeroLance() {\n\t\tLeilao leilao = new Leilao(\"Iphone 7\");\n\n//\t\tcriaAvaliador();\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// validacao\n\t\tassertEquals(0, leiloeiro.getValorMedio(), 0.0001);\n\t}", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "public void nullValues() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Null values ​​are not allowed or incorrect values\");\r\n\t}", "int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }", "private static double mediana(List<Double> valores){\n\t\tdouble mediana;\n\t\tif(valores.size()%2==0){\n\t\t\tmediana = (valores.get(valores.size()/2) + valores.get(valores.size()/2-1))/2;\n\t\t}else{\n\t\t\tmediana = valores.get(valores.size()/2);\n\t\t}\n\t\treturn mediana;\n\t}", "private float parametroEstadistico(int e) {\n\n int[] porError={20,10,9,8,7,6,5};\n float[] z = {(float) 1.28,(float) 1.65,(float) 1.69,(float) 1.75,(float) 1.81,(float) 1.88,(float) 1.96 };\n float valor=0;\n\n for(int i = 0 ; i < porError.length ; i++){\n if(e == porError[i]) {\n valor = z[i];\n }\n }\n return valor;\n }", "private String getAlertaPorValor(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status OK, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\n\t\t// Verifica se o contador classifica como alerta\n\t\tdouble valor = ultimoEvento.getValorContador();\n\t\t// Verifica se o contador classifica como alerta pelo valor minimo ou maximo\n\t\tif ( valor > alarme.getValorMinFalha() && valor < alarme.getValorMinAlerta() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxAlerta() && valor < alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\t// Verifica se o contador classifica como falha. Devido a hierarquia de erro\n\t\t// o teste para falha e feito posterior pois logicamente tem uma gravidade superior\n\t\tif ( valor < alarme.getValorMinFalha() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\tlogger.debug(alarme.getIdAlarme()+\" - Contador:\"+valor);\n\t\treturn alerta;\n\t}", "public int notaMedia() {\n\t\tint media = 0;\n\t\t//sumatoria\n\t\tfor (Integer integer : notas) {\n\t\t\tmedia += integer.intValue();\n\t\t}\n\t\t//division\n //control divison por 0\n if(notas.size() != 0){\n\t\tmedia /= notas.size();\n }\n\t\treturn media;\n\t}", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "@Test\n public void givenInputWithNullFields_ShouldGenerateValueArrayError() throws IOException {\n WeatherSignal input = new WeatherSignal();\n\n kiqt.<WeatherSignal>theInputStream().given(Collections.singletonList(input));\n\n Matcher<AbstractErrorModel> expectedError = Matchers.instanceOf(DefaultErrorModel.class);\n\n kiqt.theErrorOutput().within(30, TimeUnit.SECONDS)\n .should(\"expected an error for null input\", Matchers.contains(expectedError));\n }", "@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }", "public double ValidaValor(){\n\t return 0;\n }", "private static int calcularMedia(int[] notas) {\n\t\tint media = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tmedia = media + notas[i];\n\n\t\t}\n\t\treturn media/notas.length;\n\t}", "@Test(expected = NullValueException.class)\n public void testFilterBadData() throws Exception {\n maxFilter.filter(null);\n }", "@Override\n public Value[] getValues() throws ValueFormatException, RepositoryException {\n return null;\n }", "@java.lang.Override\n public com.google.protobuf.Value getMediaOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetMedia().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "private BigInteger(int[] val) {\n if (val.length == 0)\n throw new NumberFormatException(\"Zero length BigInteger\");\n\n if (val[0] < 0) {\n mag = makePositive(val);\n signum = -1;\n } else {\n mag = trustedStripLeadingZeroInts(val);\n signum = (mag.length == 0 ? 0 : 1);\n }\n if (mag.length >= MAX_MAG_LENGTH) {\n checkRange();\n }\n }", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "@java.lang.Override\n public com.google.protobuf.Value getMediaOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetMedia().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}", "private static <T> T randomValue(T[] values) {\n return (values != null && values.length > 0) ?\n values[RandomUtils.nextInt(0, values.length)] :\n null;\n }", "private void validateArgumentValues() throws ArgBoxException {\n\t\tfinal List<String> errorMessages = new ArrayList<>();\n\t\tparsedArguments.values().stream()\n\t\t\t\t.filter(parsedArg -> parsedArg.isValueRequired())\n\t\t\t\t.filter(parsedArg -> {\n\t\t\t\t\tfinal boolean emptyValue = null == parsedArg.getValue();\n\t\t\t\t\tif (emptyValue) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The argument %1s has no value !\", parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t\treturn !emptyValue;\n\t\t\t\t})\n\t\t\t\t.peek(parsedArg -> {\n\t\t\t\t\tif (parsedArg.getValidator().negate().test(parsedArg.getValue())) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The value %1s for the argument %2s is not valid !\",\n\t\t\t\t\t\t\t\tparsedArg.getValue(), parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.close();\n\t\tthrowException(() -> CollectionUtils.isNotEmpty(errorMessages),\n\t\t\t\tgetArgBoxExceptionSupplier(\"One or more arguments have errors with their values !\", errorMessages));\n\t}", "protected float findVoidValue(Grid grid) {\n float min = new MinMaxOperator(progressIndicator).findMin(grid);\n String voidValue = \"-9999\";\n while (Float.parseFloat(voidValue) >= min) {\n voidValue += \"9\";\n }\n return Float.parseFloat(voidValue);\n }", "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void checkMetadataTypeValues() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n if ( !dtype.hasRole(DashDataType.Role.FILE_METADATA) )\n continue;\n\n if ( dtype instanceof StringDashDataType ) {\n String singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n String thisVal = (String) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differeing given values '\" +\n singleVal + \"' and \" + thisVal + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n Integer singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Integer thisVal = (Integer) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differing given values '\" +\n singleVal.toString() + \"' and '\" + thisVal.toString() + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n Double singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Double thisVal = (Double) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n if ( Math.abs(singleVal - thisVal) < 1.0E-6 )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(String.format(\"%s has differing given values '%g' and '%g'\",\n dtype.getDisplayName(), singleVal, thisVal));\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in metadata column checking: \" + dtype);\n }\n }\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testInvalidScalingPerturbDataSet() throws Exception {\n int[] result = NoiseGenerator.perturbDataSet(dataSet, -1);\n Assert.assertTrue(result == null);\n }", "private Double getMax(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.max(d, ret);\n }\n return ret;\n }", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "@Test\n public void testAnalisarDados() throws Exception {\n System.out.println(\"analisarDados\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n Integer[] expResult = null;\n String time = \"\";\n String tipoOrdenacao = \"\";\n Integer[] resultArray = null;\n \n int[] result = ProjetoV1.analisarDados(dadosFicheiro, linhas, time, tipoOrdenacao);\n if(result != null){\n resultArray= ArrayUtils.converterParaArrayInteger(result); \n }\n \n assertArrayEquals(expResult, resultArray);\n\n }", "float getNullValues(Object elementID) throws Exception;", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "public String findMax(String[] vals)\r\n\t{\r\n\t\treturn \"nothing yet\";\r\n\t}", "boolean getPredefinedValuesNull();", "public InvalidRifValueException() {}", "private void validaDados(int numeroDePacientes, double gastosEmCongressos) throws Exception{\n\t\tif(numeroDePacientes >= 0) {\n\t\t\tthis.numeroDePacientes = numeroDePacientes;\n\t\t}else {\n\t\t\tthrow new Exception(\"O numero de pacientes atendidos pelo medico nao pode ser negativo.\");\n\t\t}\n\t\tif(gastosEmCongressos >= 0) {\n\t\t\tthis.gastosEmCongressos = gastosEmCongressos;\n\t\t}else {\n\t\t\tthrow new Exception(\"O total de gastos em congressos do medico nao pode ser negativo.\");\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public static float findMaxValue(float... values) {\n // Check for null values\n if (values == null || values.length == 0) return 0;\n\n // Cycle all other values\n float max = Float.MIN_VALUE;\n for (float value : values) {\n // Find the max\n if (max < value) max = value;\n }\n // Return\n return max;\n }", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "private void avaliar(ArrayList<ArmazenaErroOuAvisoAntigo> erros) {\r\n\r\n\t\tArmazenaErroOuAvisoAntigo erro = null;\r\n\r\n\t\t/*\r\n\t\t * Itera os erros.\r\n\t\t */\r\n\t\tfor (Iterator<ArmazenaErroOuAvisoAntigo> iteracao = erros.iterator(); iteracao.hasNext();) {\r\n\r\n\t\t\terro = iteracao.next();\r\n\r\n\t\t\t/*\r\n\t\t\t * Identacao da tag.\r\n\t\t\t */\r\n\t\t\terro.setEspaco(Espaco2Tag);\r\n\r\n\t\t\t/*\r\n\t\t\t * Tag em texto.\r\n\t\t\t */\r\n\t\t\terro.setTagCompleta(tagCompleta);\r\n\r\n\t\t\t/*\r\n\t\t\t * Posicao da tag.\r\n\t\t\t */\r\n\t\t\terro.setPosicao(new Posicao2(linhaTag, colunaTag));\r\n\r\n\t\t\t// System.out.print(\"erro.getProcurado()=\"+erro.getProcurado()+\"\\n\");\r\n\t\t\t// System.out.print(\"erro.isTag()=\"+erro.isTag()+\"\\n\");\r\n\t\t\t// if((currentTagName.equals(\"option\") ||\r\n\t\t\t// (currentTagName.equals(\"input\") &&\r\n\t\t\t// tagCompleta.toLowerCase().contains(\"hidden\"))) &&\r\n\t\t\t// erro.getProcurado().equals(\"VALUE\")){\r\n\t\t\t// Esses erros nao existem, tentar otimizar depois\r\n\t\t\t// }else{\r\n\t\t\tif (currentTagName.equals(\"input\")\r\n\t\t\t\t\t&& (tagCompleta.toLowerCase().contains(\"submit\") || tagCompleta.toLowerCase().contains(\"buttom\"))\r\n\t\t\t\t\t&& erro.getProcurado().equals(\"ONCLICK\")) {\r\n\r\n\t\t\t\t// System.out.print(\"erro.getProcurado()=\" + erro.getProcurado()\r\n\t\t\t\t// + \"\\n\");\r\n\t\t\t\t// System.out.print(\"Erro omitido\\n\");\r\n\r\n\t\t\t\treturn;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Se erro deve ser passado pela avaliacao de tag, senao agrupe\r\n\t\t\t * direto na lista de erros.\r\n\t\t\t */\r\n\r\n\t\t\tif (erro.isTag()) {\r\n\r\n\t\t\t\tsetErrados(erro);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// agrupar na lista de erros\r\n\t\t\t\terrados.add(erro);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// }\r\n\r\n\t\t}\r\n\t}", "private boolean buscarUnidadMedida(String valor) {\n\t\ttry {\n\t\t\tlistUnidadMedida = unidadMedidaI.getAll(Unidadmedida.class);\n\t\t} catch (Exception e) {\n\t\n\t\t}\n\n\t\tboolean resultado = false;\n\t\tfor (Unidadmedida tipo : listUnidadMedida) {\n\t\t\tif (tipo.getMedidaUm().equals(valor)) {\n\t\t\t\tresultado = true;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresultado = false;\n\t\t\t}\n\t\t}\n\n\t\treturn resultado;\n\t}", "public String validarObrigatoriedadeCampos(String nome, int radioSelecionado){\n if(nome.isEmpty()) {\n return context.getString(R.string.msg_cadastrar_receita_obrigatorio_nome);\n }\n else if(radioSelecionado < 0) {\n return context.getString(R.string.msg_cadastrar_receita_obrigatorio_tipo);\n }\n\n return null;\n }", "public static Integer media(List<Integer> numeros) {\r\n Integer quantidade = numeros.size();\r\n Integer valorT = 0;\r\n for (int i = 0; i < numeros.size(); i++) {\r\n valorT = valorT + numeros.get(i);\r\n }\r\n Integer calculo = valorT / quantidade;\r\n return calculo;\r\n }", "@java.lang.Override\n public build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValOrBuilder() {\n return val_ == null ? build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_;\n }", "public static Resultado Def_MSGD(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n int inicio=0, fin=0,cont; \n int demandaColocada=0;\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres 1=libre 0=ocupado\n /*for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n */\n \n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres POR CADA CAMINO 1=libre 0=ocupado\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado. r fin e inicio son los indices del FS a usar\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }", "public static void respuesta() { TODO code application logic here\n\n //\n int nNumeroFilas = 0;\n int nNumeroColumnas = 0;\n int nValorMaximo = 0;\n int nValorMinimo = 0;\n String MensajeError = \"\";\n MensajeError += \"No ha ingresado número\";\n String MensajeError2 = \"\";\n MensajeError2 += \"No puede salir del programa\";\n try {\n nNumeroFilas = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el # de Filas : \"));\n nNumeroColumnas = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el # de Columnas : \"));\n nValorMinimo = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el Valor Minimo : \"));\n nValorMaximo = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el Valor Maximo : \"));\n } catch (NumberFormatException e) {\n\n JOptionPane.showMessageDialog(null, MensajeError);\n } catch (NullPointerException e) {\n\n JOptionPane.showMessageDialog(null, MensajeError2);\n }\n JOptionPane.showMessageDialog(null, ImpresionMatriz(DevuelveMatriz(nNumeroFilas, nNumeroColumnas,\n nValorMaximo, nValorMinimo), nNumeroFilas, nNumeroColumnas));\n\n }", "@Test(expectedExceptions = OpenGammaRuntimeException.class)\n public void testGetSingleValueMultipleValues() {\n new ConfigSearchResult<>(CONFIGS).getSingleValue();\n }", "public String[][] medianaDeTres(String[][] arr, int primeiro, int ultimo, int requiredData) {\r\n\t\tif (requiredData != 4) {\r\n\t\t\tif (primeiro < ultimo) {\r\n\r\n\t\t\t\tint meio = ((primeiro + ultimo) / 2);\r\n\t\t\t\tint a = Integer.parseInt(arr[primeiro][requiredData]);\r\n\t\t\t\tint b = Integer.parseInt(arr[meio][requiredData]);\r\n\t\t\t\tint c = Integer.parseInt(arr[ultimo][requiredData]);\r\n\t\t\t\tint medianaIndice;\r\n\r\n\t\t\t\tif (a < b) {\r\n\t\t\t\t\tif (b < c) {\r\n\t\t\t\t\t\t// a < b && b < c\r\n\t\t\t\t\t\tmedianaIndice = meio;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (a < c) {\r\n\t\t\t\t\t\t\t// a < c && c <= b\r\n\t\t\t\t\t\t\tmedianaIndice = ultimo;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// c <= a && a < b\r\n\t\t\t\t\t\t\tmedianaIndice = primeiro;\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\tif (c < b) {\r\n\t\t\t\t\t\t// c < b && b <= a\r\n\t\t\t\t\t\tmedianaIndice = meio;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (c < a) {\r\n\t\t\t\t\t\t\t// b <= c && c < a\r\n\t\t\t\t\t\t\tmedianaIndice = ultimo;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// b <= a && a <= c\r\n\t\t\t\t\t\t\tmedianaIndice = primeiro;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswap(arr, medianaIndice, ultimo);\r\n\r\n\t\t\t\tint pivo = Integer.parseInt(arr[ultimo][requiredData]);\r\n\r\n\t\t\t\tint i = (primeiro - 1);\r\n\t\t\t\tfor (int j = primeiro; j <= ultimo - 1; j++) {\r\n\r\n\t\t\t\t\tif (Integer.parseInt(arr[j][requiredData]) < pivo) {\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\tString[] aux = arr[i];\r\n\t\t\t\t\t\tarr[i] = arr[j];\r\n\t\t\t\t\t\tarr[j] = aux;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString[] aux = arr[i + 1];\r\n\t\t\t\tarr[i + 1] = arr[ultimo];\r\n\t\t\t\tarr[ultimo] = aux;\r\n\t\t\t\tint piAux = i + 1;\r\n\r\n\t\t\t\tmedianaDeTres(arr, primeiro, piAux - 1, requiredData);\r\n\t\t\t\tmedianaDeTres(arr, piAux + 1, ultimo, requiredData);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (primeiro < ultimo) {\r\n\t\t\t\tCollator collator = Collator.getInstance();\r\n\t\t\t\tcollator.setStrength(Collator.NO_DECOMPOSITION);\r\n\t\t\t\tint meio = ((primeiro + ultimo) / 2);\r\n\t\t\t\tString a = (arr[primeiro][requiredData]);\r\n\t\t\t\tString b = (arr[meio][requiredData]);\r\n\t\t\t\tString c = (arr[ultimo][requiredData]);\r\n\t\t\t\tint medianaIndice;\r\n\r\n\t\t\t\tif (collator.compare(b, a) > 0) {\r\n\t\t\t\t\tif (collator.compare(c, b) > 0) {\r\n\t\t\t\t\t\t// a < b && b < c\r\n\t\t\t\t\t\tmedianaIndice = meio;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (collator.compare(c, a) > 0) {\r\n\t\t\t\t\t\t\t// a < c && c <= b\r\n\t\t\t\t\t\t\tmedianaIndice = ultimo;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// c <= a && a < b\r\n\t\t\t\t\t\t\tmedianaIndice = primeiro;\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\tif (collator.compare(b, c) > 0) {\r\n\t\t\t\t\t\t// c < b && b <= a\r\n\t\t\t\t\t\tmedianaIndice = meio;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (collator.compare(a, c) > 0) {\r\n\t\t\t\t\t\t\t// b <= c && c < a\r\n\t\t\t\t\t\t\tmedianaIndice = ultimo;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// b <= a && a <= c\r\n\t\t\t\t\t\t\tmedianaIndice = primeiro;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswap(arr, medianaIndice, ultimo);\r\n\r\n\t\t\t\tString pivo = (arr[ultimo][requiredData]);\r\n\r\n\t\t\t\tint i = (primeiro - 1);\r\n\t\t\t\tfor (int j = primeiro; j <= ultimo - 1; j++) {\r\n\r\n\t\t\t\t\tif (collator.compare(pivo, arr[j][requiredData]) > 0) {\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\tString[] aux = arr[i];\r\n\t\t\t\t\t\tarr[i] = arr[j];\r\n\t\t\t\t\t\tarr[j] = aux;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString[] aux = arr[i + 1];\r\n\t\t\t\tarr[i + 1] = arr[ultimo];\r\n\t\t\t\tarr[ultimo] = aux;\r\n\t\t\t\tint piAux = i + 1;\r\n\r\n\t\t\t\tmedianaDeTres(arr, primeiro, piAux - 1, requiredData);\r\n\t\t\t\tmedianaDeTres(arr, piAux + 1, ultimo, requiredData);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "public int getNumPossibleValues()\n {\n return -1;\n }", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Varia&ccedil;&atilde;o Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Varia&ccedil;&atilde;o Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Varia&ccedil;&atilde;o M&eacute;dia\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}", "@GetMapping(\"/motivos/null\")\n\tList<ReservasEntity> findByMotivoIsNull() {\n\t\treturn reservaRepo.findByMotivoIsNull();\n\t}", "public int consultaMesa(int mesa){\n \n int val;\n if(mesas[mesa-1] == 0){\n System.out.println(\"¡¡¡mesa disponible!!!\");\n \n System.out.println(\"¿desea asignar esta mesa a algun comensal?\\n1.-si\\n2.-no \"); //pregunta si quiere agregar comensal \n val = num.nextInt();\n \n if(val < 1 || val > 2){\n System.out.println(\"el valor es invalido\");\n }else if(val == 1){ //ingresa si es necesario\n //llamar funcion\n \n System.out.println(\"ingrese nombre de comensal: \");\n num.nextLine();\n comensal = num.nextLine();\n asignaMesa(comensal,mesa);\n }else if(val == 2){\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<mesas.length;i++){ \n System.out.print(\" \"+mesas[i]);\n }\n }\n }else if(mesas[mesa-1] == 1){\n System.out.println(\"mesa ocupada\");\n System.out.println(\"estas son las mesas disponibles: \");\n for(int i=0;i<10;i++){\n System.out.print(\" \"+mesas[i]);\n }\n }\n return 0;\n }", "private static int gravidadeTempo(int[] limites, int valor) {\n\t\tint result = -1;\n\t\tfor(int i = 0 ; i < limites.length && result == -1 ; i++) {\n\t\t\tif(valor <= limites[i]) {\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\n\t\treturn result == -1 ? limites.length : result;\n\t}", "int checkNull(int value) {\n return (value != Tables.INTNULL ? value : 0);\n }", "public void pagarFerrovia(int credor, int devedor, int valor, String NomePopriedade) {\n\n Jogador JogadorDevedor = listaJogadores.get(devedor);\n Jogador JogadorCredor = listaJogadores.get(credor);\n if ((NomePopriedade.equals(\"Reading Railroad\")) ||\n (NomePopriedade.equals(\"Pennsylvania Railroad\")) ||\n (NomePopriedade.equals(\"B & O Railroad\")) ||\n (NomePopriedade.equals(\"Short Line Railroad\"))) {\n int quantidadeFerrovias = DonosFerrovias[credor];\n int divida = quantidadeFerrovias * valor;\n this.print(\"Credor tem \" + quantidadeFerrovias);\n this.print(\"Divida eh \" + divida);\n\n if (listaJogadores.get(devedor).getDinheiro() >= divida) {\n JogadorDevedor.retirarDinheiro(divida);\n JogadorCredor.addDinheiro(divida);\n this.print(\"aqui\");\n\n } else {\n int DinheiroRestante = listaJogadores.get(devedor).getDinheiro();\n JogadorDevedor.retirarDinheiro(DinheiroRestante);\n\n if(bankruptcy);\n\n else\n JogadorCredor.addDinheiro(DinheiroRestante);\n this.removePlayer(devedor);\n\n }\n\n }\n }", "public void actualizarImagenConError() {\n\t\tentidadGrafica.actualizarImagenConError(this.valor);\n\t}", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}", "public double getValorInvalido() {\n\t\treturn valorInvalido;\n\t}", "default V getOrThrow() {\n return getOrThrow(\"null\");\n }", "public void verificaNulo(Object parametro, String mensagem) {\n if (parametro == null) {\n throw new NullPointerException(this.msgGeral + mensagem);\n }\n }", "public void setValor(Integer valor) {\n\t\tif (valor!=null && valor < this.getCantElementos()) {\n\t\t\tthis.valor = valor;\n\t\t\tthis.entidadGrafica.actualizarImagen(this.valor);\n\t\t}else {\n\t\t\tthis.valor = null;\n\t\t}\n\t}", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "@Override\n protected void adicionarLetrasErradas() {\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();", "private void throwIfNullValue(final V value) {\n if (value == null) {\n throw new IllegalArgumentException(\"null values are not supported\");\n }\n }", "public void testPackUnpackOutOfRangeValues() {\n\n\t\t// Test pack\n\t\tRtpPacket rtpPacket = new RtpPacket();\n\n\t\ttry {\n\t\t\trtpPacket.setV(ByteUtil.getMaxIntValueForNumBits(2) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set V = \" + \n\t\t\t\t(ByteUtil.getMaxIntValueForNumBits(2) + 1) + \": \" + iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setP(ByteUtil.getMaxIntValueForNumBits(1) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set P = \" + (ByteUtil.getMaxIntValueForNumBits(1) + 1) + \": \"\n\t\t\t\t\t\t+ iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setX(ByteUtil.getMaxIntValueForNumBits(1)+ 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set X = \" + (ByteUtil.getMaxIntValueForNumBits(1) + 1) + \": \"\n\t\t\t\t\t\t+ iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setCC(ByteUtil.getMaxIntValueForNumBits(4) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set CC = \" + (ByteUtil.getMaxIntValueForNumBits(4) + 1)\n\t\t\t\t\t\t+ \": \" + iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setM(ByteUtil.getMaxIntValueForNumBits(1) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set M = \" + (ByteUtil.getMaxIntValueForNumBits(1) + 1) + \": \"\n\t\t\t\t\t\t+ iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setPT(ByteUtil.getMaxIntValueForNumBits(7) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set PT = \" + (ByteUtil.getMaxIntValueForNumBits(7) + 1)\n\t\t\t\t\t\t+ \": \" + iae);\n\t\t}\n\n//\t\ttry {\n//\t\t\trtpPacket.setSN(ByteUtil.getMaxIntValueForNumBits(16) + 1);\n//\t\t} catch (IllegalArgumentException iae) {\n//\t\t\tif (logger.isEnabledFor(org.apache.log4j.Level.FATAL))\n//\t\t\t\tlogger.fatal(\"Set SN = \" + (ByteUtil.getMaxIntValueForNumBits(16) + 1)\n//\t\t\t\t\t\t+ \": \" + iae);\n//\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setTS(ByteUtil.getMaxLongValueForNumBits(32) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set TS = \" + (ByteUtil.getMaxLongValueForNumBits(32) + 1)\n\t\t\t\t\t\t+ \": \" + iae);\n\t\t}\n\n\t\ttry {\n\t\t\trtpPacket.setSSRC(ByteUtil.getMaxLongValueForNumBits(32) + 1);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.out.println(\"Set SSRC = \" + (ByteUtil.getMaxLongValueForNumBits(32) + 1)\n\t\t\t\t\t\t+ \": \" + iae);\n\t\t}\n\n\t\tSystem.out.println(\"\\nEnd of test.\");\n\t}", "@java.lang.Override\n public build.buf.validate.conformance.cases.MessageNone.NoneMsg getVal() {\n return val_ == null ? build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_;\n }", "public void verificaInteiroNegativo(int parametro, String mensagem) {\n if (parametro < 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void fixmetestPositiveArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n final String[] values1 = { \"10\", \"20\", \"30\" };\n Object value = LocaleConvertUtils.convert(values1, Integer.TYPE);\n final int[] shape = {};\n assertEquals(shape.getClass(), value.getClass());\n final int[] results1 = (int[]) value;\n assertEquals(results1[0], 10);\n assertEquals(results1[1], 20);\n assertEquals(results1[2], 30);\n\n final String[] values2 = { \"100\", \"200\", \"300\" };\n value = LocaleConvertUtils.convert(values2, shape.getClass());\n assertEquals(shape.getClass(), value.getClass());\n final int[] results2 = (int[]) value;\n assertEquals(results2[0], 100);\n assertEquals(results2[1], 200);\n assertEquals(results2[2], 300);\n }", "@Test\r\n\tpublic void deveValidarCamposObrigatoriosNaMovimentacao() {\r\n\t\t\r\n\t\tgiven()\r\n\t\t\t.body(\"{}\") // mesma coisa que \"nada\"\r\n\t\t.when()\r\n\t\t\t.post(\"/transacoes\")\r\n\t\t.then()\r\n\t\t\t.statusCode(400)\r\n\t\t\t.body(\"$\", hasSize(8))\r\n\t\t\t.body(\"msg\", hasItems(\r\n\t\t\t\t\t\t\"Data da Movimentação é obrigatório\",\r\n\t\t\t\t\t\t\"Data do pagamento é obrigatório\",\r\n\t\t\t\t\t\t\"Descrição é obrigatório\",\r\n\t\t\t\t\t\t\"Interessado é obrigatório\",\r\n\t\t\t\t\t\t\"Valor é obrigatório\",\r\n\t\t\t\t\t\t\"Valor deve ser um número\",\r\n\t\t\t\t\t\t\"Conta é obrigatório\",\r\n\t\t\t\t\t\t\"Situação é obrigatório\"\r\n\t\t\t\t\t))\r\n\t\t;\r\n\t}", "public float liquidarAlquiler(int posicion){\n float valor = -1;\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n valor = alquileres.get(i).getCosteAlquiler();\n alquileres.remove(i);\n posicionEncontrada = true;\n }\n }\n i++;\n }\n return valor;\n }", "public void calcularResultado ( View view )\n {\n \n String strPrediccion= ( (TextView) findViewById(R.id.txtPredSeg) ).getText().toString();\n if( strPrediccion.length() == 0 )\n Toast.makeText(this, \"Debe ingresar su prediccion para saber el resultado.\", Toast.LENGTH_SHORT);\n else\n {\n try {\n int numPred= Integer.parseInt(strPrediccion);\n if( numPred == segundosTranscurridos )\n Toast.makeText(this, \"!!!!! GANASTE !!!!!!!!\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(this, \"SEGUI PARTICIPANDO. LA RESPUESTA CORRECTA ERA: \"+segundosTranscurridos, Toast.LENGTH_LONG).show();\n volverValoresADefault();\n }catch ( Exception x)\n {\n Toast.makeText(this, \"TENES QUE INGRESAR UN NUMEERO ENTERO\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public M csmiCheckPhotoNull(){if(this.get(\"csmiCheckPhotoNot\")==null)this.put(\"csmiCheckPhotoNot\", \"\");this.put(\"csmiCheckPhoto\", null);return this;}", "public boolean validar() {\n if (foto==null){\n Toast.makeText(this, getResources().getString(R.string.error_f), Toast.LENGTH_SHORT).show();\n foto.requestFocus();\n return false;\n }\n\n if (txtID.getText().toString().isEmpty()) {\n txtID.setError(getResources().getString(R.string.error_ID));\n txtID.requestFocus();\n return false;\n }\n\n if (txtNombre.getText().toString().isEmpty()) {\n txtNombre.setError(getResources().getString(R.string.error_nombre));\n txtNombre.requestFocus();\n return false;\n }\n\n if (txtTipo.getText().toString().isEmpty()) {\n txtTipo.setError(getResources().getString(R.string.error_tipo));\n txtTipo.requestFocus();\n return false;\n }\n\n /*if (o1 == 0) {\n Toast.makeText(this, getResources().getString(R.string.error_cantidad), Toast.LENGTH_SHORT).show();\n cmbSexo.requestFocus();\n return false;\n }*/\n\n if (txtCantidad.getText().toString().isEmpty()) {\n txtCantidad.setError(getResources().getString(R.string.error_cantidad));\n txtCantidad.requestFocus();\n return false;\n }\n\n return true;\n\n }", "private Double getMean(Double[] values) {\n double sum = 0;\n int count = 0;\n for (Double d: values) {\n if (d != null) {\n sum += d;\n ++count;\n }\n }\n return count == 0 ? null : (sum / count);\n }", "default V getOrThrow(String message) {\n return Conditions.nonNull(get(), message);\n }", "@Test(expected = NullValueException.class)\n public void testResetBadData() throws Exception {\n assertEquals(300.0, maxFilter.filter(300.0), .01);\n assertEquals(2342342.213, maxFilter.filter(2342342.213), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(840958239423.123213123), .01);\n assertEquals(840958239423.123213123, maxFilter.filter(0.000001232123), .01);\n maxFilter.reset(null);\n }", "public InvalidRifValueException(Throwable cause) {\n super(cause);\n }", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "@Test\n\tpublic void testValidateUpdateQueryWithNullValue1() {\n\t\twhen(repoItem.getPropertyValue(RuleProperty.TARGET)).thenReturn(DefaultRuleAssetValidator.SEARCH_PAGES);\n\t\tupdates.add(mockAssetView(\"query\", null));\t\t\n\t\tdefaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n\t\tverify(assetService).addError(eq(RuleProperty.QUERY), anyString());\t\n\t}", "@Test\n\tpublic void testaGetMediaAtual() throws Exception {\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 0.0,\n\t\t\t\tminitElimBai_1.getMediaAtual(), 0.05);\n\t\tminitElimBai_1.setQtdProvasJaRealizadas(5);\n\t\tminitElimBai_1.adicionaNota(1.0);\n\t\tminitElimBai_1.adicionaNota(2.0);\n\t\tminitElimBai_1.adicionaNota(3.0);\n\t\t// Adicao de duas faltas, pois houve 5 minitestes e so foram feitos 3.\n\t\tminitElimBai_1.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 2,\n\t\t\t\tminitElimBai_1.getMediaAtual(), 0.05);\n\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 0.0,\n\t\t\t\tminitElimBai_2.getMediaAtual(), 0.05);\n\t\tminitElimBai_2.setQtdProvasJaRealizadas(7);\n\t\tminitElimBai_2.adicionaNota(10.0);\n\t\tminitElimBai_2.adicionaNota(5.0);\n\n\t\t// Adicao de 5 faltas, pois houve 7 minitestes e so foram feitos 5\n\t\tminitElimBai_2.adicionaFalta();\n\t\tminitElimBai_2.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 5,\n\t\t\t\tminitElimBai_2.getMediaAtual(), 0.05);\n\t}", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.put(\",\\n\", (Object) null);\n Float float0 = new Float(1.0);\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray(float0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONArray initial value should be a string or collection or array.\n //\n verifyException(\"wheel.json.JSONArray\", e);\n }\n }", "@java.lang.Override\n public /* nullable */ com.google.protobuf.Value getMediaOrDefault(\n java.lang.String key,\n /* nullable */\n com.google.protobuf.Value defaultValue) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetMedia().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }", "@java.lang.Override\n public /* nullable */ com.google.protobuf.Value getMediaOrDefault(\n java.lang.String key,\n /* nullable */\n com.google.protobuf.Value defaultValue) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetMedia().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }", "public void setNumReturnValues(int num) {\n defaultNumReturnValues = (num < 0) ? -1 : num;\n }", "private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }", "Function<RealMatrix, T> getErrorValueNaNProcessor();", "public void testCheckArray_NullInArg() {\n Object[] objects = new Object[] {\"one\", null};\n try {\n Util.checkArray(objects, \"test\");\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public static void main(String...args) {\n\t\t\tint numero,sumaP=0,sumaN=0,contaP=0,contN=0,contC=0;\n\t\t\tfloat mediaP=0,mediaN=0;\n\t\t\t\n\t\t\tfor(int i=1 ; i<=10 ; i++) {\n\t\t\t\tnumero = Integer.parseInt(JOptionPane.showInputDialog(\"digite 10 numeros\"));\n\t\t\t\tif (numero==0) {\n\t\t\t\t\tcontC++;\n\t\t\t\t}\n\t\t\t\telse if(numero>0) {\n\t\t\t\t\tsumaP=sumaP+numero;\n\t\t\t\t\tcontaP++;\n\t\t\t\t}\n\t\t\t\telse if(numero<0) {\n\t\t\t\t\tsumaN=sumaN+numero;\n\t\t\t\t\tcontN++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(contaP==0) {\n\t\t\t\t\tSystem.err.println(\"error no se puede sacar la media de numero postivos\");\n\t\t\t\t}\n\t\t\t\telse {mediaP= (float)sumaP/contaP;}\n\t\t\t\t\n\t\t\t\tif(contN==0) {\n\t\t\t\t\tSystem.out.println(\"No se puede calcular la media de los numero negativos\");\n\t\t\t\t}\n\t\t\t\telse {mediaN=(float)sumaN/contN;}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"se Introduzco \"+contC+\" ceros\");\n\t\t\tSystem.out.println(\"la media de los numeros positos es \"+mediaP);\n\t\t\tSystem.out.println(\"la medai de los numeros negativos es \"+ mediaN);\n\t}", "@Override\n\t\t\tpublic Collection<AnalysisResult> values() {\n\t\t\t\treturn null;\n\t\t\t}", "public void validaNulos( JTextField valor, String texto){\n\t\ttry {\n\t\t\tif(valor.getText().length() < 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\t\tvalor.grabFocus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (NullPointerException ex) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\treturn;\n\t\t}\n\t}" ]
[ "0.56757176", "0.5470263", "0.5293861", "0.5263242", "0.51637673", "0.51613", "0.513037", "0.5128133", "0.5042855", "0.5041759", "0.498325", "0.49791926", "0.496552", "0.49556583", "0.49461913", "0.49329823", "0.48283988", "0.48164344", "0.48023936", "0.4798299", "0.4796711", "0.47852457", "0.47682282", "0.47477254", "0.47317776", "0.4727338", "0.47250775", "0.47132954", "0.47055322", "0.4675862", "0.4674773", "0.46725905", "0.46502316", "0.46479943", "0.46479335", "0.46413437", "0.46148482", "0.4607423", "0.4604861", "0.46020123", "0.45998967", "0.45991156", "0.4579943", "0.4564434", "0.45610687", "0.45462522", "0.45446315", "0.45372245", "0.45293456", "0.45260864", "0.4525889", "0.45177138", "0.45101064", "0.45068017", "0.4506586", "0.45058957", "0.45046064", "0.44996688", "0.44954172", "0.44948015", "0.44920105", "0.44860294", "0.44846106", "0.4482591", "0.44793287", "0.4476815", "0.44726753", "0.44673175", "0.4462417", "0.4450099", "0.44480455", "0.44293776", "0.4427933", "0.44248214", "0.44224903", "0.4412069", "0.4399865", "0.43988022", "0.43962452", "0.4383583", "0.43835196", "0.4378761", "0.4378691", "0.43767405", "0.43721825", "0.4369005", "0.43688667", "0.43672907", "0.43657032", "0.43650562", "0.43642783", "0.43631744", "0.43594792", "0.4358951", "0.43567857", "0.43562704", "0.4355654", "0.4351907", "0.43506676", "0.43504933" ]
0.5777025
0
destroy Node, this method only for api < 11, do not call if min api 11+
@Deprecated public void destroy(){ if (DeviceUtils.getVersionSDK() >= 11){ //just for api < 11 return; } final NodeController controller = this.controller.get(); if (controller != null) { controller.onDestroy(); controller.getLogger().d("[NodeRemoter]destroy (api<11), nodeId:" + controller.getNodeId()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deallocateNode(){\n this.processId = NO_PROCESS;\n this.full = false;\n }", "public void destroy()\n {\n if (spinning)\n stopSpinning();\n node.destroy();\n }", "public void destroy() {\n \t\n }", "public void destroy(PluginNode node, DMConnection con, ALogger logger) {\n\r\n\t}", "public void destroy(PluginNode node, DMConnection con, ALogger logger) {\n\r\n\t}", "public void destroy() {}", "public void destroy() {}", "public void destroy() {\n \n }", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\r\n }", "public void destroy() {\r\n\r\n\t}", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n }", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "void deleteNode(ZVNode node);", "public void destroy()\r\n {\r\n }", "public void destroy() throws Exception;", "public static void destroy() {\n\t}", "default void destroy() {}", "@Override\n public void destroy() {\n }", "public void destroy()\r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tmNtApi.stop();\r\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public final void destroy()\n {\n processDestroy();\n super.destroy();\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy()\r\n {\n }", "public void destroy() {\n // NO OPERATION\n }", "public void destroy()\r\n\t{\r\n\t}", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "public void destroy()\n\t{\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\r\n public void destroy() {\n }", "@Override\r\n public void destroy() {\n }", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}" ]
[ "0.7096436", "0.68371904", "0.6648735", "0.6601139", "0.6601139", "0.65735036", "0.65735036", "0.6565331", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6521389", "0.6498427", "0.6484987", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473753", "0.6473469", "0.6473469", "0.6473469", "0.6473469", "0.64583105", "0.64566636", "0.64566636", "0.64566636", "0.64566636", "0.64566636", "0.64566636", "0.64566636", "0.64566636", "0.6436631", "0.6416279", "0.6411182", "0.63994", "0.6394689", "0.6386263", "0.6381067", "0.63800627", "0.6377506", "0.6377506", "0.6377506", "0.6377506", "0.6377506", "0.6377506", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.6376936", "0.63655967", "0.6361007", "0.6361007", "0.63591975", "0.634933", "0.6342032", "0.6328223", "0.6295774", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.62760574", "0.625981", "0.625981", "0.625981", "0.625981", "0.625981", "0.6257215", "0.6257215", "0.6254619", "0.6254619", "0.6254619", "0.6254619", "0.6254619", "0.6254619", "0.6254619" ]
0.7678141
0
OVERRIDE DEI METODI EREDITATI DA ABSTRACT PLAYER ///////////////////////////////////////////////// notifica l'inizio della partita passando i giocatori avversarie le tessere scomunica
@Override public void gameIsStarted(Map<Integer, String> opponents, List<String> codeList) { try { if (getClientInterface() != null) getClientInterface().isGameStarted(getIdPlayer(), opponents, codeList); } catch (RemoteException e) { System.out.println("remote sending is game started error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void attiva(Player player) {\n\n\t}", "@Override\n public void landedOn(Player player) {}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\n\tpublic void play() {\n\n\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public abstract void isUsedBy(Player player);", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "public abstract boolean isPlayer();", "abstract void updatePlayer();", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "@Override\r\n public void play()\r\n {\n\r\n }", "@Override\r\npublic void Play() {\n\t\r\n}", "protected abstract void internalPlay();", "@Override\n\tpublic void loadPlayer() {\n\t\t\n\t}", "public void playerWon()\r\n {\r\n \r\n }", "public EpicPlayer getEpicPlayer(){ return epicPlayer; }", "public void OnPlayer(Joueur joueur);", "public void gestionDeSonido() {\n if (surface.escenas == 0) {\n if (surface.sonido.players[1].isPlaying()) {\n surface.sonido.players[1].pause();\n surface.sonido.players[0].start();\n } else {\n surface.sonido.players[0].start();\n }\n\n } else if (surface.escenas >= 1 && surface.escenas < 21 && surface.escenas != 8) {\n if (!surface.sonido.players[1].isPlaying() || surface.sonido.players[2].isPlaying()) {\n surface.sonido.players[2].pause();\n surface.sonido.players[0].pause();\n surface.sonido.players[1].start();\n\n }else if(surface.sonido.players[0].isPlaying()){\n surface.sonido.players[0].pause();\n surface.sonido.players[1].start();\n\n }else{\n if(!surface.sonido.players[1].isPlaying()) {\n surface.sonido.players[1].start();\n }\n }\n } else if (surface.escena instanceof Batalla || surface.escena instanceof BatallaFinal) {\n /*if (!surface.sonido.players[2].isPlaying()) {\n surface.sonido.players[1].pause();\n\n surface.sonido.players[2] = new MediaPlayer();\n try {\n surface.sonido.players[2] = MediaPlayer.create(surface.getContext(), R.raw.darkambienceloop);\n } catch (NullPointerException e) {\n\n }\n surface.sonido.players[2].setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n\n public void onPrepared(MediaPlayer mp) {\n surface.sonido.players[2].start();\n }\n });\n }*/\n if(surface.sonido.players[1].isPlaying()&&!surface.sonido.players[2].isPlaying()){\n surface.sonido.players[1].pause();\n surface.sonido.players[2] = new MediaPlayer();\n try {\n surface.sonido.players[2] = MediaPlayer.create(surface.getContext(), R.raw.darkambienceloop);\n } catch (NullPointerException e) {\n\n }\n surface.sonido.players[2].setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n\n public void onPrepared(MediaPlayer mp) {\n surface.sonido.players[2].start();\n }\n });\n }else if(!surface.sonido.players[2].isPlaying()){\n surface.sonido.players[2].start();\n }\n\n }\n }", "@Override\n\tpublic void nowPlaying() {\n\t}", "@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}", "public abstract void activatedBy(Player player);", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\n public void onPreparing(EasyVideoPlayer player) {\n // TODO handle if needed\n }", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "@Override\r\n\tpublic void playCard() {\n\t\t\r\n\t}", "@Override\n public void playStart() {\n }", "@Override\n\tpublic void playCard() {\n\t\t\n\t}", "@Override\n\tpublic void onPlayerMove(PlayerMoveEvent e) {\n\t\t\n\t}", "protected Player getPlayer() { return player; }", "@Override\n public void playEnd() {\n }", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "@Override\r\n public void playGame() {\r\n printInvalidCommandMessage();\r\n }", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void ingresarFicha(VideoJuego juego) {\n\t\t\n\t}", "GameResult start(Player uno , Player due , Model model ,Controller controller , ViewInterface view , gestioneInput io) throws IOException;", "public void setPlayer(SuperMario mario){\r\n this.mario = mario;\r\n }", "public abstract void use(Player player) throws GameException;", "@Override\n public void onCompletion(EasyVideoPlayer player) {\n }", "@Override\n public void imprime(){\n System.out.println(\" ----- Arbol Splay ----- \");\n imprimeAS(super.getRaiz());\n }", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "public interface Player {\n abstract void setVideoUri(String path);\n abstract void playVideo();\n abstract void pauseVideo();\n abstract void initVideo();\n abstract void ffwd();\n abstract void frwd();\n abstract void release();\n abstract void setFirstSubtitle(String path);\n abstract void setSecoundSubtitle(String path);\n abstract void seekTo(int millisec);\n abstract void sinkSubtitle();\n abstract void toggleTopPanel();\n abstract boolean isPlaying();\n abstract int getCurrentPosition();\n}", "@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n return false;\n }", "@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n return false;\n }", "@Override\n public void processPlayer(Player sender, CDPlayer playerData, String[] args) {\n }", "public abstract void play();", "public abstract void play();", "public void play(TrucoEvent event) {\n\t\t/*System.out.println(\"play\");\n\t\tSystem.out.println(\"El trucoplayer de este comm es \"+getTrucoPlayer());\n\t\tSystem.out.println(\"El play hizo \"+event.getPlayer());\n\t\tSystem.out.println(\"eS DE TIPO \"+event.getType());*/\n if (event.getPlayer().getName().equals(getTrucoPlayer().getName())) {\n\n\n //\tSystem.out.println(getClass().getName()+\"se va a hacer un play al server\");\n\n TrucoPlay trucoPlay = event.toTrucoPlay();\n\n//\t\tlogger.debug(\"SE resive un play de \"+trucoPlay.getPlayer().getName());\n//\t\tlogger.debug(\"TAbla : \"+trucoPlay.getTableNumber());\n//\t\tlogger.debug(\"type : \"+trucoPlay.getType());\n//\t\tif(trucoPlay.getCard()!=null)\n//\t\t\tlogger.debug(\"carta Palo: \"+trucoPlay.getCard().getKind() +\" val \"+trucoPlay.getCard().getValue());\n//\t\tlogger.debug(\"value > \"+trucoPlay.getValue());\n super.sendXmlPackage(trucoPlay);\n }\n }", "@Override\r\n\tpublic void efectoPersonaje(Jugador uno) {\r\n\t\tthis.player = uno;\r\n\t\tSystem.out.println(\"Efecto\" + activado);\r\n\t\tif (activado) {\r\n\r\n\t\t\tactivarContador = true;\r\n\t\t\tSystem.out.println(\"EMPEZO CONTADOR\");\r\n\r\n\t\t\tif (player instanceof Verde) {\r\n\t\t\t\tSystem.out.println(\"FUE JUGADOR VERDE\");\r\n\t\t\t\tplayer.setBoost(3);\r\n\t\t\t} else if (player instanceof Morado) {\r\n\t\t\t\tSystem.out.println(\"FUE JUGADOR MORADO\");\r\n\t\t\t\tplayer.setBoost(3);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void loadPlayerCannons() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "public abstract Card giveFavor(int playerIndex);", "private void setPlayerInformations() {\n\t\t\t\n\t\t\t\n\t\t}", "public abstract void accept(Player player, String component);", "public abstract void gameObjectAwakens();", "public abstract void receiveFavor(int playerIndex, Card card);", "@Override\n protected void flamemove ()\n {\n \n }", "public abstract void info(Player p);", "GamePlayAbstract(GameEngine1 p_ge) {\r\n super(p_ge);\r\n }", "public void play(){\n\t\t\n\t}", "@Override\n\tpublic void handleServer(EntityPlayerMP player) {\n\n\t}", "private void BlueEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n BluePlayer player_to_eat = (BluePlayer) player;\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n //player_to_be_eaten.println(\"blue_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "private void RedEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n RedPlayer player_to_eat = (RedPlayer) player;\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n\n //player_to_be_eaten.println(\"red_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "public interface Player {\n /**\n * has to be implemented\n * wird von update() in Game aufgerufen.\n * @return eine der Actions aus Rules.getActionsTileMove()\n */\n GameState requestActionTile();\n /**\n * has to be implemented\n * wird von update() in Game aufgerufen.\n * @return eine der Actions aus Rules.getActionsGamePieceMove()\n */\n GameState requestActionGamePiece();\n\n /**\n * has to be implemented\n * wird von update() aufgerufen.\n * @param gameState aktueller GameState\n */\n void updateGameState(GameState gameState);\n\n GameState getGameState();\n\n /**\n * has to be implemented\n * @return the color of the Player\n */\n Color getColor();\n\n void setRules(Rules rules);\n Rules getRules();\n\n void setName(String name);\n String getName();\n\n void setThread(ThreadUpdate thread);\n void setSynchronizer(Object synchronizer);\n\n /**\n * wird von update aufgerufen, sobald ein anderer Spieler eine Karte gewinnt.\n * @param color Farbe des Spielers, der eine Karte gewonnen hat\n * @param symbol auf dieser Karte\n */\n void notifyWonCards(Color color, Symbol symbol);\n\n /**\n * legt die Karte ganz oben auf dem Stapel, die der Spieler als nächstes gewinnen muss fest.\n * Wird von Game_Impl aufgerufen um dem Player seine Karte mitzuteilen\n * @param symbol neue zu erreichende Karte/Symbol\n */\n void setActiveCard(Symbol symbol);\n\n /**\n * has to be implemented\n * @return the activeCard, that was set by Game_Impl\n */\n Symbol getActiveCard();\n\n\n /**\n * creates new instance of chosen player\n *\n * Correct place to add new and more KI players!\n *\n * @param className name of the class to create an instance of\n * @param color chosen color for a player\n * @return new instance of playerclass\n */\n static Player createNewPlayer(String className, Color color) throws IllegalArgumentException {\n switch (className) {\n case \"PlayerKI\":\n return new PlayerKI(color);\n case \"PlayerKI2\":\n return new PlayerKI2(color);\n case \"PlayerKI3\":\n return new PlayerKI3(color);\n case \"PlayerKI4\":\n return new PlayerKI4(color);\n case \"PlayerHuman\":\n return new PlayerPhysical(color);\n default:\n throw new IllegalArgumentException(\"createNewPlayer in Player.java doesn't know how to handle this!\");\n }\n }\n}", "private void playAI (int actualAI) {\n }", "@Override\r\n\tprotected void onMove() {\n\t\t\r\n\t}", "public Multi_Player()\r\n {\r\n \r\n }", "protected abstract void onOrbCollect(Player pl);", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\t\t\t\t\t public void visit(Player player) {\n\t\t\t\t\t\t\tPacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_MSG_HF_ShugoCaravanAppear);\n\t\t\t\t\t }", "private void YellowEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n YellowPlayer player_to_eat = (YellowPlayer) player;\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n }\n }\n //println(\"yellow_player_to_be_eaten=\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "private void Management_Player(){\n\t\t\n\t\t// render the Player\n\t\tswitch(ThisGameRound){\n\t\tcase EndRound:\n\t\t\treturn;\t\t\t\n\t\tcase GameOver:\n\t\t\t// do nothing\n\t\t\tbreak;\n\t\tcase Running:\n\t\t\tif (PauseGame==false){\n\t\t\t\tplayerUser.PlayerMovement();\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (PauseGame==true){\n\t\t\t\t// do not update gravity\n\t\t\t}\n\t\t\tbreak;\t\t\n\t\t}\n\t\n\t\tbatch.draw(playerUser.getframe(PauseGame), playerUser.getPosition().x , playerUser.getPosition().y,\n\t \t\tplayerUser.getBounds().width, playerUser.getBounds().height);\n\t\t\n\t\t\n\t\t\n\t\tswitch (playerUser.EquipedToolCycle)\n\t\t{\t\n\t\tcase 0:\n\t\t\tstartTimeTool = System.currentTimeMillis(); \n\t\t\tbreak;\n\t\t\t\n\t\tcase 1: \n\t\t\t\n\t\t\tif (PauseGame==true){\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// tool is grabbed\n\t\t\testimatedTimeEffect = System.currentTimeMillis() - startTimeTool;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tplayerUser.pe_grab.setPosition(playerUser.getPosition().x + playerUser.getBounds().width/2,\n\t\t\t\t\tplayerUser.getPosition().y + playerUser.getBounds().height/2);\t\n \t\t\n\t\t\t\tplayerUser.pe_grab.update(Gdx.graphics.getDeltaTime());\n\t\t\t\tplayerUser.pe_grab.draw(batch,Gdx.graphics.getDeltaTime()); \t\t\t\t\t\t\t\n\t\t\t\n\t\t\tif (estimatedTimeEffect >= Conf.SYSTIME_MS){\n\t\t\t\testimatedTimeEffect = 0;\n\t\t\t\tplayerUser.ToolEquiped();\n\t\t\t\tstartTimeTool = System.currentTimeMillis(); \n\t\t\t\tplayerUser.EquipedToolCycle++;\n\t\t\t}else{\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\t\t\n\t\tcase 2:\n\t\t\t\n\t\t\tif (PauseGame==true){\t\t\t\t\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\testimatedTimeEffect = (System.currentTimeMillis() - startTimeTool) / 1000;\t\t\t\t\n\t\t\tplayerUser.pe_equip.setPosition(playerUser.getPosition().x + playerUser.getBounds().width/2,\n\t\t\tplayerUser.getPosition().y + playerUser.getBounds().height/2);\t\n\t\t\tplayerUser.pe_equip.update(Gdx.graphics.getDeltaTime());\n\t\t\tplayerUser.pe_equip.draw(batch,Gdx.graphics.getDeltaTime()); \t\t\t\t\n\t\t\tif (estimatedTimeEffect>=Conf.TOOL_TIME_USAGE_LIMIT){\n\t\t\t\tplayerUser.EquipedToolCycle=0;\t\t\n\t\t\t\tplayerUser.color = Color.NONE;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (estimatedTimeEffect>=Conf.TOOL_TIME_USAGE_MUSIC_LIMIT){\n\t\t\t\tPhoneDevice.Settings.setMusicValue(true);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "@Override\n \tpublic boolean imprisonPlayer(String playerName) {\n \t\treturn false;\n \t}", "private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void onStarted(EasyVideoPlayer player) {\n }", "void playerPassedStart(Player player);", "public void playerLost()\r\n {\r\n \r\n }", "@Override\n public abstract void startCompetition();", "public abstract CardAction play(Player p);", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tvoid postarVideo() {\n\n\t}", "@Override\n public void onEntityUpdate() {\n if (!(world.provider instanceof WorldProviderLimbo || world.provider instanceof WorldProviderDungeonPocket)) {\n setDead();\n super.onEntityUpdate();\n return;\n }\n\n super.onEntityUpdate();\n\n // Check for players and update aggro levels even if there are no players in range\n EntityPlayer player = world.getClosestPlayerToEntity(this, MAX_AGGRO_RANGE);\n boolean visibility = player != null && player.canEntityBeSeen(this);\n updateAggroLevel(player, visibility);\n\n // Change orientation and face a player if one is in range\n if (player != null) {\n facePlayer(player);\n if (!world.isRemote && isDangerous()) {\n // Play sounds on the server side, if the player isn't in Limbo.\n // Limbo is excluded to avoid drowning out its background music.\n // Also, since it's a large open area with many Monoliths, some\n // of the sounds that would usually play for a moment would\n // keep playing constantly and would get very annoying.\n playSounds(player.getPosition());\n }\n\n if (visibility) {\n // Only spawn particles on the client side and outside Limbo\n if (world.isRemote && isDangerous()) {\n spawnParticles(player);\n }\n\n // Teleport the target player if various conditions are met\n if (aggro >= MAX_AGGRO && !world.isRemote && ModConfig.monoliths.monolithTeleportation && !player.isCreative() && isDangerous()) {\n aggro = 0;\n Location destination = WorldProviderLimbo.getLimboSkySpawn(player);\n TeleportUtils.teleport(player, destination, 0, 0);\n player.world.playSound(null, player.getPosition(), ModSounds.CRACK, SoundCategory.HOSTILE, 13, 1);\n }\n }\n }\n }", "@Override\n\tpublic void videoComplete() {\n\t\t\n\t}", "@Override\n\tpublic void moveExecStart(Counter player) {\n\n\t}", "@Override\n public void onPaused(EasyVideoPlayer player) {\n }", "public abstract void fruitEffect(Player p);", "@Override\n public void loadGame() {\n\n }", "@Override\n public void onSeekComplete(MediaPlayer player) {\n \n }", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "public TransitionPlayerAdvance() {\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "@Override\n public void playStop() {\n }", "public PlayingCard(){\n\t\tsuper();\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream arg0)\n\t{\n\n\t}", "public abstract boolean esComestible();", "public void play() {\n\t\t\r\n\t}" ]
[ "0.649219", "0.63990587", "0.616955", "0.61518997", "0.6127892", "0.61091197", "0.6107002", "0.60978144", "0.6087458", "0.60841876", "0.6082119", "0.60777545", "0.6076305", "0.60696805", "0.6064463", "0.606277", "0.6026998", "0.60191196", "0.5971824", "0.5966076", "0.5959357", "0.5957977", "0.5954127", "0.59539366", "0.59329224", "0.5925656", "0.58861953", "0.58628863", "0.5862723", "0.58493215", "0.5849094", "0.58400965", "0.5832976", "0.58276284", "0.58169013", "0.58169013", "0.58169013", "0.5815465", "0.58136094", "0.5806008", "0.58032966", "0.57834464", "0.5781321", "0.57652485", "0.57609814", "0.5755268", "0.5755268", "0.57382464", "0.5736973", "0.5736973", "0.57307196", "0.5727026", "0.57204056", "0.5715266", "0.57149124", "0.57120466", "0.57009184", "0.56994534", "0.56953144", "0.5691351", "0.56861097", "0.5682475", "0.56789815", "0.5668211", "0.5652748", "0.56513697", "0.5645983", "0.56396395", "0.56343865", "0.56337976", "0.5632195", "0.5628614", "0.56285715", "0.56283146", "0.5626989", "0.560994", "0.5599742", "0.5598829", "0.55890095", "0.55840206", "0.5573441", "0.55728465", "0.5571576", "0.5569212", "0.55684423", "0.55679035", "0.5565433", "0.5564054", "0.5562235", "0.55362576", "0.553571", "0.5533143", "0.5532909", "0.5531902", "0.55310977", "0.5528525", "0.5527987", "0.5516125", "0.5515913", "0.5514267", "0.55090106" ]
0.0
-1
notifica al giocatore che ha vinto per abbandono
public void youWinByAbandonment() { try { if (getClientInterface() != null) getClientInterface().gameEndedByAbandonment("YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!"); } catch (RemoteException e) { System.out.println("remote sending ended by abandonment error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public boolean tieneRepresentacionGrafica();", "public boolean Vacia (){\n return cima==-1;\n \n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "boolean estVide();", "public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "private static void cajas() {\n\t\t\n\t}", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// O BOTAO FOR VISIVEL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public boolean avanti();", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void placerBateauSurVue() {\n\t\tint compteur = 1;\n\t\tif (partie.verifierSiPoseBateauPossible()) {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, true);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, false);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t}\n\t}", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public static void main(String[] arhg) {\n\n Conta p1 = new Conta();\n p1.setNumConta(1515);\n p1.abrirConta(\"cp\");\n p1.setDono(\"wesley\");\n p1.deposita(500);\n // p1.saca(700); -> irá gera um erro pois o valor de saque especificado é superior ao valor que tem na conta\n\n p1.estadoAtual();\n }", "public void asignarVida();", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "public boolean isConfermabile() {\n boolean confermabile = false;\n Date d1, d2;\n\n try { // prova ad eseguire il codice\n confermabile = super.isConfermabile();\n\n /* controllo che le date siano in sequenza */\n if (confermabile) {\n d1 = this.getDataInizio();\n d2 = this.getDataFine();\n confermabile = Lib.Data.isSequenza(d1, d2);\n }// fine del blocco if\n\n /* controllo che almeno una riga sia selezionata */\n if (confermabile) {\n confermabile = getPanServizi().getRigheSelezionate().size() > 0;\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return confermabile;\n\n }", "public boolean SiguienteBodega(){\n if(!lista_inicializada){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n lista_inicializada = true;\n if(Size>0){\n return true;\n }\n }\n \n if(Size > 1 ){\n if(Nodo_bodega_actual.obtenerSiguiente()!= null){\n Nodo_bodega_actual = Nodo_bodega_actual.obtenerSiguiente();\n return true;\n } \n }\n return false;\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public boolean HayObstaculo(int avenida, int calle);", "@Override\n public Boolean colisionoCon(MV gr) {\n return true;\n }", "public void mostraOggetto(int idGioc, String value){\n\t\t if(\"Y\".equals(value))\n\t\t\t partita.getPlayers().getGiocatore(idGioc).mostraEquipaggiamento();\n\t\t if(\"N\".equals(value)){\n\t\t\t StatiGioco prossimoStato=partita.nextPhase(StatiGioco.OBJECTSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\t\t partita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t\t\t if(prossimoStato.equals(StatiGioco.DRAWSTATE))\n\t\t\t\tsuono(idGioc); \n\t\t\t}\n\t\t\treturn;\n\n\t }", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "private void asignarCapacidades ()\n\t{\n\t\tif(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_ECONOMICO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_60;\n\t\t}\n\t\t\n\t\telse if(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_MEDIO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_45;\n\t\t}\n\t\t\n\t\telse capacidadKilometrosPorGalon = CAPACIDAD_30;\n\t}", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public boolean estDetecteCoteGauche()\r\n\t{\n\t\treturn !this.detecteurGauche.get();\r\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "private boolean esHoja() {\r\n boolean hoja = false;\r\n\r\n if( subABizq.esVacio() && subABder.esVacio() ) {\r\n hoja = true;\r\n }\r\n\r\n return hoja;\r\n }", "@Override\n public Boolean colisionoCon(BDestino gr) {\n return true;\n }", "private void balancearAgrega(Vertice<T> v){\n\tif(v == this.raiz){\n\t v.color = Color.NEGRO;\n\t return;\n\t}else if(v.padre.getColor() == Color.NEGRO){\n\t return;\n\t}\n\tVertice<T> abuelo = v.padre.padre;\n\tif(v.padre == abuelo.derecho){\n\t if(abuelo.izquierdo != null &&\n\t abuelo.izquierdo.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.izquierdo.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\t \n\t }else if(v.padre.izquierdo == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraDerecha(v.padre);\n\t\tbalancearAgrega(v2); \n\t }else if(v.padre.derecho == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraIzquierda(abuelo);\n\t }\n\t}else if(v.padre == abuelo.izquierdo){\n\t if(abuelo.derecho != null &&\n\t abuelo.derecho.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.derecho.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\n\t }else if(v.padre.derecho == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraIzquierda(v.padre);\n\t\tbalancearAgrega(v2); \n\t \n\t }else if(v.padre.izquierdo == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraDerecha(abuelo);\n\t }\n\t} \t\n\t\n }", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.currentTimeMillis());\n\t\tSystem.out.println(\"STATE B - Le festivalier \" + this.numFestivalier + \" a acheté sa place\");\n\t}", "@Override\n public Boolean colisionoCon(MH gr) {\n return true;\n }", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public boolean verMina(){\n\r\n return espM;\r\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public void aggiungiPecoraCasualmente() {\n\t\tif (((int) (Math.random() * 3)) >= 1) {\n\t\t\tPecoraAdulta nuovaPecoraAdulta = new PecoraAdulta();\n\t\t\tpecore.add(nuovaPecoraAdulta);\n\t\t\tif (nuovaPecoraAdulta.isMaschio())\n\t\t\t\tnumMontoni++;\n\t\t\telse\n\t\t\t\tnumPecoreFemmine++;\n\t\t} else {\n\t\t\tpecore.add(new Agnello());\n\t\t\tnumeroAgelli++;\n\t\t}\n\t}", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }" ]
[ "0.7237491", "0.6832159", "0.68130857", "0.6685288", "0.6644234", "0.6637566", "0.66303074", "0.6552638", "0.65508467", "0.64677227", "0.64413995", "0.6416077", "0.64052296", "0.6377259", "0.63684046", "0.63597775", "0.63099986", "0.63003397", "0.62990785", "0.6278867", "0.6259464", "0.6258103", "0.6243433", "0.62412256", "0.623763", "0.6211148", "0.6200889", "0.61573416", "0.6155367", "0.61519206", "0.6140473", "0.6129688", "0.6116231", "0.61116636", "0.609932", "0.6096405", "0.6091489", "0.60894835", "0.60882217", "0.60817605", "0.6076106", "0.6072499", "0.6069643", "0.60482", "0.60407096", "0.60402447", "0.6037448", "0.60370725", "0.60350937", "0.603503", "0.603423", "0.6032931", "0.60286266", "0.6024126", "0.6023585", "0.6014799", "0.6009947", "0.6008612", "0.60075974", "0.60039794", "0.59962624", "0.5995611", "0.59945804", "0.59945464", "0.5994167", "0.59834445", "0.59771085", "0.59728676", "0.59673727", "0.5957748", "0.5957002", "0.5952824", "0.59523314", "0.59468967", "0.59463334", "0.5936993", "0.59359974", "0.59357387", "0.59327006", "0.59314054", "0.5926903", "0.59267026", "0.5920149", "0.5911859", "0.5910505", "0.5909517", "0.5900097", "0.589954", "0.5894707", "0.58916575", "0.588974", "0.58846253", "0.5884206", "0.5882599", "0.5882443", "0.58819085", "0.58796346", "0.58779347", "0.5870654", "0.5868911", "0.58639216" ]
0.0
-1
notifica al giocatore che ha vinto
@Override public void youWin(Map<String, Integer> rankingMap) { try { if (getClientInterface() != null) getClientInterface().gameEnded("YOU WON, CONGRATS BUDDY!!", rankingMap); } catch (RemoteException e) { System.out.println("remote sending you won error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public boolean Vacia (){\n return cima==-1;\n \n }", "boolean estVide();", "@Override\n\tpublic boolean estaVivo() {\n\t\treturn estadoVida;\t\t\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public boolean tieneRepresentacionGrafica();", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "public boolean houveVencedor() {\r\n return (vencedor != null);\r\n }", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public boolean estDetecteCoteGauche()\r\n\t{\n\t\treturn !this.detecteurGauche.get();\r\n\t}", "@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}", "public void somaVezes(){\n qtVezes++;\n }", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void asignarVida();", "@Override\n\tpublic Livros verifica(Livros livro) {\n\t\treturn null;\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "@Override\n public boolean esVacio(){\n return(super.esVacio());\n }", "public boolean esVacia(){\r\n return inicio == null;\r\n }", "public boolean stupneProOriGraf(){\n\t\tint pom = 0;\n\t\tfor(int i = 0; i < vrchP.length;i++){\n\t\t\tif(vrchP[i].stupenVstup != vrchP[i].stupenVystup)\n\t\t\t\tpom++;\n\t\t}\n\t\tif(pom != 0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public void verificaJogo(){\n\t\t\t\tif(jogo.verificaPerdeu()) {\n\t \t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce Perdeu!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t\tif(jogo.verificaGanhou()) {\n\t\t\t\t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce GANHOOOOO!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t}", "public boolean estaVacia() {\n if (pieza == null)\n return true;\n else\n return false;\n }", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "private void EstablecerVistas(TipoGestion tGestion){\n\t\tCantEjecutada=Utilitarios.round(activ.getCantidadEjecutada(),4);\n\t\n\t\tcantContratada=Utilitarios.round(activ.getCantidadContratada(),4);\n\t\t\n\t\t//CantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\n\n\t\tif ( activ.getCantidadEjecutada() > activ.getCantidadContratada()){\n\t\t\tCantPendienteDeEjecutar = 0;\n\t\t\tCantExcendete = Utilitarios.round((activ.getCantidadEjecutada()-activ.getCantidadContratada()),4);\n\t\t\tPorcExcedente = Utilitarios.round((CantExcendete / cantContratada * 100),2);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphRed));\n\t\t}\n\t\telse{\n\t\t\tCantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphGreen));\n\t\t}\n\n\t\t\n\t\tif ( activ.getCantidadContratada() > 0){\n\t\t\t\tPorcEjecutado=Utilitarios.round((activ.getCantidadEjecutada()/cantContratada) * 100,2);\n\t\t\t\tPorcPendienteDeEjecutar = Utilitarios.round((CantPendienteDeEjecutar / cantContratada * 100),2);\n\t\t\t}\n\t\telse{\n\t\t\tPorcPendienteDeEjecutar\t= 0.00;\n\t\t\tPorcPendienteDeEjecutar = 0.00;\n\t\t}\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_Actividad))\n\t\t\t\t.setText(String.valueOf(cantContratada));\n\n\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadContratada))\n \t\t\t.setText(String.valueOf(cantContratada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadEjecutada))\n \t\t\t.setText(String.valueOf(CantEjecutada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadEjecutada))\n \t\t\t.setText( String.valueOf(PorcEjecutado) + \"%\");\n\n\n \ttvEtiquetaAgregarAvances.setText(getActivity().getString(R.string.fragment_agregar_avances_renglon_4));\n\n\t\tdesActividad.setText(\"[\" + activ.getCodigoInstitucional() + \"] - \" + activ.getDescripcion());\n \t\n\t\tif(tGestion == TipoGestion.Por_Cantidades){\n\t\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setVisibility(0);\n \t}\n \telse{\n \t\t\n \t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setText(\"%\");\n\n \t}\n\n\t\t\n\t\t//Se deshabilitara el widget de ingreso del avance para cuando la cantidad\n\t\t//pendiente de ejecutar sea igual o menor a 0\n\t\t/*if (CantPendienteDeEjecutar>0){\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_FechaActualizo))\n \t\t\t.setText(getActivity().getResources().getString(R.string.fragment_agregar_avances_renglon_2)\n \t\t\t\t\t+ \" \" + String.valueOf(activ.getFechaActualizacion()));\n \t}\n \telse\n \t{\n \t\tToast.makeText(getActivity(), getActivity().getString(R.string.fragment_agregar_avances_renglon_5), Toast.LENGTH_LONG).show();\n \t\tetNuevoAvance.setText(\"0.00\");\n \t\tetNuevoAvance.setEnabled(false);\n \t}*/\n \t\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(CantPendienteDeEjecutar, 4)));\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(PorcPendienteDeEjecutar, 2)) + \"%\");\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(CantExcendete, 4)));\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(PorcExcedente, 2)) + \"%\");\n\n\t\tvalidarAvance(String.valueOf(etNuevoAvance.getText()));\n \t\n \tetNuevoAvance.addTextChangedListener(new TextWatcher() {\n \t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start,\n\t\t\t\t\tint count, int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start,\n\t\t\t\t\tint before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}\n \t});\n\t\t\n\t}", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public boolean verMina(){\n\r\n return espM;\r\n }", "@Override\n public Boolean colisionoCon(MV gr) {\n return true;\n }", "public boolean vacio(){\n\t\treturn esVacio;\n\t}", "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public boolean PilaVacia() {\r\n return UltimoValorIngresado == null;\r\n }", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public boolean estVacia(){\n return inicio==null;\n }", "private boolean esHoja() {\r\n boolean hoja = false;\r\n\r\n if( subABizq.esVacio() && subABder.esVacio() ) {\r\n hoja = true;\r\n }\r\n\r\n return hoja;\r\n }", "public boolean SiguienteBodega(){\n if(!lista_inicializada){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n lista_inicializada = true;\n if(Size>0){\n return true;\n }\n }\n \n if(Size > 1 ){\n if(Nodo_bodega_actual.obtenerSiguiente()!= null){\n Nodo_bodega_actual = Nodo_bodega_actual.obtenerSiguiente();\n return true;\n } \n }\n return false;\n }", "public boolean estaVacia(){\n return inicio == null;\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "public String getVigencia() { return this.vigencia; }", "public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }", "public void verVerConvocatorias()\r\n\t{\r\n\t\tactualizarFinalizacionConvocatorias();\r\n\t\tverconvocatorias = new VerConvocatorias(this);\r\n\t\tverconvocatorias.setVisible(true);\r\n\t}", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "public boolean vegallomasonVan()\r\n\t{\r\n\t\treturn vegallomas;\r\n\t}", "public void placerBateauSurVue() {\n\t\tint compteur = 1;\n\t\tif (partie.verifierSiPoseBateauPossible()) {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, true);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, false);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t}\n\t}", "private void soigne(EtreVivant vivants) {\n setVirus(Virus.Rien);\n this.changeEtat(EtatEtreVivant.SAIN);\n }", "public boolean estaVacia(){\n if(inicio==null){\n return true;\n }else{\n return false;\n }\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\n public boolean esArbolVacio() {\n return NodoBinario.esNodoVacio(raiz);\n }", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private void balancearAgrega(Vertice<T> v){\n\tif(v == this.raiz){\n\t v.color = Color.NEGRO;\n\t return;\n\t}else if(v.padre.getColor() == Color.NEGRO){\n\t return;\n\t}\n\tVertice<T> abuelo = v.padre.padre;\n\tif(v.padre == abuelo.derecho){\n\t if(abuelo.izquierdo != null &&\n\t abuelo.izquierdo.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.izquierdo.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\t \n\t }else if(v.padre.izquierdo == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraDerecha(v.padre);\n\t\tbalancearAgrega(v2); \n\t }else if(v.padre.derecho == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraIzquierda(abuelo);\n\t }\n\t}else if(v.padre == abuelo.izquierdo){\n\t if(abuelo.derecho != null &&\n\t abuelo.derecho.getColor() == Color.ROJO){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.derecho.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tbalancearAgrega(abuelo);\n\t\treturn;\n\t }else if(v.padre.derecho == v){\n\t\tVertice<T> v2 = v.padre;\n\t\tsuper.giraIzquierda(v.padre);\n\t\tbalancearAgrega(v2); \n\t \n\t }else if(v.padre.izquierdo == v){\n\t\tv.padre.color = Color.NEGRO;\n\t\tabuelo.color = Color.ROJO;\n\t\tsuper.giraDerecha(abuelo);\n\t }\n\t} \t\n\t\n }", "public boolean avanti();", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public boolean estavacia(){\n return inicio==null;\n }", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "public boolean getCVCTG_ESTADO(){\n\t\treturn this.myCvctg_estado;\n\t}", "public boolean verRevelado(){\n\r\n return revelado;\r\n }", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "@Override\n public Boolean colisionoCon(BDestino gr) {\n return true;\n }", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public boolean verificaSeServicoPublicoFoiComprado(int posicao) {\n if (posicao == 12 && this.EletricCompanyComprada == true) {\n return true;\n\n } else if (posicao == 28 && this.WaterWorksComprada == true) {\n return true;\n\n } else {\n return false;\n\n }\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}" ]
[ "0.7008663", "0.68916965", "0.6771343", "0.6743496", "0.672291", "0.666665", "0.66164875", "0.66085434", "0.6604666", "0.6595136", "0.6513277", "0.6492251", "0.6488509", "0.6384009", "0.6347016", "0.63138866", "0.631231", "0.6311336", "0.6310717", "0.6301897", "0.63004476", "0.6300183", "0.6280559", "0.62675995", "0.6264947", "0.62553185", "0.6253613", "0.62510896", "0.6233243", "0.62202567", "0.621295", "0.62118345", "0.62101215", "0.6206148", "0.61896163", "0.6184535", "0.6182489", "0.6175831", "0.6161437", "0.61251444", "0.611483", "0.6112674", "0.60705376", "0.606779", "0.60657936", "0.6065245", "0.6061123", "0.60550326", "0.6054204", "0.60541064", "0.6052923", "0.6047613", "0.60408115", "0.60298926", "0.6015717", "0.6013329", "0.6012563", "0.6000042", "0.5992847", "0.5987587", "0.5984151", "0.5976261", "0.5974953", "0.5974345", "0.59724164", "0.596963", "0.59586906", "0.5957455", "0.59545165", "0.5949523", "0.5948374", "0.5947046", "0.59454715", "0.5945025", "0.59379363", "0.5933967", "0.5930115", "0.59255546", "0.59190696", "0.59164995", "0.591579", "0.5915524", "0.5912333", "0.5910261", "0.5900324", "0.58995306", "0.58965826", "0.5894523", "0.5890999", "0.5889142", "0.58859664", "0.58857214", "0.5883676", "0.5883474", "0.5878524", "0.5876663", "0.5875879", "0.5868431", "0.58675057", "0.5867225", "0.5863691" ]
0.0
-1
notifica al giocatore che ha perso
@Override public void youLose(Map<String, Integer> rankingMap) { try { if (getClientInterface() != null) getClientInterface().gameEnded(" YOU LOSE, SORRY ", rankingMap); } catch (RemoteException e) { System.out.println("remote sending you lose error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public boolean tieneRepresentacionGrafica();", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void Ordenamiento() {\n\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "void entrerAuGarage();", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "public boolean tengoProteccion() {\n\t\treturn escudo;\n\t}", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "public boolean asignarMascota(Perro perro){\n boolean bandera = false;\n Persona[] miembros_familia;\n familia_asignada = \"\";\n\n while (!bandera){\n //Recorrer todo el arreglo de Familia\n for (int i = 0; i <= numero_familias; i++){\n //Obtener los miembros de la familia actual \n miembros_familia = familias[i].getMiembros();\n\n //Recorrer cada miembro del arreglo de Persona\n for (int j = 0; j < miembros_familia.length; j++){ \n //Obtener edad del miembro\n int edad = miembros_familia[j].getEdad();\n\n //Verificar si el miembro al que se analiza puede tener la mascota y si esa familia puede tener perro\n if(verificarMascota(perro, edad)){\n if (familias[i].getNumeroMascotas() < 4){\n bandera = true;\n familias[i].setNumeroMascotas();\n familia_asignada = familias[i].getApellido();\n j = miembros_familia.length;\n i = familias.length;\n }\n }\n else{\n j = miembros_familia.length;\n }\n }\n }\n break;\n }\n return bandera;\n }", "public void realiserAcahatProduit() {\n\t\t\n\t}", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "private void guardar() {\r\n\t\tif(Gestion.isModificado() && Gestion.getFichero()!=null){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Gestion.isModificado() && Gestion.getFichero()==null){\r\n\t\t\tguardarComo();\r\n\t\t}\r\n\t\telse if(frmLigaDeFtbol.getTitle()==\"Liga de Fútbol\" && !Gestion.isModificado())\r\n\t\t\tguardarComo();\r\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic boolean cambiarGrafico(Personaje e) {\n\t\treturn false;\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}", "public boolean getGiro(){\n\t\treturn this.izquierda;\n\t}", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "private boolean existeCondicionSeguridad(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM planificacion.det_condicion_segur \"\r\n\t\t\t\t+ \" where id_concurso_puesto_agr = \" + concursoPuestoAgr.getIdConcursoPuestoAgr()\r\n\t\t\t\t+ \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\n\t}", "boolean puedoHipotecar(Casilla casilla){\n //Para poder hipotecar la casilla tiene que ser propiedad del jugador.\n return this.esDeMipropiedad(casilla);\n }", "public void aggiungiPecoraCasualmente() {\n\t\tif (((int) (Math.random() * 3)) >= 1) {\n\t\t\tPecoraAdulta nuovaPecoraAdulta = new PecoraAdulta();\n\t\t\tpecore.add(nuovaPecoraAdulta);\n\t\t\tif (nuovaPecoraAdulta.isMaschio())\n\t\t\t\tnumMontoni++;\n\t\t\telse\n\t\t\t\tnumPecoreFemmine++;\n\t\t} else {\n\t\t\tpecore.add(new Agnello());\n\t\t\tnumeroAgelli++;\n\t\t}\n\t}", "private void agregarDiccionario(Palabra palabra){\n if (!dic.contiene(palabra)) {\n boolean su = sugerencia(palabra);\n if(su){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea agregar: ´\"+palabra.getCadena()+\"´ al diccionario?\", \"Agregar!\", JOptionPane.YES_NO_OPTION);\n if (d == 0) \n dic.agrega(palabra);\n }\n }else {\n JOptionPane.showMessageDialog(null,\"--La palabra ya se encuentra en el diccionario.--\\n --\"+dic.busca(palabra).toString());\n }\n }", "private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}", "public void coMina(){\n espM=true;\r\n }", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "private boolean setPermessiRicevuti(HttpServletRequest request, HttpServletResponse response,\r\n String utente) {\r\n Gruppo g = new Gruppo();\r\n\r\n g.setRuolo(utente);\r\n if (request.getParameter((\"checkbox\").concat(utente)).equals(\"true\")) {\r\n if (!ricevuti.getGruppi().contains(g)) {\r\n ricevuti.getGruppi().add(g);\r\n }\r\n } else if (request.getParameter((\"checkbox\").concat(utente)).equals(\"false\")) {\r\n ricevuti.getGruppi().remove(g);\r\n } else {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean seLanceSurServiteurProprietaire() {\n\t\treturn false;\r\n\t}", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void _jogaEstado_mesa(Player playerMain, Player playerInimigo) {\n Carta cartaP1;\n CartaMonstro cartaMon;\n CartaMagica cartaMag;\n\n boolean cartasQueAtacaram[] = new boolean[playerMain.mesa.MESA_SIZE];\n int cartaIndex;\n\n Arrays.fill(cartasQueAtacaram, false);\n\n /* o jogador ainda quiser atacar (se possivel) ou mudar a carta para modo defesa-ataque */\n while (true) {\n System.out.println(\"Jogador \" + playerMain.nickName + \", Escolha uma carta da sua mesa que deseja usar ( -1 para finalizar o turno )\");\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMon = playerMain.mesa.cartasMonstros[i];\n\n if (cartaMon != null) {\n System.out.print(\" \" + i + \". \" + cartaMon.getNome() + \" \" + cartaMon.getATK() + \"/\" + cartaMon.getDEF());\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n System.out.print(\" - A\");\n } else {\n System.out.print(\" - D\");\n }\n if (cartasQueAtacaram[i]) {\n System.out.print(\" - X\");\n }\n\n System.out.println(\"\");\n } else {\n System.out.println(\" \" + i + \". ...\");\n }\n }\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMag = playerMain.mesa.cartasMagicas[i];\n if (cartaMag != null) {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \". \" + cartaMag.getNome() + \" \" + cartaMag.getTipoEfeitoMagico());\n } else {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \" . ...\");\n }\n }\n\n cartaIndex = scanner.nextInt();\n if (cartaIndex == -1) {\n break;\n }\n\n //usando as cartas magicas\n if (cartaIndex >= Mesa.MESA_SIZE) {\n cartaIndex -= Mesa.MESA_SIZE;\n cartaMag = playerMain.mesa.cartasMagicas[cartaIndex];\n if (cartaMag.getTipoEfeitoMagico() == CartaMagica.TipoEfeitoMagico.CAMPO) {\n cartaMag.aplicarEfeito(this, playerMain, -1);\n playerMain.mesa.removeMagica(cartaIndex);\n } else {\n System.out.println(\"Essa carta Magica não é ativavel manualmente!\");\n }\n continue;\n }\n\n if (cartasQueAtacaram[cartaIndex] == false) {\n cartaMon = playerMain.mesa.cartasMonstros[cartaIndex];\n System.out.println(\"Digite 1 para usa-la para atacar e 0 para mudar seu modo defesa-ataque\");\n if (scanner.nextInt() == 1) {\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n _jogaEstado_atacaMesaInimiga(playerMain, playerInimigo, cartaIndex);\n cartasQueAtacaram[cartaIndex] = true;\n if (playerMain.perdeu() || playerInimigo.perdeu()) {\n break;\n }\n } else {\n System.out.println(\"A carta deve estar em modo de ataque para atacar!\");\n }\n } else {\n giraCarta(cartaMon);\n }\n } else {\n System.out.println(\"Carta já atacou! escolha outra ou finalize o turno.\");\n }\n\n }\n\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public static Perro CargarPerro(int capPerro) {\n boolean condicion = false;\r\n int razaPerro, diaIngreso, mesIngreso, anioIngreso, diasDeEstadia;\r\n char generoPerro;\r\n String nombrePerro, nombreCliente, numCliente;\r\n Perro nuevoPerro;\r\n Fecha fechaIngreso;\r\n nuevoPerro = new Perro(codPerro);\r\n System.out.println(\"Ingrese el nombre del perro\");\r\n nombrePerro = TecladoIn.readLine();\r\n nuevoPerro.setNombre(nombrePerro);\r\n\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n nuevoPerro.setGenero(generoPerro);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n\r\n condicion = false;\r\n\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n nuevoPerro.setRaza(TiposDeRaza(razaPerro - 1));\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n nuevoPerro.setFechaIngreso(fechaIngreso);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese la Cantidad de estadia:\");\r\n diasDeEstadia = TecladoIn.readLineInt();\r\n if (diasDeEstadia > 0) {\r\n nuevoPerro.setCantDias(diasDeEstadia);\r\n System.out.println(\"Ingrese el Nombre y Apellido del Cliente\");\r\n nombreCliente = TecladoIn.readLine();\r\n nuevoPerro.setNombreDuenio(nombreCliente);\r\n System.out.println(\"Ingrese Numero de telefono\");\r\n numCliente = TecladoIn.readLine();\r\n nuevoPerro.setTelefonoDuenio(numCliente);\r\n codPerro++;\r\n condicion = true;\r\n\r\n } else {\r\n System.out.println(\"Ingrese una cantidad de dias mayor a 0\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n\r\n return nuevoPerro;\r\n }", "public boolean agregarFamilia(String apellido, Persona[] miembros){\n if (numero_familias < 14){\n Arrays.sort(miembros);\n //Instancia la familia y la agrega al arreglo de Familias en la posición que le corresponde \n familia = new Familia(apellido, miembros);\n numero_familias++;\n familias[numero_familias] = familia;\n return true;\n }\n else return false;\n }", "private boolean isContoDiLivelloDiLegge() {\n\t\treturn conto.getLivello().equals(livelloDiLegge); \n\t\t\n\t}", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public String cargarDatosLogeado() {\n\t\tif (session != null) {\n\t\t\ttry {\n\t\t\t\tSubPostulante usr = managergest.postulanteByID(session\n\t\t\t\t\t\t.getIdUsr());\n\t\t\t\tpos_id = usr.getPosId();\n\t\t\t\tpos_nombre = usr.getPosNombre();\n\t\t\t\tpos_apellido = usr.getPosApellido();\n\t\t\t\tpos_direccion = usr.getPosDireccion();\n\t\t\t\tpos_correo = usr.getPosCorreo();\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = usr.getPosTelefono();\n\t\t\t\tpos_celular = usr.getPosCelular();\n\t\t\t\tpos_institucion = usr.getPosInstitucion();\n\t\t\t\tpos_gerencia = usr.getPosGerencia();\n\t\t\t\tpos_area = usr.getPosArea();\n\t\t\t\tedicion = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tMensaje.crearMensajeWARN(\"Error al cargar sus datos personales\");\n\t\t\t}\n\t\t} else {\n\t\t\tpos_id = \"\";\n\t\t\tpos_nombre = \"\";\n\t\t\tpos_apellido = \"\";\n\t\t\tpos_direccion = \"\";\n\t\t\tpos_correo = \"\";\n\t\t\tpos_password = \"\";\n\t\t\tpos_telefono = \"\";\n\t\t\tpos_celular = \"\";\n\t\t\tpos_institucion = \"\";\n\t\t\tpos_gerencia = \"\";\n\t\t\tpos_area = \"\";\n\t\t\tedicion = false;\n\t\t}\n\t\treturn \"uperfil?faces-redirect=true\";\n\t}", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}", "public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}", "public void posizionaPecora(Agnello pecora) {\n\t\tpecore.add(pecora);\n\t\tif (pecora instanceof PecoraAdulta) {\n\t\t\tif (((PecoraAdulta) pecora).isMaschio())\n\t\t\t\tnumMontoni++;\n\t\t\telse\n\t\t\t\tnumPecoreFemmine++;\n\t\t\treturn;\n\t\t} else if (!(pecora instanceof PecoraNera))\n\t\t\tnumeroAgelli++;\n\t}", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "public boolean estavacia(){\n return inicio==null;\n }", "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public final void nonRedefinissableParEnfant(){\n\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public Perso designerCible(){\r\n\t\tRandom rand = new Random();\r\n\t\tint x = rand.nextInt((int)provocGlob);\r\n\t\tboolean trouve =false;\r\n\t\tdouble cpt=0;\r\n\t\tPerso res=groupe.get(0);\r\n\t\tfor(Perso pers : groupeAble){\r\n\t\t\tcpt+=pers.getProvoc();\r\n\t\t\tif(cpt>x && !trouve){\r\n\t\t\t\tres=pers;\r\n\t\t\t\ttrouve=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public boolean isConfermabile() {\n boolean confermabile = false;\n Date d1, d2;\n\n try { // prova ad eseguire il codice\n confermabile = super.isConfermabile();\n\n /* controllo che le date siano in sequenza */\n if (confermabile) {\n d1 = this.getDataInizio();\n d2 = this.getDataFine();\n confermabile = Lib.Data.isSequenza(d1, d2);\n }// fine del blocco if\n\n /* controllo che almeno una riga sia selezionata */\n if (confermabile) {\n confermabile = getPanServizi().getRigheSelezionate().size() > 0;\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return confermabile;\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "public void setRagione_sociale(String ragione_sociale) {\r\n this.ragione_sociale = ragione_sociale;\r\n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "private boolean iguales(Pares f){\n\t\t\tboolean devolucion = false;\n\t\t\t\n\t\t\tif(f!=null){\n\t\t\t\tif(primero.iguales(f.getSegundo())){\n\t\t\t\t\tif(segundo.iguales(f.getPrimero())){\n\t\t\t\t\t\tif(distancia==f.getDistancia()){\n\t\t\t\t\t\t\tdevolucion=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn devolucion;\n\t\t}", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public boolean potezGore() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer='w';\n\t\t\n\t\tif (i-1 >= 0) {\n\t\t\tif ((this.tabla[i-1][j] == '#')||(this.tabla[i-1][j] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i-1][j] == '*')\n\t\t\t\tthis.pojedi(i-1, j);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i-1, j);\n\t\t}\n\t\telse if (i-1 < 0 ) {\n\t\t\tif ((this.tabla[this.visinaTable-1][j] == '#')||(this.tabla[this.visinaTable-1][j] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[this.visinaTable-1][j] == '*') \n\t\t\t\tthis.pojedi(this.visinaTable-1, j);\n\t\t\telse \n\t\t\t\tthis.pomjeri(this.visinaTable-1, j);\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.6731509", "0.66543865", "0.65344006", "0.63967186", "0.63419116", "0.62499017", "0.6249714", "0.617824", "0.61710346", "0.6155579", "0.61476195", "0.61461693", "0.61411726", "0.61328745", "0.6121998", "0.6097938", "0.6095522", "0.60933685", "0.60923046", "0.6084696", "0.60776186", "0.6047979", "0.6036882", "0.60224324", "0.6016496", "0.6010912", "0.59902877", "0.5982332", "0.5976401", "0.5959641", "0.59537196", "0.5950768", "0.59495085", "0.59446865", "0.5933825", "0.59276456", "0.59206396", "0.59180987", "0.59164023", "0.5910912", "0.5910516", "0.5906447", "0.5891215", "0.58873874", "0.5883704", "0.5878958", "0.5876405", "0.5875758", "0.5868458", "0.5863942", "0.58485246", "0.5834095", "0.5833058", "0.58326507", "0.5829726", "0.58287835", "0.5827147", "0.58246404", "0.5815098", "0.581495", "0.5813348", "0.5808698", "0.5805963", "0.58055633", "0.5802914", "0.57985014", "0.57981163", "0.5797536", "0.5797392", "0.5796964", "0.57967514", "0.5792629", "0.5790815", "0.5789355", "0.57893384", "0.57852006", "0.57830936", "0.57716054", "0.5768751", "0.5766765", "0.5764668", "0.57643336", "0.57624805", "0.5762025", "0.5760812", "0.57571954", "0.57517725", "0.57510686", "0.57508445", "0.57497644", "0.5747971", "0.5741914", "0.57361037", "0.5734749", "0.5734264", "0.5730762", "0.57291687", "0.57284343", "0.5726722", "0.57212967", "0.5719398" ]
0.0
-1
notifica al giocatore le modifiche avvenute in seguito alla mossa di un suo avversario
@Override public void updateOpponentMove(int id, Map<CardType, List<String>> personalCardsMap, Map<ResourceType, Integer> qtaResourcesMap, MessageAction msgAction) { try { if (getClientInterface() != null) getClientInterface().opponentMove(id, personalCardsMap, qtaResourcesMap); if (msgAction != null) getClientInterface().opponentFamilyMemberMove(id, msgAction); } catch (RemoteException e) { System.out.println("remote sending opponent move error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean estaEnModoAvion();", "private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "boolean isOssModified();", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "@Override\r\n\tpublic boolean update(Amigo amigo) {\n\t\treturn false;\r\n\t}", "private void atualizarBotoes() {\r\n\t\tbtIncluir.setDisable(cliente.getId() != null);\r\n\t\tbtAlterar.setDisable(cliente.getId() == null);\r\n\t\tbtExcluir.setDisable(cliente.getId() == null);\r\n\t}", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public void modificarCompraComic();", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;", "@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean editarV2(){\n\t\tDate hoy = new Date();\n\t\tint transcurridos = 0;\n\t\tif(estatus.equals(EEstatusRequerimiento.EMITIDO) || estatus.equals(EEstatusRequerimiento.RECIBIDO_EDITADO)){\n\t\t\tif(fechaUltimaModificacion != null){\n\t\t\t\ttranscurridos = obtener_dias_entre_2_fechas(fechaUltimaModificacion, hoy);\n\t\t\t\tif(transcurridos == 0 || transcurridos == 1)\n\t\t\t\t\treturn true;\n\t\t\t\telse \n\t\t\t\t\treturn false;\n\t\t\t}else if(fechaCreacion != null){\n\t\t\t\ttranscurridos = obtener_dias_entre_2_fechas(fechaCreacion, hoy);\n\t\t\t\tif(transcurridos == 0 || transcurridos == 1)\n\t\t\t\t\treturn true;\n\t\t\t\telse \n\t\t\t\t\treturn false;\n\t\t\t} \n\t\t}\n\t\treturn false;\t\n\t}", "public boolean getAllowModifications() {\n return true;\n }", "public void atualizarStatusAgendamento() {\n\n if (agendamentoLogic.editarStatusTbagendamento(tbagendamentoSelected, tbtipostatusagendamento)) {\n AbstractFacesContextUtils.addMessageInfo(\"Status atualizado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao alterar status do agendamento.\");\n }\n }", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "private int updateUmidade() throws FileNotFoundException, IOException{\r\n\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\tInteger contribuicaoUmidadeEquip ;\r\n\t\t/*Lendo a umidade do arquivo*/\r\n\t\tInteger umidadeAtual = Integer.parseInt(buffRead.readLine());\r\n\t\t\r\n\t\tif(umidadeAtual <= 0) {//quando umidade chega a 0, para de diminuir\r\n\t\t\tcontribuicaoUmidadeAmbiente = 0;\r\n\t\t} else {\r\n\t\t\tcontribuicaoUmidadeAmbiente = -1;\r\n\t\t}\r\n\t\t\r\n\t\t/*Lendo contribuicao do irrigador no arquivo*/\r\n\t\tfr = new FileReader(getArqContribuicaoUmidade());\r\n\t\tbuffRead = new BufferedReader(fr);\r\n\t\tcontribuicaoUmidadeEquip = Integer.parseInt(buffRead.readLine());\r\n\t\tbuffRead.close();\r\n\r\n\t\treturn umidadeAtual + contribuicaoUmidadeAmbiente + contribuicaoUmidadeEquip;\r\n\t}", "boolean shouldModify();", "@Override\r\n\tpublic boolean alterar(Empresa empresa) {\n\t\treturn false;\r\n\t}", "public void modificarCapacitacion(Joven joven, CapacitacionJoven capacitacionJoven, Capacitacion capacitacion,\n\t\t\tDictado dictado, Date fInicio, Date fFin, TipoDeEstadoCapacitacionJoven estado, String observacion, Date fechaEntregaCertificado) throws ReinaException {\n\t\tboolean esta = false;\n\t\tfor (CapacitacionJoven capacJoven : joven.getCapacitaciones()) {\n\t\t\testa |= ( (capacitacionJoven.getId() != capacJoven.getId()) && capacJoven.getCapacitacion().getId().equals(capacitacion.getId()) && capacJoven.estaVigente() );\n\t\t}\n\t\tif(esta)\n\t\t\tthrow new ReinaException(\"El joven se encuentra o ha realizado la capacitación que se desea registrar\");\n\t\t\n\t\t// que no quiera comenzar antes del inicio del dictado\n\t\tif (fFin != null && fInicio.after(fFin))\n\t\t\tthrow new ReinaException(\"La fecha de sucripción del joven a la formación laboral \" + capacitacion.getNombre() + \" debe ser anterior a la fecha de finalización\");\n\t\t\t\n\t\t// que la fecha del certificado sea posterior a la de inicio\n\t\tif (fechaEntregaCertificado != null && fInicio.after(fechaEntregaCertificado))\n\t\t\tthrow new ReinaException(\"La fecha de sucripción del joven a la formación laboral \" + capacitacion.getNombre() + \" debe ser anterior a la fecha de entrega del certificado\");\t\t\n\t\t\n\t\t\n\t\t// <<procesamiento>>\n\t\tcapacitacionJoven.setCapacitacion(capacitacion);\n\t\tcapacitacionJoven.setDictado(dictado);\n\t\tcapacitacionJoven.setFechaInicio(fInicio);\n\t\tcapacitacionJoven.setFechaFin(fFin);\n\t\tcapacitacionJoven.setEstado(estado);\n\t\tcapacitacionJoven.setObservacion(observacion);\n\t\tcapacitacionJoven.setFechaEntregaCertificado(fechaEntregaCertificado);\n\t}", "public int modificar(TratamientoVO tratamiento) {\n\t\treturn 0;\n\t}", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }", "private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "void setOssModified(boolean ossModified);", "public boolean modificaAppuntamento(Appuntamento a) {\r\n\t\tboolean ret = false;\r\n\t\tStatement stmt;\r\n\t\tString query = \t\"UPDATE appuntamento SET nome='\" + a.getNome() + \r\n\t\t\t\t\t\t\"', cognome='\" + a.getCognome() + \r\n\t\t\t\t\t\t\"', data='\" + a.getData() +\r\n\t\t\t\t\t\t\"', ora='\" + a.getOra() + \r\n\t\t\t\t\t\t\"', descrizione='\" + a.getDescrizione() + \r\n\t\t\t\t\t\t\"', contatto='\" + a.getContatto() + \r\n\t\t\t\t\t\t\"', stato='\" + a.getStato() + \r\n\t\t\t\t\t\t\"' WHERE codice='\" + a.getCodice() + \"'\";\r\n\t\t\r\n\t\tif(!isConnected) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.modificaAppuntamento() - nessuna connessione al db attiva!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(a == null || a == APPUNTAMENTO_VUOTO || !verificaAppuntamento(a)) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.modificaAppuntamento() - l'Appuntamento passato non � valido.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif((a.getCodice() < 0) || a.getCodice() > 999999) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.modificaAppuntamento() - codice non valido: \\\"\" + a.getCodice() + \"\\\"\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\tstmt.executeUpdate(query);\r\n\t\t\tret = true;\r\n\t\t}\r\n\t\tcatch(SQLException ex) {\r\n\t\t\tSystem.err.print(\"SQLException: \");\r\n\t\t\tSystem.err.println(ex.getMessage());\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public boolean editaImportoQuota() throws Exception {\n \t\n\t //vado come prima cosa a leggermi il numero della quota in aggiornamento:\n\t String numeroQuotaInAggiornamento = model.getGestioneOrdinativoStep2Model().getDettaglioQuotaOrdinativoModel().getNumeroQuota();\n\t Integer numeroQuotaInAgg = FinUtility.parseNumeroIntero(numeroQuotaInAggiornamento);\n\t \n boolean editaImportoQuota = true;\n \t\n if(model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!=null &&\n \t\t\t!model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().isEmpty() && model.isSonoInAggiornamentoIncasso()){\n \t \n \t //vado quindi ad iterare la lista di sub ordinativi di incasso (le quote)\n \t //cercando quella in aggiornamento:\n \t\t\tList<SubOrdinativoIncasso> elencoSubOrdinativiDiIncasso = model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso();\n\t \tfor (SubOrdinativoIncasso subOrdinativoIncasso: elencoSubOrdinativiDiIncasso) {\n\t\t\t\t\n\t \t\tif(numeroQuotaInAgg!=null && subOrdinativoIncasso.getNumero()!=null\n\t \t\t\t\t&& numeroQuotaInAgg.intValue()==subOrdinativoIncasso.getNumero().intValue()){\n\t \t\t\t\n\t \t\t\t//ho trovato la quota in questione\n\t \t\t\t\n\t \t\t\tif(subOrdinativoIncasso.getSubDocumentoEntrata()!=null){\n\t \t\t\t\t//essendoci un sub documento collegato la quota risulta non editabile\n\t\t \t\t\teditaImportoQuota = false;\n\t\t \t\t\tbreak;\n\t\t \t\t} else {\n\t\t \t\t\t\n\t\t \t\t\t//NON COLLEGATO A DOCUMENTO\n\t\t \t\t\t\n\t\t \t\t\t//FIX per SIAC-4842 Se l'Ordinativo e' in stato I si dovrebbe poter aggiornare l'Importo della quota\n\t\t \t \t// nel caso in cui l'Ordinativo non sia collegato ad un documento. \n\t\t \t \tif(model.getGestioneOrdinativoStep1Model()!=null && \n\t\t \t \t\t\tmodel.getGestioneOrdinativoStep1Model().getOrdinativo()!=null &&\n\t\t \t \t\t\tStatoOperativoOrdinativo.INSERITO.equals(model.getGestioneOrdinativoStep1Model().getOrdinativo().getStatoOperativoOrdinativo())){\n\t\t \t \t\t//la quota risulta editabile:\n\t\t \t \t\teditaImportoQuota = true;\n\t\t \t \t}\n\t\t \t \t//\n\t\t \t\t}\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t\t\t}\n\n }\n \t\n //ritorno l'esito dell'analisi:\n return editaImportoQuota;\n }", "@Override\n public boolean esArbolVacio() {\n return NodoBinario.esNodoVacio(raiz);\n }", "@Override\n public boolean esVacio(){\n return(super.esVacio());\n }", "@Test\n\tpublic void deveAtualizarSaldoAoEcluirMovimentacao(){\n\t\tAssert.assertEquals(\"534.00\", home.obterSaldoConta(\"Conta para saldo\"));\n\t\t\n\t\t//ir para resumo\n\t\tmenuSB.acessarResumo();\n\t\t\n\t\t//excluir Movimentacao 3\n\t\tresumo.excluirMovimentacao(\"Movimentacao 3, calculo saldo\");\n\t\t\n\t\t//validar a mensagem \"Movimentação removida com sucesso\"\n\t\tAssert.assertTrue(resumo.existeElementoPorTexto(\"Movimentação removida com sucesso!\"));\n\t\t\n\t\t//voltar home\n\t\tmenuSB.acessarHome();\n\t\t\n\t\t//atualizar saldos\n\t\tesperar(1000);\n\t\thome.scroll(0.2, 0.9);\n\t\t\n\t\t//verificar saldo = -1000.00\n\t\tAssert.assertEquals(\"-1000.00\", home.obterSaldoConta(\"Conta para saldo\"));\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public void modifierVie(int modificationVie);", "@Test\n\tpublic void testdeveAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveAlterarDocumentoExistente());\n\t\tAssert.assertEquals(1, d, 0.0001);\t\n\t}", "public boolean avanti();", "private void modificarViaje(Viaje vje2, Boolean estabaCargado2,\r\n\t\t\tBoolean estabaPago2, Boolean estabaDescargado2,\r\n\t\t\tBoolean estabaCobrado2, Boolean estabaPagoFlete2,\r\n\t\t\tBoolean estabaPagoDescargador2) {\r\n\t\tgreetingService.ModificarViaje(vje2, estabaCargado2, estabaPago2,\r\n\t\t\t\testabaDescargado2, estabaCobrado2, estabaPagoFlete2,\r\n\t\t\t\testabaPagoDescargador2, new AsyncCallback<String>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\terrorLabel.setText(\"Error al modificar el viaje.\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\tif (chkDescargarPago.getValue()\r\n\t\t\t\t\t\t\t\t|| chkDescargar.getValue()) {\r\n\t\t\t\t\t\t\tDouble tonOrigen = Double.parseDouble(tbToneladas\r\n\t\t\t\t\t\t\t\t\t.getText());\r\n\t\t\t\t\t\t\tDouble tonRealDescargadas = Double\r\n\t\t\t\t\t\t\t\t\t.parseDouble(tbDescargaRealToneladas\r\n\t\t\t\t\t\t\t\t\t\t\t.getText());\r\n\t\t\t\t\t\t\tif (tonOrigen > tonRealDescargadas) {\r\n\t\t\t\t\t\t\t\tvje.setKilos(String.valueOf(tonOrigen\r\n\t\t\t\t\t\t\t\t\t\t- tonRealDescargadas));\r\n\t\t\t\t\t\t\t\t//TODO Al cerrar el viaje sobrante \r\n\t\t\t\t\t\t\t\t//se debe cerrar la ventana.\r\n\t\t\t\t\t\t\t\tCrearViaje viajeSobrante = new CrearViaje(vje,\r\n\t\t\t\t\t\t\t\t\t\tlv);\r\n\t\t\t\t\t\t\t\tdialogBox = createDialogBox(\"Crear viaje.\",\r\n\t\t\t\t\t\t\t\t\t\tviajeSobrante);\r\n\t\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlv.cerrarDialogBox();\r\n\t\t\t\t\t\t// Window.alert(\"Se modifico el viaje correctamente.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean sePuedeMover(int ficha) {\r\n boolean ret = false;\r\n int sentido = 1;\r\n if (isTurnoRojo()) {\r\n sentido = -1;\r\n }\r\n int[] aux = encontrarPosicion(ficha);\r\n int fila = aux[0];\r\n int columna = aux[1];\r\n\r\n if (movimientos[ficha] && (tablero[fila + sentido][columna].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna - 1].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna + 1].getTipo().equals(\"Vacio\"))) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n\r\n }", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}", "public boolean updVeh() {\n\t\ttry\n\t\t{\n\t\t\n\t\t\tString filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\tFileInputStream is = new FileInputStream(filename);\n\t\t InputStreamReader isr = new InputStreamReader(is);\n\t\t BufferedReader buffer = new BufferedReader(isr);\n\t\t \n\t\t String line = buffer.readLine();\n\t \tString[] split;\n\t \tString Contenu=\"\";\n\n\t\t while(line != null){\n\t\t \tsplit = line.split(\" \");\n\t\t\t if(this.getId_vehi()==Integer.parseInt(split[0])) {\n\t\t\t \tContenu+=this.getId_vehi()+\" \"+this.getDate_achat()+\" \"+this.getNb_places()+\" \"+this.getStatut()+\" \"+this.getPrix()+\" \"+this.getImage()+\" \"+this.getCouleur()+\" \"+this.getModele()+\" \"+this.getMarque()+\" \"+this.getDate_fabrication()+\"\\n\";\n\t\t\t \tSystem.out.println(this.getId_vehi()+\" \"+this.getId_vehi()+\" \"+this.getDate_fabrication());\n\t\t\t }else {\n\t\t\t \t Contenu+=line+\"\\n\";\n\t\t\t }\n\t\t \tline = buffer.readLine();\n\t\t }\n\t\t \n\t\t buffer.close();\n\t\t \n\t\t filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename);\n\t\t\t fw.write(Contenu);\n\t\t\t fw.close();\n\t\t \n\t\t return true;\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t System.err.println(\"IOException: \"+ ioe.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public void ingresaAdministrativo() {\n\tEstableceDatosAdministrativos();\n\tint cambio=0;\n\tdo {\n\t\t\n\t\ttry {\n\t\t\tsetMontoCredito(Double.parseDouble(JOptionPane.showInputDialog(\"Ingrese el monto del credito (�3 600 000 maximo)\")));\n\t\t\tcambio=1;\n\t\t\tif(getMontoCredito()<0||getMontoCredito()>3600000) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El monto debe ir de �0 a �3600000\");\n\t\t\t}\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese solo numeros\");\n\t\t}\n\t}while(getMontoCredito()<0||getMontoCredito()>3600000||cambio==0);\n\tsetInteres(12);\n\tsetPlazo(60);\n\tsetCuotaPagar(calculoCuotaEspecialOrdinario());\n\testableceEquipoComputo();\n}", "public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}", "public boolean isAuMoinsUneCompetenceAutrefEstEnCoursDeModification() {\n\t\tboolean result = false;\n\t\tint i = 0;\n\t\twhile (!result && i < tosRepartFdpCompetencesAutres().count()) {\n\t\t\tEORepartFdpAutre repart = (EORepartFdpAutre) tosRepartFdpCompetencesAutres().objectAtIndex(i);\n\t\t\tif (repart.isEnCoursDeModification()) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn result;\n\t}", "public void askModification() {\n\t\t\n\t\n\t}", "public boolean doModify() {\n return true;\n }", "@Override\r\n\tpublic Equipo modificar() {\n\t\tLOG.info(\"Mostrar los datos del equipo modificado\");\r\n\t\treturn equipo;\r\n\t}", "private void atualizarBandeirasIa() {\n\t\tnumeroBombas = mapa.getBombas();\r\n\t\tfor(int i = 0; i < this.mapa.getCampo().length; i++) {\r\n\t\t\tfor(int j = 0; j < this.mapa.getCampo().length; j++) {\r\n\t\t\t\tif(celulaEscolhida(botoes[i][j]).isBandeira()) {\r\n\t\t\t\t\tbotoes[i][j].setEnabled(false);\r\n\t\t\t\t\tnumeroBombas--;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tbotoes[i][j].setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(numeroBombas);\r\n\t}", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean isEditaConceptoYBase()\r\n/* 692: */ {\r\n/* 693:761 */ return (this.facturaProveedorSRI.getMensajeSRI() != null) && (!this.facturaProveedorSRI.getMensajeSRI().toLowerCase().contains(\"guardado\")) && (this.facturaProveedorSRI.isTraCorregirDatos());\r\n/* 694: */ }", "private void salir(){\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Salir\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.exit(0);\r\n\t}", "private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}", "public void atualizarResumo(){\n\t\tSet<AdapterProcedimento> paraRemover = new HashSet<AdapterProcedimento>();\n\t\tif(isAuditarProcedimentosCirurgicos() && !isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(adapter.getHonorarios().isEmpty() && !adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isAuditarProcedimentosCirurgicos() && isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(!adapter.getHonorarios().isEmpty() && adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprocedimentos.removeAll(paraRemover);\n\t}", "private void jb_modificarActionPerformed(java.awt.event.ActionEvent evt) {\n String Arch = JOptionPane.showInputDialog(\"INGRESE LA CARPETA A MODIFICAR\");\n String NEWArch = JOptionPane.showInputDialog(\"INGRESE EL NUEVO NOMBRE DE LA CARPETA\");\n ini.ListaGen.modificarCAR(ListaGen.head, NombreUs, Arch, NEWArch);\n }", "@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}", "@Test\n\tpublic void testDeveFalharAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveFalharAlterarDocumentoExistente());\n\t\tAssert.assertEquals(0, d, 0.0001);\t\n\t}", "private boolean renomeiaArquivo(File origem, File destino)\n\t{\n\t\t// Tenta executar o renameTo da classe File. Caso o destino seja em filesystem diferente entao\n\t\t// este comando ira falhar, portanto realiza a copia do arquivo, executa o delete para entao\n\t\t// retornar a funcao\n\t\tboolean renomeou = origem.renameTo(destino);\n\t\t// Se o comando falhou entao tenta copiar e apagar o arquivo\n\t\tif (!renomeou)\n\t\t{\n\t\t\trenomeou = copiaArquivo(origem,destino);\n\t\t\t// Caso tenha conseguido copiar o arquivo origem para o destino, entao remove o arquivo\n\t\t\t// origem. Simulacao do move.\n\t\t\tif (renomeou)\n\t\t\t\trenomeou = origem.delete();\n\t\t}\n\t\treturn renomeou;\n\t}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public void ativa() {\n this.ativada = true;\n }", "private boolean puedeModificarAprRepOtroUsuario(String empresa, String local, String tipoDocumento, String codigoDocumento, String codigoVistoBueno, boolean checkSeleccionado, int fila, int columna){\n boolean blnRes=false;\n String strArlVisBueDbCodEmp=\"\", strArlVisBueDbCodLoc=\"\", strArlVisBueDbCodTipDoc=\"\", strArlVisBueDbCodDoc=\"\";\n String strArlVisBueDbCodVisBue=\"\", strArlVisBueDbEstVisBue=\"\", strArlVisBueDbCodUsr=\"\";\n String strTblVisBueDbCodEmp=empresa;\n String strTblVisBueDbCodLoc=local;\n String strTblVisBueDbCodTipDoc=tipoDocumento;\n String strTblVisBueDbCodDoc=codigoDocumento;\n String strTblVisBueDbCodVisBue=codigoVistoBueno;\n boolean blnChkSel=checkSeleccionado;\n int intFil=fila;\n int intCol=columna;\n int w=0;\n //System.out.println(\"puedeModificarAprRepOtroUsuario: \" + arlDatCodVisBueDB.toString());\n try{\n for(int k=0; k<arlDatCodVisBueDB.size(); k++){\n w=0;\n strArlVisBueDbCodEmp=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_EMP_DB);\n strArlVisBueDbCodLoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_LOC_DB);\n strArlVisBueDbCodTipDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_TIP_DOC_DB);\n strArlVisBueDbCodDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_DOC_DB);\n strArlVisBueDbCodVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB);\n strArlVisBueDbEstVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB);\n strArlVisBueDbCodUsr=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB);\n\n if(strTblVisBueDbCodEmp.equals(strArlVisBueDbCodEmp)){\n if(strTblVisBueDbCodLoc.equals(strArlVisBueDbCodLoc)){\n if(strTblVisBueDbCodTipDoc.equals(strArlVisBueDbCodTipDoc)){\n if(strTblVisBueDbCodDoc.equals(strArlVisBueDbCodDoc)){\n if(strArlVisBueDbCodVisBue.equals(strTblVisBueDbCodVisBue)){\n if( (strArlVisBueDbEstVisBue.equals(\"A\")) || (strArlVisBueDbEstVisBue.equals(\"D\")) ){\n if(! strArlVisBueDbCodUsr.equals(\"\"+objParSis.getCodigoUsuario())){\n objTblMod.setChecked(blnChkSel, intFil, intCol);\n mostrarMsgInf(\"<HTML>El visto bueno que intenta modificar ya fue Aprobado/Reprobado por otro usuario.<BR>El otro usuario debe reversar para que ud. pueda realizar la Aprobación/Reprobación,<BR> o dicho usuario deberá modificarlo. </HTML>\");\n blnRes=true;\n break;\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }", "@Override\r\n\tpublic void funcionalidad(boolean aceptado) {\r\n\t\tif (aceptado) {\r\n\t\t\tbtn_guardar.removeAll();\r\n\t\t\tbtn_cancelar.removeAll();\r\n\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\tbtn_crear.setVisible(true);\r\n\r\n\t\t\tif (validarDatos()) {\r\n\t\t\t\t// Actualizar miOferta\r\n\t\t\t\tmiOferta.setDescripcion(txArea_descripcion.getText());\r\n\t\t\t\tmiOferta.setLugar(txField_lugar.getText());\r\n\t\t\t\tmiOferta.setExperiencia(Float.parseFloat(txField_experiencia.getText()));\r\n\t\t\t\tmiOferta.setContrato(((Contrato) combo_contrato.getSelectedItem()));\r\n\t\t\t\tmiOferta.setSalarioMax(Integer.parseInt(txField_sueldoMax.getText()));\r\n\t\t\t\tmiOferta.setSalarioMin(Integer.parseInt(txField_sueldoMin.getText()));\r\n\t\t\t\tmiOferta.setAspectosImprescindibles(txArea_aspectosImpres.getText());\r\n\t\t\t\tmiOferta.setAspectosAValorar(txArea_aspectosValorar.getText());\r\n\t\t\t\tmiOferta.setConocimientos(pa_conocimientos.getConocimientosAnadidos());\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tUtilidadesBD.actualizarOferta(miOferta);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private native boolean setModoEnfoque(int modo);", "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "public boolean alterarIDItemCardapio(){\n\t\tif(\tid_item_pedido \t\t> 0 && //Verifica se o item do pedido informado é maior que zero, se existe, se não está fechado, verifica se o item do cardapio informado existe e se está disponível\r\n\t\t\tconsultar().size() \t> 0 && \r\n\t\t\tconsultar().get(5)\t.equals(\"Aberto\")/* &&\r\n\t\t\titem_cardapio.consultar().size()>0 &&\r\n\t\t\titem_cardapio.consultar().get(4).equals(\"Disponível\")*/\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\treturn new Item_Pedido_DAO().alterarIDItemCardapio(id_item_pedido, id_item_cardapio);\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean actualizarLibroDeMiLista(int valoracionPersona, int recomendacion, int leido) throws SQLException {\r\n String inserccion = \"UPDATE registra_libro SET valoracion = \" + valoracionPersona + \" , recomendacion = \" + recomendacion + \",visualizado=\" + leido + \" WHERE titulo_libro LIKE '\"\r\n + titulo + \"' AND nombre_usuario LIKE '\" + usuario + \"'\";\r\n boolean resul = insertarOActualizarCampos(inserccion);\r\n return resul;\r\n }", "private void miInregistrareActionPerformed(java.awt.event.ActionEvent evt) { \n try {\n int n = Integer.parseInt(JOptionPane.showInputDialog(rootPane, \"Introduceti codul de validare:\", \"Confirmare\", JOptionPane.QUESTION_MESSAGE));\n if (n == cod) {\n // In cazul introducerii codului de inregistrare corect, toate functionalitatile aplicatiei devin accesibile, altfel se genereaza exceptie\n lblReclama.setVisible(false);\n miDeschidere.setEnabled(true);\n miSalvare.setEnabled(true);\n miInregistrare.setEnabled(false);\n btnAdauga.setEnabled(true);\n btnModifica.setEnabled(true);\n btnSterge.setEnabled(true);\n lblCod.setVisible(false);\n cbFiltre.setEnabled(true);\n cbOrdonari.setEnabled(true);\n tfPersonalizat.setEditable(true);\n } else {\n throw new NumberFormatException();\n }\n } catch (NumberFormatException numberFormatException) {\n JOptionPane.showMessageDialog(null, \"Cod de validare eronat!\");\n }\n\n }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public void verificaRestricaoDaTabelaClienteImovel(ClienteImovel clienteImovelRemovido)\r\n\t\t\tthrows ControladorException {\r\n\r\n\t\t// Obt�m a fachada\r\n\t\tFachada fachada = Fachada.getInstancia();\r\n\r\n\t\t// Pesquisa que carrega o objeto Imovel.\r\n\t\tFiltroClienteImovel filtro = new FiltroClienteImovel();\r\n\t\tfiltro.adicionarCaminhoParaCarregamentoEntidade(FiltroClienteImovel.IMOVEL);\r\n\r\n\t\t// Verifica a Restri��o da base -- UNIQUE INDEX xak1_cliente_imovel --\r\n\t\t// clie_id\r\n\t\tif (clienteImovelRemovido.getCliente().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroClienteImovel.CLIENTE_ID, clienteImovelRemovido.getCliente().getId()));\r\n\t\t}\r\n\t\t// imov_id\r\n\t\tif (clienteImovelRemovido.getImovel().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroClienteImovel.IMOVEL_ID, clienteImovelRemovido.getImovel().getId()));\r\n\t\t}\r\n\t\t// crtp_id\r\n\t\tif (clienteImovelRemovido.getClienteRelacaoTipo().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.CLIENTE_RELACAO_TIPO_ID,\r\n\t\t\t\t\tclienteImovelRemovido.getClienteRelacaoTipo().getId()));\r\n\t\t}\r\n\t\t// clim_dtrelacaoinicio\r\n\t\tif (clienteImovelRemovido.getDataInicioRelacao() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_INICIO_RELACAO,\r\n\t\t\t\t\tclienteImovelRemovido.getDataInicioRelacao()));\r\n\t\t}\r\n\t\t// clim_dtrelacaofim\r\n\t\tif (clienteImovelRemovido.getDataFimRelacao() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_FIM_RELACAO,\r\n\t\t\t\t\tclienteImovelRemovido.getDataFimRelacao()));\r\n\t\t} else {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_FIM_RELACAO, new Date()));\r\n\t\t}\r\n\r\n\t\tCollection retornoClienteImovel = fachada.pesquisar(filtro, ClienteImovel.class.getName());\r\n\r\n\t\tif (retornoClienteImovel != null && !retornoClienteImovel.equals(\"\") && retornoClienteImovel.size() != 0) {\r\n\t\t\tClienteImovel clienteImovel = (ClienteImovel) Util.retonarObjetoDeColecao(retornoClienteImovel);\r\n\t\t\tif (clienteImovel.getDataFimRelacao() != null) {\r\n\t\t\t\tthrow new ControladorException(\"atencao.dependencias.existentes\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "private void fixModButtonListener() {\n\t\tmodButton.addActionListener(new ActionListener() {\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tVehiculo vehiculo = null;\n\t\t\t\t\t\tboolean correct = true;\n\t\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!camposVacios() && camposNumCorrectos()){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(tipoBox.getSelectedIndex() != 0){\n\t\t\t\t\t\t\t\tint auxAnio = Integer.parseInt(anioText.getText());\n\t\t\t\t\t\t\t\tint anioActual = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\t\t\t\t\t\tif(1950 <= auxAnio && auxAnio <= anioActual){\n\t\t\t\t\t\t\t\t\tvehiculo = new Vehiculo(\n\t\t\t\t\t\t\t\t\tvehiculoSelected.getMatricula(), \n\t\t\t\t\t\t\t\t\tauxAnio, \n\t\t\t\t\t\t\t\t\tmarcaText.getText().trim(), \n\t\t\t\t\t\t\t\t\tmodeloText.getText().trim(),\n\t\t\t\t\t\t\t\t\t((String)estadoBox.getSelectedItem()),\n\t\t\t\t\t\t\t\t\titvText.getText().trim(),\n\t\t\t\t\t\t\t\t\t((String)tipoBox.getSelectedItem()),\n\t\t\t\t\t\t\t\t\tcorrect\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\t\t\tmessageError = \"La antigüedad del vehículo debe estar comprendida entre 1950 y \" + anioActual + \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\t\tmessageError = \"Por favor, seleccione un tipo de vehículo.\";\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\tmessageError = \"Por favor, revise los campos, no deben estar vacíos y deben ser números donde corresponda.\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(correct){\n\t\t\t\t\t\t\tif(confirmar(\"Modificar\", \"modificar\") == YES)\n\t\t\t\t\t\t\t\tcontrolador.modificarVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tshowError(\"Error\", messageError);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t}", "boolean isModified();", "boolean isModified();", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public static void setContribuicaoUmidadeEquip(Integer alteracao) {\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(alteracao.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public boolean isModified() {\n return MTBTypesKey_is_modified || \n type_is_modified || \n description_is_modified || \n tableName_is_modified || \n columnName_is_modified || \n createUser_is_modified || \n createDate_is_modified || \n updateUser_is_modified || \n updateDate_is_modified;\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "private void imprimirProgresso(AtualizacaoUI.Comunicado comunicado){\n\n if(comunicado.obterLimite() != Sintaxe.SEM_REGISTO){\n if(activityUploadBinding.progressBarProgresso.getMax() != comunicado.obterLimite()){\n activityUploadBinding.progressBarProgresso.setMax(comunicado.obterLimite());\n }\n }\n\n activityUploadBinding.txtProgresso.setText(comunicado.obterPosicao() + \"/\" + comunicado.obterLimite());\n activityUploadBinding.txtTituloProgresso.setText(comunicado.obterMensagem());\n activityUploadBinding.progressBarProgresso.setProgress(comunicado.obterPosicao());\n }", "private void atualizarSituacaoArquivo(HttpServletResponse response, \r\n\t\tOutputStream out, long idArquivoTextoVisitaCampo) throws IOException {\r\n\t\ttry {\r\n\t\t\t//Atualiza o arquivo em campo\r\n\t\t\tSystem.out.println(\"INICIO: Atualizando a situacao do arquivo ID: \"+idArquivoTextoVisitaCampo);\r\n\t\t\t\r\n\t\t\tFiltroArquivoTextoVisitaCampo filtro = new FiltroArquivoTextoVisitaCampo();\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroArquivoTextoVisitaCampo.ID, idArquivoTextoVisitaCampo));\r\n\t\t\t\r\n\t\t\tCollection<ArquivoTextoVisitaCampo> colArquivoTexto = \r\n\t\t\t\t\tthis.getFachada().pesquisar(filtro, ArquivoTextoVisitaCampo.class.getName());\r\n\t\t\t\r\n\t\t\tArquivoTextoVisitaCampo arquivoTextoVisitaCampo = (ArquivoTextoVisitaCampo) Util.retonarObjetoDeColecao(colArquivoTexto);\r\n\t\t\t\r\n\t\t\tif(arquivoTextoVisitaCampo != null){\r\n\t\t\t\tSituacaoTransmissaoLeitura situacao = new SituacaoTransmissaoLeitura(SituacaoTransmissaoLeitura.EM_CAMPO);\r\n\t\t\t\tarquivoTextoVisitaCampo.setSituacaoTransmissaoLeitura(situacao);\r\n\t\t\t\tarquivoTextoVisitaCampo.setDataEnvioArquivo(new Date());\r\n\t\t\t\t\r\n\t\t\t\tthis.getFachada().atualizar(arquivoTextoVisitaCampo);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.write(RESPOSTA_OK);\r\n\t\t\tout.flush();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"FIM: Atualizando a situacao do arquivo ID: \"+idArquivoTextoVisitaCampo);\r\n\t\t\t\r\n\t\t} catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"ERROR: Ao atualizar situacao do arquivo em campo ID:\"+idArquivoTextoVisitaCampo);\r\n\t\t\tresponse.setContentLength(1);\r\n\t\t\t\r\n\t\t\tout.write(RESPOSTA_ERRO);\r\n\t\t\tout.flush();\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }", "abstract void trataAltera();", "public boolean cambiarContrasena(Usuario creador, int id, String contrasenaNueva, String contrasenaAnterior,boolean cambiarContra){\r\n if(creador.isAdmin()){\r\n try {\r\n String sql=\"\";\r\n if(cambiarContra){\r\n sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=1 where id=\"+id;\r\n }\r\n else{\r\n sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=0 where id=\"+id;\r\n }\r\n Statement s= connection.createStatement();\r\n int result = s.executeUpdate(sql);\r\n if(result>0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n else{\r\n if(creador.getId()== id){\r\n try {\r\n String sql= \"Update sistemasEM.usuarios set contrasena=MD5('\"+contrasenaNueva+\"'), cambiarContra=0 where id=\"+id + \" and contrasena=MD5('\"+contrasenaAnterior+\"')\";\r\n Statement s= connection.createStatement();\r\n int result = s.executeUpdate(sql);\r\n if(result>0){\r\n creador.setCambiarcontra(false);\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public void alterarLeituristaMovimentoRoteiroEmpresa( Integer idRota, Integer anoMes, Integer idLeituristaNovo ) throws ErroRepositorioException;" ]
[ "0.6965008", "0.63845146", "0.6273276", "0.6162897", "0.6121299", "0.6065877", "0.60008603", "0.5995705", "0.59376353", "0.5935058", "0.5923186", "0.58647877", "0.5863335", "0.58615685", "0.5828057", "0.58221394", "0.5819011", "0.5815814", "0.5764641", "0.57532215", "0.5752502", "0.5746625", "0.57436335", "0.57400924", "0.5732105", "0.57273537", "0.5704772", "0.56945044", "0.5685987", "0.5683339", "0.5682603", "0.5678013", "0.56752187", "0.5672963", "0.5670663", "0.5669305", "0.5657372", "0.56567305", "0.5642751", "0.5642299", "0.56340533", "0.5633715", "0.561976", "0.5613332", "0.5609002", "0.56051594", "0.5602298", "0.5599226", "0.55983776", "0.5590187", "0.5588096", "0.55836743", "0.5582381", "0.55731857", "0.5571656", "0.55703866", "0.5568539", "0.55658656", "0.55644375", "0.55618745", "0.555263", "0.55486244", "0.5542038", "0.5537665", "0.553427", "0.552991", "0.5529894", "0.5529186", "0.5522688", "0.5519856", "0.5519678", "0.5517895", "0.5513714", "0.5511011", "0.55035967", "0.55013907", "0.5501199", "0.54970783", "0.5495998", "0.5494009", "0.54939425", "0.54929554", "0.5491298", "0.5485922", "0.5484882", "0.5481307", "0.54811543", "0.54734224", "0.54724413", "0.54724413", "0.54689574", "0.54668474", "0.54656893", "0.54626685", "0.54626435", "0.5461937", "0.5459372", "0.54590684", "0.5450749", "0.54480124", "0.54405075" ]
0.0
-1
mi informa il giocatore che deve tirare i dadi
@Override public void notifyRollDice() { try { if (getClientInterface() != null) getClientInterface().notifyHaveToShotDice(); } catch (RemoteException e) { System.out.println("remote sending have to shot error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "@Override\n\tpublic String exibirDados() {\n\t\ttoString();\n\t\tString message = toString() + \"\\nimc: \" + calculaImc();\n\t\treturn message;\n\t}", "public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void diagrafiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi sto farmakeio\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA IATRWN\");\n\t\t\t// Emfanizw olous tous giatrous\n\t\t\tfor(int j = 0; j < numOfDoctors; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA IATROU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tdoctor[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU IATROU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO IATROU: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous giatrous mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfDoctors - 1; k++)\n\t\t\t{\n\t\t\t\tdoctor[k] = doctor[k+1]; // Metakinw ton giatro sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfDoctors--; // Meiwse ton ari8mo twn giatrwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI GIATROI PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String toString() {\n\t\treturn \"CURSO=\" + idC + \" ASISTEN un TOTAL de: \" +dniE+\" estudiantes\\n\";\n\t}", "public String verDados() {\n\t\treturn super.verDados() + \"\\nSobremesa: \" + this.adicionais;\n\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public String getRagione_sociale() {\r\n return ragione_sociale;\r\n }", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}", "private void creaAddebitiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n boolean continua;\n Filtro filtro;\n int[] interi;\n ArrayList<Integer> codici = null;\n Modulo modAddFisso;\n Modulo modConto;\n boolean chiuso;\n\n try { // prova ad eseguire il codice\n\n /* controllo se il conto e' aperto */\n modConto = Albergo.Moduli.Conto();\n chiuso = modConto.query().valoreBool(Conto.Cam.chiuso.get(), codConto);\n continua = (!chiuso);\n\n if (continua) {\n\n /* filtro che isola gli addebiti fissi da eseguire\n * per il giorno e il conto dati */\n filtro = this.getFiltroFissiGiornoConto(data, codConto);\n continua = filtro != null;\n\n /* crea elenco dei codici addebito fisso da elaborare */\n if (continua) {\n modAddFisso = Albergo.Moduli.AddebitoFisso();\n interi = modAddFisso.query().valoriChiave(filtro);\n codici = Lib.Array.creaLista(interi);\n }// fine del blocco if\n\n /* crea un addebito effettivo per ogni addebito fisso */\n if (codici != null) {\n for (int cod : codici) {\n this.creaSingoloAddebito(cod, data);\n } // fine del ciclo for-each\n }// fine del blocco if\n\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "private void agregarDiccionario(Palabra palabra){\n if (!dic.contiene(palabra)) {\n boolean su = sugerencia(palabra);\n if(su){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea agregar: ´\"+palabra.getCadena()+\"´ al diccionario?\", \"Agregar!\", JOptionPane.YES_NO_OPTION);\n if (d == 0) \n dic.agrega(palabra);\n }\n }else {\n JOptionPane.showMessageDialog(null,\"--La palabra ya se encuentra en el diccionario.--\\n --\"+dic.busca(palabra).toString());\n }\n }", "public String getDia() {\n\t\treturn this.dia;\n\t}", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public void getSconti() {\r\n\t\tsconti = ac.getScontiDisponibili();\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaSconti!= null) {\r\n\t\t\tvaloreScontiCol.setCellValueFactory(new PropertyValueFactory<Sconto, Integer>(\"valore\"));\r\n\t puntiRichiestiCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"puntiRichiesti\"));\r\n\t spesaMinimaCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"spesaMinima\"));\r\n\t \r\n\t Collections.sort(sconti);\r\n\t tabellaSconti.getItems().setAll(sconti);\r\n\t \r\n\t tabellaSconti.setOnMouseClicked(e -> {\r\n\t \tif(aggiungi.isDisabled() && elimina.isDisabled()) \r\n\t \t\ttotale.setText(\"\" + ac.applicaSconto(tabellaSconti.getSelectionModel().getSelectedItem()));\r\n\t });\r\n\t }\r\n\t}", "public String getDiaLibre() {\n return diaLibre;\n }", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public void carregar(DadosGrafico dados){\r\n \r\n }", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void ektypwsiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR DOCTOR No.\" + (i+1) + \":\");\n\t\t\t\tdoctor[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI GIATROI PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }", "public void mostraOggetto(int idGioc, String value){\n\t\t if(\"Y\".equals(value))\n\t\t\t partita.getPlayers().getGiocatore(idGioc).mostraEquipaggiamento();\n\t\t if(\"N\".equals(value)){\n\t\t\t StatiGioco prossimoStato=partita.nextPhase(StatiGioco.OBJECTSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\t\t partita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t\t\t if(prossimoStato.equals(StatiGioco.DRAWSTATE))\n\t\t\t\tsuono(idGioc); \n\t\t\t}\n\t\t\treturn;\n\n\t }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public MENU_ADMINISTRADOR() {\n this.setContentPane(fondo);\n initComponents();\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n this.textField1.setText(dateFormat.format(date));\n System.out.println(\"almacenado DPI:\" + datos_solicitud_seguro.getA()[0]);\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public boolean tieneRepresentacionGrafica();", "@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String getDenumireCaroserie(int id) {\n c = db.rawQuery(\"select denumire from caroserii where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn Id +\" \"+ AdiSoyadi +\" \"+ eposta;\n\t}", "@Override\n\tpublic void dialogar() {\n\t\tSystem.out.println(\"Ofrece un Discurso \");\n\t\t\n\t}", "@Override\n public String toString() {\n return \"Id del Libro: \"+id+\" Nombre del Libro: \"+nombre+\" Disponibilidad: \"+disponibilidad;\n }", "public void setRagione_sociale(String ragione_sociale) {\r\n this.ragione_sociale = ragione_sociale;\r\n }", "public gui obtenerGrafica();", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "double getDiametro(){\n return raggio * 2;\n }", "public interface DadosGerais extends IDataStruct {\n \n @Data(size=8)\n IString nmPrograma() ;\n \n @Data(size=50)\n IString dFunlPrg() ;\n \n @Data(size=10)\n IString zInicPrct() ;\n \n @Data(size=8)\n IString hInicPrct() ;\n \n @Data(size=10)\n IString zFimPrct() ;\n \n @Data(size=8)\n IString hFimPrct() ;\n \n @Data(size=50)\n IString xCteuAlig() ;\n \n }", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public String getCalidad()\n {\n String cadenaADevolver = \"\";\n \n cadenaADevolver = (calidad >= FULLHD) ? \"FullHD\" : \"HD\";\n \n return cadenaADevolver;\n }", "private void dibujarReina(Graphics g) {\n\t\tint x = (fila - 1) * 50 + 10;\r\n\t\tint y = (columna - 1) * 50 + 40;\r\n\t\tg.drawLine(x + 5, y + 45, x + 45, y + 45);\r\n\t\tg.drawLine(x + 5, y + 45, x + 5, y + 5);\r\n\t\tg.drawLine(x + 45, y + 45, x + 45, y + 5);\r\n\t\tg.drawLine(x + 5, y + 35, x + 45, y + 35);\r\n\t\tg.drawLine(x + 5, y + 5, x + 15, y + 20);\r\n\t\tg.drawLine(x + 15, y + 20, x + 25, y + 5);\r\n\t\tg.drawLine(x + 25, y + 5, x + 35, y + 20);\r\n\t\tg.drawLine(x + 35, y + 20, x + 45, y + 5);\r\n\t\tg.drawOval(x + 20, y + 20, 10, 10);\r\n\t}", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }", "public int menuGeneral(UneCommande22<Integer> cde,TableArticle22 tabArt, int numCde) {\n\t\t\t\tString menu = \"\\n\\t\\t GESTION d'une COMMANDE \\n\"\n\t\t\t\t\t\t +\"\\n\\t SAISIR une LIGNE DE COMMANDE.......................1\" //creerLcd(cde, tabArt)\n\t\t\t\t\t\t +\"\\n\\t AFFICHER la COMMANDE EN COURS......................2\" //afficherLcd(cde)\n\t\t\t\t\t\t +\"\\n\\t EDITER la FACTURE..................................3\" //facturerCommande(cde, tabArt)\n\t\t\t\t\t\t +\"\\n\\t FIN................................................0\"\n\t\t\t\t\t\t\t +\"\\n\\t\\t\\t\\t VOTRE CHOIX:\";\n\t\t\t\treturn ClientJava1DateUser.lireEnt(menu, 0, 3);\t\t\n\t\t\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "public abstract java.lang.String getAcma_cierre();", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public String getCognome() {\r\n return cognome;\r\n }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public void Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }", "public String ingresarUbigeo24() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo);\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento24)) {\r\n\t\t\tubigeoDefecto24 = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto24);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia24)) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo+\"\")) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t\treturn getViewMant();\r\n\t\t}", "public void CARGARCODIGO(String console,String charI,String charF,NSRTableModel t){\n\t\tList<DGENERACIONCODIGOS> listDGeneracionCodigo =new ArrayList<DGENERACIONCODIGOS>();\n\t\tMap<String,String> mapa;\n\t\tint j=0;\n\t\tString codigo=\"\";\n\t\t/*LIMPIAR PANEL*/\n\t\ttry{\n\t\t\t//listGeneracionCodigo \t=\t(new GENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and PARAMETRO = ?\",ConfigInicial.LlenarConfig()[8].toString(),\"FrmPackingList\");\n//\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar();\n\t\t\t/*****************************TRAER DATOS DE CONSOLE*************************/\n\t\t\tArrayList<String> listcodigo=new ArrayList<String>();\n\t\t\tfor(int x=1;x<=listGeneracionCodigo.size();x++){\n\t\t\t\tlistcodigo.add(codigo=Constantes.buscarFragmentoTexto(console,charI,charF,x));\n\t\t\t}\n\t\t\t/**************************RECORRER CABECERA********************************/\n\t\t\tfor(GENERACIONCODIGOS gc : listGeneracionCodigo){\n\t\t\t\tmapa= new HashMap<String,String>();\n\t\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and IDGENERACION = ?\",gc.getIDEMPRESA(),gc.getIDGENERACION());\n\t\t\t\t/*BUSCAR CÓDIGO CON LONGITUD REQUERIDA*/\n\t\t\t\tcodigo=buscarCadenaxLongitud(listcodigo,gc.getBARCODETOTAL());\n\t\t\t\tj=0;\n\t\t\t\tfor(DGENERACIONCODIGOS dgc : listDGeneracionCodigo){\n\t\t\t\t\tmapa.put(dgc.getPARAMETRO(), codigo.substring(j,j+dgc.getNUMDIGITO()));\n\t\t\t\t\tj+=dgc.getNUMDIGITO();\n\t\t\t\t}\n\t\t\t\t/**********************************LLENAR DATOS**************************************/\n\t\t\t\tmapaGen = mapa;\n\t\t\t\tt.addRow(new Object[] { getPack().getIDEMPRESA(), getPack().getIDSUCURSAL(), getPack().getIDPACKING(),\n\t\t\t\t\t\tgetDetalleTM().getRowCount() + 1, mapaGen.get(\"NROPALETA\"),mapaGen.get(\"IDPRODCUTO\"), \"\",mapaGen.get(\"IDLOTEP\"), \"\", \"\", 0.0, 0.0, 0.0 });\n\t\t\t\t\tmapaGen = new HashMap<String,String>();\n\t\t\t}\n\t\t}catch (NisiraORMException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tConstantes.log.warn(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "Debut getDebut();", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public void creaAddebitiGiornalieri(AddebitoFissoPannello pannello,\n int codConto,\n Date dataInizio,\n Date dataFine) {\n /* variabili e costanti locali di lavoro */\n boolean continua = true;\n Modulo modAddFisso;\n ArrayList<CampoValore> campiFissi;\n Campo campoQuery;\n CampoValore campoVal;\n ArrayList<WrapListino> lista;\n ArrayList<AddebitoFissoPannello.Riga> righeDialogo = null;\n int quantita;\n\n try { // prova ad eseguire il codice\n\n modAddFisso = this.getModulo();\n campiFissi = new ArrayList<CampoValore>();\n\n /* recupera dal dialogo il valore obbligatorio del conto */\n if (continua) {\n campoQuery = modAddFisso.getCampo(Addebito.Cam.conto.get());\n campoVal = new CampoValore(campoQuery, codConto);\n campiFissi.add(campoVal);\n }// fine del blocco if\n\n /* recupera dal dialogo il pacchetto di righe selezionate */\n if (continua) {\n righeDialogo = pannello.getRigheSelezionate();\n }// fine del blocco if\n\n /* crea il pacchetto delle righe di addebito fisso da creare */\n if (continua) {\n\n /* traverso tutta la collezione delle righe selezionate nel pannello */\n for (AddebitoFissoPannello.Riga riga : righeDialogo) {\n lista = ListinoModulo.getPrezzi(riga.getCodListino(),\n dataInizio,\n dataFine,\n true,\n false);\n quantita = riga.getQuantita();\n for (WrapListino wrapper : lista) {\n this.creaAddebitoFisso(codConto, dataInizio, wrapper, quantita);\n }\n } // fine del ciclo for-each\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}", "public int getNumeroGiocatori() {\n return 0;\r\n }", "private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "@Override\n\tvoid geraDados() {\n\n\t}", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void showdenumire(String Denumire) {\n System.out.println(\"Numele materiei: \" + \"\\t\" + Denumire);\n }", "public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}", "public java.lang.String getCodigo_agencia();", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public String impostaRateoDopoAggiornamento() {\n\t\treturn SUCCESS;\t\n\t}", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "@Override\r\n\tpublic String toString() {\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n String dataInicioFormatada = this.dataInicio;\r\n\t\t\t\r\n\t\tsb.append(this.designacaoTorneio + \" | \");\r\n\t\tsb.append(dataInicioFormatada + \" | \");\r\n\t\tsb.append(this.jogadorAdversario.getNome() + \"\\t| \");\r\n\t\tsb.append(this.qtdEncontros + \" | \");\r\n\t\t\t\r\n\t\t\t\r\n\t\tdouble diferenca = jogadorCorrente.getPontos() - this.jogadorAdversario.getPontos();\r\n\t\t\t\r\n\t\tif (diferenca < 0.0)\r\n\t\t\tsb.append((Math.round(diferenca * 100) / 100.0) + \"\\n\");\r\n\t\t\t\r\n\t\telse\r\n\t\t\tsb.append(\"+\" + (Math.round(diferenca * 100) / 100.0));\r\n\r\n\t\tif (sb.length() == 0)\r\n\t\t\tsb.append(VisualizarEncontroDTO.NAO_EXISTEM_CONFRONTOS);\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public String getDescrizioneClassificatoreGSA() {\n\t\treturn getPrimaNota() != null && getPrimaNota().getClassificatoreGSA() != null\n\t\t\t\t? getPrimaNota().getClassificatoreGSA().getCodice() + \" - \" + getPrimaNota().getClassificatoreGSA().getDescrizione()\n\t\t\t\t: \"Nessun classificatore presente\"; \n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic String obtenerDescripcion() {\n\t\treturn this.combo.obtenerDescripcion() + \"+ Porcion de Carne\";\r\n\t}" ]
[ "0.6730571", "0.66811824", "0.6612346", "0.6535037", "0.6431082", "0.6361448", "0.6315179", "0.6306969", "0.63065064", "0.63054127", "0.63016504", "0.62810224", "0.6264575", "0.6250319", "0.624394", "0.62199175", "0.6161039", "0.6152224", "0.61495703", "0.6125063", "0.6102027", "0.61004424", "0.60963696", "0.60684615", "0.60508865", "0.6043723", "0.604303", "0.604287", "0.60404724", "0.60260904", "0.6021566", "0.60195434", "0.60131395", "0.6011614", "0.6011121", "0.60063154", "0.6000145", "0.5999329", "0.5992744", "0.59905577", "0.59827", "0.5981563", "0.59764653", "0.59762037", "0.5969", "0.59679395", "0.59645677", "0.5957076", "0.59447813", "0.59391886", "0.5936879", "0.5932794", "0.5932413", "0.5927597", "0.5926677", "0.5925545", "0.5924895", "0.59232706", "0.5918371", "0.5892042", "0.5883128", "0.58826524", "0.58768743", "0.58755887", "0.5874917", "0.5869416", "0.5867888", "0.58624494", "0.5854175", "0.58494604", "0.58494526", "0.58484495", "0.5845706", "0.58449066", "0.5843566", "0.5837347", "0.58366644", "0.58347464", "0.583323", "0.58330095", "0.582505", "0.5821227", "0.58202827", "0.581968", "0.5816642", "0.58165497", "0.5816078", "0.5815544", "0.58135295", "0.5811678", "0.5800697", "0.5800166", "0.57985765", "0.57978636", "0.57963926", "0.5795725", "0.57940775", "0.5793286", "0.5792325", "0.5790337", "0.57869184" ]
0.0
-1
mi invia i valori dei dadi ai giocatori
@Override public void sendDicesValues(int orange, int white, int black) { try { if (getClientInterface() != null) getClientInterface().setDiceValues(orange, white, black); } catch (RemoteException e) { System.out.println("remote sending dice values error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void enfoncerEgal() {\n\t\tthis.pile.push(this.valC);\n\t\tthis.raz = true;\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "@Override\n\tpublic double mencariGajiKotor() {\n\t\treturn super.mencariGajiKotor()+mencariBonus();\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void decida(){\n int vecinasVivas=vecinos();\n if(vecinasVivas==3 && estadoActual=='m'){\n estadoSiguiente='v';\n }else if((estadoActual=='v' && vecinasVivas==2) || (estadoActual=='v' && vecinasVivas==3)){\n estadoSiguiente='v';\n }else if(vecinasVivas<2 || vecinasVivas>3){\n estadoSiguiente='m';\n }\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "public boolean tieneRepresentacionGrafica();", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "private int giveValue(int joueur, int adversaire, Grid grid) {\n return evaluate(joueur, grid) - evaluate(adversaire, grid);\n }", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "void datos(ConversionesCapsula c) {\n String v;\n\n\n v = d.readString(\"Selecciona opcion de conversion\"\n + \"\\n1 ingles a metrico\"\n + \"\\n2 metrico a ingles\"\n + \"\\n3 metrico a metrico\"\n + \"\\n4 ingles a ingles\");\n c.setopc((Integer.parseInt(v)));\n int opc = (int) conversion.getopc();\n switch (opc) {\n case 1:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a metros\"\n + \"\\n2 Pies a centimetros\"\n + \"\\n3 Pies a Metros y Centimetros\"\n + \"\\n4 Pulgadas a metros\"\n + \"\\n5 Pulgadas a centimetros\"\n + \"\\n6 Pulgadas a Metros y Centimetros\"\n + \"\\n7 Pies y Pulgadas a metros\"\n + \"\\n8 Pies y Pulgadas a centimetros\"\n + \"\\n9 Pies y Pulgadas a Metros y Centimetros\");\n c.setopc1((Integer.parseInt(v)));\n\n\n break;\n case 2:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Pies\"\n + \"\\n2 Metros a Pulgadas\"\n + \"\\n3 Metros a Pies y Pulgadas\"\n + \"\\n4 Centimetros a Pies\"\n + \"\\n5 Centimetros a Pulgadas\"\n + \"\\n6 Centimetros a Pies y Pulgadas\"\n + \"\\n7 Metros y Centimetros a Pies\"\n + \"\\n8 Metros y Centimetros a Pulgadas\"\n + \"\\n9 Metros y Centimetros a Pies y Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 3:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Centimetros\"\n + \"\\n2 Metros a Metros y Centimetros\"\n + \"\\n3 Centimetros a Metros\"\n + \"\\n4 Centimetros a Metros y Centimetros\"\n + \"\\n5 Metros y Centimetros a Centimetros\"\n + \"\\n9 Metros y Centimetros a Metros\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 4:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a Pulgadas\"\n + \"\\n2 Pies a Pies y Pulgadas\"\n + \"\\n3 Pulgadas a Pies\"\n + \"\\n4 Pulgadas a Pies y Pulgadas\"\n + \"\\n5 Pies y Pulgadas a Pies\"\n + \"\\n9 Pies y Pulgadas a Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n }\n\n do v = d.readString(\"\\n Ingrese el valor: \\n\");\n while (!isNum(v));\n c.setvalor((Double.parseDouble(v)));\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "double getDiametro(){\n return raggio * 2;\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }", "public void decida(){\r\n int f=this.getFila();\r\n int c=this.getColumna();\r\n int cont=alRededor(f,c);\r\n if(this.isVivo()){\r\n if(cont==2 || cont==3){\r\n estadoSiguiente=VIVA;\r\n }else/* if(cont==1 || cont>3)*/{\r\n estadoSiguiente=MUERTA;\r\n }\r\n }else{\r\n if(cont==3){\r\n estadoSiguiente=VIVA;\r\n }else if(cont==1 || cont>3){\r\n estadoSiguiente=MUERTA;\r\n }\r\n }\r\n }", "private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public int gradoAlt() {\n \tint[] gradosEntr = new int[numV];\n \tint[] gradosSal = new int[numV];\n \tfor(int i = 0; i<numV; i++) {\n \t\tgradosEntr[i] = gradoEntrada(i);\n \t\tgradosSal[i] = gradoSalida(i);\n \t}\n \tint[] contGrado = new int[numV];\n \tfor(int i = 0; i<numV; i++) {\n \t\tcontGrado[i] = gradosEntr[i] + gradosSal[i];\n \t}\n \t return maximo(contGrado); \n }", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }", "private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }", "public void diagrafiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi sto farmakeio\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA IATRWN\");\n\t\t\t// Emfanizw olous tous giatrous\n\t\t\tfor(int j = 0; j < numOfDoctors; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA IATROU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tdoctor[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU IATROU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO IATROU: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous giatrous mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfDoctors - 1; k++)\n\t\t\t{\n\t\t\t\tdoctor[k] = doctor[k+1]; // Metakinw ton giatro sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfDoctors--; // Meiwse ton ari8mo twn giatrwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI GIATROI PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "public void mostraOggetto(int idGioc, String value){\n\t\t if(\"Y\".equals(value))\n\t\t\t partita.getPlayers().getGiocatore(idGioc).mostraEquipaggiamento();\n\t\t if(\"N\".equals(value)){\n\t\t\t StatiGioco prossimoStato=partita.nextPhase(StatiGioco.OBJECTSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\t\t partita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t\t\t if(prossimoStato.equals(StatiGioco.DRAWSTATE))\n\t\t\t\tsuono(idGioc); \n\t\t\t}\n\t\t\treturn;\n\n\t }", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public void mutacioni(Individe individi, double probabiliteti) {\n int gjasaPerNdryshim = (int) ((1 / probabiliteti) * Math.random());\r\n if (gjasaPerNdryshim == 1) {\r\n int selectVetura1 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e pare\r\n int selectPikenKamioni1 = (int) (Math.random() * individi.pikatEVeturave[selectVetura1].size());//selekton piken e vetures tpare\r\n if (pikatEVeturave[selectVetura1].size() == 0) {\r\n return;\r\n }\r\n Point pika1 = individi.pikatEVeturave[selectVetura1].get(selectPikenKamioni1);//pika 1\r\n\r\n int selectVetura2 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e dyte\r\n int selectPikenKamioni2 = (int) (Math.random() * individi.pikatEVeturave[selectVetura2].size());//selekton piken e vetures tdyte\r\n if (pikatEVeturave[selectVetura2].size() == 0) {\r\n return;\r\n }\r\n Point pika2 = individi.pikatEVeturave[selectVetura2].get(selectPikenKamioni2);//pika 2\r\n\r\n individi.pikatEVeturave[selectVetura2].set(selectPikenKamioni2, pika1);//i ndrron vendet ketyre dy pikave\r\n individi.pikatEVeturave[selectVetura1].set(selectPikenKamioni1, pika2);\r\n }\r\n\r\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "private void volverValoresADefault( )\n {\n if( sensorManag != null )\n sensorManag.unregisterListener(sensorListener);\n gameOn=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n pantallaEstabaTapada=false;\n ((TextView)findViewById(R.id.txtPredSeg)).setText(\"\");\n segundosTranscurridos=0;\n }", "public static void main(String[] arhg) {\n\n Conta p1 = new Conta();\n p1.setNumConta(1515);\n p1.abrirConta(\"cp\");\n p1.setDono(\"wesley\");\n p1.deposita(500);\n // p1.saca(700); -> irá gera um erro pois o valor de saque especificado é superior ao valor que tem na conta\n\n p1.estadoAtual();\n }", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "public void validerSaisie();", "public Girasol(int x,int y){\n super(x,y);\n this.setComportamiento(\"Crea 20 soles cada 2 turnos\");\n this.setVidas(1);\n this.impresion=\"G(\"+this.getVidas()+\")\";\n this.setDaño(0);\n this.setFrecuencia(2);\n }", "public Gigamesh(int vel, int daño,String derecha, String izquierda,String arriba, String abajo, String ataca,String ataca2,String interact,String salta,int intervaloAtaque)\n {\n super(\"giga\",9,6,vel,daño,derecha,izquierda,arriba,abajo,ataca,ataca2,interact,salta,intervaloAtaque); \n \n }", "public void rodaAleatorio()\r\n {\r\n // Carrega os dados\r\n String ArqBD = \"Dados/Base\" + NUM_DB + \"/DADOS\" + NUM_PROV + \"x\" + NUM_PIS + \".txt\";\r\n String ArqReq = \"Requisicoes/Base\" + NUM_DB + \"/REQ\" + NUM_REQ + \"_\" + NUM_PIS + \".txt\";\r\n AvaliaFitness af = new AvaliaFitness(ArqBD, ArqReq);\r\n //af.imprime();\r\n \r\n // Variaveis\r\n int i, numIt, NUM_VARS = af.getBase_dados().getNumProvedores();\r\n long tempoInicial, tempoFinal;\r\n IndividuoBin atual;\r\n IndividuoBin melhor; \r\n IndividuoBin[] eleitos = new IndividuoBin[MAX_EXECUCOES]; \r\n double[] tempoExecusao = new double[MAX_EXECUCOES];\r\n \r\n System.out.println(\"# # # # # Algoritmo de Busca Aleatoria # # # # #\\n\"); \r\n //System.out.println(\"Espaço de busca: \" + (long)(Math.pow(2, NUM_VARS) - 1));\r\n System.out.println(\"NumProv: \" + NUM_PROV + \"\\nNumReq: \" + NUM_REQ + \"\\nNumPIs: \" + NUM_PIS + \"\\nNumDB: \" + NUM_DB);\r\n \r\n // Inicia as execuções\r\n int execucao = 1;\r\n // LOOP DE EXECUÇÕES\r\n while(execucao <= MAX_EXECUCOES)\r\n {\r\n numIt = 0; \r\n melhor = new IndividuoBin(NUM_VARS);\r\n // Inicia o cronômetro\r\n tempoInicial = System.currentTimeMillis(); \r\n // LOOP DE ITERAÇÕES\r\n while(numIt < MAX_ITERACOES)\r\n {\r\n atual = new IndividuoBin(NUM_VARS);\r\n atual.geraCodRand();\r\n //atual.imprimeCodificacao();\r\n af.fitness(atual);\r\n if(atual.getFitness() > melhor.getFitness())\r\n melhor = atual;\r\n \r\n numIt++;\r\n }\r\n // Interrompe o cronômetro\r\n tempoFinal = (System.currentTimeMillis() - tempoInicial);\r\n //System.out.println(\"\\nTempo de execução: \" + tempoFinal + \" ms ou \" + (tempoFinal/1000.0) + \" seg\\n\");\r\n \r\n // Guarda o melhor individuo e o tempo dessa execução\r\n eleitos[execucao - 1] = melhor;\r\n tempoExecusao[execucao - 1] = tempoFinal;\r\n \r\n // Imprime o melhor individuo\r\n System.out.println(\"\\nExecução \" + execucao + \": \");\r\n // Resposta\r\n if(!melhor.isPenalizado())\r\n {\r\n System.out.println(\"Melhor fitness: \" + melhor.getFitness());\r\n //System.out.print(\"Codificação: \");\r\n //melhor.imprimeCod();\r\n melhor.imprimeProvCod(); \r\n }\r\n else\r\n {\r\n System.out.println(\"Não foi encontrado um individuo valido com \" + MAX_ITERACOES + \" iterações.\"); \r\n System.out.println(\"Melhor fitness: \" + melhor.getFitness());\r\n //System.out.print(\"Codificação: \");\r\n //melhor.imprimeCod();\r\n melhor.imprimeProvCod(); \r\n }\r\n \r\n //System.out.println(\"\\nTempo da execução \" + execucao + \": \" + tempoFinal + \" ms ou \" + (tempoFinal/1000.0) + \" seg\");\r\n // Próxima execucao\r\n execucao++;\r\n } // Fim das execucoes\r\n \r\n // # # # # Estatisticas pós execuções do Aleatorio # # # #\r\n estatisticaFinais(eleitos, tempoExecusao);\r\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public int choisirAffichageValeur(SigneAffichage sa, DKnob sld){\n\t\tint val;\n\t\tint pas=ts.getEntInter();\n\t\tif(sa.equals(SigneAffichage.negatif)){\t\t\t\n\t\t\tval=(int)((pas*2) * sld.getValue())-pas;\n\t\t\tts.setNombreDeTrait(pas*2);\n\t\t}else if(sa.equals(SigneAffichage.positif)){\n\t\t\tval=(int)((pas) * sld.getValue());\n\t\t\tts.setNombreDeTrait(pas);\n\t\t}else{\n\t\t\tint Puissance=(int)(pas*sld.getValue());\n\t\t\tval=(int) Math.pow(2, Puissance);\n\t\t\tts.setNombreDeTrait(pas);\n\t\t}\n\t\treturn val;\n\t}", "@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "public void setRaggio(double raggio){\n this.raggio = raggio;\n }", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public int[][] MatrisKuralaUygun(int[][] girdi) {\n\t\tint Kontrol = 0; // cali hucreler kontrol etmek icin\r\n\t\tint[][] output = new int[girdi.length][girdi[0].length]; // [row][colum]\r\n\t\tfor (int i = 0; i < girdi.length; i++) {\r\n\t\t\tfor (int j = 0; j < girdi[0].length; j++) {\r\n\t\t\t\tfor (int k = 1; k < output[0].length - 1; k++) {// bu dongu tek seferlik calisir bir eklemek veya\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cikarmak icin\r\n\t\t\t\t\tif (j < 3 && i == 0) {// burda 0'inci satir icin // [0][0] saginda ve altiginda bakildi\r\n\t\t\t\t\t\tif (j != 2) {// hepsi Kontrola toplaniyor\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t} // [0][1] saginda ve solunda ve altinda hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];//\r\n\t\t\t\t\t\tif (j != 0) { // [0][2] sol ve alt hucrelere\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (i == 1 && j == 0) {// birinci satir sifirinci dikey\r\n\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j]; // [1][0] ust ve alt ve sag hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\t\t\t\t\t} else if ((i == 1 || i == 2) && (j == 2 || j == 1)) {\r\n\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\tKontrol += girdi[i + k][j];// [1][1] hem ust ve alt ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t} else if (i == 3 && (j < 3)) {// 2'inci satir icin\r\n\t\t\t\t\t\tif (j != 0) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j - k];\r\n\t\t\t\t\t\t} // [2][1] hem ust ve sag ve sol hucrelere bakildi\r\n\t\t\t\t\t\tKontrol += girdi[i - k][j];\r\n\r\n\t\t\t\t\t\tif (j != 2) {\r\n\t\t\t\t\t\t\tKontrol += girdi[i][j + k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (girdi[i][j] == 1 && Kontrol < 2) { // canli ise ve kontrol 2 den az ise\r\n\t\t\t\t\toutput[i][j] = 0;// sifir yazdir\r\n\t\t\t\t\tKontrol = 0;// Kontrol sifirlamamiz cok onemli yoksa kontrol hem artar\r\n\t\t\t\t} else if (girdi[i][j] == 1 && (Kontrol == 2 || Kontrol == 3)) { // canli ise ve kontrol 2 ve 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;// burda onemli\r\n\t\t\t\t} else if (girdi[i][j] == 1 && Kontrol > 3) { // canli ise ve kontrol 3 den cok ise\r\n\t\t\t\t\toutput[i][j] = 0;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else if (girdi[i][j] == 0 && Kontrol == 3) { // canli ise ve kontrol 3 ise\r\n\t\t\t\t\toutput[i][j] = 1;\r\n\t\t\t\t\tKontrol = 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toutput[i][j] = girdi[i][j];// eger yukardaki kosulari girilmedi ise aynisi yazdir\r\n\r\n\t\t\t\t\tKontrol = 0;// ve yine Kontrol sifir\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn output;// dizi donduruyor\r\n\r\n\t}", "public void creaAddebitiGiornalieri(AddebitoFissoPannello pannello,\n int codConto,\n Date dataInizio,\n Date dataFine) {\n /* variabili e costanti locali di lavoro */\n boolean continua = true;\n Modulo modAddFisso;\n ArrayList<CampoValore> campiFissi;\n Campo campoQuery;\n CampoValore campoVal;\n ArrayList<WrapListino> lista;\n ArrayList<AddebitoFissoPannello.Riga> righeDialogo = null;\n int quantita;\n\n try { // prova ad eseguire il codice\n\n modAddFisso = this.getModulo();\n campiFissi = new ArrayList<CampoValore>();\n\n /* recupera dal dialogo il valore obbligatorio del conto */\n if (continua) {\n campoQuery = modAddFisso.getCampo(Addebito.Cam.conto.get());\n campoVal = new CampoValore(campoQuery, codConto);\n campiFissi.add(campoVal);\n }// fine del blocco if\n\n /* recupera dal dialogo il pacchetto di righe selezionate */\n if (continua) {\n righeDialogo = pannello.getRigheSelezionate();\n }// fine del blocco if\n\n /* crea il pacchetto delle righe di addebito fisso da creare */\n if (continua) {\n\n /* traverso tutta la collezione delle righe selezionate nel pannello */\n for (AddebitoFissoPannello.Riga riga : righeDialogo) {\n lista = ListinoModulo.getPrezzi(riga.getCodListino(),\n dataInizio,\n dataFine,\n true,\n false);\n quantita = riga.getQuantita();\n for (WrapListino wrapper : lista) {\n this.creaAddebitoFisso(codConto, dataInizio, wrapper, quantita);\n }\n } // fine del ciclo for-each\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void accionAtaques(int i) throws SQLException{\r\n if(turno ==0){\r\n if(pokemon_activo1.getCongelado() == false || pokemon_activo1.getDormido() == false){\r\n if(pokemon_activo1.getConfuso() == true && (int)(Math.random()*100) > 50){\r\n// inflingirDaño(pokemon_activo1.getMovimientos()[i], pokemon_activo1, pokemon_activo1);\r\n// System.out.println(\"El pokemon se ha hecho daño a si mismo!\");\r\n// try {\r\n// creg.guardarRegistroSimulacion(\"El pokemon se ha hecho daño a si mismo\");\r\n// } catch (IOException ex) {\r\n// Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n }\r\n else{\r\n inflingirDaño(pokemon_activo1.getMovimientos()[i], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n termino = true;\r\n if(esLider == true){\r\n cmed.ganoCombate();\r\n }\r\n }\r\n else if(getEquipo2()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo2()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo2()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo2()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo2()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo2()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n }\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_Nivel2(pokemon_activo2.getNivel());\r\n \r\n }\r\n va.setVisible(false);\r\n vc.setjL_Turno_actual(entrenador2.getNombre());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n if(tipo_simulacion == 1){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador2.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador2.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador2.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador2();\r\n this.turno = 1;\r\n }\r\n else if(tipo_simulacion == 2){\r\n if(termino==false){\r\n turnoSistema();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n System.out.println(\"El pokemon no puede atacar\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El pokemon no puede atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if((int)(Math.random()*3) == 1){ //1/3 de probabilidad de desactivar el efecto\r\n pokemon_activo1.setCongelado(false);\r\n pokemon_activo1.setDormido(false);\r\n }\r\n }\r\n \r\n }\r\n else if(turno ==1){\r\n if(pokemon_activo2.getCongelado() == false || pokemon_activo2.getDormido() == false){\r\n if(pokemon_activo2.getConfuso() == true && (int)(Math.random()*100) > 50){\r\n// inflingirDaño(pokemon_activo2.getMovimientos()[i], pokemon_activo2, pokemon_activo2);\r\n// System.out.println(\"El pokemon se ha hecho daño a si mismo!\");\r\n// try {\r\n// creg.guardarRegistroSimulacion(\"El pokemon se ha hecho daño a si mismo!\");\r\n// } catch (IOException ex) {\r\n// Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n }\r\n else{\r\n inflingirDaño(pokemon_activo2.getMovimientos()[i], pokemon_activo1, pokemon_activo2);\r\n if(pokemon_activo1.getVida_restante() <= 0){\r\n pokemon_activo1.setVida_restante(0);\r\n pokemon_activo1.setDebilitado(true);\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Pokemon: \"+ pokemon_activo1.getPseudonimo()+\" se ha Debilitado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador2.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador2.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"El Ganador de este Combate es:\"+ entrenador2.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador2);\r\n combate.setPerdedor(entrenador1);\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_Nivel1(pokemon_activo1.getNivel());\r\n }\r\n va.setVisible(false);\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador1();\r\n this.turno = 0;\r\n }\r\n }\r\n else {\r\n System.out.println(\"El pokemon no puede atacar\");\r\n try {\r\n creg.guardarRegistroSimulacion(\"El pokemon no puede atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if((int)(Math.random()*3) == 1){ //1/3 de probabilidad de desactivar el efecto\r\n pokemon_activo2.setCongelado(false);\r\n pokemon_activo2.setDormido(false);\r\n }\r\n }\r\n }\r\n setLabelEstados(1);\r\n setLabelEstados(0); \r\n \r\n }", "public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public void setGiro( double gradosGiro ) {\r\n\t\t// De grados a radianes...\r\n\t\tmiGiro += gradosGiro;\r\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "float getIva();", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }" ]
[ "0.6357464", "0.62255573", "0.61927557", "0.6187694", "0.6136286", "0.6039893", "0.6015071", "0.60133123", "0.59747785", "0.59492314", "0.59396815", "0.5937007", "0.5922132", "0.5916638", "0.58805853", "0.5876198", "0.58672184", "0.58641356", "0.58592063", "0.585891", "0.5854321", "0.584773", "0.58477294", "0.58451414", "0.5843849", "0.5832103", "0.5822072", "0.58115995", "0.5769849", "0.57623464", "0.5750801", "0.5746124", "0.5745387", "0.5737286", "0.5726858", "0.5723603", "0.5719786", "0.57076126", "0.5705341", "0.56959593", "0.5692678", "0.56910783", "0.56909716", "0.56830585", "0.5683012", "0.56786776", "0.5678633", "0.5676751", "0.5672126", "0.56715715", "0.56621355", "0.56577957", "0.56566244", "0.56489366", "0.5647018", "0.5641796", "0.5641586", "0.5641484", "0.562714", "0.56232697", "0.56228805", "0.5621902", "0.5618472", "0.5618397", "0.5614863", "0.5614541", "0.56134236", "0.5612269", "0.56009203", "0.5600885", "0.5597282", "0.5596992", "0.5595952", "0.55810183", "0.5578833", "0.5576056", "0.557312", "0.55729884", "0.55678076", "0.5561218", "0.55573237", "0.5557162", "0.55538213", "0.5552394", "0.5549287", "0.55466664", "0.55391645", "0.5537202", "0.55276394", "0.55253226", "0.5525255", "0.5520602", "0.55093354", "0.5508975", "0.55040133", "0.54976344", "0.5494952", "0.54946953", "0.5492912", "0.5491306", "0.54912865" ]
0.0
-1
metodo che invia al giocatore la lista delle carte sulle torri
@Override public void initializeBoard(List<DevelopmentCard> towersCardsList) { List<String> list = new ArrayList<>(); towersCardsList.forEach((developmentCard -> list.add(developmentCard.getName()))); try { if (getClientInterface() != null) getClientInterface().setTowersCards(list); } catch (RemoteException e) { System.out.println("remote sending tower cards error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public void listar() {\n\t\t\n\t}", "public void cargarListaCreditoTributarioSRI()\r\n/* 680: */ {\r\n/* 681:750 */ this.listaCreditoTributarioSRI = this.servicioCreditoTributario.buscarPorTipoComprobanteSRI(this.facturaProveedorSRI.getTipoComprobanteSRI(), this.facturaProveedorSRI\r\n/* 682:751 */ .getTipoIdentificacion());\r\n/* 683: */ }", "public void ouvrirListe(){\n\t\n}", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "public void chargeListe(){\n jCbListeEtablissement.removeAllItems();\n String sReq = \"From Etablissement\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Iterator eta = q.iterate();\n while(eta.hasNext())\n {\n Etablissement unEtablissement = (Etablissement) eta.next();\n jCbListeEtablissement.addItem(unEtablissement.getEtaNom());\n }\n bChargeListe = true;\n }", "protected List<String> listaVociCorrelate() {\n return null;\n }", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "protected void caricaListaContoTesoreria() throws WebServiceInvocationFailureException {\n\t\tList<ContoTesoreria> listaInSessione = sessionHandler.getParametro(BilSessionParameter.LISTA_CONTO_TESORERIA);\n\t\tif(listaInSessione == null) {\n\t\t\tLeggiContiTesoreria request = model.creaRequestLeggiContiTesoreria();\n\t\t\tlogServiceRequest(request);\n\t\t\tLeggiContiTesoreriaResponse response = preDocumentoSpesaService.leggiContiTesoreria(request);\n\t\t\tlogServiceResponse(response);\n\t\t\t\n\t\t\t// Controllo gli errori\n\t\t\tif(response.hasErrori()) {\n\t\t\t\t//si sono verificati degli errori: esco.\n\t\t\t\taddErrori(response);\n\t\t\t\tthrow new WebServiceInvocationFailureException(\"caricaListaContoTesoreria\");\n\t\t\t}\n\t\t\t\n\t\t\tlistaInSessione = response.getContiTesoreria();\n\t\t\tsessionHandler.setParametro(BilSessionParameter.LISTA_CONTO_TESORERIA, listaInSessione);\n\t\t}\n\t\t\n\t\tmodel.setListaContoTesoreria(listaInSessione);\n\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public List<Vendedor> listarVendedor();", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "List<Oficios> buscarActivas();", "public List<Mobibus> darMobibus();", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public void mostrarlistainicifin(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = inicio;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")<=>\";\n auxiliar = auxiliar.sig;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de inicio a fin\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "public static void main(String[] args) {\n\t\t\tScanner tastiera=new Scanner(System.in);\r\n\t\t\tint k=0, j=0;\r\n\t\t\tint conta=0;\r\n\t\t\tString risposta=\"\";\r\n\t\t\tRandom r=new Random();\r\n\t\t\tArrayList<Giocatore> partecipantiOrdinati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> partecipantiMescolati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> perdenti=new ArrayList<Giocatore>();\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tpartecipantiOrdinati.add(new Giocatore(GIOCATORI[i]));\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tint indice=Math.abs(r.nextInt()%partecipantiOrdinati.size());\r\n\t\t\t\tpartecipantiMescolati.add(partecipantiOrdinati.get(indice));\r\n\t\t\t\tpartecipantiOrdinati.remove(indice);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"INIZIA IL TORNEO DI BRISCOLA!\");\r\n\t\t\twhile(partecipantiMescolati.size()!=1) {\r\n\t\t\t\tSystem.out.println(\"Fase \"+(j+1));\r\n\t\t\twhile(conta<partecipantiMescolati.size()) {\r\n\t\t\t\tMazzo m=new Mazzo();\r\n\t\t\t\tm.ordinaMazzo();\r\n\t\t\t\tm.mescolaMazzo();\r\n\t\t\t\tGiocatore g1=partecipantiMescolati.get(conta);\r\n\t\t\t\tGiocatore g2=partecipantiMescolati.get(conta+1);\r\n\t\t\t\tPartita p=new Partita(g1,g2,m);\r\n\t\t\t\tSystem.out.println(\"Inizia la partita tra \"+g1.getNickName()+\" e \"+g2.getNickName());\r\n\t\t\t\tSystem.out.println(\"La briscola è: \"+p.getBriscola().getCarta());\r\n\t\t\t\tSystem.out.println(\"Vuoi skippare la partita? \"); risposta=tastiera.next();\r\n\t\t\t\tif(risposta.equalsIgnoreCase(\"si\")) {\r\n\t\t\t\t\tg1.setPunteggio(p.skippa());\r\n\t\t\t\t\tg2.setPunteggio(PUNTI_MASSIMI-g1.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g1.getNickName());//vince g1\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g2.getNickName());// vince g2\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g1);\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\tp.daiLePrimeCarte();\r\n\t\t\t\t\tCarta c1=new Carta(g1.gioca().getCarta());\r\n\t\t\t\t\tCarta c2=new Carta(g2.gioca().getCarta());\r\n\t\t\t\t\tg1.eliminaDaMano(c1); g2.eliminaDaMano(c2);\r\n\t\t\t\t\tint tracciatore=1; //parte dal giocatore 1\r\n\t\t\t\t\twhile(!m.mazzoMescolato.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g1); p.pesca(g2);\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g2); p.pesca(g1);\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2); \r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{tracciatore = 1; k--;}\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Manche Finale\");\r\n\t\t\t\t\twhile(!g1.carteInMano.isEmpty() || !g2.carteInMano.isEmpty()) {\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ttracciatore = 1;\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Situazione: \"+g1.getNickName()+\": \"+g1.getPunteggio());\r\n\t\t\t\t\tSystem.out.println(g2.getNickName()+\": \"+g2.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g1.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g2.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconta+=2;\r\n\t\t\t\tSystem.out.println(\"Premi una lettera per continuare: \"); risposta=tastiera.next();\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tconta=0;\r\n\t\t\tfor(int i=0;i<perdenti.size();i++)\r\n\t\t\t\tpartecipantiMescolati.remove(perdenti.get(i));\r\n\t\t\tSystem.out.println(\"Restano i seguenti partecipanti: \");\r\n\t\t\tfor(int i=0;i<partecipantiMescolati.size();i++) {\r\n\t\t\t\tSystem.out.println(partecipantiMescolati.get(i).getNickName());\r\n\t\t\t\tpartecipantiMescolati.get(i).setPunteggio(0);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Il vincitore del torneo è: \"+partecipantiMescolati.get(0).getNickName());\r\n\t\t\t\t\r\n\t}", "public List<NotaDeCredito> procesar();", "private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }", "@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}", "private ArrayList<String> getConectorQue(String infoDaPilha){\n\t\tArrayList<String> listaDeConectores = new ArrayList<String>();\n\t\t\n\t\tlistaDeConectores.add(\"que\");\n\t\t\n\t\treturn listaDeConectores;\n\t}", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }", "public ObservableList<String> AbmCorreos() {\n\t\t// crea un nuevo observable list\n\t\tObservableList<String> items = FXCollections.observableArrayList();\n\t\titems.addAll(\"Cargar Plantilla\", \"Mostrar Plantillas\");\n\t\treturn items;\n\t}", "public void cargarListaTipoComprobanteSRI()\r\n/* 675: */ {\r\n/* 676:746 */ this.listaTipoComprobanteSRI = this.servicioSRI.buscarPorTipoIdentificacion(this.facturaProveedorSRI.getTipoIdentificacion());\r\n/* 677: */ }", "public void mostrarlistafininicio(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = fin;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")->\";\n auxiliar = auxiliar.ant;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de fin a inicio\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\n\tpublic ArrayList<TransferCompra> listaCompra() {\n\t\t\n\t\t//Creamos la Transaccion\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\tArrayList<TransferCompra> lista = FactoriaDAO.getInstance().createDAOCompra().list();\n\t\t\n\t\t//Hacemos Commit\n\t\tTransactionManager.getInstance().getTransaccion().commit();\n\t\t\n\t\t//Finalmnete cerramos la Transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\treturn lista;\n\t}", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "protected abstract List<OpcionMenu> inicializarOpcionesMenu();", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "List<Videogioco> retriveByGenere(String genere);", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "private void pickListCarreras(Proyecto proyecto) {\r\n sessionProyecto.getCarrerasProyecto().clear();\r\n sessionProyecto.getFilterCarrerasProyecto().clear();\r\n List<Carrera> carrerasProyecto = new ArrayList<>();\r\n List<Carrera> usuarioCarreras = new ArrayList<>();\r\n try {\r\n List<ProyectoCarreraOferta> lips = proyectoCarreraOfertaService.buscar(new ProyectoCarreraOferta(proyecto, null, null, Boolean.TRUE));\r\n if (lips != null) {\r\n for (ProyectoCarreraOferta pco : lips) {\r\n Carrera c = carreraService.find(pco.getCarreraId());\r\n if (!carrerasProyecto.contains(c)) {\r\n carrerasProyecto.add(c);\r\n }\r\n }\r\n }\r\n for (Carrera carrera : sessionProyecto.getCarreras()) {\r\n if (!usuarioCarreras.contains(carrera)) {\r\n usuarioCarreras.add(carrera);\r\n }\r\n }\r\n sessionProyecto.setCarrerasDualList(new DualListModel<>(carreraService.diferenciaProyectoCarrera(\r\n usuarioCarreras, carrerasProyecto), carrerasProyecto));\r\n sessionProyecto.setCarrerasProyecto(carrerasProyecto);\r\n sessionProyecto.setFilterCarrerasProyecto(sessionProyecto.getCarrerasProyecto());\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }", "public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }", "private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private static ArrayList<ItemComprado> listarOsItensComprados(int idCompra) throws Exception {\r\n ArrayList<ItemComprado> lista = arqItemComprado.toList();\r\n lista.removeIf(ic -> ic.idCompra != idCompra);\r\n return lista;\r\n }", "public ArrayList<String> Info_Disc_Pel_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep4(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "public static Lista getLista(String hilera) {\r\n\t\tif (hilera.equals(\"basica\")) {\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tListaSimple<Enemigo> listaEnemigosBasica = new ListaSimple<Enemigo>();\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tlistaEnemigosBasica.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\txPos += 75;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosBasica;\r\n\r\n\t\t} else if (hilera.equals(\"claseA\")) {\r\n\t\t\tListaSimple<Enemigo> listaEnemigosClaseA = new ListaSimple<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 1), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseA;\r\n\t\t} else if (hilera.equals(\"claseB\")) {\r\n\t\t\tListaDoble<Enemigo> listaEnemigosClaseB = new ListaDoble<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tint x = (int) (Math.random() * 4 + 1);\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, x, \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseB;\r\n\t\t} else if (hilera.equals(\"claseC\")) {\r\n\t\t\tListaCircular<Enemigo> listaEnemigosClaseC = new ListaCircular<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 2), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseC;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n\t\tList<Conta> lista = new Vector<Conta>();\r\n\t\t\r\n\t\t\r\n\t\tContaCorrente cc1 = new ContaCorrente(22, 11);\t\r\n\t\tConta cc2 = new ContaPoupanca(22, 22);\r\n\t\tlista.add(cc1);\r\n\t\tlista.add(cc2);\r\n\t\r\n\t\tSystem.out.println(\"Tamanho: \" + lista.size());\r\n\t\tConta ref = (Conta) lista.get(0);\r\n\t\tSystem.out.println(ref.getNumero());\r\n\t\t\r\n\t\tlista.remove(0);\r\n\t\tSystem.out.println(\"Tamanho: \" + lista.size());\r\n\t\t\r\n\t\tContaCorrente cc3 = new ContaCorrente(22, 33);\t\r\n\t\tConta cc4 = new ContaPoupanca(22, 44);\r\n\t\tlista.add(cc3);\r\n\t\tlista.add(cc4);\r\n\t\r\n//\t\tfor (int i = 0; i < lista.size(); i++) {\r\n//\t\t\tObject referencia = lista.get(i);\r\n//\t\t\tSystem.out.println(referencia);\r\n//\t\t}\r\n//\t\tPor ser mais código legado, ainda se escreve e se encontra o \"for\" da maneira acima.\r\n\t\t\r\n\t\tfor (Conta conta : lista) {\r\n\t\t\tSystem.out.println(conta);\r\n\t\t}\r\n\t\t\r\n\t}", "public List<Compte> getComptesClient(int numeroClient);", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "private static void Relatorio() throws Exception \r\n {//Inicio menuRelatorio\r\n byte opcao;\r\n boolean fecharMenu = false;\r\n int idCliente, idProduto, quant;\r\n Produto p = null;\r\n Cliente c = null;\r\n do{\r\n System.out.println(\r\n \"\\n\\t*** MENU RELATORIO ***\\n\" +\r\n \"0 - Mostrar os N produtos mais Vendidos\\n\" +\r\n \"1 - Mostrar os N melhores clientes\\n\" +\r\n \"2 - Mostrar os produtos comprados por um cliente\\n\" +\r\n \"3 - Mostrar Clientes que compraram um produto\\n\" +\r\n \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch(opcao){\r\n case 0:\r\n ArrayList<Produto> listP = arqProdutos.toList();\r\n if(listP.isEmpty()) System.out.println(\"\\nNão tem produtos em nosso sistema ainda!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de produtos que deseja saber: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listP.sort((p1,p2) -> - Integer.compare(p1.getQuantVendidos(), p2.getQuantVendidos()));\r\n for(Produto n: listP){\r\n System.out.println(\"Produto de ID: \" + n.getID() + \" Nome: \" + n.nomeProduto + \"\\tQuantidade vendida: \" + n.getQuantVendidos());\r\n quant--;\r\n if(quant == 0) break;\r\n }\r\n }\r\n break;\r\n case 1:\r\n ArrayList<Cliente> listC = arqClientes.toList();\r\n if(listC.isEmpty()) System.out.println(\"Não ha clientes para mostrar!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de Clientes: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listC.sort((c1,c2) -> - Float.compare(c1.getTotalGasto(), c2.getTotalGasto()));\r\n for(Cliente n: listC){\r\n System.out.println(\"Cliente de ID: \" + n.getID() + \" Nome: \" + n.nomeCliente + \"\\tGasto total: \" + tf.format(n.getTotalGasto()));\r\n quant--;\r\n if(quant == 0) break; \r\n }\r\n }\r\n break;\r\n case 2:\r\n System.out.print(\"Digite o id do cliente: \");\r\n idCliente = read.nextInt();\r\n c = arqClientes.pesquisar(idCliente - 1);\r\n if (c != null){\r\n int[] idsProdutos = indice_Cliente_Produto.lista(idCliente);\r\n System.out.println(\"\\nO cliente \" + c.nomeCliente + \" de ID \" + c.getID() + \" comprou: \");\r\n for(int i = 0; i < idsProdutos.length; i++){\r\n p = arqProdutos.pesquisar(idsProdutos[i] - 1);\r\n System.out.println(\r\n \"\\n\\tProduto \" + i + \" -> \" + \r\n \" ID: \" + p.getID() + \r\n \" Nome: \" + p.nomeProduto + \r\n \" Marca: \" + p.marca\r\n );\r\n }\r\n }\r\n else {\r\n System.out.println(\"\\nID Invalido!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 3:\r\n System.out.print(\"Digite o id do Produto a consultar: \");\r\n idProduto = read.nextInt();\r\n p = arqProdutos.pesquisar(idProduto - 1);\r\n if(p != null){\r\n int[] idsClientes = indice_Produto_Cliente.lista(idProduto);\r\n System.out.println(\"\\nO produto '\" + p.nomeProduto + \"' de ID \" + p.getID() + \" foi comprado por: \");\r\n for(int i = 0; i < idsClientes.length; i++){\r\n c = arqClientes.pesquisar(idsClientes[i] - 1);\r\n System.out.println();\r\n System.out.println(c);\r\n }\r\n }\r\n else{\r\n System.out.println(\"\\nProduto Inexistende!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 4:\r\n fecharMenu = true;\r\n break; \r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n }while(!fecharMenu); \r\n }", "public ArrayList<String> Info_Disc_Pel_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "public static void main(String[] args) throws Exception {\n\t\tLista<Contato> vetor = new Lista<Contato>(20);\n\t\tLinkedList<Contato> listaEncadeada = new LinkedList<Contato>();\n\n\t\tContato c1 = new Contato(\"c1\", \"111-1111\", \"[email protected]\");\n\t\tContato c2 = new Contato(\"c2\", \"222-2222\", \"[email protected]\");\n\t\tContato c3 = new Contato(\"c3\", \"333-3333\", \"[email protected]\");\n\t\tContato c4 = new Contato(\"c4\", \"444-2344\", \"[email protected]\");\n\t\tContato c5 = new Contato(\"c5\", \"555-5585\", \"[email protected]\");\n\t\tContato c6 = new Contato(\"c6\", \"111-1911\", \"[email protected]\");\n\t\tContato c7 = new Contato(\"c7\", \"222-2322\", \"[email protected]\");\n\t\tContato c8 = new Contato(\"c8\", \"333-3333\", \"[email protected]\");\n\t\tContato c9 = new Contato(\"c9\", \"454-4644\", \"[email protected]\");\n\t\tContato c10 = new Contato(\"c10\", \"515-5235\", \"[email protected]\");\n\t\tContato c11 = new Contato(\"c11\", \"131-1411\", \"[email protected]\");\n\t\tContato c12 = new Contato(\"c12\", \"252-2672\", \"[email protected]\");\n\t\tContato c13 = new Contato(\"c13\", \"313-3433\", \"[email protected]\");\n\t\tContato c14 = new Contato(\"c14\", \"433-4334\", \"[email protected]\");\n\t\tContato c15 = new Contato(\"c15\", \"535-5355\", \"[email protected]\");\n\t\tContato c16 = new Contato(\"c16\", \"161-1516\", \"[email protected]\");\n\t\tContato c17 = new Contato(\"c17\", \"272-2272\", \"[email protected]\");\n\t\tContato c18 = new Contato(\"c18\", \"383-3993\", \"[email protected]\");\n\t\tContato c19 = new Contato(\"c19\", \"141-4949\", \"[email protected]\");\n\t\tContato c20 = new Contato(\"c20\", \"565-5565\", \"[email protected]\");\n\t\tContato c21 = new Contato(\"c21\", \"616-1611\", \"[email protected]\");\n\t\tContato c22 = new Contato(\"c22\", \"212-2121\", \"[email protected]\");\n\t\tContato c23 = new Contato(\"c23\", \"131-1331\", \"[email protected]\");\n\t\tContato c24 = new Contato(\"c24\", \"424-4444\", \"[email protected]\");\n\t\tContato c25 = new Contato(\"c25\", \"565-5555\", \"[email protected]\");\n\t\tContato c26 = new Contato(\"c26\", \"111-1611\", \"[email protected]\");\n\t\tContato c27 = new Contato(\"c27\", \"282-1252\", \"[email protected]\");\n\t\tContato c28 = new Contato(\"c28\", \"323-3433\", \"[email protected]\");\n\t\tContato c29 = new Contato(\"c29\", \"544-4464\", \"[email protected]\");\n\t\tContato c30 = new Contato(\"c30\", \"155-5455\", \"[email protected]\");\n\n\t\ttry {\n\t\t\t// ex5\n\t\t\tvetor.adiciona(c1);\n\t\t\tvetor.adiciona(c2);\n\t\t\tvetor.adiciona(c3);\n\t\t\tvetor.adiciona(c4);\n\t\t\tvetor.adiciona(c5);\n\t\t\tvetor.adiciona(c6);\n\t\t\tvetor.adiciona(c7);\n\t\t\tvetor.adiciona(c8);\n\t\t\tvetor.adiciona(c9);\n\t\t\tvetor.adiciona(c10);\n\t\t\tvetor.adiciona(c11);\n\t\t\tvetor.adiciona(c12);\n\t\t\tvetor.adiciona(c13);\n\t\t\tvetor.adiciona(c14);\n\t\t\tvetor.adiciona(c15);\n\t\t\tvetor.adiciona(c16);\n\t\t\tvetor.adiciona(c17);\n\t\t\tvetor.adiciona(c18);\n\t\t\tvetor.adiciona(c19);\n\t\t\tvetor.adiciona(c20);\n\t\t\tvetor.adiciona(c21);\n\t\t\tvetor.adiciona(c22);\n\t\t\tvetor.adiciona(c23);\n\t\t\tvetor.adiciona(c24);\n\t\t\tvetor.adiciona(c25);\n\t\t\tvetor.adiciona(c26);\n\t\t\tvetor.adiciona(c27);\n\t\t\tvetor.adiciona(c28);\n\t\t\tvetor.adiciona(c29);\n\t\t\tvetor.adiciona(c30);\n\t\t\t// ex3\n\t\t\tvetor.removerT(\"111-1111\");\n\t\t\t//ex4-vetor.RemoverTudo();\n\t\t\t\n\t\t\tSystem.out.println(vetor);\n\t\t\t// ex1\n\t\t\tSystem.out.println(\"Confirmar se o elemento na lista existe:\" + vetor.contem(c2));\n\t\t\t// ex2\n\t\t\tSystem.out.println(\"Retornar a posicao do elemento, se retornar -1 que dizer que o elemento não existe:\"\n\t\t\t\t\t+ vetor.indicio(c2));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// ex6\n\t\tlistaEncadeada.add(c1);\n\t\tlistaEncadeada.add(c2);\n\t\tlistaEncadeada.add(c3);\n\t\tlistaEncadeada.add(c4);\n\t\tlistaEncadeada.add(c5);\n\t\tlistaEncadeada.add(c6);\n\t\tlistaEncadeada.add(c7);\n\t\tlistaEncadeada.add(c8);\n\t\tlistaEncadeada.add(c9);\n\t\tlistaEncadeada.add(c10);\n\t\tlistaEncadeada.add(c11);\n\t\tlistaEncadeada.add(c12);\n\t\tlistaEncadeada.add(c13);\n\t\tlistaEncadeada.add(c14);\n\t\tlistaEncadeada.add(c15);\n\t\tlistaEncadeada.add(c16);\n\t\tlistaEncadeada.add(c17);\n\t\tlistaEncadeada.add(c18);\n\t\tlistaEncadeada.add(c19);\n\t\tlistaEncadeada.add(c20);\n\t\tlistaEncadeada.add(c21);\n\t\tlistaEncadeada.add(c22);\n\t\tlistaEncadeada.add(c23);\n\t\tlistaEncadeada.add(c24);\n\t\tlistaEncadeada.add(c25);\n\t\tlistaEncadeada.add(c26);\n\t\tlistaEncadeada.add(c27);\n\t\tlistaEncadeada.add(c28);\n\t\tlistaEncadeada.add(c29);\n\t\tlistaEncadeada.add(c30);\n\n\t\tSystem.out.println(listaEncadeada);\n\n\t}", "@Override\r\n public List<CompteRenduDTO> retournerCompteRendus() {\r\n throw new UnsupportedOperationException(\"Not supported yet.\");\r\n }", "public List<Cliente> getListCliente(){//METODO QUE RETORNA LSITA DE CLIENTES DO BANCO\r\n\t\treturn dao.procurarCliente(atributoPesquisaCli, filtroPesquisaCli);\r\n\t}", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil>\n getCazuriList();", "public List<ConceptoRetencionSRI> autocompletarConceptoRetencionIVASRI(String consulta)\r\n/* 550: */ {\r\n/* 551:583 */ String consultaMayuscula = consulta.toUpperCase();\r\n/* 552:584 */ List<ConceptoRetencionSRI> lista = new ArrayList();\r\n/* 553:586 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) {\r\n/* 554:587 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || \r\n/* 555:588 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && \r\n/* 556:589 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) {\r\n/* 557:590 */ lista.add(conceptoRetencionSRI);\r\n/* 558: */ }\r\n/* 559: */ }\r\n/* 560:594 */ return lista;\r\n/* 561: */ }", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }", "List<Curso> obtenerCursos();", "public List<String> GetAssegnamentiInCorso() {\n String str = \"Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2\";\n StringaAssegnamenti = str;\n StringaAssegnamenti = \"\";\n \n\tList<String> items = Arrays.asList(str.split(\"\\\\s*,\\\\s*\"));\n return items;\n }", "public void confirmerAppel(List<Eleve> listeElevesAbsents, Seance s, Groupe g);", "@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\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\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\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\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "List<ParqueaderoEntidad> listar();", "public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public List getTrabajadores();", "public ListeEncadrementThese() {\n listeencadmaster= chdao.listEncadrementThese(ProfilController.ch);\n \n //chdao.listEncadrementMaster(ProfilController.ch);\n remplirListImage();\n }", "public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "@Override\n public List<Pair<Candidatura, FAE>> atribui() {\n \n List<FAE> listaFaeEvento = evento.getListaFaeEvento();\n List<Candidatura> listaCandidaturaEvento = evento.getListaCandidaturasEvento();\n List<Pair<Candidatura, FAE>> listaAtribuicoes = new ArrayList();\n \n Random geradorAleatorio = new Random();\n int indiceFae = geradorAleatorio.nextInt(listaFaeEvento.size());\n \n for (Candidatura cand : listaCandidaturaEvento){\n listaAtribuicoes.add( new Pair<>(cand, listaFaeEvento.get(indiceFae)));\n }\n \n return listaAtribuicoes;\n }", "private void enlistar(ArrayList<Caracter> caracteres){\n for (int i = 0; i < caracteres.size(); i++) {\n insertaOrdenado(new NodoCaracter((Caracter) caracteres.get(i)));\n }\n }", "public void tradOra(){\r\n leerOracion();\r\n String res=\"\";\r\n for(int i=0; i<orac.size(); i++){\r\n res+=tradPal(rz, orac.get(i).trim())+\" \";\r\n }\r\n System.out.println(res);\r\n }", "public List<CreditoTributarioSRI> getListaCreditoTributarioSRI()\r\n/* 131: */ {\r\n/* 132:145 */ return this.listaCreditoTributarioSRI;\r\n/* 133: */ }", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Curso.findAll\", null);\n }", "public List<Comentario> buscaPorTopico(Topico t);", "public void getGerarEscalaGeral(ActionEvent actionEvent) {\n\t\tEventoRepository eventoRep = new EventoRepository(JPAFactory.getEntityManager());\r\n\t\tlistaEvento = eventoRep.buscarEventos(inicio,fim);\r\n\t\t\r\n\t\t//CorEquipesController grupoCores = new CorEquipesController();\r\n\t\tTurmaVoluntarioRepository repository = new TurmaVoluntarioRepository(JPAFactory.getEntityManager());\r\n\t\tList<CorEquipes> listaCorGeral = repository.buscarCorGeral();\r\n\t\tList<Voluntario> listaVoluntarioGeral = repository.buscarVoluntarioGeral();\r\n\t\tList<Voluntario> equipeA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> equipeB = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> listPopulacaoI = new ArrayList<Voluntario>();\t\t\t\r\n\t\tList<Voluntario> escalaA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> escalaB = new ArrayList<Voluntario>();\r\n\t\tList<Integer> intervaloSorteio = new ArrayList<Integer>();\r\n\r\n\t//\tFor de verificação para não repetição dos campos sorteados\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\t//População inicial\t\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t\r\n\t\t\tint posicaoSorteada = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\r\n\t\t\tint conteudoSorteado = intervaloSorteio.get(posicaoSorteada);\r\n\t\t\t\r\n\t\t\tlistPopulacaoI.add(listaVoluntarioGeral.get(conteudoSorteado));\r\n\t\r\n\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\tif (conteudoSorteado==intervaloSorteio.get(j)) {\r\n\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Gera os pais\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\tfor(int k = 0; k<listPopulacaoI.size();k++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t//vrifica a lista para adicionar na equipe A (pai1)\r\n\t\t\tif (intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaA = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoA = intervaloSorteio.get(posicaoSorteadaA);\r\n\t\t\t\tequipeA.add(listPopulacaoI.get(conteudoSorteadoA));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoA==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//vrifica a lista para adicionar na equipe B (pai2)\r\n\t\t\tif(intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaB = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoB = intervaloSorteio.get(posicaoSorteadaB);\r\n\t\t\t\tequipeB.add(listPopulacaoI.get(conteudoSorteadoB));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoB==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Cruzamento\r\n\t\tint tamanhoA = equipeA.size();\r\n\t\tint tamanhoB = equipeB.size();\r\n\t\tint metadeA = (int) tamanhoA/2;\r\n\t\tint metadeB = (int) tamanhoB/2;\r\n\t\tfor (int i=0; i<metadeA; i++) {\r\n\t\t\tescalaA.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeA; i<tamanhoA; i++) {\r\n\t\t\tescalaB.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=0; i<metadeB; i++) {\r\n\t\t\tescalaB.add(equipeB.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeB; i<tamanhoB; i++) {\r\n\t\t\tescalaA.add(equipeB.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//grava dados na base\r\n\t\tint tamanhoEvanto = listaEvento.size();\r\n\t\tint metadeTamanhoEv = tamanhoEvanto/2;\r\n\t\tfor (int i = 0; i < listaEvento.size(); i ++) {\r\n\t\t\tif (listaEvento.get(i).getTipoEvento().getValor().equals(0)) {\t\r\n\t\t\t\tfor(int j = 0; j < equipeA.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeA.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tfor(int j = 0; j < equipeB.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeB.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tfor(int j = 0; j < listPopulacaoI.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(listPopulacaoI.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void recuperarFacturasCliente(){\n String NIF = datosFactura.recuperarFacturaClienteNIF();\n ArrayList<Factura> facturas = almacen.getFacturas(NIF);\n if(facturas != null){\n for(Factura factura : facturas) {\n System.out.println(\"\\n\");\n System.out.print(factura.toString());\n }\n }\n System.out.println(\"\\n\");\n }", "public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }", "@Override\r\n\tpublic void deplacerRobot(ArrayList<Robot> listeRobot) {\n\t\t\r\n\t}", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}" ]
[ "0.6629664", "0.64889646", "0.63924044", "0.6348945", "0.634663", "0.6306211", "0.62950236", "0.6247808", "0.62442905", "0.61947525", "0.6190669", "0.6165821", "0.61337024", "0.61271614", "0.612698", "0.61142355", "0.61132413", "0.61128", "0.61061895", "0.6102098", "0.60930943", "0.6071387", "0.6061959", "0.6052629", "0.6042157", "0.60381234", "0.6036984", "0.603267", "0.6031643", "0.6030555", "0.6013447", "0.6002071", "0.60001546", "0.59918714", "0.59907347", "0.5968508", "0.59651446", "0.59631264", "0.59612185", "0.59606236", "0.5958653", "0.5950295", "0.59439576", "0.59393865", "0.59324473", "0.5922895", "0.5906106", "0.58963186", "0.58948797", "0.58937657", "0.58910644", "0.5888848", "0.58856", "0.5883624", "0.58812463", "0.5875755", "0.58733344", "0.58642066", "0.5862316", "0.5860555", "0.5859033", "0.58560926", "0.5855534", "0.5844809", "0.583813", "0.58370256", "0.58348846", "0.5833145", "0.5827462", "0.5827197", "0.58204883", "0.5819916", "0.5812856", "0.5810659", "0.5806204", "0.58045524", "0.5802338", "0.5801263", "0.5797093", "0.5794737", "0.57927084", "0.57915133", "0.57911587", "0.5790109", "0.5786906", "0.5783112", "0.5782297", "0.57799244", "0.5777339", "0.5769839", "0.5765821", "0.5765238", "0.5764066", "0.57621306", "0.57611156", "0.5760741", "0.57519805", "0.57490957", "0.5741234", "0.5740585", "0.57366896" ]
0.0
-1
notifica al giocatore che ha terminato il turno
@Override public void notifyEndMove() { try { if (getClientInterface() != null) getClientInterface().notifyEndMove(); } catch (RemoteException e) { System.out.println("remote sending end move error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endOfTurn();", "@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}", "public void endTurn() {\n }", "public void toEndingTurn() {\n }", "void finishTurn();", "protected void end() {\n \tRobot.conveyor.stop();\n }", "@Override\n\tprotected void terminarJuego() {\n\t\t\n\t}", "public void terminarDiaLaboral() {\n\t\ttry {this.turnoPuestoDeInforme.acquire();} catch (InterruptedException e) {}\n\t\tSystem.out.println(\"AEROPUERTO: Todo el personal va a dormir luego de una larga jornada laboral\");\n\t\t}", "protected void end() {\n\t\tRobot.conveyor.Stop();\n\t}", "public void endTurn() {\n controller.endTurn();\n }", "private void quitarCorazones(){\n if(ramiro.estadoItem== Ramiro.EstadoItem.NORMAL){\n efectoDamage.play();\n vidas--;\n }\n }", "public void onTurnEnd() {\n\n\t}", "void askEndTurn();", "public void endTurn() {\r\n\t\tcontraband.clear();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\tif(treasure > 0) treasure = 0;\r\n\t\tpotion = 0;\r\n\t\tcoppersmith = 0;\r\n\t\tbridge = 0;\r\n\t\tquarry = 0;\r\n\t\tdeck.cleanUp();\r\n\t\taccess.log(getPlayerName() + \"'s Deck: \" + deck.toString());\r\n\t\taccess.log(getPlayerName() + \"'s turn ended\");\r\n\t\tnotifyObservers();\r\n\t}", "void leituraEnd();", "protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }", "public void buttonEndTurn() {\n\t\tendTurn();\n\t\t}", "protected void end() {\n \tRobot.telemetry.setAutonomousStatus(\"Finishing \" + commandName + \": \" + distance);\n Robot.driveDistancePID.disable();\n \tRobot.drivetrain.arcadeDrive(0.0, 0.0);\n }", "protected void end() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.PercentVbus);\r\n\t }", "private void endMyTurn() {\n // end my turn, then.\n Entity next = clientgui.getClient().getGame()\n .getNextEntity(clientgui.getClient().getGame().getTurnIndex());\n if ((IGame.Phase.PHASE_DEPLOYMENT == clientgui.getClient().getGame()\n .getPhase())\n && (null != next)\n && (null != ce())\n && (next.getOwnerId() != ce().getOwnerId())) {\n clientgui.setDisplayVisible(false);\n }\n cen = Entity.NONE;\n clientgui.getBoardView().select(null);\n clientgui.getBoardView().highlight(null);\n clientgui.getBoardView().cursor(null);\n clientgui.bv.markDeploymentHexesFor(null);\n disableButtons();\n }", "public void endCommand();", "protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }", "protected void end() {\n \tif (waitForMovement) Robot.intake.setHopperTracker(deploy ? Status.deployed : Status.stowed);\n }", "public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }", "protected void end() {\n Robot.m_Cannon.stop();\n }", "public void terminaCansancio(){\n \tthis.fuerza = 100; \n }", "public void end() {\n\t\tsigue = false;\n\t}", "protected void end() {\n \tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorRightOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.set(0);\n \tRobotMap.motorRightOne.set(0);\n \tRobotMap.motorLeftTwo.set(0);\n \tRobotMap.motorRightTwo.set(0);\n \tSystem.out.println(this.startAngle- RobotMap.navx.getAngle());\n\n\n \t\n }", "protected void end() {\n \tRobot.hand.setWrist(0.0);\n }", "public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }", "protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "protected void end() {\n // Robot.drive.setMoveVisionAssist(0);\n // Robot.drive.setTurnVisionAssist(0);\n Robot.limelight.setPipeline(1.0); \n }", "public void endTurn()\n\t{\n\t\tthis.decrementEffectDurations();\n\t\tdoneWithTurn = true;\n\t}", "public void finish(){\n\t\tnotfinish = false;\n\t}", "protected void end() {\n \tRobot.vision_.stopGearLiftTracker();\n }", "protected void end() {\n Robot.shooter.set(0);\n RobotMap.Armed=false;\n RobotMap.shootState=false;\n System.out.println(\"done shooting\");\n if (this.isTimedOut()==true) {\n System.out.println(\n \"shot timed out\");\n \n }\n if (RobotMap.inPosition.get()!=OI.shooterArmed){\n System.out.println(\"in position is different than shooter armed\");\n }\n}", "protected void end() {\n isFinished();\n }", "protected abstract boolean end();", "@Override\n public void finish() {\n ((MotorController)master).stopMotor();\n }", "@Override\n public void abort() {\n giocoinesecuzione = null;\n }", "public void finishGame() {\r\n gameFinished = true;\r\n }", "public void cancelarIniciarSesion(){\n System.exit(0);\n }", "public void end(){\r\n\t\tsetResult( true ); \r\n\t}", "@Override\n protected void end() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.STOPPED, 0.0);\n }", "public void terminarAVez() {\n\n\n if (!this.jogadorTerminouAVez() && this.repete == false) {\n do {\n this.PrepareNextJogada();\n this.terminouVez = true;\n\n } while (this.listaJogadoresFalidos.contains(listaJogadores.get(vez).getNome()));\n\n }\n\n\n print(\"\\t AGora vez eh \" + this.vez);\n\n\n }", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n }", "public void endTurn() {\n\t\tturnEnd = false;\n\t\tmadeMove = false;\n\t\tcurrentPlayer.resetUndos();\n\t\tif (currentPlayer == player1) {\n\t\t\tcurrentPlayer = player2;\n\t\t} else {\n\t\t\tcurrentPlayer = player1;\n\t\t}\n\t\t//printBoard();\n\t\tSystem.out.println(\"It is now \" + currentPlayer.getName() + \"'s turn\");\n\t}", "public void handleEndTurn(ActionEvent event){\n sender.sendInput(\"end turn\");\n }", "public void endTurn() {\n \tselectedX = -1;\n \tselectedY = -1;\n \tmoveToX = -1;\n \tmoveToY = -1;\n \toneMove = false;\n \thasMoved = false;\n\t\tplayer = 0 - player;\n\t\tfor (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n \tif (pieces[i][j]) {\n \t\tboardPieces[i][j].doneCapturing();\n \t}\n }\n\t\t}\n\t}", "public void endTurn() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Started endTurn() for player \"+currentPlayer.getNumber());\r\n\t\tturnIsEnding = true;\r\n\r\n\t\t// End turn restrictions\r\n\t\tif (!currentPlayer.isDead() && !currentPlayer.isFree() && !currentPlayer.hasQuit()) {\r\n\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all cards in play area are played\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustChoose.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all choices are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustTrash.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all trashes are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Don't need to discard\r\n\t\t}\r\n\t\t\r\n\t\t// Mass deletes\r\n\t\tclearMessages();\r\n\t\t\r\n\t\t// If just escaped, send message after clearing\r\n\t\tif (currentPlayer.getCurrentRoom() == 0 && currentPlayer.getPiece().getX() == GlobalVars.playerCoordsPerRoom[39][0]) {\r\n\t\t\t// Update room\r\n\t\t\tcurrentPlayer.setCurrentRoom(39);\r\n\t\t\tif (firstEscapee == currentPlayer) {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** was the first to escape! They received a **20** :star: **Mastery Token**\\n:skull: Only **4** turn(s) left!\").queue();\r\n\t\t\t} else {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** escaped in time! They received a **20** :star: **Mastery Token**\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set cards in PlayArea to not played for next time, Undos the Discarded tag\r\n\t\tfor (int i = 0; i < currentPlayer.getPlayArea().getSize(); i++) {\r\n\t\t\tcurrentPlayer.getPlayArea().getCard(i).setPlayed(false);\r\n\t\t\tif (currentPlayer.getPlayArea().getCard(i).toStringHand().contentEquals(\"*[Discarded]*\")) currentPlayer.getPlayArea().getCard(i).setStringInHand();\r\n\t\t}\r\n\t\t\r\n\t\t// Clear swords, skill, boots, etc\r\n\t\tcurrentPlayer.endOfTurnReset();\r\n\t\tmustDiscard.clear();\r\n\t\t\r\n\t\t// Replaces cards in dungeon row. Only one attack per turn\r\n\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\tboolean hasAttackedThisTurn = false;\r\n\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t// Checks to see if it should replace card\r\n\t\t\t\tif (dungeonRow[i].isBought()) {\r\n\t\t\t\t\tdungeonRow[i] = mainDeck.getNext();\r\n\t\t\t\t\tif (dungeonRow[i].isDragonAttack() && !hasAttackedThisTurn) {\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t\t\thasAttackedThisTurn = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dungeonRow[i].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Instantly go on to next player if no dragon attack\r\n\t\t\tif (!hasAttackedThisTurn) {\r\n\t\t\t\tdetermineNextPlayer();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void finish() {\n }", "static void playerLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}", "public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }", "private void terminarJuego() {\n\t\tjugadores[0].cerrar();\n\t\tjugadores[1].cerrar();\n\t\tjugadores[2].cerrar();\n\t\ttry {\n\t\t\tserver.close();\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\tSystem.exit(0);\n\t}", "boolean endGame() throws Exception;", "public int endOfTurn(int choice) {\n\t\tfor (int i = 0; i < dragoes.length; i++) {\n\t\t\tif (dragoes[i].isAlive() && choice != 0) {\n\t\t\t\tchoice = check_if_dead(i);\n\t\t\t\tchange_status(i);\n\t\t\t}\n\t\t\tif (choice == 5) {\n\t\t\t\tif (inter == 0) \n\t\t\t\t\tconsole_interface.youDied();\n\t\t\t\telse {}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tdisplayDardos();\n\t\treturn choice;\n\t}", "protected void end() {\n \tRobot.gearIntake.setIsDown(false);\n \tRobot.gearIntake.setGearRollerSpeed(0);\n }", "boolean endOfGame() {\n return false;\n }", "void finishSwitching();", "protected void end() {\n drivebase.setArcade(0, 0);\n drivebase.disableTurnController();\n }", "protected void end() {\n \tRobot.driveTrain.stop();\n }", "protected void end() {\n \tRobot.driveTrain.stop();\n }", "public void finishTurn() {\n\t\tthis.cancelTimer();\n\t\t// if any hero is dead\n\t\tif (!opponents[0].isAlive() || !opponents[1].isAlive()) {\n\t\t\t// end the game\n\t\t\tfinishGame();\n\t\t} else {\n\t\t\t// switch turns\n\n\t\t\topponents[activeHero].setIsTurn(false);\n\t\t\topponents[activeHero].deselectAll();\n\n\t\t\tswitch (activeHero) {\n\t\t\tcase 0:\n\t\t\t\tactiveHero = 1;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tactiveHero = 0;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstartTurn(opponents[activeHero]);\n\t\t}\n\t}", "@Override\n public boolean isEnding() {\n return false;\n }", "@Override\n protected void end() {\n Robot.climber.frontStop();\n Robot.climber.rearStop();\n Robot.isAutonomous = false;\n }", "private void endGame(){\n if (winner){\n Toast.makeText(this, \"Fin del Juego: Tu ganas\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n Toast.makeText(this, \"Fin del Juego: Tu pierdes\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "protected void end() {\n Robot.shooter.Stop();\n }", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "public void termina() {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.termina();\n\t}", "public void exitGame() {\n System.out.println(\"Thank you and good bye!\");\n System.exit(0);\n }", "protected void end() {\n \tRobot.chassisSubsystem.setShootingMotors(0);\n }", "public void endTurn() {\n\t\tif (whoseTurn == 0) {\n\t\t\twhoseTurn = 1;\n\t\t} else {\n\t\t\twhoseTurn = 0;\n\t\t}\n\t\thasMoved = false;\n\t\thasSelected = false;\n\t\tif (prevSelected != null) {\n\t\t\tprevSelected.doneCapturing();\n\t\t}\n\t\tprevSelected = null;\n\t\tprevSelectedX = 0;\n\t\tprevSelectedY = 0;\n\t}", "private void endTurn() {\n currentTurn = getNextPlayer();\n }", "private void HandleOnMoveEnd(Board board, Piece turn, boolean success){\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "boolean checkEndGame() throws RemoteException;", "protected void end() {\n\t\t// we are ending the, stop moving the robot\n\t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n\t}", "public void quit() {\r\n\t\trunning = false;\r\n\t\tt= null;\r\n\t}", "@Override\n protected void end() {\n Robot.shooter.setShooterSpeed(0);\n Robot.elevator.elevatorUp(0);\n Robot.hopper.hopperOut(0);\n Robot.intake.enableIntake(0);\n\n\n }", "void gameFinished(Turn turn) throws IOException;", "protected void end() {\n\t\tcrossLine.cancel();\n\t\tapproachSwitch.cancel();\n\t\tdriveToSwitch.cancel();\n\t\tdriveToScale.cancel();\n\t\tapproachScale.cancel();\n\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\n\t\tdrivetrain.stop();\n\t}", "protected void end() {\n \tRobot.driveTrain.setPower(0, 0);\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}", "@Override\r\n\tpublic void quit() {\n\t\t\r\n\t}", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }", "public void finish() {}", "protected void end() {\n \tSystem.out.println(\"pid Get\" + RobotMap.visionSensor.pidGet());\n\t\tRobotMap.visionSensor.stopProcessing();\n \tRobotMap.VisionDistanceRightPIDController.stop();\n\t\tRobotMap.VisionDistanceLeftPIDController.stop();\n\t\tRobot.driveTrain.setTalonsReversedState(false);\n \tRobot.driveTrain.resetTalonControlMode();\n\t\tSystem.out.println(\"Drived to traget\");\n\t}", "protected void end() {\n \tlogger.info(\"Ending AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "public void quitGame() {\n quitGame = true;\n }", "@Override\n public boolean shouldExit() {\n return true;\n }", "public abstract void end();", "@Override\n boolean isFinished() {\n return false;\n }", "@Override\n protected void end() {\n //return control to joystick\n drivetrain.setStopArcadeDrive(false);\n drivetrain.tankDrive(0,0);\n System.out.println(\"STOPPED LINE FOLLOWER\");\n // led.setLEDB(false);\n // led.setLEDR(false);\n }", "boolean CanFinishTurn();", "protected void end() {\n \t//Robot.motor.disable();\n \tRobot.motor.disable();\n }", "private void gameEnd(String loser) {\n }" ]
[ "0.74775314", "0.72043383", "0.71707433", "0.70938355", "0.70106417", "0.695917", "0.6939305", "0.6929092", "0.6925388", "0.6916553", "0.68939203", "0.6878661", "0.6876647", "0.68285036", "0.6828183", "0.67854124", "0.67600006", "0.67544293", "0.6724626", "0.6706844", "0.6690807", "0.668881", "0.667357", "0.66672814", "0.6646448", "0.6637858", "0.6634556", "0.6633113", "0.6619974", "0.66105306", "0.658194", "0.6581215", "0.6569324", "0.6559934", "0.6556905", "0.6550342", "0.6544235", "0.6537077", "0.65354574", "0.6532986", "0.65252143", "0.65240425", "0.6522581", "0.6519568", "0.65188736", "0.65180117", "0.6514344", "0.6513363", "0.649654", "0.6493201", "0.6490099", "0.647409", "0.6473263", "0.6450165", "0.6450068", "0.6444853", "0.64447206", "0.64350235", "0.6429874", "0.64296013", "0.64265996", "0.64166796", "0.64166796", "0.64078724", "0.6407275", "0.6399294", "0.6393924", "0.6391721", "0.6384698", "0.6377097", "0.6375871", "0.6371779", "0.6367789", "0.6367604", "0.63662344", "0.63594216", "0.63382816", "0.633811", "0.633811", "0.63374454", "0.6336797", "0.6334853", "0.6333683", "0.6331969", "0.6325986", "0.6322655", "0.63205916", "0.6314349", "0.63094646", "0.6309373", "0.63042533", "0.6302414", "0.6301133", "0.6299437", "0.6297754", "0.62962115", "0.62948626", "0.62910396", "0.62898326", "0.6287992", "0.6283011" ]
0.0
-1
notifica che ha appena ottenuto un privilegio
@Override public void notifyPrivilege() { try { if (getClientInterface() != null) getClientInterface().notifyPrivilege(); } catch (RemoteException e) { System.out.println("remote sending privilege error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public Boolean isPrivado() {\n return privado;\n }", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "@Override\n public boolean userCanAccess(int id) {\n return true;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "public String getFloodPerm() throws PermissionDeniedException;", "boolean isNonSecureAccess();", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "public void checkPrivileges() {\n\t\tPrivileges privileges = this.mySession.getPrivileges();\n\t}", "public int getMetaPrivileges();", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "Privilege getPrivilege();", "@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }", "@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }", "@Override\n public void onGranted() {\n }", "void askForPermissions();", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "boolean ignoresPermission();", "boolean isSecureAccess();", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "abstract public void getPermission();", "void enableSecurity();", "private void authorize() {\r\n\r\n\t}", "@Override\n public void onGranted() {\n }", "@Override\n public void onGranted() {\n }", "public boolean systemAdminOnly()\n {\n return false;\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "void checkAdmin() throws HsqlException {\n Trace.check(isAdmin(), Trace.ACCESS_IS_DENIED);\n }", "@Override\n public void onPermissionGranted() {\n }", "public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}", "void ensureAdminAccess() {\n Account currentAccount = SecurityContextHolder.getContext().getAccount();\n if (!currentAccount.isAdmin()) {\n throw new IllegalStateException(\"Permission denied.\");\n }\n }", "private boolean isAuthorized() {\n return true;\n }", "boolean isPrivate();", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "int getPermissionWrite();", "public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;", "@Override\n public void onPermissionGranted() {\n }", "private boolean checkAppInstanceOwnership(){\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t \tif(getUser() != null){\n\t \t\t\n\t \t\tif(getUser().getRole().equalsIgnoreCase(UserRoles.admin.toString()))\n\t \t\t\treturn true;\n\t \t\telse{\n\t \t\t\t\n\t\t\t\t\tAppInstance app = AHEEngine.getAppInstanceEntity(Long.valueOf(appinst));\n\t \t\t\t\t\t\t\t\t\n\t \t\t\tif(app != null){\n\t \t\t\t\t\n\t \t\t\t\tif(app.getOwner().getId() == getUser().getId())\n\t \t\t\t\t\treturn true;\n\t \t\t\t\telse{\n\t \t\t\t\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n\t \t\t\t\t\treturn false;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AHEException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n \treturn false;\n }", "public void isAllowed(String user) {\n \r\n }", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "public void onPermissionGranted() {\n\n }", "private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "void requestNeededPermissions(int requestCode);", "private PermissionHelper() {}", "@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}", "public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);\n int mode;\n assert appOpsManager != null;\n mode = appOpsManager.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n applicationInfo.uid, applicationInfo.packageName);\n return (mode == AppOpsManager.MODE_ALLOWED);\n\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n }", "public void getPermissiontoAccessInternet() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.INTERNET)\n != PackageManager.PERMISSION_GRANTED) {\n\n // The permission is NOT already granted.\n // Check if the user has been asked about this permission already and denied\n // it. If so, we want to give more explanation about why the permission is needed.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.INTERNET)) {\n // Show our own UI to explain to the user why we need to read the contacts\n // before actually requesting the permission and showing the default UI\n }\n\n // Fire off an async request to actually get the permission\n // This will show the standard permission request dialog UI\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNET},\n INTERNET_PERMISSIONS_REQUEST);\n }\n }", "protected void setPrivileges(PrivilegeSet ps) { this.privileges = ps; }", "public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public boolean isAdmin();", "private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "@Override\n\tpublic boolean isCommandAuthorized(){\n\t\treturn true;\n\t}", "boolean isAdmin();", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "private void init() {\r\n\t\t// administration\r\n\t\taddPrivilege(CharsetAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\taddPrivilege(LanguageAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\t\r\n\t\t// dictionary management\r\n\t\taddPrivilege(AddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(ChangeApplicationVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ChangeDictVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateOrAddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductReleaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(DeleteLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverAppDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveProductBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ImportTranslationDetailsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\r\n\t\taddPrivilege(UpdateLabelRefAndTranslationsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(GlossaryAction.class, User.ROLE_ADMINISTRATOR);\r\n\r\n\r\n\t\t// translation management\r\n\t\taddPrivilege(UpdateStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateTranslationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\t\r\n\t\t// task management\r\n\t\taddPrivilege(ApplyTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CloseTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ReceiveTaskFilesAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t}", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }", "public boolean publicAdmin() {\n try {\n return getConfig().getPublicAdmin();\n } catch (Throwable t) {\n t.printStackTrace();\n return false;\n }\n }", "public static void checkAccess() throws SecurityException {\n if(isSystemThread.get()) {\n return;\n }\n //TODO: Add Admin Checking Code\n// if(getCurrentUser() != null && getCurrentUser().isAdmin()) {\n// return;\n// }\n throw new SecurityException(\"Invalid Permissions\");\n }", "void permissionGranted(int requestCode);", "private void checkPermission(User user, List sourceList, List targetList)\n throws AccessDeniedException\n {\n logger.debug(\"+\");\n if (isMove) {\n if (!SecurityGuard.canManage(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n else {\n if (!SecurityGuard.canView(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n logger.debug(\"-\");\n }", "boolean isWritePermissionGranted();", "public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);", "int getPermissionRead();", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "String getPermission();", "@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}", "protected void doGetPermissions() throws TmplException {\r\n try {\r\n GlbPerm perm = (GlbPerm)TmplEJBLocater.getInstance().getEJBRemote(\"pt.inescporto.permissions.ejb.session.GlbPerm\");\r\n\r\n perms = perm.getFormPerms(MenuSingleton.getRole(), permFormId);\r\n }\r\n catch (java.rmi.RemoteException rex) {\r\n //can't get form perms\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(rex);\r\n throw tmplex;\r\n }\r\n catch (javax.naming.NamingException nex) {\r\n //can't find GlbPerm\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(nex);\r\n throw tmplex;\r\n }\r\n }", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "static public int getADMIN() {\n return 1;\n }", "public void AsignarPermiso(Permiso p){\n\t\tPermisoRol pr = new PermisoRol(p,this);\n\t\tpermisos.add(pr);\n\t}", "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public boolean adminAccess (String password) throws PasswordException;", "private void checkAdminOrModerator(HttpServletRequest request, String uri)\n throws ForbiddenAccessException, ResourceNotFoundException {\n if (isAdministrator(request)) {\n return;\n }\n\n ModeratedItem moderatedItem = getModeratedItem(uri);\n if (moderatedItem == null) {\n throw new ResourceNotFoundException(uri);\n }\n\n String loggedInUser = getLoggedInUserEmail(request);\n if (moderatedItem.isModerator(loggedInUser)) {\n return;\n }\n\n throw new ForbiddenAccessException(loggedInUser);\n }", "public String getAccess();", "public boolean hasAdminInvitePrivilages(User user, Chatroom chatroom) {\n\t\treturn isOwner(user, chatroom);// only the owner of a chatroom can send admin invitations\n\t}", "private void allowWalletFileAccess() {\n if (Constants.TEST) {\n Io.chmod(walletFile, 0777);\n }\n\n }", "public boolean isAccessible() {\n return false;\n }", "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "public void getStoragePermission(){\n if(ContextCompat.checkSelfPermission(this,Ubicacion.EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\n mStoragePermissionsGranted = true;\n Log.i(\"STORAGEPERMISSION\",\"permisos aceptados\");\n }else{\n Log.i(\"STORAGEPERMISSION\",\"permisos aun no se aceptan\");\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},Ubicacion.EXTERNAL_STORAGE_CODE);\n\n }\n }", "public Boolean getPublicAccess() {\n return publicAccess;\n }", "public String getPrivatenotes() {\r\n return privatenotes;\r\n }", "private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }", "private void permisosContactos() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CONTACTS) != PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS\n }, CONTACTS_REQUEST_CODE);\n\n }\n\n else{\n llenarLista();\n }\n }", "@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getSharedPreferences(\"karvaanSharedPref\", MODE_PRIVATE).edit().putBoolean(\"storagePermissionGranted\", false).apply();\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n if (result == PackageManager.PERMISSION_GRANTED) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }", "private static void peapodTest() throws GeneralSecurityException, PeapodException {\n User alice = new PeapodUser(\"Alice\");\n User bob = new PeapodUser(\"Bob\");\n\n // Initialize key server (generate K).\n KeyServer keyServer = KeyServer.instance();\n print(\"Initializing key server...\");\n keyServer.init();\n\n // Authenticate users with KeyServer...\n print(\"Authenticating Alice with key server...\");\n alice.authenticate(keyServer);\n print(\"Authenticating Bob with key server...\");\n bob.authenticate(keyServer);\n\n // Attribute test...\n //boolean satisfied = alice.getPolicy().satisfies(bob.getPolicy());\n\n // Register list server with the key server...\n ListServer listServer = new ListServer();\n print(\"Registering list server with key server...\");\n listServer.register(keyServer);\n\n // Subscribe users to the list server...\n print(\"Subscribing Alice to list server...\");\n listServer.subscribe(alice);\n print(\"Subscribing Bob to list server...\");\n listServer.subscribe(bob);\n\n // Now try sending a message to the server...\n print(\"Alice sending message to list server...\");\n alice.send(listServer, \"Roommate needed...\");\n\n // Bob fetches the messages matching his policy attributes...\n print(\"Bob checking list server for messages...\");\n bob.receive(listServer);\n }" ]
[ "0.82628244", "0.6882345", "0.6572089", "0.656022", "0.64780104", "0.64354527", "0.64321876", "0.64094186", "0.6404381", "0.63767034", "0.62623847", "0.62602174", "0.62363404", "0.6231745", "0.6225002", "0.6220072", "0.62030464", "0.61959773", "0.6163507", "0.6159153", "0.6158893", "0.6157952", "0.6156711", "0.61462426", "0.61339176", "0.61318076", "0.61250204", "0.6108573", "0.609682", "0.609682", "0.6079783", "0.60679764", "0.60651886", "0.6065001", "0.6027662", "0.60275227", "0.6011575", "0.6008479", "0.59969693", "0.5995036", "0.59779924", "0.59698266", "0.5915671", "0.59141797", "0.5913414", "0.58950174", "0.5893988", "0.5885754", "0.587751", "0.58418244", "0.58412445", "0.5817745", "0.5816261", "0.581601", "0.58154935", "0.5806616", "0.58029103", "0.580222", "0.5799931", "0.57878107", "0.57859373", "0.5783287", "0.5773238", "0.57681435", "0.5766174", "0.5765067", "0.57637537", "0.5760884", "0.5747388", "0.57342625", "0.5729802", "0.5729165", "0.57274204", "0.57185143", "0.5715167", "0.57126415", "0.5710136", "0.57098967", "0.56992024", "0.5688869", "0.56814504", "0.56800723", "0.5679812", "0.56786287", "0.5676338", "0.5675896", "0.5674571", "0.5672947", "0.5668527", "0.56642884", "0.5656721", "0.56488997", "0.56445974", "0.56407493", "0.56340283", "0.56334496", "0.5622954", "0.56141895", "0.5612992", "0.5612307" ]
0.5803005
56
invio la lista degli id dei giocatori nell'ordine corretto
@Override public void sendOrder(List<AbstractPlayer> playersOrderList) { List<Integer> orderList = new ArrayList<>(); for (AbstractPlayer player : playersOrderList) { orderList.add(player.getIdPlayer()); } try { if (getClientInterface() != null) getClientInterface().notifyTurnOrder(orderList); } catch (RemoteException e) { System.out.println("remote sending order error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArrayList<Integer> getIdGroupe (int idProjet) throws RemoteException {\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"Select a_idgroupe from association where a_idprojet = \" + idProjet;\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tline = data.nextElement();\r\n\t\t \tlist.add(Integer.parseInt(line[1]));\r\n\t\t }\r\n\r\n\t\t return list;\t\r\n\t\t}", "private void idGrupos() {\n\t\tmyHorizontalListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t\t+ gid[position].toString() + \"/books.json?auth_token=\";\n\t\t\t\tposicionId = gid[position].toString();\n\t\t\t\tvalorUltimo = 0;\n\t\t\t\tnuevo = 0;\n\t\t\t\taa.clear();\n\t\t\t\tgetData();\n\t\t\t}\n\t\t});\n\t}", "public ArrayList<Integer> getGroupMembersIds(int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"SELECT ga_idEtudiant FROM GroupeAssoc WHERE ga_idGroupe =\" + idGroupe;\r\n\t\t \r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \t\r\n\t\t \tlist.add(Integer.parseInt((data.getColumnValue(\"ga_idEtudiant\"))));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "Set<II> getIds();", "public List getAllIds();", "public ArrayList getNumberCaroserii() {\n c = db.rawQuery(\"select caroserie_id from statistici\" , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int id=c.getInt(0);\n lista.add(id);\n }\n return lista;\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public abstract ArrayList<Integer> getIdList();", "private List<Integer> findAllId(EntityManager em) {\n TypedQuery<Permesso> permessoQuery = em.createQuery(\"SELECT c FROM com.hamid.entity.Permesso c\", Permesso.class);\n List<Permesso> permessoRes = permessoQuery.getResultList();\n List<Integer> p_id = new ArrayList<Integer>();\n for (Permesso p : permessoRes) {\n int p_id1 = p.getPermesso_id();\n p_id.add(p_id1);\n }\n return p_id;\n }", "Enumeration getIds();", "public int getIdOrgaos() {\n\t\treturn idOrgaos;\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public static long nextIdAlergia() {\r\n long ret = 0;\r\n for (int i = 0; i < Utilidades.ALERGIAS.length; i++) {\r\n if (Utilidades.ALERGIAS[i].id > ret);\r\n ret = Utilidades.ALERGIAS[i].id;\r\n }\r\n return ret + 1;\r\n }", "public LinkedList Navegantes () {\r\n LinkedList lista = new LinkedList();\r\n String query = \"SELECT identificacion FROM socio WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n lista.add(rs.getString(\"identificacion\"));\r\n }\r\n query = \"SELECT identificacion FROM capitan WHERE eliminar = false\";\r\n rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n lista.add(rs.getString(\"identificacion\"));\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PSocio.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return lista;\r\n }", "public static ArrayList<Krediti> idPoiskKrediti() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\t\tint i = 0;\r\n\t\tScanner n = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Vvedite Id\");\r\n\t\tint t = n.nextInt();// number of rooms\r\n\t\tfor (Krediti kredit : kred) {\r\n\t\t\tif (kredit.getId() == t) {\r\n\t\t\t\tfoundKrediti.add(kredit);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundKrediti;\r\n\t}", "public static ArrayList<Individuo> ordInd(ArrayList<Individuo> gen){\n Individuo aux;\n ArrayList<Individuo> genaux = gen;\n for(int i=0;i<genaux.size();i++){\n for(int j=i;j<genaux.size();j++){\n if(genaux.get(i).getFenotipo() > genaux.get(j).getFenotipo()){\n aux = genaux.get(i);\n genaux.set(i, genaux.get(j));\n genaux.set(j, aux);\n }\n }\n }\n return genaux;\n }", "java.util.List<java.lang.Integer> getOtherIdsList();", "public List<ProyeccionKid> getListaProyeccionKids(int idOrganizacion, Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 34: */ {\r\n/* 35:62 */ List<ProyeccionKid> listaProyeccionKid = new ArrayList();\r\n/* 36:63 */ for (ProductoMaterial productoMaterial : getListaProductoMaterial(0, null, null, null, null))\r\n/* 37: */ {\r\n/* 38:64 */ ProyeccionKid proyeccionKid = new ProyeccionKid();\r\n/* 39:65 */ proyeccionKid.setProductoMaterial(productoMaterial);\r\n/* 40:66 */ proyeccionKid.setStock(getStock(productoMaterial.getMaterial(), null, null, null));\r\n/* 41:67 */ proyeccionKid.setSaldo(proyeccionKid.getStock().divide(productoMaterial.getCantidad(), RoundingMode.HALF_UP));\r\n/* 42:68 */ listaProyeccionKid.add(proyeccionKid);\r\n/* 43: */ }\r\n/* 44:70 */ return listaProyeccionKid;\r\n/* 45: */ }", "public List<Integer> getIdPOIs(String evenement) {\n List<Integer> uniqueIdPOIs = EMPTY_LIST;\n SQLiteDatabase db = openDatabaseSafe();\n if (db != null) {\n String columnName = \"ID_POI\";\n String conditionString = \"ID = \" + this._visiteID + \" AND EVENEMENT = \\\"\" + evenement + \"\\\"\";\n String query = \"Select \" + columnName + \" FROM \" + VISITES_TABLE_NAME + \" WHERE \" + conditionString;\n Cursor cursor = safeQuery(db, query);\n if (cursor != null) {\n List<Integer> idPOIs = POIsDBHandler.queryResultToList(cursor, columnName);\n Set<Integer> idPOIsSet = new HashSet<Integer>(idPOIs); //remove duplicates\n uniqueIdPOIs = new ArrayList<Integer>(idPOIsSet);\n }\n db.close();\n }\n return uniqueIdPOIs;\n }", "public List<Long> getTodosComputadoresId()throws Exception{\n\t\t\n\t\tList<Long> ids=new ArrayList<Long>();\n\t\tString sql = \"select codigo from \" + TABELA;\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\twhile (rs.next()){\n\t\t\tids.add(rs.getLong(1));\n\t\t}\n\n\t\treturn ids;\n\t}", "public Integer getIdLocacion();", "public static ArrayList<Vkladi> idPoiskVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint i = 0;\r\n\t\tScanner n = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Vvedite Id\");\r\n\t\tint t = n.nextInt();\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getId() == t) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "public void repartirGanancias() {\n\t\t \n\t\t System.out.println(\"JUGADORES EN GANANCIAS:\");\n\t\t for(int i = 0; i < idJugadores.length;i++) {\n\t\t\t System.out.println(\"idJugador [\"+i+\"] : \"+idJugadores[i]);\n\t\t }\n\t\t System.out.println(\"GANADORES EN GANANCIA\");\n\t\t for(int i = 0; i < ganador.size();i++) {\n\t\t\t System.out.println(\"Ganador [\"+i+\"] : \"+ganador.get(i));\n\t\t }\n\t\t if(ganador.size() >= 1) {\n\t\t\t for(int i = 0; i < idJugadores.length; i++) {\n\n\t\t\t\t if(contieneJugador(ganador, idJugadores[i])) {\n\t\t\t\t\t System.out.println(\"Entra ganador \"+idJugadores[i]);\n\t\t\t\t\t if(verificarJugadaBJ(manosJugadores.get(i))) {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado: \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],25));\n\t\t\t\t\t }else {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado --> \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],20));\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } \n\t\t }else {\n\t\t\t System.out.println(\"no ganó nadie\");\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"null\",0));\n\t\t }\n\t }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public void cargaJCIdiomas() {\n for (String idioma : lIdiomas) {\n Menus.jCIdioma.addItem(idioma);\n }\n }", "public List<Integer> getAllIDClient(){\n\t\tPreparedStatement ps = null;\n\t\tResultSet resultatRequete =null;\n\t\t\n\t\ttry {\n\t\t\tString requeteSqlGetAll=\"SELECT id_client FROM clients\";\n\t\t\tps = this.connection.prepareStatement(requeteSqlGetAll);\n\t\t\t\n\t\t\tresultatRequete = ps.executeQuery();\n\n\t\t\tClient client = null;\n\t\t\t\n\t\t\tList<Integer> listeIDClient = new ArrayList <>();\n\n\t\t\twhile (resultatRequete.next()) {\n\t\t\t\tint idClient = resultatRequete.getInt(1);\n\t\t\t\t\n\t\t\t\tlisteIDClient.add(idClient);\n\t\t\t\t\n\t\t\t}//end while\n\t\t\treturn listeIDClient;\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(resultatRequete!= null) resultatRequete.close();\n\t\t\t\tif(ps!= null) ps.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }", "public static ArrayList<Individuo> mutaHeuristica(ArrayList<Individuo> genAnt,int nB){\n ArrayList<Individuo> aux = genAnt;\n ArrayList<Integer> genesS = new ArrayList<>();\n int nM = (int) (genAnt.size()*0.2); //determina cuantos individuos van a ser mutados\n int iS,gS,i=0,n,c;\n byte gaux[],baux;\n Random r = new Random();\n while(i<nM){\n gS = r.nextInt(nB+1);//selecciona el numero de genes aleatoriamente\n iS = r.nextInt(genAnt.size());//selecciona un individuo aleatoriamente\n gaux = aux.get(iS).getGenotipo();//obtenemos genotipo de ind seleccionado\n c=0;\n System.out.println(gS);\n //seleccionamos genes a ser permutados\n while(c != gS){\n n = r.nextInt(nB);\n if(!genesS.contains(n)){\n genesS.add(n);\n System.out.print(genesS.get(c)+\" \");\n c++;\n }\n }\n System.out.println(\"\");\n //aux.remove(iS);//quitamos elemento\n //aux.add(iS, new Individuo(gaux,genAnt.get(0).getTipoRepre()));//añadimos elemento mutado\n i++;\n }\n return aux;\n }", "public CliGol[] getClis(String ids){\n \n List<CliGol> l = sesion.createQuery(\"from CliGol where cliGolId in \" + ids).list();\n return l.toArray(new CliGol[]{}); \n }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "java.util.List<java.lang.Long> getPlayerBagIdList();", "java.util.List<java.lang.Long> getPlayerBagIdList();", "java.util.List<java.lang.Long> getPlayerBagIdList();", "java.util.List<java.lang.Long> getPlayerBagIdList();", "java.util.List<java.lang.Long> getPlayerBagIdList();", "java.util.List<java.lang.Long> getPlayerBagIdList();", "private ArrayList<String> obtenerIds(ArrayList<String> values){\n\t\tArrayList<String> ids = new ArrayList<>();\n\t\tfor(String valor : values){\n\t\t\tids.add(postresId.get(valor));\n\t\t}\n\t\treturn ids;\n\t}", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "java.util.List<java.lang.Integer> getRareIdList();", "java.util.List<java.lang.Integer> getRareIdList();", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "java.util.List<java.lang.Integer> getListSnIdList();", "java.util.List<java.lang.Long> getIdsList();", "private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }", "public int getIden() {\n return iden;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComTicketsDependencia> codigosdisponibles(Long ide) {\n\t\t\r\n\t\treturn em.createQuery(\"select ct.id,ct.ticket from ComTicketsDependencia c inner join c.comTicket ct where c.dependencia.id=\"+ide+\" and c.comTicket.estado=1 and c.comPeriodo.estado='1' order by ct.id \").getResultList();\r\n\t}", "int getOtherIds(int index);", "private String getIds(List<UserTO> userList) {\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\tfor (UserTO user : userList) {\r\n\t\t\tidSet.add(user.getOrgNodeId());\r\n\t\t\tif (null != user.getOrgNodeCodePath()) {\r\n\t\t\t\tString[] orgHierarchy = user.getOrgNodeCodePath().split(\"~\");\r\n\t\t\t\tSet<String> orgHierarchySet = new HashSet<String>(Arrays.asList(orgHierarchy));\r\n\t\t\t\tidSet.addAll(orgHierarchySet);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString ids = idSet.toString();\r\n\t\tids = ids.substring(1, ids.length() - 1);\r\n\t\treturn ids;\r\n\t}", "public ArrayList<InformeGarage> obtenerInformeEstadoGarages() {\n\n\t\tArrayList<InformeGarage> lista = new ArrayList<InformeGarage>();\n\n\t\tfor (Garage garage : this.garages) {\n\t\t\tlista.add(garage.dameInforme());\n\t\t}\n\t\treturn lista;\n\t}", "public List<Integer> getGameIDs(){\r\n\t\treturn discountedGameIDs;\r\n\t}", "public ArrayList<Integer> getGroupeTypeProjet (int idType) throws RemoteException {\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"Select g_id From groupe Where g_idtype =\" + idType;\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tline = data.nextElement();\r\n\t\t \tlist.add(Integer.parseInt(line[1]));\r\n\t\t }\r\n\t\t\t\r\n\t\t return list;\r\n\t\t}", "public List<Integer> getRegionIds() {\r\n\t\tList<Integer> regionIds = new ArrayList<>();\r\n\t\tfor (int x = southWestX >> 6; x < (northEastX >> 6) + 1; x++) {\r\n\t\t\tfor (int y = southWestY >> 6; y < (northEastY >> 6) + 1; y++) {\r\n\t\t\t\tint id = y | x << 8;\r\n\t\t\t\tregionIds.add(id);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn regionIds;\r\n\t}", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "List<String> findAllIds();", "public ArrayList consultaID(){\n ArrayList<Object> iduser = new ArrayList<Object>();\n\n sSQL = \"SELECT usuario.idusuario from usuario where usuario.idtipo_user='3'\";\n\n try {\n Statement st = cn.createStatement();\n ResultSet rs = st.executeQuery(sSQL);\n while (rs.next()) {\n iduser.add(rs.getInt(\"usuario.idusuario\"));\n\n }\n \n \n return iduser;\n } catch (Exception e) {\n \n System.out.println(\"consultando usuarios registrados para la seleccion del representante\");\n return null;\n \n }\n }", "private Object saveGivens() {\n List<String> out = new ArrayList<>();\n for(UUID id : givenEmpty) {\n out.add(id.toString());\n }\n return out;\n }", "public String getInoId();", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private TreeSet<Long> getIds(Connection connection) throws Exception {\n\t\tTreeSet<Long> result = new TreeSet<Long>();\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = connection\n\t\t\t\t\t.prepareStatement(\"select review_feedback_id from \\\"informix\\\".review_feedback\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tresult.add(rs.getLong(1));\n\t\t\t}\n\t\t} finally {\n\t\t\tps.close();\n\t\t}\n\t\treturn result;\n\t}", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "public int[] getAllId(int id) {\n int[] ids = new int[50];\n int i = 0;\n String sql= \"select * from photo where id_annonce = \"+id;\n Cursor cursor = this.getReadableDatabase().rawQuery(sql, null);\n if (cursor.moveToFirst())\n do {\n ids[i] = cursor.getInt(cursor.getColumnIndex(\"id_photo\"));\n i++;\n }while (cursor.moveToNext());\n cursor.close();\n return ids;\n }", "@Override\n\tpublic Object[] getIds() {\n\t\treturn null;\n\t}", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public List<Integer> getAllUsersGID() {\n\n\t\tList<Integer> result = new ArrayList<Integer>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsersGid);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tresult.add(rs.getInt(1));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}", "private static Integer[] listaCategoriasCadastradas() throws Exception {\r\n int count = 0;\r\n ArrayList<Categoria> lista = arqCategorias.toList();\r\n Integer[] idsValidos = null; //Lista retornando os ids de categorias validos para consulta\r\n if (!lista.isEmpty()) {\r\n idsValidos = new Integer[lista.size()];\r\n System.out.println(\"\\t** Lista de categorias cadastradas **\\n\");\r\n for (Categoria c : lista) {\r\n System.out.println(c);\r\n idsValidos[count] = c.getID();\r\n count++;\r\n }\r\n }\r\n return idsValidos;\r\n }", "@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}", "public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "long buscarAnterior(long id);", "public int[] getIDs(){\r\n\t\tint[] id = new int[Config.MAX_CLIENTS];\r\n\t\tfor(int i=0; i< Config.MAX_CLIENTS;i++){\r\n\t\t\tid[i] = clients[i].getID();\r\n\t\t}\r\n\t\treturn id;\r\n\t}", "@Override\n\tpublic String[] getIds() {\n\t\treturn null;\n\t}", "public void generateIDs() {\n Random randomGenerator = new Random();\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n identificationNumbers[i][j] = randomGenerator.nextInt(2);\n }\n }", "public int getIdLibro()\n {\n return id;\n }", "public List<PedidoIndividual> obtenerCuentaCliente(Long idCliente,String claveMesa) throws QRocksException;", "private void getinterrogantes(){\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql = \"SELECT i FROM Interrogante i \"\n + \"WHERE i.estado='a' \";\n\n Query query = em.createQuery(jpql);\n List<Interrogante> listInterrogantes = query.getResultList();\n\n ArrayList<ListQuestion> arrayListQuestions = new ArrayList<>();\n for (Interrogante i : listInterrogantes){\n ListQuestion lq = new ListQuestion();\n lq.setIdinterrogante(i.getIdinterrogante());\n lq.setQuestion(i.getDescripcion());\n lq.setListParametros(getParametros(i.getIdinterrogante()));\n arrayListQuestions.add(lq);\n }\n\n this.ListQuestions = arrayListQuestions;\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n } \n \n }", "public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public void diagrafiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi sto farmakeio\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA IATRWN\");\n\t\t\t// Emfanizw olous tous giatrous\n\t\t\tfor(int j = 0; j < numOfDoctors; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA IATROU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tdoctor[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU IATROU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO IATROU: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous giatrous mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfDoctors - 1; k++)\n\t\t\t{\n\t\t\t\tdoctor[k] = doctor[k+1]; // Metakinw ton giatro sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfDoctors--; // Meiwse ton ari8mo twn giatrwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI GIATROI PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public List getClothid(String indepotids) {\n\t\treturn getHibernateTemplate().find(\" select distinct id.clothingid from DIndepotsub where indepotid in \"+indepotids+\" order by id.clothingid desc\");\n\t}", "@Override\n\tpublic List getIdListByGroupId(Integer groupId) {\n\t\tString sql = \"select g.resid from GroupFunres g where groupid = '\" + groupId + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}", "long getIds(int index);", "public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public java.lang.Integer getId_rango();", "public List<PedidoIndividual> obtenerNuevosPedidosPorPedidoMesa(Long idPedido) throws QRocksException;", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "Collection<VistaProcesoLogisticoDTO> obtenerAgrupacionProcesosLogisticos(Collection<Long> codigosProcesosLogisticos) throws SICException;", "@Override\n public Iterable<Id> breadthIdIterable() {\n return idDag.breadthIdIterable();\n }", "public int getNumeroGiocatori() {\n return 0;\r\n }", "public Map<Long, GrupoAtencion> getGruposAtentionGenerados(Integer accion, Long numeroProgramacion) {\n\t\tlogger.info(\" ### getGruposAtentionGenerados ### \");\n\t\t\n\t\tMap<Long, GrupoAtencion> mpGrupos = Collections.EMPTY_MAP;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tif(accion!=null && accion.equals(ConstantBusiness.ACCION_NUEVA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos temporales \");\n\t\t\t\t\n\t\t\t\tmpGrupos.putAll(mpGruposCached);\n\t\t\t\t\n\t\t\t}else if(accion!=null && accion.equals(ConstantBusiness.ACCION_EDITA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos bd \");\n\t\t\t\tList<GrupoAtencion> grupoAtencionLíst = grupoAtencionDao.getGruposAtencionPorProgramacion(numeroProgramacion);\n\t\t\t\tList<GrupoAtencion> _grupoAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\tList<GrupoAtencionDetalle> _grupoDetalleAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor (GrupoAtencion g : grupoAtencionLíst) {\n\t\t\t\t\tlogger.info(\" grupo generado :\"+g.getDescripcion());\n\t\t\t\t\t//clonando grupos \n\t\t\t\t\tlogger.info(\" ### clonando grupo : \"+g.getNumeroGrupoAtencion());\n\t\t\t\t\tGrupoAtencion grupoAtencion = (GrupoAtencion) g.clone();\n\t\t\t\t\tfor(GrupoAtencionDetalle d: g.getGrupoAtencionDetalles()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"### numero de solicitud :\"+d.getSolicitudServicio().getNumeroSolicitud());\n\t\t\t\t\t\t\n\t\t\t\t\t\t_grupoDetalleAtencionLíst.add((GrupoAtencionDetalle)d.clone());\n\t\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\t_grupoAtencionLíst.add(grupoAtencion);\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\" mapeando objetos clonados \");\n\t\t\t\tfor (GrupoAtencion g : _grupoAtencionLíst) {\n\t\t\t\t\tg.setGrupoAtencionDetalles(new ArrayList<GrupoAtencionDetalle>());\n\t\t\t\t\tfor (GrupoAtencionDetalle d : _grupoDetalleAtencionLíst) {\n\t\t\t\t\t\tif( d.getGrupoAtencion()!=null && \n\t\t\t\t\t\t\t\td.getGrupoAtencion().getNumeroGrupoAtencion()==g.getNumeroGrupoAtencion()){\n\t\t\t\t\t\t\tg.getGrupoAtencionDetalles().add(d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmpGrupos.put(g.getNumeroGrupoAtencion(), g);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthis.mpGruposCached = mpGrupos;\n\t\t\t\t\n\t\t\t\tmostrarGrupos(mpGrupos);\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mpGrupos;\n\t}", "public static void main(String[] args) {\n\t\t\tScanner tastiera=new Scanner(System.in);\r\n\t\t\tint k=0, j=0;\r\n\t\t\tint conta=0;\r\n\t\t\tString risposta=\"\";\r\n\t\t\tRandom r=new Random();\r\n\t\t\tArrayList<Giocatore> partecipantiOrdinati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> partecipantiMescolati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> perdenti=new ArrayList<Giocatore>();\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tpartecipantiOrdinati.add(new Giocatore(GIOCATORI[i]));\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tint indice=Math.abs(r.nextInt()%partecipantiOrdinati.size());\r\n\t\t\t\tpartecipantiMescolati.add(partecipantiOrdinati.get(indice));\r\n\t\t\t\tpartecipantiOrdinati.remove(indice);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"INIZIA IL TORNEO DI BRISCOLA!\");\r\n\t\t\twhile(partecipantiMescolati.size()!=1) {\r\n\t\t\t\tSystem.out.println(\"Fase \"+(j+1));\r\n\t\t\twhile(conta<partecipantiMescolati.size()) {\r\n\t\t\t\tMazzo m=new Mazzo();\r\n\t\t\t\tm.ordinaMazzo();\r\n\t\t\t\tm.mescolaMazzo();\r\n\t\t\t\tGiocatore g1=partecipantiMescolati.get(conta);\r\n\t\t\t\tGiocatore g2=partecipantiMescolati.get(conta+1);\r\n\t\t\t\tPartita p=new Partita(g1,g2,m);\r\n\t\t\t\tSystem.out.println(\"Inizia la partita tra \"+g1.getNickName()+\" e \"+g2.getNickName());\r\n\t\t\t\tSystem.out.println(\"La briscola è: \"+p.getBriscola().getCarta());\r\n\t\t\t\tSystem.out.println(\"Vuoi skippare la partita? \"); risposta=tastiera.next();\r\n\t\t\t\tif(risposta.equalsIgnoreCase(\"si\")) {\r\n\t\t\t\t\tg1.setPunteggio(p.skippa());\r\n\t\t\t\t\tg2.setPunteggio(PUNTI_MASSIMI-g1.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g1.getNickName());//vince g1\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g2.getNickName());// vince g2\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g1);\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\tp.daiLePrimeCarte();\r\n\t\t\t\t\tCarta c1=new Carta(g1.gioca().getCarta());\r\n\t\t\t\t\tCarta c2=new Carta(g2.gioca().getCarta());\r\n\t\t\t\t\tg1.eliminaDaMano(c1); g2.eliminaDaMano(c2);\r\n\t\t\t\t\tint tracciatore=1; //parte dal giocatore 1\r\n\t\t\t\t\twhile(!m.mazzoMescolato.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g1); p.pesca(g2);\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g2); p.pesca(g1);\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2); \r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{tracciatore = 1; k--;}\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Manche Finale\");\r\n\t\t\t\t\twhile(!g1.carteInMano.isEmpty() || !g2.carteInMano.isEmpty()) {\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ttracciatore = 1;\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Situazione: \"+g1.getNickName()+\": \"+g1.getPunteggio());\r\n\t\t\t\t\tSystem.out.println(g2.getNickName()+\": \"+g2.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g1.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g2.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconta+=2;\r\n\t\t\t\tSystem.out.println(\"Premi una lettera per continuare: \"); risposta=tastiera.next();\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tconta=0;\r\n\t\t\tfor(int i=0;i<perdenti.size();i++)\r\n\t\t\t\tpartecipantiMescolati.remove(perdenti.get(i));\r\n\t\t\tSystem.out.println(\"Restano i seguenti partecipanti: \");\r\n\t\t\tfor(int i=0;i<partecipantiMescolati.size();i++) {\r\n\t\t\t\tSystem.out.println(partecipantiMescolati.get(i).getNickName());\r\n\t\t\t\tpartecipantiMescolati.get(i).setPunteggio(0);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Il vincitore del torneo è: \"+partecipantiMescolati.get(0).getNickName());\r\n\t\t\t\t\r\n\t}", "public ArrayList<ArrayList<Integer>> selectForQuoiEntre(int id) throws DAOException;", "public List<String> deaIppm(){\n List<String> script = new ArrayList<>();;\n Iterator<Ippm> it = ippmList.iterator();\n while (it.hasNext()){\n Ippm temp = it.next();\n script.add( \"DEA IPPM: ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPathId() +\"; {\"+rncName+\"}\");\n \n \n }\n \n return script;\n }", "private static void gioca(DBManager database)\n\t\t\tthrows ClassNotFoundException, SQLException {\n\n\t\tif (players.size() < MIN_PLAYERS) {\n\t\t\tSystem.out\n\t\t\t\t\t.printf(\"Attualmente ci sono %d giocatori.\\nCi devono essere almeno 2 giocatori per giocare!\\n\",\n\t\t\t\t\t\t\tplayers.size());\n\t\t}\n\t\telse {\n\t\t\tCollections.shuffle(players);\n\t\t\tPartita parta = new Partita(database, players);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(Giocatore p : players){\n\t\t\t\tBanca.prelievo(p, CAPITALE_INIZIALE);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tint turno = 0;\n\t\t\twhile (turno < NUMERO_TURNI * players.size() && players.size()>1) {\n\t\t\t\tif (turno %players.size() == 0)\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.printf(\"Turno %d\\n\", ((turno + 1)/players.size())+1);\n\n\t\t\t\ttry{\n\t\t\t\t\tparta.turno();\n\t\t\t\t}catch (FallimentoException e){\n\t\t\t\t\t\n\t\t\t\t\tplayers.remove(e.getGiocatore());\n\t\t\t\t\tparta.rimuoviGiocatore(e.getGiocatore());\n\t\t\t\t}\n\t\t\t\tturno += 1;\n\t\t\t\ttry{\n\t\t\t\t\tSystem.in.read();\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tproclamaVincitore();\n\t}", "@Override\n\tpublic int getIdNguoiTao() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiTao();\n\t}" ]
[ "0.68677664", "0.6562753", "0.65609354", "0.6455237", "0.6426952", "0.6424789", "0.623023", "0.62032795", "0.6165172", "0.6152857", "0.61409783", "0.60894895", "0.6061763", "0.5966939", "0.5960076", "0.59590614", "0.5951901", "0.59447354", "0.59027404", "0.5891937", "0.5877495", "0.58758664", "0.5869092", "0.58586776", "0.57787365", "0.57653266", "0.57386255", "0.5737131", "0.5723393", "0.57163924", "0.5715877", "0.57000256", "0.5697185", "0.56957537", "0.56957537", "0.56957537", "0.56957537", "0.56957537", "0.56957537", "0.5692332", "0.5690833", "0.56849635", "0.56849635", "0.56789446", "0.5660942", "0.56575936", "0.56524533", "0.56449187", "0.5642324", "0.56403154", "0.5631919", "0.5622947", "0.56123734", "0.5610882", "0.56089985", "0.5599002", "0.5596587", "0.5592162", "0.5586511", "0.5575668", "0.5568316", "0.5553778", "0.5551847", "0.5545856", "0.55455345", "0.55436814", "0.5540557", "0.5537021", "0.55368245", "0.5536133", "0.552567", "0.552197", "0.5518835", "0.55096895", "0.5493914", "0.5483097", "0.5482831", "0.5481993", "0.54794264", "0.54778385", "0.547651", "0.5475445", "0.54686314", "0.54656005", "0.5465173", "0.5464801", "0.5463522", "0.5458961", "0.54571843", "0.54561216", "0.5449277", "0.5444449", "0.54425025", "0.5438988", "0.54356605", "0.5431756", "0.54313093", "0.54310113", "0.54296255", "0.5427173", "0.5420154" ]
0.0
-1
notifica al giocatore che il suo avversario ha abbandonato
@Override public void opponentSurrender(int id) { try { if (getClientInterface() != null) getClientInterface().notifyOpponentSurrender(id); } catch (RemoteException e) { System.out.println("remote sending opponent surrender error"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public boolean avanti();", "public boolean Vacia (){\n return cima==-1;\n \n }", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public abstract boolean esComestible();", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.currentTimeMillis());\n\t\tSystem.out.println(\"STATE B - Le festivalier \" + this.numFestivalier + \" a acheté sa place\");\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "boolean estaAcabado();", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "@Override\n public boolean esArbolVacio() {\n return NodoBinario.esNodoVacio(raiz);\n }", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "final boolean hanArribatAlFinal() {\n int cont = 0;\n for (int i = 0; i < soldats.size(); i++) {\n if (soldats.get(i).isHaArribat()) {\n cont++;\n }\n }\n\n if (cont == soldats.size()) {\n\n return true;\n }\n\n return false;\n\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "private boolean onAntesGravarArquivo() {\n\t\tAACAntesArquivoEventObject e = new AACAntesArquivoEventObject(this, false);\n\t\tnotifyListeners(\"onAntesGravarArquivo\", e);\n\t\treturn e.isContinua();\n\t}", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "public boolean isConfermabile() {\n boolean confermabile = false;\n Date d1, d2;\n\n try { // prova ad eseguire il codice\n confermabile = super.isConfermabile();\n\n /* controllo che le date siano in sequenza */\n if (confermabile) {\n d1 = this.getDataInizio();\n d2 = this.getDataFine();\n confermabile = Lib.Data.isSequenza(d1, d2);\n }// fine del blocco if\n\n /* controllo che almeno una riga sia selezionata */\n if (confermabile) {\n confermabile = getPanServizi().getRigheSelezionate().size() > 0;\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return confermabile;\n\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void abrir(){\n\t\tif(this.isOpen == false) {\n\t\t\tthis.isOpen = true;\n\t\t\tnumAberturas ++;\n\t\t} else {\n\t\t\tSystem.out.println(\"Cavalo! A porta já está aberta!!\");\n\t\t}\n\t}", "private boolean esHoja() {\r\n boolean hoja = false;\r\n\r\n if( subABizq.esVacio() && subABder.esVacio() ) {\r\n hoja = true;\r\n }\r\n\r\n return hoja;\r\n }", "public boolean HayObstaculo(int avenida, int calle);", "private boolean isGameOverAutomatico() {\n\t\tif(this.getEquipesAtivas().size() == 1)\n\t\t\treturn true;\n\t\t\n\t\tboolean temCosmo = false;\n\t\tfor(Equipe equipe : this.getEquipesAtivas()){\n\t\t\tif(equipe.getCosmo() > 0){\n\t\t\t\ttemCosmo = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn !temCosmo;\n\t}", "public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}", "private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }", "@Override\n\tpublic void verificar() {\n\t\tsuper.verificar();\n\t}", "private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }", "public boolean abilitaNuovoAccertamento(){\n\t\t\n\t\tif(isAzioneAbilitata(CodiciOperazioni.OP_ENT_insAcc)){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean puedoAtacar(ElementoSoldado a) {\n\t\treturn false;\n\t}", "public boolean tieneRepresentacionGrafica();", "public boolean SiguienteBodega(){\n if(!lista_inicializada){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n lista_inicializada = true;\n if(Size>0){\n return true;\n }\n }\n \n if(Size > 1 ){\n if(Nodo_bodega_actual.obtenerSiguiente()!= null){\n Nodo_bodega_actual = Nodo_bodega_actual.obtenerSiguiente();\n return true;\n } \n }\n return false;\n }", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "private void inAvanti() {\n\t\tif (Game.getInstance().isOnGround) {\n\t\t\tjump=false;\n\t\t\tGame.getInstance().getPersonaggio().setStato(Protagonista.RUN);\n\t\t\tGraficaProtagonista.getInstance().cambiaAnimazioni(Protagonista.RUN);\n\t\t}\n\t}", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "public void act() \n {\n verificaClique();\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public boolean estaEnModoAvion();", "private void verificarColisiones() {\n if(inmunidadRamiro){\n tiempoInmunidadRamiro += Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidadRamiro>=6f){//despues de 0.6 seg, vuelve a ser vulnerable\n inmunidadRamiro=false;\n tiempoInmunidadRamiro=0f;\n ramiro.setEstadoItem(Ramiro.EstadoItem.NORMAL);\n musicaRayo.stop();\n if(music){\n musicaFondo.play();\n }\n\n }\n\n if (inmunidad){//Para evitar bugs, Ramiro puede tomar damage cada cierto tiempo...\n //Se activa cada vez que toma damage\n tiempoInmunidad+=Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidad>=0.6f){//despues de 0.6 seg, vuelve a ser vulnerable\n inmunidad=false;\n tiempoInmunidad=0f;\n }\n if (inmunidadItem){\n tiempoInmunidadItem+=Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidadItem>=0.6f){\n inmunidadItem=false;\n tiempoInmunidadItem=0f;\n\n }\n //Verificar colisiones de Item Corazon.\n for (int i=arrCorazonesItem.size-1; i>=0; i--) {\n Corazon cora = arrCorazonesItem.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(cora.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n\n arrCorazonesItem.removeIndex(i);\n agregarCorazon();\n inmunidadItem=true;\n }\n\n }\n\n }\n //Verifica colisiones Rayo emprendedor\n for (int i=arrRayoEmprendedor.size-1; i>=0; i--) {\n RayoEmprendedor rayo= arrRayoEmprendedor.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(rayo.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n\n arrRayoEmprendedor.removeIndex(i);\n inmunidadRamiro();\n\n }\n\n }\n\n }\n //coalisiones de las tareas\n for (int i=arrTarea.size-1; i>=0; i--) {\n Tarea tarea = arrTarea.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(tarea.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n agregarPuntos();\n arrTarea.removeIndex(i);\n inmunidadItem=true;\n }\n\n }\n\n }\n\n\n //Verifica colisiones de camioneta\n if(estadoMapa==EstadoMapa.RURAL || estadoMapa==EstadoMapa.RURALURBANO){\n for (int i=arrEnemigosCamioneta.size-1; i>=0; i--) {\n Camioneta camioneta = arrEnemigosCamioneta.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(camioneta.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n\n for (int i=arrEnemigoAve.size-1; i>=0; i--) {\n Ave ave = arrEnemigoAve.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(ave.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de carro de Lujo\n if(estadoMapa==EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n for (int i=arrEnemigosAuto.size-1; i>=0; i--) {\n Auto cocheLujo = arrEnemigosAuto.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(cocheLujo.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n\n for (int i=arrEnemigoAve.size-1; i>=0; i--) {\n Ave ave = arrEnemigoAve.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(ave.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de carrito de golf\n if(estadoMapa==EstadoMapa.UNIVERSIDAD){\n for (int i=arrEnemigosCarritoGolf.size-1; i>=0; i--) {\n AutoGolf carritoGolf = arrEnemigosCarritoGolf.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(carritoGolf.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de las lamparas\n if(estadoMapa==EstadoMapa.SALONES){\n for (int i=arrEnemigoLampara.size-1; i>=0; i--) {\n Lampara lampara = arrEnemigoLampara.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(lampara.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n //Verifica colisiones de las sillas\n for (int i=arrEnemigoSilla.size-1; i>=0; i--) {\n Silla silla = arrEnemigoSilla.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(silla.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n\n\n\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "public void ativa() {\n this.ativada = true;\n }", "public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }", "@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}", "@Override\n\tpublic boolean puedoAtacar(ElementoFuente a) {\n\t\treturn true;\n\t}", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "@Override\n\tpublic void statusVomMenschen() {\n\t\tSystem.out.println(\"Sie wurden getroffen nun können Sie nicht mehr so schnell laufen!\");\n\t}", "final void checkForComodification() {\n\t}", "void entrerAuGarage();", "public synchronized void pisteLiberee() {\n\t\tSystem.out.println(\"[PisteDeDanse][Une piste est libérée]\");\n\t\tthis.pisteLibre = true;\n\t\tnotify();\n\t}", "@Override\r\n\tpublic boolean seLanceSurServiteurProprietaire() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }", "public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public boolean indietro();", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "@Override\n\tpublic void checkeoDeBateria() {\n\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean isAggiornaAbilitatoAccertamento(String stato){\n\t\t\n\t\t//questo primo controllo riguarda logiche comuni per\n\t\t//sub accertamenti e sub impegni:\n\t\tboolean abilitatazioniComuniImpEAcc = super.isAggiornaAbilitato(stato);\n\t\tif(!abilitatazioniComuniImpEAcc){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//SIAC-4949 IMPEGNI e ACCERTAMENTI Aggiornamento per decentrati CR 912\n\t\t// quando l'utente ha il'azione DecentratoP deve essere disabilitata l'azione AGGIORNA e ANNULLA \n\t\t//dei subimpegni/subaccertamenti definitivi \n\t\tif(stato.equals(\"D\") && isAzioneAbilitata(CodiciOperazioni.OP_ENT_gestisciAccertamentoDecentratoP)){\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\t\t\n\t\treturn true;\n\t}", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public boolean verMina(){\n\r\n return espM;\r\n }", "public boolean atacar(Pokemon alvo) {\n\t\tif (tipo == FOGO) {\n\t\t\tswitch (alvo.getTipo()) {\n\t\t\tcase PLANTA:\n\t\t\t\treturn ataque * 2 >= alvo.getAtaque();\n\t\t\tcase AGUA:\n\t\t\t\treturn ataque >= alvo.getAtaque() * 2;\n\t\t\tcase ELETRICO:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tdefault:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\t}\n\t\t} else if(tipo == PLANTA) {\n\t\t\tswitch (alvo.getTipo()) {\n\t\t\tcase PLANTA:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tcase AGUA:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tcase ELETRICO:\n\t\t\t\treturn ataque * 2 >= alvo.getAtaque();\n\t\t\tdefault:\n\t\t\t\treturn ataque >= alvo.getAtaque() * 2;\n\t\t\t}\n\t\t} else if(tipo == ELETRICO) {\n\t\t\tswitch (alvo.getTipo()) {\n\t\t\tcase PLANTA:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tcase AGUA:\n\t\t\t\treturn ataque * 2 >= alvo.getAtaque();\n\t\t\tcase ELETRICO:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tdefault:\n\t\t\t\treturn ataque >= alvo.getAtaque() * 2;\n\t\t\t}\n\t\t} else {\n\t\t\tswitch (alvo.getTipo()) {\n\t\t\tcase PLANTA:\n\t\t\t\treturn ataque >= alvo.getAtaque() ;\n\t\t\tcase AGUA:\n\t\t\t\treturn ataque >= alvo.getAtaque();\n\t\t\tcase ELETRICO:\n\t\t\t\treturn ataque >= alvo.getAtaque() * 2;\n\t\t\tdefault:\n\t\t\t\treturn ataque * 2 >= alvo.getAtaque();\n\t\t\t}\n\t\t}\n\t}", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public synchronized void abordar() {\n pedidoAbordaje++;\r\n while(!abordar){//Mientras no este habilitado el abordaje espera \r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando se habilita el abordaje el pasajero se sube\r\n pedidoAbordaje--;\r\n if (pedidoAbordaje == 0){ //Si es el ultimo en subir avisa que puede despegar\r\n notifyAll();\r\n }\r\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "boolean hasBunho();", "boolean hasBunho();", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void asignarVida();" ]
[ "0.71943575", "0.6959349", "0.66827124", "0.66705424", "0.66355807", "0.66263163", "0.6603937", "0.6584134", "0.65376323", "0.6522522", "0.64817256", "0.6468562", "0.64408", "0.64375174", "0.63892895", "0.6388627", "0.6353496", "0.6319392", "0.6314705", "0.6302916", "0.6302446", "0.62999254", "0.62823665", "0.6278489", "0.6249649", "0.6169061", "0.6163708", "0.61609524", "0.6154565", "0.6143543", "0.6140712", "0.61342293", "0.61332536", "0.61303914", "0.6118458", "0.61054903", "0.61025816", "0.6102398", "0.6098496", "0.6093139", "0.6083912", "0.60830456", "0.6079022", "0.6072611", "0.60650957", "0.60650456", "0.6062689", "0.6054027", "0.6051258", "0.60466534", "0.60433966", "0.60304946", "0.6015813", "0.60131264", "0.600946", "0.60074127", "0.60066366", "0.59998703", "0.5999787", "0.5998246", "0.5995046", "0.59938055", "0.5987179", "0.5977607", "0.5970615", "0.5968709", "0.5965245", "0.5963607", "0.5962512", "0.5954166", "0.5952448", "0.5951144", "0.5944018", "0.59408134", "0.5935679", "0.59307706", "0.5930541", "0.59272355", "0.59204686", "0.59188634", "0.5917801", "0.59109485", "0.5908731", "0.59063184", "0.5897667", "0.5893649", "0.58922166", "0.58862567", "0.58846086", "0.5884433", "0.58837765", "0.5880996", "0.58809763", "0.5869948", "0.5869163", "0.58620656", "0.5859814", "0.5854087", "0.5854087", "0.58529764", "0.58524126" ]
0.0
-1
This response object will have the details of all import operations performed on this import sink.
@GetMapping("/queryPriceImportOperations") public CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> queryImportOperations() throws ExecutionException, InterruptedException { CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> imoprtOperationResponse = ctoolsImportApiClient.withProjectKeyValue(project) .prices() .importSinkKeyWithImportSinkKeyValue(importSink.getKey()) .importOperations() .get().withLimit(10000.0).execute(); return imoprtOperationResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImportStatus() {\n return this.importStatus;\n }", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportDataResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/importData\", request, ImportDataResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportDataResponse>() {});\n return (ImportDataResponse) importResponse.getBody();\n }", "@CommandDescription(name=\"importFuncionarioResponse\", kind=CommandKind.ResponseCommand, requestPrimitive=\"importFuncionarioResponse\")\npublic interface ImportFuncionarioResponse extends MessageHandler {\n\n\tvoid importFuncionarioResponse(ImportFuncionarioOutput response);\n\t\n\tvoid importFuncionarioResponseError(ErrorPayload error);\n\n}", "public interface ImportResultConverter\n{\n\t/**\n\t * Converts service import result to item import result\n\t *\n\t * @param importRes result received from the import service.\n\t * @return import result data corresponding to the service import result.\n\t */\n\tItemImportResult convert(ImportResult importRes);\n}", "void reportImport() {\n this.hasImports = true;\n }", "@POST\n @Path(\"/upload-sources\")\n @Consumes(MediaType.MULTIPART_FORM_DATA)\n @Produces(\"text/plain\")\n @RolesAllowed(Roles.ADMIN)\n public String importSources(@Context HttpServletRequest request) throws Exception {\n return executeBatchJobFromUploadedFile(request, \"source-import\");\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getImportArn() != null)\n sb.append(\"ImportArn: \").append(getImportArn()).append(\",\");\n if (getImportStatus() != null)\n sb.append(\"ImportStatus: \").append(getImportStatus()).append(\",\");\n if (getTableArn() != null)\n sb.append(\"TableArn: \").append(getTableArn()).append(\",\");\n if (getTableId() != null)\n sb.append(\"TableId: \").append(getTableId()).append(\",\");\n if (getClientToken() != null)\n sb.append(\"ClientToken: \").append(getClientToken()).append(\",\");\n if (getS3BucketSource() != null)\n sb.append(\"S3BucketSource: \").append(getS3BucketSource()).append(\",\");\n if (getErrorCount() != null)\n sb.append(\"ErrorCount: \").append(getErrorCount()).append(\",\");\n if (getCloudWatchLogGroupArn() != null)\n sb.append(\"CloudWatchLogGroupArn: \").append(getCloudWatchLogGroupArn()).append(\",\");\n if (getInputFormat() != null)\n sb.append(\"InputFormat: \").append(getInputFormat()).append(\",\");\n if (getInputFormatOptions() != null)\n sb.append(\"InputFormatOptions: \").append(getInputFormatOptions()).append(\",\");\n if (getInputCompressionType() != null)\n sb.append(\"InputCompressionType: \").append(getInputCompressionType()).append(\",\");\n if (getTableCreationParameters() != null)\n sb.append(\"TableCreationParameters: \").append(getTableCreationParameters()).append(\",\");\n if (getStartTime() != null)\n sb.append(\"StartTime: \").append(getStartTime()).append(\",\");\n if (getEndTime() != null)\n sb.append(\"EndTime: \").append(getEndTime()).append(\",\");\n if (getProcessedSizeBytes() != null)\n sb.append(\"ProcessedSizeBytes: \").append(getProcessedSizeBytes()).append(\",\");\n if (getProcessedItemCount() != null)\n sb.append(\"ProcessedItemCount: \").append(getProcessedItemCount()).append(\",\");\n if (getImportedItemCount() != null)\n sb.append(\"ImportedItemCount: \").append(getImportedItemCount()).append(\",\");\n if (getFailureCode() != null)\n sb.append(\"FailureCode: \").append(getFailureCode()).append(\",\");\n if (getFailureMessage() != null)\n sb.append(\"FailureMessage: \").append(getFailureMessage());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getImportArn() {\n return this.importArn;\n }", "private Step importResults() {\n return stepBuilderFactory.get(STEP_IMPORT_RESULT)\n .tasklet(savingsPotentialImportDataTask)\n .listener(new ExecutionContextPromotionListener() {\n\n @Override\n public void beforeStep(StepExecution stepExecution) {\n ExecutionContext jobContext = stepExecution.getJobExecution().getExecutionContext();\n\n String jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.EXECUTION_MODE.getValue();\n jobContext.put(jobContextKey, getExecutionMode(stepExecution.getJobParameters()));\n\n jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.SCENARIO_KEY.getValue();\n jobContext.put(jobContextKey, getScenarioKey(stepExecution.getJobParameters()));\n }\n\n @Override\n public ExitStatus afterStep(StepExecution stepExecution) {\n // If execution mode is equal to WATER_IQ, compute consumption clusters\n String mode = getExecutionMode(stepExecution.getJobParameters());\n\n if(mode.equals(MODE_WATER_IQ)) {\n // If data import is successful, compute consumption clusters\n if(stepExecution.getExitStatus().getExitCode().equals(ExitStatus.COMPLETED.getExitCode())) {\n String key = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.COMPUTE_CONSUMPTION_CLUSTERS.getValue();\n if(stepExecution.getJobParameters().getString(key, \"true\").equals(\"true\")) {\n schedulerService.launch(\"CONSUMPTION-CLUSTERS\");\n }\n }\n }\n\n return null;\n }\n })\n .build();\n }", "@Override\n\t@Transactional\n\tpublic List<ImportDetail> getImportDetail(String impId) {\n\t\treturn importDao.getImportDetail(impId);\n\t}", "public int getImportCount() {\n\t\treturn this.Imports.length;\n\t}", "public String importData() {\n\t\t\treturn employeeDAO.importData();\n\t\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getSuppressionListImportAction() != null)\n sb.append(\"SuppressionListImportAction: \").append(getSuppressionListImportAction());\n sb.append(\"}\");\n return sb.toString();\n }", "public GetAPISourceByIdResponse getSourceById(GetAPISourceByIdRequest sourceByIdRequest) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(sourceByIdRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //GetAPISourceByIdResponse response = restTemplate.postForObject(\"http://Import-Service/Import/getSourceById\", request, GetAPISourceByIdResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/getSourceById\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n assert importResponse != null;\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/getSourceById\",HttpMethod.POST,request,new ParameterizedTypeReference<GetAPISourceByIdResponse>() {});\n return (GetAPISourceByIdResponse) importResponse.getBody();\n }", "ImportOption[] getImports();", "public com.google.common.util.concurrent.ListenableFuture<yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsResponse> listOperations(\n yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);\n }", "public String getImportTxt() {\n\t\treturn importTxt;\n\t}", "public String getSuppressionListImportAction() {\n return this.suppressionListImportAction;\n }", "@JsonProperty(\"resourceType\")\n public ImportResourceType getResourceType();", "public ImportDataResponse importDataFallback(ImportDataRequest importRequest){\n //return \"Import Service is not working...try again later\";\n ImportDataResponse importDataResponse = new ImportDataResponse(false, null, null);\n importDataResponse.setFallback(true);\n importDataResponse.setFallbackMessage(\"{Failed to get import data}\");\n return importDataResponse;\n }", "public boolean importable()\r\n\t{\r\n\t\treturn isImportable(getInputStream());\r\n\t}", "interface ExportConfigurationsService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations list\" })\n @GET(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\")\n Observable<Response<ResponseBody>> list(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations create\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\")\n Observable<Response<ResponseBody>> create(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Query(\"api-version\") String apiVersion, @Body ApplicationInsightsComponentExportRequest exportProperties, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations delete\" })\n @HTTP(path = \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\", method = \"DELETE\", hasBody = true)\n Observable<Response<ResponseBody>> delete(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations get\" })\n @GET(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\")\n Observable<Response<ResponseBody>> get(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations update\" })\n @PUT(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\")\n Observable<Response<ResponseBody>> update(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Body ApplicationInsightsComponentExportRequest exportProperties, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }", "RolloutOperationInfo operationInfo();", "public String[] getImports() {\n\t\treturn (this.Imports.length == 0)?this.Imports:this.Imports.clone();\n\t}", "public void handleImport(ActionEvent actionEvent) {\n\t}", "public ExportStatusCode getStatusCode()\n {\n return statusCode;\n }", "public void setImportStatus(String importStatus) {\n this.importStatus = importStatus;\n }", "public double getImportTotal() {\n return import_total;\n }", "public Import onResponse(TriConsumer<Message, ReactionMenu, User> action) {\n responseActions.add(action);\n return this;\n }", "public Long getImportedItemCount() {\n return this.importedItemCount;\n }", "public boolean getIsImport() {\n return getAsBoolean(\"isImport\");\n }", "public Collection<IDocumentImporter> getDocumentImporters();", "public TpImportBatch getTpImportBatch() {\r\n\t\treturn tpImportBatch;\r\n\t}", "SnIndexerBatchResponse getIndexerBatchResponse();", "public Vector<YANG_Import> getImports() {\n\t\tVector<YANG_Import> imports = new Vector<YANG_Import>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import)\n\t\t\t\timports.add((YANG_Import) linkage);\n\n\t\t}\n\t\treturn imports;\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 }", "protected String getImportStatement() {\n return \"\";\n }", "public java.lang.String[] getImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IMPORT$0, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }", "public String getImportTime() {\r\n return importTime;\r\n }", "public ModelMaker getImportModelMaker() {\n return m_importsMaker;\n }", "private List<ImportSession> unmarshall() {\n\n\t\ttry {\n\t\t\tFile file = new File(IKATS_IMPORT_SESSIONS_FILE);\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(IngestionModel.class);\n\n\t\t\tUnmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tmodel = (IngestionModel) jaxbUnmarshaller.unmarshal(file);\n\n\t\t\tlogger.info(\"Session loaded\");\n\t\t\t\n\t\t} catch (UnmarshalException ume) {\n\t\t\tlogger.error(\"Error reading session file: {}\", ume.toString());\n\t\t} catch (JAXBException je) {\n\t\t\tif (je instanceof UnmarshalException && je.getLinkedException() instanceof FileNotFoundException) {\n\t\t\t\tlogger.warn(\"Session file not found\");\n\t\t\t} else {\n\t\t\t\tlogger.error(\"Error reading session file: {}\", je.toString());\n\t\t\t}\n\t\t} \n\t\t\n\t\treturn model.sessions;\n\t}", "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}", "public String getImport () throws CGException {\n return ivImport;\n }", "ItemImportResult convert(ImportResult importRes);", "public io.dstore.values.BooleanValueOrBuilder getImportConfigurationOrBuilder() {\n return getImportConfiguration();\n }", "@PublicApi\npublic interface DataImportEvent\n{\n /**\n * @return time in milliseconds when the imported data was exported.\n */\n Option<Long> getXmlExportTime();\n}", "org.hyperledger.fabric.protos.token.Transaction.PlainImport getPlainImport();", "org.hyperledger.fabric.protos.token.Transaction.PlainImportOrBuilder getPlainImportOrBuilder();", "@JsonProperty(\"exports\")\n public List<ExportBase> getExports() {\n return exports;\n }", "@PostMapping(value = \"/importData\")\n public @ResponseBody ResponseEntity<?> importData(@RequestBody ImportDataRequest request) throws Exception{\n\n if(request == null) {\n throw new InvalidImporterRequestException(\"Request object is null.\");\n }\n\n ImportDataResponse importDataResponse = service.importData(request);\n return new ResponseEntity<>(importDataResponse, new HttpHeaders(), HttpStatus.OK);\n }", "public List<ExcelImportException> getExtractionErrors() {\n\t\treturn this.extractionErrors;\n\t}", "public boolean getImported();", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "Import getImport();", "@Transactional\n public StatusDTO finalizeImport(String session) {\n return null;\n }", "public final int getImportLevel() {\n/* 209 */ return this.m_template.getStylesheetComposed().getImportCountComposed();\n/* */ }", "@Pure\n\tprotected IImportsConfiguration getImportsConfiguration() {\n\t\treturn this.importsConfiguration;\n\t}", "public List<OperationStatusResultInner> operations() {\n return this.operations;\n }", "public void listOperations(yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsResponse> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);\n }", "public Integer getTpImportId() {\r\n\t\treturn tpImportId;\r\n\t}", "@Override\n public String getUploadStatus() {\n return uploadStatus;\n }", "public OperationResultInfoBase operation() {\n return this.operation;\n }", "public void listOperations(yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsResponse> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);\n }", "public org.apache.geronimo.deployment.xbeans.ImportType.Enum getImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IMPORT$0, 0);\n if (target == null)\n {\n return null;\n }\n return (org.apache.geronimo.deployment.xbeans.ImportType.Enum)target.getEnumValue();\n }\n }", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:298:28: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) )\n {\n otherlv_0=(Token)match(input,15,FOLLOW_15_in_ruleImport672); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:303:1: ( (lv_importURI_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:305:3: lv_importURI_1_0= RULE_STRING\n {\n lv_importURI_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleImport689); \n\n \t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getImportRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"importURI\",\n \t\tlv_importURI_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsResponse listOperations(yandex.cloud.api.logging.v1.SinkServiceOuterClass.ListSinkOperationsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListOperationsMethod(), getCallOptions(), request);\n }", "public org.apache.xmlbeans.XmlString[] xgetImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IMPORT$0, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Integer getImportQueueId() {\r\n return importQueueId;\r\n }", "IHttpRequestResponse[] getHttpMessages();", "@HystrixCommand(/*commandProperties = {\n @HystrixProperty(name = \"execution.isolation.strategy\", value = \"SEMAPHORE\"),\n @HystrixProperty(name = \"execution.isolation.thread.timeoutInMilliseconds\", value = \"90000\") },*/\n fallbackMethod = \"getTwitterDataJsonFallback\")\n public ImportTwitterResponse getTwitterDataJson(ImportTwitterRequest importRequest) throws ImporterException {\n\n /*HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n HttpEntity<ImportTwitterRequest> requestEntity =new HttpEntity<>(importRequest,requestHeaders);\n\n ResponseEntity<ImportTwitterResponse> responseEntity = restTemplate.exchange(\"http://Import-Service/Import/getTwitterDataJson\", HttpMethod.POST,null, ImportTwitterResponse.class);\n ImportTwitterResponse importResponse = new ImportTwitterResponse(\"hello world\"); // responseEntity.getBody();\n\n return importResponse;*/\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportTwitterResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/getTwitterDataJson\", request, ImportTwitterResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/getTwitterDataJson\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if (importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if (serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for (int i = 1; i < serviceErrorResponse.getErrors().size(); i++) {\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/getTwitterDataJson\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportTwitterResponse>() {});\n return (ImportTwitterResponse) importResponse.getBody();\n }", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token lv_importURI_3_0=null;\n Token otherlv_4=null;\n Token lv_name_5_0=null;\n Enumerator lv_importType_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMappingDsl.g:1810:2: ( (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) ) )\n // InternalMappingDsl.g:1811:2: (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n {\n // InternalMappingDsl.g:1811:2: (otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) ) )\n // InternalMappingDsl.g:1812:3: otherlv_0= 'import' ( (lv_importType_1_0= ruleImportType ) ) otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) otherlv_4= 'as' ( (lv_name_5_0= RULE_ID ) )\n {\n otherlv_0=(Token)match(input,35,FOLLOW_45); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \t\t\n // InternalMappingDsl.g:1816:3: ( (lv_importType_1_0= ruleImportType ) )\n // InternalMappingDsl.g:1817:4: (lv_importType_1_0= ruleImportType )\n {\n // InternalMappingDsl.g:1817:4: (lv_importType_1_0= ruleImportType )\n // InternalMappingDsl.g:1818:5: lv_importType_1_0= ruleImportType\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getImportAccess().getImportTypeImportTypeEnumRuleCall_1_0());\n \t\t\t\t\n pushFollow(FOLLOW_46);\n lv_importType_1_0=ruleImportType();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importType\",\n \t\t\t\t\t\tlv_importType_1_0,\n \t\t\t\t\t\t\"de.fhdo.ddmm.technology.mappingdsl.MappingDsl.ImportType\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,36,FOLLOW_41); \n\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_2());\n \t\t\n // InternalMappingDsl.g:1839:3: ( (lv_importURI_3_0= RULE_STRING ) )\n // InternalMappingDsl.g:1840:4: (lv_importURI_3_0= RULE_STRING )\n {\n // InternalMappingDsl.g:1840:4: (lv_importURI_3_0= RULE_STRING )\n // InternalMappingDsl.g:1841:5: lv_importURI_3_0= RULE_STRING\n {\n lv_importURI_3_0=(Token)match(input,RULE_STRING,FOLLOW_47); \n\n \t\t\t\t\tnewLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_3_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_3_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.STRING\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,37,FOLLOW_7); \n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getImportAccess().getAsKeyword_4());\n \t\t\n // InternalMappingDsl.g:1861:3: ( (lv_name_5_0= RULE_ID ) )\n // InternalMappingDsl.g:1862:4: (lv_name_5_0= RULE_ID )\n {\n // InternalMappingDsl.g:1862:4: (lv_name_5_0= RULE_ID )\n // InternalMappingDsl.g:1863:5: lv_name_5_0= RULE_ID\n {\n lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_name_5_0, grammarAccess.getImportAccess().getNameIDTerminalRuleCall_5_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_5_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "ResponseDTO performServerActions();", "public java.lang.String getImporte() {\n return importe;\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}", "public GetFieldsOutput() {\n\t\tsuper();\n\t\tthis.succeed = null;\n\t\tthis.failed = null;\n\t\tthis.invalid = null;\n\t}", "public ImportFromURLAction(){\n\t\tsuper();\n\t\tsetText(\"Import from remote OMPL document\");\n\t\tsetImageDescriptor(ImageDescriptor.createFromFile(ImportFromURLAction.class,\"/images/importfromurl.png\"));\n\t\tsetToolTipText(\"Import a group of feeds from a remote OPML file\");\n\t}", "@Override\n public EndPointResponseDTO getEndPointLog() {\n\n //getting all called apis\n List<Logger> loggers = loggerRepository.findAll();\n List<EndPointLoggerDTO> endPointLoggerDTOs;\n ModelMapper modelMapper = new ModelMapper();\n\n //decoding header and bodies, mapping o dto class\n endPointLoggerDTOs = loggers.stream().map(n -> {\n n.setHeader(getDecod(n.getHeader()));\n n.setBody(getDecod(n.getBody()));\n return modelMapper.map(n, EndPointLoggerDTO.class);\n }).collect(Collectors.toList());\n\n //wrapping dto to response object\n EndPointResponseDTO endPointResponseDTO = new EndPointResponseDTO();\n endPointResponseDTO.setCount(endPointLoggerDTOs.size()/2);\n endPointResponseDTO.setEndPointLoggerDTOList(endPointLoggerDTOs);\n\n return endPointResponseDTO;\n }", "public TransferAllDetails include() {\n return this.include;\n }", "boolean getImported();", "public void doImportFromJSON(ActionEvent actionEvent) {\n // call importer.importFromJSON()\n }", "public boolean hasImportConfiguration() {\n return importConfiguration_ != null;\n }", "public boolean isImported();", "ActionImport()\n {\n super(\"Import\");\n this.setShortcut(UtilGUI.createKeyStroke('I', true));\n }", "java.util.concurrent.Future<DescribeImportTasksResult> describeImportTasksAsync(DescribeImportTasksRequest describeImportTasksRequest);", "@GET(\"/imports/list.json\")\n Response<List<Import>> list(@Query(\"forum\") String forum) throws ApiException;", "public AddAPISourceResponse addApiSource(String jsonString) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/addApiSource\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<AddAPISourceResponse>() {});\n return (AddAPISourceResponse) importResponse.getBody();\n }", "public String getEXPORT_IND() {\r\n return EXPORT_IND;\r\n }", "public interface JobResponse {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the systemData property: SystemData of ImportExport Jobs.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the properties property: Specifies the job properties.\n *\n * @return the properties value.\n */\n JobDetails properties();\n\n /**\n * Gets the identity property: Specifies the job identity details.\n *\n * @return the identity value.\n */\n IdentityDetails identity();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the name of the resource group.\n *\n * @return the name of the resource group.\n */\n String resourceGroupName();\n\n /**\n * Gets the inner com.azure.resourcemanager.storageimportexport.fluent.models.JobResponseInner object.\n *\n * @return the inner object.\n */\n JobResponseInner innerModel();\n\n /** The entirety of the JobResponse definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {\n }\n /** The JobResponse definition stages. */\n interface DefinitionStages {\n /** The first stage of the JobResponse definition. */\n interface Blank extends WithResourceGroup {\n }\n /** The stage of the JobResponse definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the user\n * subscription.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the JobResponse definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }\n /** The stage of the JobResponse definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n /** The stage of the JobResponse definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }\n /** The stage of the JobResponse definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }\n /** The stage of the JobResponse definition allowing to specify clientTenantId. */\n interface WithClientTenantId {\n /**\n * Specifies the clientTenantId property: The tenant ID of the client making the request..\n *\n * @param clientTenantId The tenant ID of the client making the request.\n * @return the next definition stage.\n */\n WithCreate withClientTenantId(String clientTenantId);\n }\n }\n /**\n * Begins update for the JobResponse resource.\n *\n * @return the stage of resource update.\n */\n JobResponse.Update update();\n\n /** The template for JobResponse update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }\n /** The JobResponse update stages. */\n interface UpdateStages {\n /** The stage of the JobResponse update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job.\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n Update withTags(Object tags);\n }\n /** The stage of the JobResponse update allowing to specify cancelRequested. */\n interface WithCancelRequested {\n /**\n * Specifies the cancelRequested property: If specified, the value must be true. The service will attempt to\n * cancel the job. .\n *\n * @param cancelRequested If specified, the value must be true. The service will attempt to cancel the job.\n * @return the next definition stage.\n */\n Update withCancelRequested(Boolean cancelRequested);\n }\n /** The stage of the JobResponse update allowing to specify state. */\n interface WithState {\n /**\n * Specifies the state property: If specified, the value must be Shipping, which tells the Import/Export\n * service that the package for the job has been shipped. The ReturnAddress and DeliveryPackage properties\n * must have been set either in this request or in a previous request, otherwise the request will fail. .\n *\n * @param state If specified, the value must be Shipping, which tells the Import/Export service that the\n * package for the job has been shipped. The ReturnAddress and DeliveryPackage properties must have been\n * set either in this request or in a previous request, otherwise the request will fail.\n * @return the next definition stage.\n */\n Update withState(String state);\n }\n /** The stage of the JobResponse update allowing to specify returnAddress. */\n interface WithReturnAddress {\n /**\n * Specifies the returnAddress property: Specifies the return address information for the job..\n *\n * @param returnAddress Specifies the return address information for the job.\n * @return the next definition stage.\n */\n Update withReturnAddress(ReturnAddress returnAddress);\n }\n /** The stage of the JobResponse update allowing to specify returnShipping. */\n interface WithReturnShipping {\n /**\n * Specifies the returnShipping property: Specifies the return carrier and customer's account with the\n * carrier..\n *\n * @param returnShipping Specifies the return carrier and customer's account with the carrier.\n * @return the next definition stage.\n */\n Update withReturnShipping(ReturnShipping returnShipping);\n }\n /** The stage of the JobResponse update allowing to specify deliveryPackage. */\n interface WithDeliveryPackage {\n /**\n * Specifies the deliveryPackage property: Contains information about the package being shipped by the\n * customer to the Microsoft data center..\n *\n * @param deliveryPackage Contains information about the package being shipped by the customer to the\n * Microsoft data center.\n * @return the next definition stage.\n */\n Update withDeliveryPackage(DeliveryPackageInformation deliveryPackage);\n }\n /** The stage of the JobResponse update allowing to specify logLevel. */\n interface WithLogLevel {\n /**\n * Specifies the logLevel property: Indicates whether error logging or verbose logging is enabled..\n *\n * @param logLevel Indicates whether error logging or verbose logging is enabled.\n * @return the next definition stage.\n */\n Update withLogLevel(String logLevel);\n }\n /** The stage of the JobResponse update allowing to specify backupDriveManifest. */\n interface WithBackupDriveManifest {\n /**\n * Specifies the backupDriveManifest property: Indicates whether the manifest files on the drives should be\n * copied to block blobs..\n *\n * @param backupDriveManifest Indicates whether the manifest files on the drives should be copied to block\n * blobs.\n * @return the next definition stage.\n */\n Update withBackupDriveManifest(Boolean backupDriveManifest);\n }\n /** The stage of the JobResponse update allowing to specify driveList. */\n interface WithDriveList {\n /**\n * Specifies the driveList property: List of drives that comprise the job..\n *\n * @param driveList List of drives that comprise the job.\n * @return the next definition stage.\n */\n Update withDriveList(List<DriveStatus> driveList);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n JobResponse refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n JobResponse refresh(Context context);\n}", "public String getImportBatchno() {\r\n return importBatchno;\r\n }", "public List<IncomingReport> list() throws DAOException;", "public boolean hasImportConfiguration() {\n return importConfigurationBuilder_ != null || importConfiguration_ != null;\n }", "@Override\n public void importTable(ImportJobContext context)\n throws IOException, ImportException {\n if (!PostgresqlManager.warningPrinted) {\n LOG.warn(\"It looks like you are importing from postgresql.\");\n LOG.warn(\"This transfer can be faster! Use the --direct\");\n LOG.warn(\"option to exercise a postgresql-specific fast path.\");\n\n PostgresqlManager.warningPrinted = true; // don't display this twice.\n }\n\n // Then run the normal importTable() method.\n super.importTable(context);\n }", "public interface DataImporter {\t\n\t\n\t/**\n\t * Abstract method used by plugins system.\n\t * This method is called when \"load XXXX using PLUGIN_NAME(PARAMS)\"\n\t * is executed in Cli.\n\t * \n\t * @param modname destination of import\n\t * @param data must contain data to be interpreted\n\t * @param params params to be parsed by importer\n\t * @throws FilterException\n\t */\n\tpublic void importData(String modname, String data, String params) throws FilterException;\n\n\t/**\n\t * Imports into a given object. Source of import is given in specific ImportFilter constructor, which is depending\n\t * on concrete implementation. This method may be called only once after filter creation. \n\t * \n\t * @param parent object inside which objects will be imported\n\t * @return returns OID of a newly created object \n\t * @throws DatabaseException\n\t * @throws FilterException\n\t * @throws ShadowObjectException \n\t */\n\tOID [] importInto(OID parent) throws DatabaseException, FilterException, ShadowObjectException;\n}", "public List<Antfile> getImports()\n {\n return imports;\n }", "public org.hyperledger.fabric.protos.token.Transaction.PlainImportOrBuilder getPlainImportOrBuilder() {\n if ((dataCase_ == 1) && (plainImportBuilder_ != null)) {\n return plainImportBuilder_.getMessageOrBuilder();\n } else {\n if (dataCase_ == 1) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainImport) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainImport.getDefaultInstance();\n }\n }", "public ImportSectionElements getImportSectionAccess() {\r\n\t\treturn pImportSection;\r\n\t}", "OperationsClient getOperations();", "public CashFlowImportStatus() {\n\t\t// empty constructor\n\t}", "public boolean isImported()\n\t{\n\t\treturn imported;\n\t}", "public String getPerformanceAnalysisRetrieveActionResponse() {\n return performanceAnalysisRetrieveActionResponse;\n }" ]
[ "0.58819056", "0.5707575", "0.52002037", "0.5107812", "0.5055166", "0.5024373", "0.499922", "0.49711156", "0.4968984", "0.4961321", "0.49288908", "0.49238423", "0.49163222", "0.48611", "0.48353186", "0.4796557", "0.4779332", "0.47706175", "0.4763573", "0.4752079", "0.47450644", "0.47423837", "0.4740402", "0.47119892", "0.47113955", "0.47100386", "0.46898073", "0.46884674", "0.46768215", "0.46715754", "0.46712342", "0.46617568", "0.4659241", "0.46387395", "0.4638107", "0.46186554", "0.46128717", "0.46100858", "0.4598736", "0.4592872", "0.45789212", "0.4576522", "0.457607", "0.45749903", "0.45676273", "0.4538388", "0.451373", "0.45132083", "0.4510601", "0.4509899", "0.45062336", "0.44906157", "0.4487467", "0.4485961", "0.44857943", "0.44712156", "0.44677874", "0.44662687", "0.44480714", "0.44191504", "0.44113097", "0.44091958", "0.440913", "0.44033402", "0.44022492", "0.44008097", "0.44006082", "0.43993115", "0.4386338", "0.43796453", "0.4373454", "0.43645737", "0.43614316", "0.43566978", "0.43524623", "0.4344417", "0.43359652", "0.43313068", "0.43183786", "0.43137798", "0.4300225", "0.42759427", "0.4275079", "0.4269247", "0.42687485", "0.4265839", "0.42630628", "0.4261908", "0.42615598", "0.42594233", "0.42533457", "0.42533016", "0.42452317", "0.42435816", "0.4241445", "0.42396766", "0.42217392", "0.4219335", "0.4212005", "0.42080986" ]
0.53613865
2
Construct this sketch with the given memory.
DirectCompactSketch(final Memory mem) { mem_ = mem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public MyMemory(int size){\n super(size);\n printSize();\n loadMemory(); //loads memory with instructions to be executed during the instruction cycle\n }", "Memory() {}", "public Memory() {\n this(false);\n }", "public MemoryGame() {\n infoCard = new Dialogue(\"Memory! As a cashier, you must be able to remember customers' orders. Click cards to flip over and match pairs. Good luck!\", \"Coworker\");\n drawing = new MemoryGameDrawing();\n Utility.changeDrawing(drawing);\n bgm = new BGM(\"memory\");\n bgm.play();\n }", "public CPU (String name, AbstractMainMemory memory) {\n super (name, memory);\n }", "MemoryPartition createMemoryPartition();", "private MainMemory() {\n\t\tPropertiesParser prop = PropertiesLoader.getPropertyInstance();\n\t\tnumOfbank = prop.getIntProperty(\"sim.mem.numberofbank\", 8);\n\t\tlogger.debug(\"numOfBank in main memory :\"+ numOfbank);\n\t\t\n\t\tinit();\n\t}", "public Memory() {\r\n init();\n ruletables = new RuleTables(this);\n budgetfunctions = new BudgetFunctions(this);\r\n }", "public VirtualMachine(int memorySize, DebuggingPanel dp) {\n memory = new int[memorySize];\n this.dp = dp;\n dp.setComponents(this, register, pc, stackRegister, compareRegister);\n }", "public static void initializeMemory(){\n\t\tif(memory == null){\n\t\t\tmemory = new TreeMap<String,String>();\n\t\t\tfor(int i=0;i<2048;i++){\n\t\t\t\tmemory.put(Utility.decimalToHex(i, 3), null);\n\t\t\t}\n\t\t\tmemory_fmbv = new int[256];\n\t\t\tfor(int i:memory_fmbv){\n\t\t\t\tmemory_fmbv[i] = 0;\n\t\t\t}\n\t\t}\n\t\tif(diskJobStorage == null){\n\t\t\tdiskJobStorage = new TreeMap<String,DiskSMT>();\n\t\t}\n\t}", "public MyMemory(){\n super();\n this.instruction = new Instruction(); //Only the IR register will use this attribute\n }", "public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }", "public MemoryImpl(int size) {\n\t\tif (size < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The size of the memory should be greater than 0!\");\n\t\t}\n\t\tmemory = new Object[size];\n\t}", "@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}", "public PhysicalMemory()\n {\n frames = new TreeMap<Long, MemoryFrame>();\n for (int i = 0; i < Const.MEM_FRAMES; i++) {\n MemoryFrame frame = new MemoryFrame(i);\n Long zero = new Long(i);\n frames.put(zero, frame);\n }\n }", "public MemoryImpl(int size) {\n\t\tif(size < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Memory size can not be lower than 1!\");\n\t\t}\n\t\tthis.memory = new Object[size];\n\t}", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "public PlainMemory(String name)\n\t{\n\t\tsuper(name);\n\t\t\t\n\t}", "public MarkusMachine ()\n {\n fMemory = new Hashtable <String, Object> ();\n }", "public MemoryTest()\n {\n }", "public RamController(Ram ram, int startAddress) {\r\n this(ram,startAddress,startAddress + ram.size());\r\n }", "public Memory(Integer tSize, Integer aTime){\r\n\t\tif(DEBUG_LEVEL >= 1)System.out.println(\"Memory(\" + tSize +\", \" + aTime + \")\");\r\n\t\t\r\n\t\t// Validity Checking\r\n\t\tif(tSize == null)throw new NullPointerException(\"tSize Can Not Be Null\");\r\n\t\tif(tSize < 0)throw new IllegalArgumentException(\"tSize Must Be Greater Than Zero\");\r\n\t\t\r\n\t\tif(aTime == null)throw new NullPointerException(\"aTime Can Not Be Null\");\r\n\t\tif(aTime < 0)throw new IllegalArgumentException(\"aTime Must Be Greater Than Zero\");\r\n\t\t\r\n\t\ttotalSize = tSize;\r\n\t\taccessTime = aTime;\r\n\t\t\r\n\t\tmemory = new MemoryElement[totalSize];\r\n\t\t\r\n\t\tchildCaches = new ArrayList<CacheController>();\r\n\t\t\r\n\t\tcacheStats = new CacheStatistics();\r\n\t\t\r\n\t\tif(DEBUG_LEVEL >= 2)System.out.println(\"Memory()...Finished\");\r\n\t}", "public PlainMemory(String name,int size)\n\t{\n\t\tsuper(name);\n\t\tsetSize(size);\n\t}", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "private void setMemorySize() { }", "public DISPPARAMS(Pointer memory) {\n\t\t\tsuper(memory);\n\t\t\tthis.read();\n\t\t}", "public static Memory getInstance(){\n if (mem == null) mem = new Memory(4000);\n return mem;\n }", "private MemoryTest() {\r\n }", "public Memory(String file) {\n\t\tfor(int i=0; i < Constants.MEM_SIZE; ++i){\n\t\t\tmemory[i] = 0;\n\t\t}\n\t\tinstructions = new FileProcessor(file).fetchInstructions();\n\t}", "public Instructions() {\n\n\t\t// String code = codeIn.trim();\n\t\t// code = code.replaceAll(\"\\\\s+\", \"\");\n\t\t// System.out.println(\"Code In:\\n\" + code);\n\t\t//\n\t\t// int len = code.length();\n\t\t// int chunkLength = 2; // the length of each chunk of code\n\t\t// int i = 0;\n\n\t\t// Create new Memory Array\n\t\tMA = new MemoryArray();\n\n\t\t// traverse entered code and split into 2 digit chunks\n\t\t// for (i = 0; i < len; i += chunkLength) {\n\t\t//\n\t\t// String chunk = code.substring(i, Math.min(len, i + chunkLength));\n\t\t// System.out.println(\"code chunk no. \" + (i / 2) + \" \" + chunk);\n\t\t//\n\t\t// opCode(chunk); // TODO - need to call this from the memory class I\n\t\t// think\n\n\t\tmem = new Memory();\n\n\t\tmemDispalyString();\n\n\t\tproc = new ProcessorLoop();\n\n\t\t// set the memory address and OpCode\n\t\t// mem.setAddress(addr);\n\t\t// // convert to decimal\n\t\t// mem.setOpCode(Integer.parseInt(chunk, 16));\n\t\t// System.out.println(\"oc = \" + (Integer.parseInt(chunk, 16)));\n\t\t//\n\t\t// // add the memory object to the memory array\n\t\t// MA.addMemoryObjects(addr, mem);\n\t\t// System.out.println(\"New memory = \" + mem.getAddress() + \" \"\n\t\t// + mem.getOpCode());\n\t\t// addr++;\n\t\t// }\n\n\t}", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "private void setMemory() {\n\t\tlong allMemory = MemoryManager.getPhoneTotalRamMemory();\n\t\tlong freeMemory = MemoryManager.getPhoneFreeRamMemory(this);\n\t\tlong usedMemory = allMemory - freeMemory;\n\t\tint angle = (int) (usedMemory*360/allMemory);\n\t\tclearView.setAngleWithAnim(angle);\n\t}", "public static void init_memory_rp(Memory[] memory_rp, int[] ncm_per_cycle_rp){\n\t\tfor(int i=0;i<48;i++){\n\t\t\tmemory_rp[i].address=i;\n\t\t\tmemory_rp[i].content=\"S\";\n\t\t\tmemory_rp[i].ncm=0;\n\t\t\tmemory_rp[i].priority=0;\n\t\t}\n\t\tfor(int i=0;i<100;i++){\n\t\t\tncm_per_cycle_rp[i]=0;\n\t\t}\n\t}", "public CPU6502(final EmulatedDevice device, final int memSize) {\r\n this.device = device;\r\n this.memory = new byte[memSize];\r\n this.ramSize = memSize;\r\n initializeInstructions();\r\n }", "public DrawHouse(){\r\n\t\tcanvas = new SketchPad(1000, 1000);\r\n\t\tpen = new DrawingTool(canvas);\r\n\t}", "public CPU(RAM ram, InterruptController ic, MMU mmu) {\r\n\t\tm_registers = new int[NUMREG];\r\n\t\tfor (int i = 0; i < NUMREG; i++) {\r\n\t\t\tm_registers[i] = 0;\r\n\t\t}\r\n\t\tm_RAM = ram;\r\n\t\t//Initiate memory management unit\r\n\t\tm_MMU = mmu;\r\n\t\t//Initiate Interrupt Control\r\n\t\tm_IC = ic;\r\n\t\t\r\n\t}", "public void memroyBoard() {\n\t\tif( funcBoard != null ){\n\t\t\tfuncBoard.close();\n\t\t\tfuncBoard= null;\n\t\t}\n\t\tFile mem= new File( _SysConfig.getESMBoardFile().toString() +\n\t\t\t\tFile.separatorChar + \"_MemoryBoard.xml\" );\n\t\t//\n\t\tfuncBoard= new DeskTopNoteAr( mem, this, PinArrFactory.types[0] );\n\t\tScene ret= funcBoard.refreshRoot();\n\t\tpstage.setTitle( \"Memory Board\" );\n\t\tif( ret != null )\n\t\t\tpstage.setScene( ret );\n\t\telse p.p( this.getClass().toString(), \"Error initing Memory Board.\" );\n\t}", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public SimpleRuntimeMachine(String fileName) {\n\t\tram = new int[RAM_CAPACITY];\n\t\tprogramStack = new Stack<String>();\n\t\tprocessCommands(fileName);\n\t}", "public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().heap_allocate(size, targetReg);\n }", "Sketch createSketch();", "public MemoryInfo(com.google.appinventor.components.runtime.ComponentContainer r7) {\n /*\n r6 = this;\n r1 = r6\n r2 = r7\n r3 = r1\n r4 = r2\n com.google.appinventor.components.runtime.Form r4 = r4.$form()\n r3.<init>(r4)\n r3 = r1\n r4 = 1048576(0x100000, double:5.180654E-318)\n r3.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME = r4\n r3 = r1\n r4 = r2\n android.app.Activity r4 = r4.$context()\n r3.context = r4\n r3 = r1\n r4 = r2\n r3.container = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.MemoryInfo.<init>(com.google.appinventor.components.runtime.ComponentContainer):void\");\n }", "public Memoria() {\n for (int i=0; i<320; i++)\n slots[i]=\"\";\n }", "public OperatingSystem(Machine machine) throws MemoryFault, Exception {\n //List<Program> program = new LinkedList<>();\n this.machine = machine;\n\n for (int i = 0; i < waitQ.length; i++) {\n waitQ[i] = new LinkedList<>();\n }\n\n //Process_Table = new PCB[10]; \n ProgramBuilder wait = new ProgramBuilder();\n wait.size(2);\n wait.jmp(0);\n Program waiter = wait.build();\n program.add(waiter);\n\n freespace.add(new freeSpace(0, this.machine.MEMORY_SIZE));\n System.out.println(\"[Debug] Initial freeSpace size: \" + freespace.get(0).size);\n schedule(program);\n }", "public static DBMaker openMemory(){\n return new DBMaker();\n }", "public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public static MainMemory getInstance(){ \n\t\treturn memory;\n\t}", "void fillMem (){\n for (int i = memoria.minTextSection; i < memoria.maxStack; i++) {\n memoria.memory[i]= 0;\n }\n }", "Parallelogram(){\n length = width = height = 0;\n }", "public CacheMemory(MainMemory m, int size, int lineSize, int linesPerSet) {\n\n if (lineSize % WORD_SIZE != 0) {\n throw new IllegalArgumentException(\"lineSize is not a multiple of \" + WORD_SIZE);\n }\n\n if (size % lineSize != 0) {\n throw new IllegalArgumentException(\"size is not a multiple of lineSize.\");\n }\n\n // number of lines in the cache\n int numLines = size / lineSize;\n\n if (numLines % linesPerSet != 0) {\n throw new IllegalArgumentException(\"number of lines is not a multiple of linesPerSet.\");\n }\n\n // number of sets in the cache\n int numSets = numLines / linesPerSet;\n\n // Set the main memory\n mainMemory = m;\n\n // Initialize the counters to zero\n requestCount = 0;\n warmUpRequests = 0;\n hitCount = 0;\n hitCost = 0;\n\n // Determine the number of bits required for the byte within a line,\n // for the set, and for the tag.\n int value;\n numByteBits = 0; // initialize to zero\n value = 1; // initialize to 2^0\n while (value < lineSize) {\n numByteBits++;\n value *= 2; // increase value by a power of 2\n }\n\n numSetBits = 0;\n value = 1;\n while (value < numSets) {\n numSetBits++;\n value *= 2;\n }\n\n // numTagBits is the remaining memory address bits\n numTagBits = 32 - numSetBits - numByteBits;\n\n System.out.println(\"CacheMemory constructor:\");\n System.out.println(\" numLines = \" + numLines);\n System.out.println(\" numSets = \" + numSets);\n System.out.println(\" numByteBits = \" + numByteBits);\n System.out.println(\" numSetBits = \" + numSetBits);\n System.out.println(\" numTagBits = \" + numTagBits);\n System.out.println();\n\n // Create the array of CacheSet objects and initialize each CacheSet object\n cache = new CacheSet[numSets];\n for (int i = 0; i < cache.length; i++) {\n cache[i] = new CacheSet(lineSize, linesPerSet, numTagBits);\n }\n }", "public Memory(int access_time) {\n\t\tthis.mem_array = new String[65536];\n\t\tthis.access_time = access_time;\n\t\tthis.fetch_cycles_left = access_time;\n\t\tthis.load_cycles_left = access_time;\n\t}", "public Board() {\n initialize(3, null);\n }", "private Memory memory(Expression expression, cat.footoredo.mx.type.Type type) {\n return new Memory(asmType(type), expression);\n }", "private void initDevice() {\n device = new Device();\n device.setManufacture(new Manufacture());\n device.setInput(new Input());\n device.setPrice(new Price());\n device.getPrice().setCurrency(\"usd\");\n device.setCritical(DeviceCritical.FALSE);\n }", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "public BasicComputer(double clockRate, double memory, int storage, int power) {\r\n this.make = \"N/A\";\r\n this.model = \"N/A\";\r\n this.setClockRate(clockRate);\r\n this.setMemory(memory);\r\n this.setMemory(storage);\r\n this.setPower(power);\r\n }", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "@Override\n public void initMatMemory(boolean[][] mat, int[] memory) {\n\n initMemory(memory);\n }", "public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }", "public Memory(boolean useGUI) {\n m_UseGUI = useGUI;\n m_Runtime = Runtime.getRuntime();\n m_Max = m_Runtime.maxMemory();\n m_Total = m_Runtime.totalMemory();\n }", "public Sketch(Mouse m) {\r\n\t\tfor (int i = 0; i < 11; i++) {\r\n\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\tthis.s[i][j] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.s[10][10] = 1;\r\n\t\t\r\n\t\t//mousetraps\r\n\t\tthis.s[0][1] = 2;\r\n\t\tthis.s[0][9] = 2;\r\n\t\tthis.s[2][2] = 2;\r\n\t\tthis.s[2][8] = 2;\r\n\t\tthis.s[3][5] = 2;\r\n\t\tthis.s[3][9] = 2;\r\n\t\tthis.s[4][6] = 2;\r\n\t\tthis.s[5][3] = 2;\r\n\t\tthis.s[5][6] = 2;\r\n\t\tthis.s[5][7] = 2;\r\n\t\tthis.s[6][1] = 2;\r\n\t\tthis.s[7][4] = 2;\r\n\t\tthis.s[7][10] = 2;\r\n\t\tthis.s[8][0] = 2;\r\n\t\tthis.s[9][4] = 2;\r\n\t\tthis.s[9][9] = 2;\r\n\t\tthis.s[10][9] = 2;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tVector v = m.getPos();\r\n\t\t\t//System.out.println(v.toString());\r\n\t\t\tthis.s[v.getX()][v.getY()] = 1;\r\n\t\t\tm.update();\r\n\t\t\t\r\n\t\t} while (!m.atTarget() && m.isAlive());\r\n\t\r\n\t}", "protected abstract void construct();", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "@Provides @Singleton\n MotherBoard provideMB(Processor cpu, Memory ram){\n return new ATX(cpu, ram);\n }", "public void createPointers() {\n int matrixByteSize = rows * cols * Sizeof.DOUBLE;\n\n deviceMPtr = new CUdeviceptr();\n cuMemAlloc(deviceMPtr, matrixByteSize);\n cuMemcpyHtoD(deviceMPtr, Pointer.to(matrix), matrixByteSize);\n\n matrixPointer = Pointer.to(deviceMPtr);\n rowPointer = Pointer.to(new int[]{rows});\n columnPointer = Pointer.to(new int[]{cols});\n sizePointer = Pointer.to(new int[]{rows * cols});\n }", "public void processMemory()\n {\n try{\n String memory = oReader.readLine();\n int index = 0;\n //adding mememory to and array\n for(int i = 0; i<memory.length()-2; i+=2)\n {\n String hexbyte = memory.substring(i, i+2); //get the byt ein hex\n mem.addEntry(\"0x\"+hexbyte, index, 1);\n index++;\n }\n } catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public Memory(int cache_size, int associativity, int block_size, boolean protocolIsMSI, int hitPenalty, int missPenalty, int numberOfBanks)\n\t{\n\t\tsuper(cache_size, associativity, block_size, protocolIsMSI);\n\t\tthis.hitPenalty = hitPenalty;\n\t\tthis.missPenalty = missPenalty;\n\t\tthis.numberOfBanks = numberOfBanks;\n\t\tthis.bankFreeAtCycle = new int[this.numberOfBanks];\n\t\tthis.addressesBeingRetrieved = new ArrayList<List<Message>>();\n\t\tfor(int i = 0; i < this.numberOfBanks; i++)\n\t\t{\n\t\t\tthis.addressesBeingRetrieved.add(new LinkedList<Message>());\n\t\t}\n//\t\tthis.bankQueues = new ArrayList<Queue<Message>>();\n//\t\tfor(int i = 0; i < this.numberOfBanks; i++)\n//\t\t{\n//\t\t\tthis.bankQueues.add(new LinkedList<Message>());\n//\t\t}\n\t}", "public AsmMemoryMap(int numRegisters, int sizeOfMemory, int startPoint) {\r\n\t\tfinal int POINTERCOPY = 1; // 1 is added to the array of memory addresses to allocate a memory address for the pointer copy register\r\n\t\t\r\n\t\tthis.registers = new AsmMemoryAddress[numRegisters];\r\n\t\tthis.fullMemory = new AsmMemoryAddress[numRegisters+sizeOfMemory+POINTERCOPY+1/*memory pointer*/+3/*memory pointer arr*/];\r\n\t\tthis.programMemory = new AsmMemoryAddress[sizeOfMemory];\r\n\t\t\r\n\t\tinit(startPoint);\r\n\t}", "public void loadMemory() {\n Converter c = new Converter(); //object to help with binary to decimal conversions and vice-versa\n \n int midpoint = (int) Math.floor(size/2); //divide memory into two haves\n \n //variables that will be needed\n int opcode;\n int address = midpoint;\n int index=0;\n\n //Initial instructions\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index+1, instruction);\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index+2, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index+3, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address+1)); //store AC to memory\n Memory.memloc.set(index+4, instruction); //saving instruction to memory\n\n\n //The rest of the instructions\n for (int i = 5; i < midpoint; i = i + 6) {\n index = i;\n\n if ((index + 5) < midpoint-1) { //if index + 5 is not greater than the midpoint-1\n\n opcode = c.convertDecToBin(1); //0001\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from memory\n Memory.memloc.set(index, instruction); //saving instruction to memory\n \n opcode = c.convertDecToBin(5); //0101;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //add to AC from memory\n Memory.memloc.set(index + 1, instruction);\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index + 2, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 3, instruction);\n\n opcode = c.convertDecToBin(4); //0100;\n address--;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //subtract from AC from memory\n Memory.memloc.set(index + 4, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address = address + 2;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 5, instruction);\n\n address--;\n } \n }\n\n //Loading the final intsruction in memory\n opcode = c.convertDecToBin(15); //1111;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //halt\n Memory.memloc.set(index++, instruction);\n\n\n }", "public void create () \n\t{ \n\t\t// Set Libgdx log level to DEBUG\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t// Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\tpaused = false;\n\t\t// Load preferences for audio settings and start playing music\n\t\tGamePreferences.instance.load();\n\t\tAudioManager.instance.play(Assets.instance.music.song01);\n\t\t// Start game at menu screen\n\t\tsetScreen(new MenuScreen(this));\n\t\t\n\t}", "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", "Alloc(final Variant variant, final Obs obs, final long low, final int firstStep, final int lastStep, final SetupType setup, final String comment) {\n this(variant, obs, low, firstStep, lastStep, setup, comment, span(obs, firstStep, lastStep, setup));\n }", "public Paper(double _height, double _width)\n {\n // initialise instance variables\n height = _height;\n width = _width;\n }", "public Controller(final String[] args) {\r\n auto_run = false;\r\n mem_start = 0;\r\n mem_end = 0;\r\n if (args.length > 2) {\r\n auto_run = true;\r\n try {\r\n int m1 = Integer.decode(args[1]);\r\n int m2 = Integer.decode(args[2]);\r\n mem_start = Math.min(m1, m2);\r\n mem_end = Math.max(m1, m2);\r\n } catch (NumberFormatException exception) {\r\n System.err.printf(\"Cannot parse one of the addresses %s and %s as numbers%n\", args[1], args[2]);\r\n System.exit(1);\r\n }\r\n assert mem_start <= mem_end;\r\n if(args.length > 3) {\r\n if (args[3].equals(\"debug\")) {\r\n verbose = true;\r\n } else {\r\n System.err.println(\"Unknown argument '\" + args[3] + \"'. Ignoring it\");\r\n System.exit(1);\r\n }\r\n }\r\n }\r\n if (!auto_run) {\r\n ls = new LoadingScreen();\r\n ls.start();\r\n } else {\r\n ls = null;\r\n }\r\n\r\n // Ignore file ending since it should be the choice of the user\r\n // if ((args.length > 0)\r\n // && (args[0].endsWith(\".mima\") || args[0].endsWith(\".mem\"))) {\r\n if (args.length > 0) {\r\n final File input = new File(args[0]);\r\n if (input.exists()) {\r\n loadMem(input);\r\n } else {\r\n System.err.println(\"File doesn't exist!\");\r\n }\r\n }\r\n\r\n if (!auto_run) {\r\n gui = new GUI(this);\r\n } else {\r\n gui = null;\r\n }\r\n initMima();\r\n if (!auto_run) {\r\n ls.stop();\r\n gui.setVisible(true);\r\n clock = new Clock(500, sw);\r\n clock.pause(true);\r\n } else {\r\n clock = new Clock(0, sw);\r\n clock.pause(false);\r\n }\r\n\r\n Thread compute_thread = new Thread(clock);\r\n compute_thread.start();\r\n if (auto_run) {\r\n try {\r\n compute_thread.join();\r\n } catch (InterruptedException e) {\r\n throw new RuntimeException(e);\r\n }\r\n printMemory();\r\n }\r\n return;\r\n }", "private Heap() { }", "private Heap() { }", "public RamController(Ram ram, int startAddress, int endAddress) {\r\n Objects.requireNonNull(ram);\r\n Preconditions.checkBits16(startAddress);\r\n Preconditions.checkBits16(endAddress);\r\n Preconditions.checkArgument(((endAddress - startAddress) >= 0) && (endAddress - startAddress) <= ram.size());\r\n this.ram = ram;\r\n this.startAddress = startAddress;\r\n this.endAddress = endAddress;\r\n\r\n }", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "@Override\n\t\tpublic void create() {\n\t\t\tcannon = new CannonLogic();\n\t\t\tlines = new LineLogic();\n\t\t\tboxes = new BoxLogic();\n\t\t\tcontroller = new PlayerController();\n\t\t\tshapeList = new ArrayList<Shape>();\n\t\t\t\n\t\t\tGdx.gl11.glEnableClientState(GL11.GL_VERTEX_ARRAY);\n\t\t\tGdx.gl11.glClearColor(0.4f, 0.6f, 1.0f, 1.0f);\n\t\t\tvertexBuffer = BufferUtils.newFloatBuffer(8);\n\t\t\tvertexBuffer.put(new float[] {-50,-50, -50,50, 50,-50, 50,50});\n\t\t\tvertexBuffer.rewind();\n\t\t}", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "public MyPod()\n {\n color = \"black\";\n memory = 4;\n \n songLibrary[0] = new Song();\n songLibrary[1] = new Song();\n songLibrary[2] = new Song();\n \n \n \n }", "public DroneArena(int X, int Y) {\n //set size\n xSize = X;\n ySize = Y;\n randomGenerator = new Random();\t\t\t//create random\n\n }", "public void setMemorySize(Integer memorySize) {\n this.memorySize = memorySize;\n }", "public Demon (int height, int width, int state)\n\t{\n\t\t//storing the values from parameters into instance variables\n\t\tthis.width = width; \n\t\tthis.height = height;\n\t\tthis.state = state; \n\t\t//creating two byte array\n\t\tthis.currentVersion = new byte[this.height][this.width];\n\t\tthis.nextVersion = new byte[this.height][this.width];\n\t\t//calls populate to fill values within the array\n\t\tpopulate(); \n\t}", "public MyComputer(String gpu, int numberOfFans, int gbOfRam) {\n this.gpu = gpu;\n this.numberOfFans = numberOfFans;\n this.gbOfRam = gbOfRam;\n }", "Device createDevice();", "public BinaryHeap() {\n }", "public lv3()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //super(950, 600, 1); \n //prepare();\n prepare();\n stopped();\n started();\n }", "public Screen(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tpixels = new int[width * height];\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 VMProcess() {\n\t\tsuper();\n\t}", "public abstract Parts getRAM();" ]
[ "0.64334047", "0.61582744", "0.61100453", "0.60197675", "0.59290075", "0.59283984", "0.57709956", "0.5758578", "0.5741903", "0.57085884", "0.56874335", "0.5686294", "0.56579167", "0.5639698", "0.5602238", "0.5585184", "0.5563322", "0.55620617", "0.5556765", "0.55557454", "0.5544339", "0.5360742", "0.5318502", "0.5317188", "0.5303074", "0.5264012", "0.5260824", "0.5258696", "0.52501696", "0.52357846", "0.52283865", "0.51548725", "0.5148701", "0.51385117", "0.51368016", "0.51275665", "0.5121429", "0.51148635", "0.5091637", "0.5085922", "0.5045953", "0.5041964", "0.5034629", "0.5021818", "0.5018389", "0.5014682", "0.50111854", "0.50087124", "0.50087124", "0.49874154", "0.49566007", "0.49369642", "0.4919796", "0.49145457", "0.49100012", "0.48846215", "0.48829123", "0.48737004", "0.48736113", "0.4873209", "0.4857102", "0.48531926", "0.48486584", "0.4847027", "0.48375344", "0.48326725", "0.48309857", "0.4817894", "0.48077312", "0.47948393", "0.47929835", "0.47926572", "0.4774396", "0.47721604", "0.4771257", "0.47666022", "0.47559032", "0.47512478", "0.4740508", "0.47397676", "0.47374487", "0.47356388", "0.47356388", "0.47300938", "0.47278473", "0.4727623", "0.47240725", "0.4716662", "0.47143057", "0.47060302", "0.47026774", "0.46982262", "0.4697835", "0.46928963", "0.46919206", "0.46912825", "0.4679761", "0.4672856", "0.4667057", "0.46609178" ]
0.52557385
28
compact is always valid
@Override public int getRetainedEntries(final boolean valid) { if (otherCheckForSingleItem(mem_)) { return 1; } final int preLongs = extractPreLongs(mem_); final int curCount = (preLongs == 1) ? 0 : extractCurCount(mem_); return curCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void compact() {\n\t}", "@Override\n public void compact() {\n\n }", "default void compact() {\n\t\t/* no-op by default */\n\t}", "public void testCompact()\n {\n System.out.println(\"compact\");\n \n\n AbstractSparseMatrix m1 = (AbstractSparseMatrix) this.createRandom();\n m1.setElement(0,0, 0.0);\n Matrix m2 = m1.clone();\n assertEquals( m1, m2 );\n \n m1.compact();\n \n assertEquals( m1, m2 );\n \n }", "@Override\n\tpublic boolean canfitCompact() {\n\t\treturn false;\n\t}", "public void compact()\n {\n array = toArray();\n }", "public void compact() {\n Entry<K,V> e;\n Entry<K,V> possibleDup;\n for (final Iterator<Entry<K,V>> itr = entries.iterator(); itr.hasNext(); ) {\n e = itr.next();\n possibleDup = getEntry(e.getKey()); // Returns the newest entry\n if (possibleDup != null && e != possibleDup) {\n itr.remove();\n }\n }\n\n size = entries.size(); // We now know the size\n\n // Compact the underlying array\n entries.trimToSize();\n }", "public void compact()\n\t{\n\t\tif (addIndex == size())\n\t\t\treturn;\n\t\t\n\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), addIndex );\n\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\tarray = narray;\n\t}", "public void clean()\r\n {\r\n this.extension = null;\r\n this.extensionValueList = null;\r\n this.extensionLabelList = null;\r\n this.archivoVO = null;\r\n this.archivoVOValueList = null;\r\n this.archivoVOLabelList = null;\r\n this.nuevoNombre = null;\r\n this.nuevoNombreValueList = null;\r\n this.nuevoNombreLabelList = null;\r\n this.action = null;\r\n this.actionValueList = null;\r\n this.actionLabelList = null;\r\n }", "public void compact() {\n\t\tint n = vertices.size();\n\t\t// ids utilizados de 1 a n\n\t\tint[] small = new int[n + 1];\n\t\tVertice[] big = new Vertice[n];\n\n\t\tint qbig = 0;\n\t\tfor (Vertice v1 : vertices.values()) {\n\t\t\tif (v1.id <= n)\n\t\t\t\tsmall[v1.id] = 1;\n\t\t\telse\n\t\t\t\tbig[qbig++] = v1;\n\t\t}\n\n\t\tint i = 1;\n\t\tfor (int pairs = 0; pairs < qbig; i++) {\n\t\t\tif (small[i] == 0)\n\t\t\t\tsmall[pairs++] = i;\n\t\t}\n\n\t\tfor (i = 0; i < qbig; i++) {\n\t\t\tint old_id = big[i].id;\n\t\t\tbig[i].id = small[i];\n\n\t\t\tvertices.remove(old_id);\n\t\t\tvertices.put(big[i].id, big[i]);\n\n\t\t\tfor (Vertice v1 : vertices.values()) {\n\t\t\t\tif (v1.vizinhos.get(old_id) != null) {\n\t\t\t\t\tv1.vizinhos.remove(old_id);\n\t\t\t\t\tv1.vizinhos.put(big[i].id, big[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void clean()\r\n {\r\n this.mostrarVuelta = null;\r\n this.mostrarVueltaValueList = null;\r\n this.mostrarVueltaLabelList = null;\r\n this.titulo = null;\r\n this.tituloValueList = null;\r\n this.tituloLabelList = null;\r\n this.busquedaSimpleAvanzada = null;\r\n this.busquedaSimpleAvanzadaValueList = null;\r\n this.busquedaSimpleAvanzadaLabelList = null;\r\n this.identificadorODE = null;\r\n this.identificadorODEValueList = null;\r\n this.identificadorODELabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.tipoLayoutBuscador = null;\r\n this.tipoLayoutBuscadorValueList = null;\r\n this.tipoLayoutBuscadorLabelList = null;\r\n this.formato = null;\r\n this.formatoValueList = null;\r\n this.formatoLabelList = null;\r\n this.tipoBusqueda = null;\r\n this.tipoBusquedaValueList = null;\r\n this.tipoBusquedaLabelList = null;\r\n }", "@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }", "@Test\n // @Ignore\n public void testCompact_Last_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }", "@Test\n public void testCompactFast_Sgement_Not_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n\n // 2 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5, 6, 7);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(1);\n\n instance.compactFast();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }", "public void flattenValues() {\r\n \r\n if (!this.isAllowAddsWhileDeprovisioned()) {\r\n this.allowAddsWhileDeprovisionedString = null;\r\n }\r\n \r\n if (this.isAutoChangeLoader() == GrouperConfig.retrieveConfig().propertyValueBoolean(\"deprovisioning.autoChangeLoader\", true)) {\r\n this.autoChangeLoaderString = null;\r\n }\r\n \r\n if (this.isAutoselectForRemoval()) {\r\n this.autoselectForRemovalString = null;\r\n }\r\n \r\n this.deprovisionString = this.isDeprovision() ? \"true\" : \"false\";\r\n\r\n // true for direct, false for inherited, blank for not assigned\r\n this.directAssignmentString = this.isDirectAssignment() ? \"true\" : \"false\";\r\n\r\n if (!this.isSendEmail()) {\r\n this.sendEmailString = null;\r\n this.emailAddressesString = null;\r\n this.emailBodyString = null;\r\n this.emailGroupMembers = null;\r\n this.mailToGroupString = null;\r\n\r\n }\r\n if (this.isShowForRemoval()) {\r\n this.showForRemovalString = null;\r\n }\r\n \r\n }", "@Override\n public void compact() throws IOException{\n region.compactStores();\n }", "public void clean()\r\n {\r\n this.idiomaDestinatario = null;\r\n this.idiomaDestinatarioValueList = null;\r\n this.idiomaDestinatarioLabelList = null;\r\n this.tipoRecurso = null;\r\n this.tipoRecursoValueList = null;\r\n this.tipoRecursoLabelList = null;\r\n this.titulo = null;\r\n this.tituloValueList = null;\r\n this.tituloLabelList = null;\r\n this.usuario = null;\r\n this.usuarioValueList = null;\r\n this.usuarioLabelList = null;\r\n this.arboles = null;\r\n this.arbolesValueList = null;\r\n this.arbolesLabelList = null;\r\n this.identificador = null;\r\n this.identificadorValueList = null;\r\n this.identificadorLabelList = null;\r\n this.edad = null;\r\n this.edadValueList = null;\r\n this.edadLabelList = null;\r\n this.descripcion = null;\r\n this.descripcionValueList = null;\r\n this.descripcionLabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.contexto = null;\r\n this.contextoValueList = null;\r\n this.contextoLabelList = null;\r\n this.procesoCognitivo = null;\r\n this.procesoCognitivoValueList = null;\r\n this.procesoCognitivoLabelList = null;\r\n }", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "public CompactSerializable() {\n }", "@Test\n public void testCompactFast_Muliple_Sgements_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(0, instance.persistedSegmentCount());\n\n }", "@Override\n public Collection<SSTableReader> inSSTables()\n {\n return actuallyCompact;\n }", "@Test\n public void checkCompactFormat()\n {\n int height = 10;\n int width = 5;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n SimpleMatrix Q = new SimpleMatrix(height,width, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n\n // see if Q has the expected properties\n assertTrue(MatrixFeatures_DDRM.isOrthogonal((DMatrixRMaj)Q.getMatrix(),UtilEjml.TEST_F64_SQ));\n\n // try to extract it with the wrong dimensions\n Q = new SimpleMatrix(height,height, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n assertEquals(height,Q.numRows());\n assertEquals(width,Q.numCols());\n }", "public void clean()\r\n {\r\n this.usuariosAsociados = null;\r\n this.usuariosAsociadosValueList = null;\r\n this.usuariosAsociadosLabelList = null;\r\n this.listaId = null;\r\n this.listaIdValueList = null;\r\n this.listaIdLabelList = null;\r\n this.ids = null;\r\n this.idsValueList = null;\r\n this.idsLabelList = null;\r\n this.gruposTrabajoBorrados = null;\r\n this.gruposTrabajoBorradosValueList = null;\r\n this.gruposTrabajoBorradosLabelList = null;\r\n this.gruposTrabajo = null;\r\n this.gruposTrabajoValueList = null;\r\n this.gruposTrabajoLabelList = null;\r\n }", "@Test\n public void testCompactFast_One_Sgement_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n\n // 2 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5, 6, 7);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(1);\n instance.remove(1);\n\n instance.compactFast();\n\n assertEquals(1, instance.persistedSegmentCount());\n\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Test\n public void testCompactFast_Sgement_Removed_Item_Order() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n List c = Arrays.asList(1, 1, 2, 3, 4, 5);\n List expected = c.subList(2, c.size());\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(expected, instance.subList(0, instance.size()));\n\n }", "@Test\n public void testCompact_Overflow_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }", "public void ensureEmptied() {\n }", "private void compactIfNeeded() {\n\n // if the scan point is more than 25% into the buffer, compact...\n if( buffer.position() >= (buffer.capacity() >> 2 ) ) {\n int newLimit = buffer.limit() - buffer.position();\n buffer.compact();\n buffer.position( 0 );\n buffer.limit( newLimit );\n }\n }", "@Action(minimalArgumentCount=2, maximalArgumentCount=2)\n public void compact() {\n try {\n new EpsgDataPack().run(new File(arguments[0]), new File(arguments[1]));\n } catch (Exception exception) {\n printException(exception);\n }\n }", "public void clean()\r\n {\r\n this.esHoja = false;\r\n this.esHojaValueList = null;\r\n this.esHojaLabelList = null;\r\n this.rutaTesauro = null;\r\n this.rutaTesauroValueList = null;\r\n this.rutaTesauroLabelList = null;\r\n this.busquedaSimpleAvanzada = null;\r\n this.busquedaSimpleAvanzadaValueList = null;\r\n this.busquedaSimpleAvanzadaLabelList = null;\r\n this.pagina = null;\r\n this.paginaValueList = null;\r\n this.paginaLabelList = null;\r\n this.identificadorODE = null;\r\n this.identificadorODEValueList = null;\r\n this.identificadorODELabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.tipoBusquedaArbol = null;\r\n this.tipoBusquedaArbolValueList = null;\r\n this.tipoBusquedaArbolLabelList = null;\r\n this.nodo = null;\r\n this.nodoValueList = null;\r\n this.nodoLabelList = null;\r\n this.idiomaBusqueda = null;\r\n this.idiomaBusquedaValueList = null;\r\n this.idiomaBusquedaLabelList = null;\r\n this.idiomaBuscador = null;\r\n this.idiomaBuscadorValueList = null;\r\n this.idiomaBuscadorLabelList = null;\r\n this.tesauroBusqueda = null;\r\n this.tesauroBusquedaValueList = null;\r\n this.tesauroBusquedaLabelList = null;\r\n }", "public compactPeerList () {\n recentPeers.compact();\n }", "@Test\r\n public void testempty() {\r\n assertEquals(true, fm.empty());\r\n fm.collect(\"Dampymon\");\r\n fm.collect(\"Dampymon\");\r\n assertEquals(false, fm.empty());\r\n }", "private void assertImmutableList() {\n\t\tassertImmutableList(wc);\n\t}", "public void corrupt_all() {\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i]!=null) {\n\t\t\t\tcorrupt(i);\n\t\t\t}\n\t\t}\n\t}", "public void cleanProposition();", "private void arrayCompact(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n myArrayList.compact();\r\n int new_size = myArrayList.size();\r\n if(old_size > new_size) {\r\n results.storeNewResult(\"ArrayCompact test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayCompact test case: FAILED\");\r\n }\r\n }", "@Test\n @Ignore(\"KnownBug: ACCUMULO-3645 Fixed in Accumulo 1.7.0\")\n public void testInjectOnCompact_Empty() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, Collections.singletonList(itset), true, true);\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k));\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }", "@Test\n public void testCompact_Last_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }", "public void resetValid()\n\t{\n\t\tthis.valid = true;\n\t}", "public boolean isClean() {\r\n \treturn clean;\r\n }", "boolean full();", "@Override\n public void clean() {\n\n }", "public Builder clearValid() {\n \n valid_ = false;\n onChanged();\n return this;\n }", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "public abstract boolean CompactRange(Slice begin, Slice end) throws IOException, BadFormatException, DecodeFailedException;", "public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}", "private synchronized void shrink() {\n if (isMutable()) {\n throw new IllegalStateException(\"Can't shrink a mutable test result!\");\n }\n\n // Should ensure we have a resultsFile.\n sections = null;\n\n // NOTE: if either of these are discarded, it may be a good idea to\n // optimize reload() to not read the section/stream data since\n // a small property lookup could incur a huge overhead\n //props = null; // works, may or may-not improve memory usage\n //desc = null; // doesn't work in current implementation\n }", "void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }", "LinearMor compact();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "public Range compact() throws InvalidRangeException {\n if (stride == 1)\n return this;\n int first = first() / stride; // LOOK WTF ?\n int last = first + length() - 1;\n return new Range(name, first, last, 1);\n }", "@Test\n public void testCompact_Overflow_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(2);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }", "public void clean();", "public void clean();", "public void clean();", "public void clean();", "public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}", "private int[] compact(int[] arr, int len) {\n assert arr != null;\n assert U.isNonDecreasingArray(arr, len);\n\n if (arr.length <= 1)\n return U.copyIfExceeded(arr, len);\n\n int newLen = 1;\n\n for (int i = 1; i < len; i++) {\n if (arr[i] != arr[newLen - 1])\n arr[newLen++] = arr[i];\n }\n\n return U.copyIfExceeded(arr, len);\n }", "public void clean();", "private int mapToFullFlags(byte compactFlags)\n\t{\n\t\tint fullFlags = 0;\n\t\t\n\t\tif ((compactFlags & CompactDataRangeFlag) != 0)\n\t\t\tfullFlags |= DataRangeMask;\n\n\t\tif ((compactFlags & CompactDataQualityFlag) != 0)\n\t\t\tfullFlags |= DataQualityMask;\n\n\t\tif ((compactFlags & CompactTimeQualityFlag) != 0)\n\t\t\tfullFlags |= TimeQualityMask;\n\n\t\tif ((compactFlags & CompactSystemIssueFlag) != 0)\n\t\t\tfullFlags |= SystemIssueMask;\n\n\t\tif ((compactFlags & CompactCalculatedValueFlag) != 0)\n\t\t\tfullFlags |= CalculatedValueMask;\n\n\t\tif ((compactFlags & CompactDiscardedValueFlag) != 0)\n\t\t\tfullFlags |= DiscardedValueMask;\n\t\t\n\t\treturn fullFlags;\n\t}", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public void method_1895() {\n field_1241.clear();\n field_1242.clear();\n }", "public void complete() {\n this.totalCompactingKVs = this.currentCompactedKVs;\n }", "public void cleanse(Set<Bundles> active) {\r\n // Clear the ent_2_i's\r\n ent_2_i.clear(); post_processors = null;\r\n\r\n // Initialize by creating a lookup for the post processors\r\n Map<BundlesDT.DT, Set<PostProc>> pp_lu = new HashMap<BundlesDT.DT, Set<PostProc>>();\r\n String pp_strs[] = BundlesDT.listEnabledPostProcessors();\r\n for (int i=0;i<pp_strs.length;i++) {\r\n PostProc pp = BundlesDT.createPostProcessor(pp_strs[i], this);\r\n BundlesDT.DT dt = pp.type();\r\n if (pp_lu.containsKey(dt) == false) pp_lu.put(dt, new HashSet<PostProc>());\r\n pp_lu.get(dt).add(pp);\r\n }\r\n\r\n // First, accumulate all of the active entities\r\n Set<String> active_entities = new HashSet<String>();\r\n Iterator<Bundles> it_bs = active.iterator();\r\n while (it_bs.hasNext()) {\r\n Bundles bundles = it_bs.next();\r\n Iterator<Tablet> it_tab = bundles.tabletIterator();\r\n while (it_tab.hasNext()) {\r\n Tablet tablet = it_tab.next();\r\n // Figure out which fields are in the tablet\r\n\tList<Integer> fld_is = new ArrayList<Integer>();\r\n\tfor (int fld_i=0;fld_i<bundles.getGlobals().numberOfFields();fld_i++) {\r\n\t if (tablet.hasField(fld_i)) fld_is.add(fld_i);\r\n }\r\n\tint fields[] = new int[fld_is.size()]; for (int i=0;i<fields.length;i++) fields[i] = fld_is.get(i);\r\n\t// Go through the individual bundle elements\r\n\tIterator<Bundle> it = tablet.bundleIterator();\r\n\twhile (it.hasNext()) {\r\n\t Bundle bundle = it.next();\r\n\t for (int i=0;i<fields.length;i++) {\r\n // System.err.println(\"cleanse:fields[\" + i + \"] = \" + fields[i]); // abc DEBUG\r\n\t String ent = bundle.toString(fields[i]);\r\n\t active_entities.add(ent); \r\n addFieldEntity(fields[i], ent);\r\n\t // Add the post processor versions...\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(ent);\r\n if (pp_lu.containsKey(datatype)) {\r\n\t Iterator<PostProc> it_pp = pp_lu.get(datatype).iterator();\r\n\t while (it_pp.hasNext()) {\r\n\t String converts[] = it_pp.next().postProcess(ent);\r\n\t\tfor (int j=0;j<converts.length;j++) {\r\n active_entities.add(converts[j]);\r\n }\r\n }\r\n\t }\r\n\t }\r\n\t}\r\n }\r\n }\r\n // Re-add the range values\r\n addRangeIntegers();\r\n // Clear the caches\r\n CacheManager.clearCaches();\r\n // Lastly, clear transforms\r\n resetTransforms();\r\n }", "void m63702c() {\n for (C17455a c17455a : this.f53839c) {\n c17455a.f53844b.clear();\n }\n }", "public void test0() {\n\t\tempty(m1);\n\t\tempty(m2);\n\t\tempty(m3);\n\t\tempty(m4);\n\t}", "void clean();", "void clean();", "void clean();", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "public void compactUp() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la fila posterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[j][i] == EMPTY && board[j + 1][i] != EMPTY) {\n\t\t board[j][i] = board[j + 1][i];\n\t\t board[j + 1][i] = EMPTY;\n\t\t compactUp();\n\t\t}\n\t }\n\t}\n }", "protected static Value canonicalize(Value v) {\n if (Options.get().isDebugOrTestEnabled()) { // checking representation invariants\n String msg = null;\n if ((v.flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) != 0 && v.str != null)\n msg = \"fixed string and flags inconsistent\";\n else if ((v.flags & STR_PREFIX) != 0 && (v.str == null || v.str.isEmpty()))\n msg = \"prefix string inconsistent\";\n else if ((v.flags & NUM) != 0 && v.num != null)\n msg = \"number facet inconsistent\";\n else if (v.num != null && Double.isNaN(v.num))\n msg = \"number constant is NaN\";\n else if (v.object_labels != null && v.object_labels.isEmpty())\n msg = \"empty set of object labels\";\n else if (v.getters != null && v.getters.isEmpty())\n msg = \"empty set of getters\";\n else if (v.setters != null && v.setters.isEmpty())\n msg = \"empty set of setters\";\n else if (v.excluded_strings != null && v.excluded_strings.isEmpty())\n msg = \"empty set of excluded strings\";\n else if (v.included_strings != null && v.included_strings.isEmpty())\n msg = \"empty set of included strings\";\n else if (v.included_strings != null && v.included_strings.size() <= 1)\n msg = \"invalid number of included strings\";\n else if (v.excluded_strings != null && v.included_strings != null)\n msg = \"has both excluded strings and included strings\";\n else if ((v.flags & UNKNOWN) != 0 && ((v.flags & ~UNKNOWN) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"'unknown' inconsistent with other flags\";\n else if (v.var != null && ((v.flags & PRIMITIVE) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"mix of polymorphic and ordinary value\";\n else if ((v.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) != 0 && v.var == null)\n msg = \"PRESENT set for non-polymorphic value\";\n else if (v.excluded_strings != null && (v.flags & STR) == 0)\n msg = \"excluded strings present without fuzzy strings\";\n else if (v.included_strings != null && (v.flags & STR) == 0)\n msg = \"included_strings present without fuzzy strings\";\n if (msg != null)\n throw new AnalysisException(\"Invalid value (0x\" + Integer.toHexString(v.flags) + \",\"\n + Strings.escape(v.str) + \",\" + v.num + \",\" + v.object_labels\n + \",\" + v.getters + \",\" + v.setters + \",\" + (v.excluded_strings != null ? Strings.escape(v.excluded_strings) : null)\n + \",\" + (v.included_strings != null ? Strings.escape(v.included_strings) : null) + \"), \" + msg);\n if (Options.get().isPolymorphicDisabled() && v.isPolymorphic())\n throw new AnalysisException(\"Unexpected polymorphic value\");\n }\n canonicalizing = true;\n if (v.object_labels != null)\n v.object_labels = Canonicalizer.get().canonicalizeSet(v.object_labels);\n if (v.getters != null)\n v.getters = Canonicalizer.get().canonicalizeSet(v.getters);\n if (v.setters != null)\n v.setters = Canonicalizer.get().canonicalizeSet(v.setters);\n if (v.excluded_strings != null)\n v.excluded_strings = Canonicalizer.get().canonicalizeStringSet(v.excluded_strings);\n if (v.included_strings != null)\n v.included_strings = Canonicalizer.get().canonicalizeStringSet(v.included_strings);\n v.hashcode = v.computeHashCode();\n Value cv = Canonicalizer.get().canonicalize(v);\n canonicalizing = false;\n return cv;\n }", "void compact(long maxSize) throws IOException;", "private static void cleanArray() {\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tcolTemp[i] = 0;\r\n\t\t\trowTemp[i] = 0;\r\n\t\t}\r\n\t}", "public void setEmpty(){this.empty = true;}", "private void clean() {\n aggregatedValues.clear();\n this.numMessageSent = 0;\n this.numMessageReceived = 0;\n }", "public void testSun13AccuracyNull_Shallow() throws Exception {\n assertEquals(\"null memory size not correct\", 4,\n test.getShallowMemoryUsage(null).getUsedMemory());\n }", "public StringSet freeVars() {\n\treturn argument.freeVars();\n }", "public static void clean() {\n\t\tcleaned = true;\n\t\tCleaner.clean(getSequence());\n\t}", "public static void cleanNonSerializables(Collection c) {\n\t\tIterator it = c.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tObject o = it.next();\n\t\t\t\n\t\t\tClass objClass = o.getClass();\n\t\t\tif (shouldRemove(o)) {\n\t\t\t\tit.remove();\n\t\t\t\tlogger.info(\"Remove obj: \" + o);\n\t\t\t}\n\t\t\t\n\t\t\t/*if (blackObjects.contains(o.getClass())) {\n\t\t\tit.remove();\n\t\t} else if (!attemptSerialization(o)) {\n\t\t\tblackObjects.add(o.getClass());\n\t\t\tlogger.info(\"Remove non-serializable obj: \" + o);\n\t\t\t\n\t\t\tit.remove();\n\t\t}*/\n\t\t}\n\t}", "private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }", "private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }", "public Builder clearCompressed() {\n \n compressed_ = false;\n onChanged();\n return this;\n }", "public boolean isEmpty(){ return Objects.isNull(this.begin ); }", "public void validate() {\n\t\tthis.invalidated = false;\n\t}", "public void clear() {\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].clear();\n\n\t\tfor (int i = 0; i < solidCount; i++) {\n\t\t\tsolidCollectors.get(i).clear();\n\t\t}\n\n\t\tsolidCount = 0;\n\n\t\tArrays.fill(collectors, 1, collectors.length, null);\n\t}", "@Override\n\tpublic boolean deterministic() {\n\t\treturn true;\n\t}", "public M csmiCertifyTypeNull(){if(this.get(\"csmiCertifyTypeNot\")==null)this.put(\"csmiCertifyTypeNot\", \"\");this.put(\"csmiCertifyType\", null);return this;}", "private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }", "@Test\n public void testInjectOnCompact() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n List<IteratorSetting> itlist = new ArrayList<>();\n itlist.add(itset);\n itset = new IteratorSetting(16, DebugIterator.class);\n itlist.add(itset);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, itlist, true, true);\n\n// CompactionConfig cc = new CompactionConfig()\n// .setCompactionStrategy(CompactionStrategyConfigUtil.DEFAULT_STRATEGY)\n// .setStartRow(null).setEndRow(null).setIterators(itlist)\n// .setFlush(true).setWait(true);\n// conn.tableOperations().compact(tableName, cc);\n\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k)); // passes because not scan-time iterator\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "private void clearValidationError() {\n\n\t\tdataValid = false;\n\n\t\tvalidationErrorPending = false;\n\t\tvalidationErrorParent = null;\n\t\tvalidationErrorTitle = null;\n\t\tvalidationErrorMessage = null;\n\t\tvalidationErrorType = 0;\n\t}", "public Builder clearComputeSumNull() {\n \n computeSumNull_ = false;\n onChanged();\n return this;\n }", "boolean isNullOmittable();", "@Test\n public void testCompact_Mid_Segment_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(5);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }", "public void cleanAll() {\r\n\t\ttos.clear();\r\n\t\tbcs.clear();\r\n\t\tccs.clear();\r\n\t\tattachments.clear();\r\n\t\tinLines.clear();\r\n\t\tsubject= null;\r\n\t\ttext= null;\r\n\t\tfrom= null;\r\n\t}", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "private void clear() {\n }", "private final synchronized boolean m12565b() {\n return this.f10287a.getAll().isEmpty();\n }", "public DEPArc()\n\t{\n\t\tclear();\n\t}" ]
[ "0.73212343", "0.7188941", "0.71306854", "0.64657325", "0.6447402", "0.6416426", "0.5873186", "0.5613442", "0.5425408", "0.5401279", "0.539359", "0.5384356", "0.5360514", "0.53551286", "0.53023005", "0.52870446", "0.52709496", "0.5233201", "0.52276385", "0.521837", "0.5207653", "0.51987237", "0.51841813", "0.51716805", "0.5163093", "0.5161905", "0.51286703", "0.51239014", "0.5114304", "0.51122683", "0.5094643", "0.509186", "0.5080656", "0.5061621", "0.5058171", "0.5036709", "0.50331897", "0.49963474", "0.4990593", "0.49856707", "0.49392754", "0.49254793", "0.49155167", "0.48932436", "0.48876482", "0.48813203", "0.48724976", "0.48319143", "0.48318654", "0.48085713", "0.48077175", "0.48003685", "0.47968504", "0.47930732", "0.47922343", "0.47922343", "0.47922343", "0.47922343", "0.47906008", "0.47905093", "0.47829488", "0.4780874", "0.47686726", "0.47645637", "0.47623035", "0.4761155", "0.4759758", "0.47419763", "0.47394165", "0.47394165", "0.47394165", "0.4733763", "0.4718592", "0.47185212", "0.47179094", "0.47176045", "0.47120366", "0.4711402", "0.47051975", "0.47014785", "0.46999937", "0.46991116", "0.46957794", "0.46945974", "0.46891412", "0.46817902", "0.46812803", "0.46788785", "0.46718282", "0.4671674", "0.46716404", "0.46709585", "0.46670273", "0.46647808", "0.46620005", "0.46597996", "0.46597373", "0.46577018", "0.46544358", "0.46505052", "0.46503437" ]
0.0
-1
If s.length != t.length, return false Sort the two strings, and check if s equals t. Time complexity is mlg(m) + nlg(n) + m+n Space complexity is m+n m is length of s, n is length of t
public boolean isAnagram(String s, String t) { if (s.length() != t.length()) { return false; } char[] sChars = s.toCharArray(); Arrays.sort(sChars); char[] tChars = t.toCharArray(); Arrays.sort(tChars); return new String(sChars).equals(new String(tChars)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean checkPermutaionSort(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n char c1[] = s1.toCharArray();\n char c2[] = s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n for (int i = 0; i < s1.length(); ++i) {\n if (c1[i] != c2[i]) return false;\n }\n\n return true;\n }", "private static boolean checkPermutationSorting(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n // Since strings are immutable, we wrote a simple sort function that returns the sorted string.\n String sortedS1 = sort(s1);\n String sortedS2 = sort(s2);\n\n return sortedS1.equals(sortedS2);\n }", "public static int matchingPairs(String s, String t) {\n if(s.length() != t.length()) return 0;\r\n StringBuilder sb1 = new StringBuilder();\r\n StringBuilder sb2 = new StringBuilder();\r\n int res = 0;\r\n boolean hasDuplicates = false; //Edge Case where if it has Dups then you can just to inner swap and you will get same result\r\n Set<Character> dupsCheckSet = new HashSet<>();\r\n\r\n for(int idx = 0; idx < s.length(); idx++){\r\n if(s.charAt(idx) != t.charAt(idx)){\r\n sb1.append(s.charAt(idx));\r\n sb2.append(t.charAt(idx));\r\n }else {\r\n if(!dupsCheckSet.add(s.charAt(idx))){\r\n hasDuplicates = true;\r\n }\r\n res++;\r\n }\r\n }\r\n\r\n //if both string are same then you don't have to calculate\r\n if(sb1.length() == 0){\r\n if(hasDuplicates){\r\n return res;\r\n }\r\n return res - 2;\r\n }\r\n\r\n Map<Character, Integer> mapS = new HashMap<>(), mapT = new HashMap<>();\r\n for (int idx = 0; idx < sb1.length(); idx++){ //\"bd\",\"db\";\r\n //if mapS contains chars from sb2 then if we swap them with each other it will be a matching pair\r\n if(mapS.containsKey(sb2.charAt(idx))){\r\n res++;\r\n }\r\n //if both Chars are reverse of each other then we can switch and add 1 to it\r\n if(mapS.getOrDefault(sb2.charAt(idx), -1) == mapT.getOrDefault(sb1.charAt(idx), -2)){\r\n return res + 1;\r\n }\r\n mapS.put(sb1.charAt(idx), idx);\r\n mapT.put(sb2.charAt(idx), idx);\r\n }\r\n\r\n\r\n return res + ((sb1.length() == 1) ? -1 : 0);\r\n }", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "boolean isPermutationSorting(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tchar[] s1Arr = s1.toCharArray();\n\t\tchar[] s2Arr = s2.toCharArray();\n\t\tjava.util.Arrays.sort(s1Arr);\n\t\tjava.util.Arrays.sort(s2Arr);\n\n\t\tString newS1 = new String(s1Arr);\n\t\tString newS2 = new String(s2Arr);\n\t\tif(newS1.equals(newS2)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean permutationOpt(String s, String t) {\n if (s.length() != t.length() ) { return false;}\r\n\r\n int[] charCnt = new int[128];\r\n for (int i = 0; i < s.length(); i ++) {\r\n int val = s.charAt(i);\r\n charCnt[val] ++;\r\n }\r\n\r\n for (int i = 0; i < t.length(); i ++) {\r\n int val = t.charAt(i);\r\n charCnt[val] --;\r\n if (charCnt[val] < 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true; // If the length of two strings are equal, then when there is no negative counts there should not be positive counts either.\r\n }", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "static boolean permutation(String s, String t){\n if(s.length() != t.length()){\n return false;\n }\n\n Map<Character, Integer> sCount = new HashMap<>();\n Map<Character, Integer> tCount = new HashMap<>();\n\n for(int i = 0;i < s.length();i++){\n Character sChar = s.charAt(i);\n Character tChar = t.charAt(i);\n sCount.put(sChar, sCount.getOrDefault(sChar, 0) + 1);\n tCount.put(tChar, tCount.getOrDefault(tChar, 0) + 1);\n }\n //Character and Integer objects have their equals methods defined\n return sCount.equals(tCount);\n }", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "public static boolean stringPermutation(String s, String t){\r\n if (s.length() != t.length()){\r\n return false;\r\n }\r\n HashMap<Character, Integer> map1 = new HashMap<Character, Integer>();\r\n HashMap<Character, Integer> map2 = new HashMap<Character, Integer>();\r\n for (int i = 0; i < s.length(); i++){\r\n if (map1.get(s.charAt(i)) == null){\r\n map1.put(s.charAt(i), 1);\r\n }\r\n else {\r\n map1.put(s.charAt(i), map1.get(s.charAt(i)) + 1);\r\n }\r\n }\r\n for (int i = 0; i < t.length(); i++){\r\n if (map2.get(t.charAt(i)) == null){\r\n map2.put(t.charAt(i), 1);\r\n }\r\n else {\r\n map2.put(t.charAt(i), map2.get(t.charAt(i)) + 1);\r\n }\r\n }\r\n return map1.equals(map2);\r\n }", "public static void main(String[] args) {\n\t\n\tString a = \"aabbbc\", b= \"cabbbac\";\n\t// a = abc, b=cab\n\t//we will remove all dublicated values from \"a\"\n\tString a1 = \"\"; //store all the non duplicated values from \"a\"\n\t\n\tfor (int j=0; j<a.length();j++) //this method is with nested loop\n\tfor (int i=0; i<a.length();i++) {\n\t\tif (!a1.contains(a.substring(j, j+1))) {\n\t\t\ta1 += a.substring(j, j+1);\n\t\t}\n\t\t\t\n\t}\n\tSystem.out.println(a1);\n\t//we will remove all duplicated values from \"b\"\n\tString b1 = \"\"; //store all the non duplicated values from \"b\"\n\tfor(int i=0; i<b.length();i++) { //this is with simple loop\n\t\tif(!b1.contains(b.substring(i, i+1))) {\n\t\t\t // \"\"+b.charAt(i)\n\t\t\tb1 += b.substring(i, i+1);\n\t\t\t// \"\"+b.charAt(i);\n\t\t}\n\t}\n\tSystem.out.println(b1);\n\t\n\t\n\t//a1 = \"acb\", b1 = \"cab\"\n\tchar[] ch1 = a1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch1));\n\t\n\tchar[] ch2 = b1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\tArrays.sort(ch1);\n\tArrays.sort(ch2);\n\t\n\tSystem.out.println(\"========================\");\n\tSystem.out.println(Arrays.toString(ch1));\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\t\n\tString str1 = Arrays.toString(ch1);\n\tString str2 = Arrays.toString(ch2);\n\t\n\tif(str1.equals(str2)) {\n\t\tSystem.out.println(\"true, they are same letters\");\n\t}else {\n\t\tSystem.out.println(\"false, they are contain different letters\");\n\t}\n\t\n\t\n\t// solution 2:\n\t\t\t String Str1 = \"cccccaaaabbbbccc\" , Str2 = \"cccaaabbb\";\n\t\t\t \n\t\t\t Str1 = new TreeSet<String>( Arrays.asList( Str1.split(\"\"))).toString();\n\t\t\t Str2 = new TreeSet<String>( Arrays.asList( Str2.split(\"\"))).toString();\n\t\t\t \n\t\t\t System.out.println(Str1.equals(Str2));\n\t\t\t\t \n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n}", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) return false; // O(1)\n int[] charFrequency = new int[26]; // O(1)\n\n for (char c : s.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n charFrequency[index]++; // O(1)\n }\n\n for (char c : t.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n if (charFrequency[index] == 0) return false; // O(1)\n charFrequency[index]--; // O(1)\n }\n\n for (int i : charFrequency) { // O(26) -> O(1)\n if (i > 0) return false; // O(1)\n }\n\n return true; // O(1)\n }", "public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\r\n\t\t}", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "public static int getLevenshteinDistance (String s, String t) {\n\tif (s == null || t == null) {\n\t throw new IllegalArgumentException(\"Strings must not be null\");\n\t}\n\t\n\t/*\n\t The difference between this impl. and the previous is that, rather \n\t than creating and retaining a matrix of size s.length()+1 by t.length()+1, \n\t we maintain two single-dimensional arrays of length s.length()+1. The first, d,\n\t is the 'current working' distance array that maintains the newest distance cost\n\t counts as we iterate through the characters of String s. Each time we increment\n\t the index of String t we are comparing, d is copied to p, the second int[]. Doing so\n\t allows us to retain the previous cost counts as required by the algorithm (taking \n\t the minimum of the cost count to the left, up one, and diagonally up and to the left\n\t of the current cost count being calculated). (Note that the arrays aren't really \n\t copied anymore, just switched...this is clearly much better than cloning an array \n\t or doing a System.arraycopy() each time through the outer loop.)\n\t \n\t Effectively, the difference between the two implementations is this one does not \n\t cause an out of memory condition when calculating the LD over two very large strings. \t\t\n\t*/\t\t\n\t\n\tint n = s.length(); // length of s\n\tint m = t.length(); // length of t\n\t\n\tif (n == 0) {\n\t return m;\n\t} else if (m == 0) {\n\t return n;\n\t}\n\t\n\tint p[] = new int[n+1]; //'previous' cost array, horizontally\n\tint d[] = new int[n+1]; // cost array, horizontally\n\tint _d[]; //placeholder to assist in swapping p and d\n\t\n\t// indexes into strings s and t\n\tint i; // iterates through s\n\tint j; // iterates through t\n\t\n\tchar t_j; // jth character of t\n\t\n\tint cost; // cost\n\t\n\tfor (i = 0; i<=n; i++) {\n\t p[i] = i;\n\t}\n\t\n\tfor (j = 1; j<=m; j++) {\n\t t_j = t.charAt(j-1);\n\t d[0] = j;\n\t \n\t for (i=1; i<=n; i++) {\n\t\tcost = s.charAt(i-1)==t_j ? 0 : 1;\n\t\t// minimum of cell to the left+1, to the top+1, diagonally left and up +cost\t\t\t\t\n\t\td[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]+cost); \n\t }\n\t \n\t // copy current distance counts to 'previous row' distance counts\n\t _d = p;\n\t p = d;\n\t d = _d;\n\t} \n\t\n\t// our last action in the above loop was to switch d and p, so p now \n\t// actually has the most recent cost counts\n\treturn p[n];\n }", "private static boolean isIsomorphic(String s, String t) {\n // quick check: diff len => cannot match\n if (s.length() != t.length()) {\n return false;\n }\n\n // record mapping of chars s -> t\n Map<Character, Character> map = new HashMap<>();\n // mark chars that has been mapped\n Set<Character> set = new HashSet<>();\n\n for (int i = 0; i < s.length(); ++i) {\n char sc = s.charAt(i);\n char tc = t.charAt(i);\n // check and map s[i] and t[i]\n if (map.containsKey(sc)) {\n if (map.get(sc) != tc) {\n // a is mapped to b & c\n return false;\n }\n } else {\n if (set.contains(tc)) {\n // cannot map a -> c\n // since there exist b -> c\n return false;\n }\n // map sc -> tc\n map.put(sc, tc);\n set.add(tc);\n }\n }\n\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n int l1 = s.length();\n int l2 = t.length();\n if (l1 != l2)\n return false;\n\n HashMap<Character, Character> hm = new HashMap<>();\n HashSet<Character> set = new HashSet<>();\n\n int i = 0;\n while (i < l1) {\n char c1 = s.charAt(i), c2 = t.charAt(i);\n Character cc = new Character(c1);\n if (hm.containsKey(cc) == true) {\n if (hm.get(cc) != c2)\n return false;\n\n } else {\n if (set.contains(c2))\n return false;\n hm.put(c1, c2);\n set.add(c2);\n }\n i++;\n }\n return true;\n }", "public boolean isScramble(String s1, String s2) {\n int lena = s1.length();\n int lenb = s2.length();\n if(lena != lenb) return false;\n if(lena == 0||s1.equals(s2)) return true;\n char[] crr1 = s1.toCharArray();\n char[] crr2 = s2.toCharArray();\n Arrays.sort(crr1);\n Arrays.sort(crr2);\n if(!Arrays.equals(crr1,crr2)) return false;\n \n int i = 1; \n while(i< lena){\n String a1 = s1.substring(0,i);\n String b1 = s1.substring(i);\n String a2 = s2.substring(0,i);\n String b2 = s2.substring(i);\n if(isScramble(a1,a2) && isScramble(b1,b2)) return true;\n String a3 = s2.substring(lenb - i);\n String b3 = s2.substring(0, lenb-i);\n if(isScramble(a1,a3) && isScramble(b1,b3)) return true;\n i++;\n }\n return false;\n }", "private static int compare(String st1, String st2) {\n if (st1.length() < st2.length()) {\n return -1;\n } else {\n return st1.compareTo(st2);\n }\n }", "public static String appendAndDelete(String s, String t, int k) {\n if (s.equals(t)) {\n return \"Yes\";\n }\n\n // Return yes if the same length\n if (s.length() == t.length()) {\n if (s.length() < k) {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }\n\n // Return yes of all letters are the same in both\n String test = s.substring(0,1);\n boolean same = true;\n for (int i = 0; i < s.length(); i++) {\n if (!test.equals(s.substring(i, i+1))) {\n same = false;\n break;\n }\n }\n for (int i = 0; i < t.length(); i++) {\n if (!test.equals(t.substring(i, i+1))) {\n same = false;\n break;\n }\n }\n if (same) {\n return \"Yes\";\n }\n // find the shorter length\n String shorter = \"\";\n String longer = \"\";\n if (s.length() < t.length()) {\n shorter = s;\n longer = t;\n } else if (t.length() < s.length()) {\n shorter = t;\n longer = s;\n } else {\n }\n\n\n\n // Only loop if the lengths are different\n int index = 0;\n for (int i = 0; i < shorter.length(); i++) {\n if (s.charAt(i) != t.charAt(i)) {\n //time to record index\n index = i;\n break;\n }\n }\n\n// if (index == 0 && shorter.equals(\"\")) {\n// return \"Yes\";\n// }\n\n if ((s.length() - index) + (t.length() - index) == k) {\n return \"Yes\";\n }\n return \"No\";\n\n\n }", "public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }", "public static boolean AdditionalSolution(String str)\r\n\t{\r\n\t\t\r\n\t\t//Precondition if null, length <0 // Assuming the String Contains ASCII characters\r\n\t\tif(str == null || str.length()<0||str.length()>128)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t//converting into character array\r\n\t\tchar[] res = str.toCharArray();\r\n\t\t\r\n\t\t//Sort using time sort, modified TimeSort in 1.7 ,O(n)< x < O(nlgn)\r\n\t\tArrays.sort(res);\r\n\t\t\r\n\t\tfor(int i =0;i<res.length-1;i++)\t\r\n\t\t{\r\n\t\t\t//Compare the adjacent Elements\r\n\t\t\tif(res[i] == res[i+1])\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}", "public static int getLevenshteinDistance(String s, String t) {\n\t\tif (s == null || t == null) {\n\t\t\tthrow new IllegalArgumentException(\"Strings must not be null\");\n\t\t}\n\n\t\t/*\n\t\t * The difference between this impl. and the previous is that, rather\n\t\t * than creating and retaining a matrix of size s.length()+1 by\n\t\t * t.length()+1, we maintain two single-dimensional arrays of length\n\t\t * s.length()+1. The first, d, is the 'current working' distance array\n\t\t * that maintains the newest distance cost counts as we iterate through\n\t\t * the characters of String s. Each time we increment the index of\n\t\t * String t we are comparing, d is copied to p, the second int[]. Doing\n\t\t * so allows us to retain the previous cost counts as required by the\n\t\t * algorithm (taking the minimum of the cost count to the left, up one,\n\t\t * and diagonally up and to the left of the current cost count being\n\t\t * calculated). (Note that the arrays aren't really copied anymore, just\n\t\t * switched...this is clearly much better than cloning an array or doing\n\t\t * a System.arraycopy() each time through the outer loop.)\n\t\t * \n\t\t * Effectively, the difference between the two implementations is this\n\t\t * one does not cause an out of memory condition when calculating the LD\n\t\t * over two very large strings.\n\t\t */\n\n\t\tint n = s.length(); // length of s\n\t\tint m = t.length(); // length of t\n\n\t\tif (n == 0) {\n\t\t\treturn m;\n\t\t} else if (m == 0) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint p[] = new int[n + 1]; // 'previous' cost array, horizontally\n\t\tint d[] = new int[n + 1]; // cost array, horizontally\n\t\tint _d[]; // placeholder to assist in swapping p and d\n\n\t\t// indexes into strings s and t\n\t\tint i; // iterates through s\n\t\tint j; // iterates through t\n\n\t\tchar t_j; // jth character of t\n\n\t\tint cost; // cost\n\n\t\tfor (i = 0; i <= n; i++) {\n\t\t\tp[i] = i;\n\t\t}\n\n\t\tfor (j = 1; j <= m; j++) {\n\t\t\tt_j = t.charAt(j - 1);\n\t\t\td[0] = j;\n\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tcost = s.charAt(i - 1) == t_j ? 0 : 1;\n\t\t\t\t// minimum of cell to the left+1, to the top+1, diagonally left\n\t\t\t\t// and up +cost\n\t\t\t\td[i] = Math.min(Math.min(d[i - 1] + 1, p[i] + 1), p[i - 1]\n\t\t\t\t\t\t+ cost);\n\t\t\t}\n\n\t\t\t// copy current distance counts to 'previous row' distance counts\n\t\t\t_d = p;\n\t\t\tp = d;\n\t\t\td = _d;\n\t\t}\n\n\t\t// our last action in the above loop was to switch d and p, so p now\n\t\t// actually has the most recent cost counts\n\t\treturn p[n];\n\t}", "static int compare(String a, String b) {\n if (a == null) a = \"\";\n if (b == null) b = \"\";\n\n int i = 0;\n while (i < a.length() && i < b.length()) {\n char x = a.charAt(i), y = b.charAt(i);\n if (x != y) return x - y;\n i++;\n }\n return a.length() - b.length();\n }", "public static boolean isPermutation(String sIn1, String sIn2){\n if (sIn1.length()!= sIn2.length()) return false;\n\n char[] string1 = sIn1.toCharArray();\n char[] string2 = sIn2.toCharArray();\n\n Arrays.sort(string1);\n Arrays.sort(string2);\n\n return Arrays.equals(string1, string2);\n\n }", "public int solution(String S, String T) {\n if(S.length()==T.length()){\n return S.equals(T) ? 1 : 0;\n }\n int first = 0; //pointer to iterate over string S\n int second = 0; //pointer to iterate over string T\n while(second<T.length()){\n //Reached end of T\n if(first>=S.length()){\n return 0;\n }\n if(S.charAt(first)==T.charAt(second)){\n first++;\n second++;\n }\n else{\n first++;\n }\n }\n return 1;\n }", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "public boolean isIsomorphic(String s, String t) {\r\n int[] preIndexOfS = new int[256];\r\n int[] preIndexOfT = new int[256];\r\n for (int i = 0; i < s.length(); i++) {\r\n char sc = s.charAt(i), tc = t.charAt(i);\r\n if (preIndexOfS[sc] != preIndexOfT[tc]) {\r\n return false;\r\n }\r\n preIndexOfS[sc] = i + 1;\r\n preIndexOfT[tc] = i + 1;\r\n }\r\n return true;\r\n }", "boolean isUniqueUsingSorting(String str) {\n\t\tchar[] array = str.toCharArray();\n\t\t// Sorting the char array take NlogN time\n\t\tArrays.sort(array);\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\t// If adjacent characters are equal, return false\n\t\t\tif (array[i] == array[i + 1]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public boolean isPermutationSorted(String str1, String str2) {\n\n\t\tif (str1.length() != str2.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tchar[] str1Chars = str1.toCharArray();\n\t\tchar[] str2Chars = str2.toCharArray();\n\n\t\tArrays.sort(str1Chars);\n\t\tArrays.sort(str2Chars);\n\t\tif (String.valueOf(str1Chars).equals(String.valueOf(str2Chars)))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isAnagram(String s, String t) {\n if(s.length() != t.length()) return false;\n char[] chs = s.toCharArray();\n char[] cht = t.toCharArray();\n Arrays.sort(chs);\n Arrays.sort(cht);\n String ss = String.valueOf(chs);\n String tt = String.valueOf(cht);\n return ss.equals(tt);\n }", "public static boolean permuteCompare(String strA, String strB) {\n\t\tif(strA == null || strB == null)\n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 2: Check if the length of both strings is not equal, then they will not match\n\t\t */\n\t\tif(strA.length() != strB.length()) \n\t\t\treturn false;\n\t\t\n\t\t/*\n\t\t * Step 3: Convert both strings to ArrayList (split method looks like not a elegant way, but works)\n\t\t */\n\t\tList<String> strAList = new ArrayList<String>(Arrays.asList(strA.split(\"\")));\n\t\tList<String> strBList = new ArrayList<String>(Arrays.asList(strB.split(\"\")));\n\t\t\n\t\t/*\n\t\t * Step 4: Sort both ArrayList using Collections\n\t\t */\n\t\tCollections.sort(strAList);\n\t\tCollections.sort(strBList);\n\t\t\n\t\t/*\n\t\t * Step 5: Compare them using equals that will compare size and each element value (Ref: https://docs.oracle.com/javase/8/docs/api/java/util/AbstractList.html#equals-java.lang.Object-)\n\t\t */\n\t\tif(!strAList.equals(strBList))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "@Test\r\n public void test8() {\r\n String s1 = \"Abc\";\r\n String s2 = \"abc\";\r\n String s3 = \"Abcd\";\r\n System.out.println(s1.compareTo(s2));\r\n System.out.println(s1.compareTo(s3));\r\n }", "public static boolean isAnagram(char[]s1, char[]s2)\r\n{\n\t if(s1.length!=s2.length)\r\n\t\t return false; \r\n\t \r\n\t //sort both strings using Arrays sort method\r\n\t Arrays.sort(s1); \r\n\t Arrays.sort(s2);\r\n\t \r\n\t for(int i=0; i<s1.length;i++)\r\n\t if(s1[i]!=s2[i])\r\n\t\t return false; \r\n\t\r\n\treturn true; \r\n\t \r\n}", "public static boolean backspaceCompare(String S, String T) {\n char[] arr1 = S.toCharArray();\n char[] arr2 = T.toCharArray();\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for(int i = arr1.length - 1; i >= 0; i--){\n if(arr1[i] == '#'){\n arr1[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr1[k] != '#' && arr1[k] != ' '){\n arr1[k] = ' ';\n break;\n }\n }\n }else if(arr1[i] != ' '){\n sb1.append(arr1[i]);\n }\n }\n\n for(int i = arr2.length - 1; i >= 0; i--){\n if(arr2[i] == '#'){\n arr2[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr2[k] != '#' && arr2[k] != ' '){\n arr2[k] = ' ';\n break;\n }\n }\n }else if(arr2[i] != ' '){\n sb2.append(arr2[i]);\n }\n }\n// System.out.println(\"sb1:\"+sb1.toString()+\"----sb2:\"+sb2.toString());\n return sb1.toString().equals(sb2.toString());\n }", "private int compareInternal(String shorter, String longer) {\n int lengthDiff = longer.length() - shorter.length();\n\n for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) {\n String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length());\n //we have found an answer if they are not equal\n int result = shorter.compareTo(compariosonPartFromLonger);\n if (result != 0) {\n return result;\n }\n }\n\n //the are equal\n return 0;\n }", "public static boolean permCheck2(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int letters[] = new int[256];\n char charArray[] = s1.toCharArray();\n for (char c : charArray) {\n letters[c]++;\n }\n\n for (int i = 0; i < s2.length(); i++) {\n int charVal = (int) s2.charAt(i);\n if (--letters[charVal] < 0) {\n return false;\n }\n }\n\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n if(s == null || t== null)return false;\n if(s.length() != t.length()) return false;\n \n HashMap<Character, Character> hmap = new HashMap<>();\n for(int i=0; i< s.length(); i++){\n char c1 = s.charAt(i);\n char c2 = t.charAt(i);\n if(hmap.containsKey(c1)){\n if(hmap.get(c1) != c2) return false;\n }else {\n if(hmap.containsValue(c2)) return false;\n }\n hmap.put(c1,c2);\n }\n return true;\n }", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public static boolean checkPermutation(String input1, String input2) {\n\n\t\tchar[] inputArray1 = input1.toCharArray();\n\t\tchar[] inputArray2 = input2.toCharArray();\n\n\t\tArrays.sort(inputArray1);\n\t\tArrays.sort(inputArray2);\n\n\t\tSystem.out.println(inputArray1);\n\t\tSystem.out.println(inputArray2);\n\n\t\treturn new String(inputArray1).equals(new String(inputArray2));\n\t}", "public static boolean isStringPermutation(String s1, String s2)\n\t{\n\t\tif(s1.length()==s2.length())\n\t\t{\n\t\t\t//convert string to character array\n\t\t\tchar [] name1 = s1.toCharArray();\n\t\t\tchar [] name2 = s2.toCharArray();\n\t\t\t\n\t\t\t//sort new character arrays from smallest to greatest\n\t\t\tArrays.sort(name1);\n\t\t\tArrays.sort(name2);\n\t\t\t\n\t\t\t//compare if it's the same\n\t\t\tboolean checker = Arrays.equals(name1,name2);\n\t\t\tSystem.out.println(\"Is \" + s2 + \" a permutation of \" + s1 + \"?\");\n\t\t\t\tif (checker)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"True\");\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"False\");\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//string lengths are not the same\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, Strings are not equal\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic int compare(String s1, String s2) {\n\t\treturn s1.length() - s2.length();\r\n\t}", "public boolean isIsomorphic(String s, String t) {\n if (s == null || t == null || s.length() != t.length()) return false;\n Map<Character, Character> map = new HashMap<>();\n Set<Character> set = new HashSet<>();\n\n for (int i = 0; i < s.length(); i++) {\n char c1 = s.charAt(i), c2 = t.charAt(i);\n if (map.containsKey(c1)) {\n if (map.get(c1) != c2) return false;\n } else {\n if (set.contains(c2)) return false;\n map.put(c1, c2);\n set.add(c2);\n }\n }\n return true;\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString s1=sc.nextLine();\r\nString s2=sc.nextLine();\r\ns1=s1.replaceAll(\"\\\\s\",\"\");\r\ns2=s2.replaceAll(\"\\\\s\",\"\");\r\ns1=s1.toLowerCase();\r\ns2=s2.toLowerCase();\r\nchar str1[]=s1.toCharArray();\r\nchar str2[]=s2.toCharArray();\r\nArrays.sort(str1);\r\nArrays.sort(str2);\r\nboolean k=true;\r\nif(s1.length()!=s2.length())\r\n\tk=false;\r\nelse\r\n{\r\nk=Arrays.equals(str1,str2);\t\r\n}\r\nif(k==false)\r\n\tSystem.out.print(\"not annagram\");\r\nelse\r\n\tSystem.out.print(\"annagram\");\r\n\t}", "public boolean isAPermutation(String st1, String st2) {\n\t\tif(st1.length() != st2.length() || st1.length() == 0 || st2.length() == 0) return false;\n\t\t\n\t\tHashMap<Character, Integer> cc1 = charactersCount(st1);\n\t\tHashMap<Character, Integer> cc2 = charactersCount(st2);\n\t\t\n\t\treturn sameCharactersCount(cc1, cc2);\n\t}", "@Override\n\tpublic int compare(String s1, String s2) {\n\t\t// if s1 = s2 returns 0\n\t\t// if s1 > s2 returns 1\n\t\t// if s1 < s2 returns -1\n\n\t\tint len1 = s1.length();\n\t\tint len2 = s2.length();\n\n\t\tif (len1 > len2) {\n\t\t\treturn 1;\n\t\t} else if (len1 < len2) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\r\n String s = \"test\";\r\n String s1 = \"etst\";\r\n boolean result = sort(s, s1);\r\n System.out.println(result);\r\n }", "public static boolean isPermutation(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] charCounterArr = new int[256];\n\n char[] s1CharArr = s1.toCharArray();\n char[] s2CharArr = s2.toCharArray();\n\n // counting the characters in s1;\n for (int i = 0; i < s1CharArr.length; i++) {\n int index = s1CharArr[i];\n charCounterArr[index] = charCounterArr[index] + 1;\n }\n\n // now check whether characters in s2 are in s1\n // pay attention to characters that appear more than once\n for (int i = 0; i < s2CharArr.length; i++) {\n int index = s2CharArr[i];\n // expecting the value to be 1 or more.\n // if see 0, means that there was a mismatch\n int value = charCounterArr[index];\n if (value == 0) {\n return false;\n }\n value--;\n // now update the value\n charCounterArr[index] = value;\n }\n return true;\n\n }", "public boolean permutation(String s1, String s2) {\n if(s1.length()>s2.length()) return false;\n int s1_sum[] = new int[26];\n int s2_sum[] = new int[26];\n // initiate the sliding window\n for(int i =0; i< s1.length(); i++){\n s1_sum[s1.charAt(i)-'a']++;\n s2_sum[s2.charAt(i) - 'a']++;\n }\n int count = 0;\n for(int i = 0; i< 26; i++){\n if(s1_sum[i] == s2_sum[i]){\n count++;\n }\n }\n for(int j = 0; j<s2.length()-s1.length();j++) {\n int left = s2.charAt(j)-'a';\n int right = s2.charAt(j+s1.length()) - 'a';\n if(count == 26) return true;\n\n s2_sum[right]++;\n if(s2_sum[right] == s1_sum[right]){\n count++;\n } else if(s2_sum[right] = s1_sum[right]+1 ) {\n count--;\n }\n s2_sum[left]--;\n if(s2_sum[left]==s1_sum[left]) {\n count++;\n } else if(s2_sum[left] = s1_sum[left]-1){\n count--;\n }\n\n\n\n }\n return count==26;\n }", "static String reverseShuffleMerge(String s) {\r\n resultString = new char[s.length()/2];\r\n inputString = s;\r\n \r\n for (int i = 0; i < s.length(); i++) {\r\n charCounts.put(s.charAt(i), charCounts.getOrDefault(s.charAt(i),0)+1);\r\n initialCharCounts.put(s.charAt(i), initialCharCounts.getOrDefault(s.charAt(i),0)+1);\r\n }\r\n \r\n for (int i = s.length()-1; i >= 0; i--) {\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n \r\n if(minCharacter > s.charAt(i) && usedCharCounts.getOrDefault(s.charAt(i),0) < initialCharCounts.get(s.charAt(i))/2) {\r\n minCharacter = s.charAt(i);\r\n }\r\n \r\n if(initialCharCounts.get(s.charAt(i))/2 < charCounts.get(s.charAt(i)) + usedCharCounts.getOrDefault(s.charAt(i), 0) ) {\r\n possibleCharsList.add(s.charAt(i));\r\n }\r\n else {\r\n if(minCharacter >= s.charAt(i)) {\r\n addResultString(s.charAt(i));\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n if(minCharacter != Character.MAX_VALUE && minCharacter != s.charAt(i)) {\r\n addResultString(minCharacter);\r\n }\r\n }\r\n }\r\n else {\r\n if(possibleCharsList.size()>0) {\r\n checkandAddPossibleChars(s,i);\r\n }\r\n \r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n addResultString(s.charAt(i));\r\n }\r\n }\r\n minCharacter = Character.MAX_VALUE;\r\n possibleCharsList.clear();\r\n }\r\n \r\n charCounts.put(s.charAt(i), charCounts.get(s.charAt(i))-1);\r\n }\r\n \r\n System.out.println(String.valueOf(resultString));\r\n return String.valueOf(resultString);\r\n\r\n\r\n }", "int stringsConstruction(String a, String b){\n a=\" \"+a+\" \";\n b=\" \"+b+\" \";\n int output = b.split(\"\"+a.charAt(1)).length - 1;\n for(char i = 'a'; i <= 'z'; i++) {\n if (a.split(\"\"+i).length > 1) {\n int tempOut = (b.split(\"\"+i).length - 1) / (a.split(\"\"+i).length - 1);\n if (output > tempOut) {\n output = tempOut;\n }//if (output > tempOut) {\n }//if (a.split(\"\"+i).length > 1) {\n }//for(char i = 'a'; i <= 'z'; i++) {\n return output;\n }", "@Override\n public int compare(String s, String t1) {\n return t1.charAt(t1.length()-1)-s.charAt(s.length()-1);\n// return s.charAt(4);\n\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "public boolean oneEditDistance(String s, String t) {\n if(s == null || t == null) return false;\n if(Math.abs(s.length() - t.length()) > 1) return false;\n int p1 = 0, p2 = 0, count = 0;\n while (p1 < s.length() && p2 < t.length()) {\n if(count > 1) return false;\n if(s.charAt(p1) == t.charAt(p2)) {\n p1++;\n p2++;\n } else if(s.length() == t.length()) {\n count++;\n p1++;\n p2++;\n } else if(s.length() > t.length()) {\n count++;\n p1++;\n } else {\n count++;\n p2++;\n }\n }\n return (s.length() == t.length() && count == 1)\n || (Math.abs(s.length() - t.length()) == 1 && count == 0);\n }", "public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }", "private static int strCompare(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, boolean paramBoolean)\n/* */ {\n/* 2157 */ int i = paramInt1;\n/* 2158 */ int j = paramInt3;\n/* */ \n/* */ \n/* */ \n/* 2162 */ int i4 = paramInt2 - paramInt1;\n/* 2163 */ int i5 = paramInt4 - paramInt3;\n/* */ \n/* */ int i6;\n/* */ \n/* 2167 */ if (i4 < i5) {\n/* 2168 */ i6 = -1;\n/* 2169 */ k = i + i4;\n/* 2170 */ } else if (i4 == i5) {\n/* 2171 */ i6 = 0;\n/* 2172 */ k = i + i4;\n/* */ } else {\n/* 2174 */ i6 = 1;\n/* 2175 */ k = i + i5;\n/* */ }\n/* */ \n/* 2178 */ if (paramArrayOfChar1 == paramArrayOfChar2) {\n/* 2179 */ return i6;\n/* */ }\n/* */ int n;\n/* */ int i2;\n/* */ for (;;) {\n/* 2184 */ if (paramInt1 == k) {\n/* 2185 */ return i6;\n/* */ }\n/* */ \n/* 2188 */ n = paramArrayOfChar1[paramInt1];\n/* 2189 */ i2 = paramArrayOfChar2[paramInt3];\n/* 2190 */ if (n != i2) {\n/* */ break;\n/* */ }\n/* 2193 */ paramInt1++;\n/* 2194 */ paramInt3++;\n/* */ }\n/* */ \n/* */ \n/* 2198 */ int k = i + i4;\n/* 2199 */ int m = j + i5;\n/* */ \n/* */ int i1;\n/* */ int i3;\n/* 2203 */ if ((n >= 55296) && (i2 >= 55296) && (paramBoolean))\n/* */ {\n/* */ \n/* 2206 */ if ((n > 56319) || (paramInt1 + 1 == k) || \n/* */ \n/* 2208 */ (!UTF16.isTrailSurrogate(paramArrayOfChar1[(paramInt1 + 1)])))\n/* */ {\n/* 2210 */ if ((!UTF16.isTrailSurrogate(n)) || (i == paramInt1) || \n/* 2211 */ (!UTF16.isLeadSurrogate(paramArrayOfChar1[(paramInt1 - 1)])))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 2217 */ i1 = (char)(n - 10240);\n/* */ }\n/* */ }\n/* 2220 */ if ((i2 > 56319) || (paramInt3 + 1 == m) || \n/* */ \n/* 2222 */ (!UTF16.isTrailSurrogate(paramArrayOfChar2[(paramInt3 + 1)])))\n/* */ {\n/* 2224 */ if ((!UTF16.isTrailSurrogate(i2)) || (j == paramInt3) || \n/* 2225 */ (!UTF16.isLeadSurrogate(paramArrayOfChar2[(paramInt3 - 1)])))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 2231 */ i3 = (char)(i2 - 10240);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 2236 */ return i1 - i3;\n/* */ }", "private int calculateLevenshtein(String lhs, String rhs) {\n\t\tint len0 = lhs.length() + 1; \n\t int len1 = rhs.length() + 1; \n\t \n\t // the array of distances \n\t int[] cost = new int[len0]; \n\t int[] newcost = new int[len0]; \n\t \n\t // initial cost of skipping prefix in String s0 \n\t for (int i = 0; i < len0; i++) cost[i] = i; \n\t \n\t // dynamically computing the array of distances \n\t \n\t // transformation cost for each letter in s1 \n\t for (int j = 1; j < len1; j++) { \n\t // initial cost of skipping prefix in String s1 \n\t newcost[0] = j; \n\t \n\t // transformation cost for each letter in s0 \n\t for(int i = 1; i < len0; i++) { \n\t // matching current letters in both strings \n\t int match = (lhs.charAt(i - 1) == rhs.charAt(j - 1)) ? 0 : 1; \n\t \n\t // computing cost for each transformation \n\t int cost_replace = cost[i - 1] + match; \n\t int cost_insert = cost[i] + 1; \n\t int cost_delete = newcost[i - 1] + 1; \n\t \n\t // keep minimum cost \n\t newcost[i] = Math.min(Math.min(cost_insert, cost_delete), cost_replace);\n\t } \n\t \n\t // swap cost/newcost arrays \n\t int[] swap = cost; cost = newcost; newcost = swap; \n\t } \n\t \n\t // the distance is the cost for transforming all letters in both strings \n\t return cost[len0 - 1]; \n }", "public boolean isAnagram(String s, String t) {\n HashMap<Character, Integer> map = new HashMap<>();\n\n // Return false if the strings are of different length\n if (s.length() != t.length()) {\n return false;\n }\n\n /**\n * Loop through the string and update the count in the hashmap in the following\n * way Increment the counter for the character from string1 Decrement the\n * counter for the character from string2\n */\n\n for (int i = 0; i < s.length(); i++) {\n map.put(s.charAt(i), map.getOrDefault(s.charAt(i), 0) + 1);\n map.put(t.charAt(i), map.getOrDefault(t.charAt(i), 0) - 1);\n }\n\n /**\n * Check if all characters in the hashmap as 0, if yes, return true, \n * else return false, as it isn't a valid anagram\n */\n\n for (Map.Entry mapElement : map.entrySet()) {\n\n if ((int) mapElement.getValue() != 0) {\n return false;\n }\n\n }\n\n return true;\n }", "static void isAnagram(String s1, String s2) {\n\n String copyOfs1 = s1.replaceAll(\"s\", \"\");\n\n String copyOfs2 = s2.replaceAll(\"s\", \"\");\n\n //Initially setting status as true\n\n boolean status = true;\n\n if (copyOfs1.length() != copyOfs2.length()) {\n //Setting status as false if copyOfs1 and copyOfs2 doesn't have same length\n\n status = false;\n } else {\n //Changing the case of characters of both copyOfs1 and copyOfs2 and converting them to char array\n\n char[] s1Array = copyOfs1.toLowerCase().toCharArray();\n\n char[] s2Array = copyOfs2.toLowerCase().toCharArray();\n\n //Sorting both s1Array and s2Array\n\n Arrays.sort(s1Array);\n\n Arrays.sort(s2Array);\n\n //Checking whether s1Array and s2Array are equal\n\n status = Arrays.equals(s1Array, s2Array);\n }\n\n //Output\n\n if (status) {\n System.out.println(s1 + \" and \" + s2 + \" are anagrams\");\n } else {\n System.out.println(s1 + \" and \" + s2 + \" are not anagrams\");\n }\n }", "@Override\r\n\t\t\tpublic int compare(String s1, String s2) {\n\t\t\t\treturn (s1.length() - s2.length());\r\n\t\t\t}", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "static String appendAndDelete(String s, String t, int k) {\n String [] ss = s.split(\"\");\n String [] tt = t.split(\"\");\n //case 1. String s 를 완전히 지우고 t를 추가하는 경우\n if(s.length()+t.length()<=k){\n return \"Yes\";\n }\n //case 2. String s 를 완전히 지우지 않고 t로 변환 가능 한지 확인\n int i=0;\n for (; i <Math.min(s.length(),t.length()); i++) {\n if (s.charAt(i) != t.charAt(i)) {\n break;\n }\n }\n\n int min = (s.length()-i) + (t.length()-i); // 최소한 1개는 같고 나머지값 삭제,등록\n\n if(k>= min && (k-min)%2 ==0){ //(k-min) %2==0인 조건은 작업 k 개수를 맞추기위해 낭비하는 작업은 추가,삭제 2가지이기 때문에 2로 나눈 나머지가 0이여야 한다.\n return \"Yes\";\n }else{\n return \"No\";\n }\n }", "public boolean testPalindromicity(String s) {\n s = s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n char[] sArr = s.toCharArray();\n\n int i=0;\n while (i < sArr.length-1-i) {\n if (sArr[i] != sArr[sArr.length-1-i])\n return false;\n i++;\n }\n return true;\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isScramble(String s1, String s2) {\n if (s1.length() != s2.length())\n return false;\n \n if (hash.containsKey(s1 + \"#\" + s2))\n return hash.get(s1 + \"#\" + s2);\n \n int n = s1.length();\n if (n == 1) {\n return s1.charAt(0) == s2.charAt(0);\n }\n for (int k = 1; k < n; ++k) {\n if (isScramble(s1.substring(0, k), s2.substring(0, k)) &&\n isScramble(s1.substring(k, n), s2.substring(k, n)) ||\n isScramble(s1.substring(0, k), s2.substring(n - k, n)) &&\n isScramble(s1.substring(k, n), s2.substring(0, n - k))\n ) {\n hash.put(s1 + \"#\" + s2, true);\n return true;\n }\n }\n hash.put(s1 + \"#\" + s2, false);\n return false;\n }", "public static boolean isIsomorphic(String s, String t) {\n int schs[] = new int[256], tchs[] = new int[256], len = s.length();\n for (int i = 0; i < len; ++i) {\n if (schs[s.charAt(i)] != tchs[t.charAt(i)]) return false;\n schs[s.charAt(i)] = i + 1;\n tchs[t.charAt(i)] = i + 1;\n }\n return true;\n }", "private static boolean checkPermutationCountingHashMap(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) return false;\n\n // Keep a track of the characters using a HashMap.\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i = 0; i < s1.length(); i++) {\n // Increment count for characters in s1\n if (map.containsKey(s1.charAt(i))) {\n map.put(s1.charAt(i), map.get(s1.charAt(i)) + 1);\n } else {\n map.put(s1.charAt(i), 1);\n }\n\n // Decrement count for characters in s2\n if (map.containsKey(s2.charAt(i))) {\n map.put(s2.charAt(i), map.get(s2.charAt(i)) - 1);\n } else {\n map.put(s2.charAt(i), -1);\n }\n }\n\n // If there are any characters not present in both, some value would be -1 or 1.\n // This case would imply that the strings are not permutations.\n for (char c : map.keySet()) {\n if (map.get(c) != 0) return false;\n }\n return true;\n }", "private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ) {\n \t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\treturn 0;\n \t\t\t\t\treturn 1;\n \t\t\t\t}\n \t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\treturn -1;\n \t\t\t\tchar ch1 = str1.charAt(p1);\n \t\t\t\tchar ch2 = str2.charAt(p2);\n \t\t\t\tif ( ch1>='0' && ch1<='9' && ch2>='0' && ch2<='9' ) {\n \t\t\t\t\tint n1 = 0;\n \t\t\t\t\tint n2 = 0;\n \t\t\t\t\twhile ( ch1>='0' && ch1<='9' ) {\n \t\t\t\t\t\tp1++;\n \t\t\t\t\t\tn1 = n1 * 10 + (ch1-'0');\n \t\t\t\t\t\tif ( p1>=str1.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch1 = str1.charAt(p1);\n \t\t\t\t\t}\n \t\t\t\t\twhile ( ch2>='0' && ch2<='9' ) {\n \t\t\t\t\t\tp2++;\n \t\t\t\t\t\tn2 = n2 * 10 + (ch2-'0');\n \t\t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch2 = str2.charAt(p2);\n \t\t\t\t\t}\n \t\t\t\t\tint c = cmp(n1, n2);\n \t\t\t\t\tif ( c!=0 )\n \t\t\t\t\t\treturn c;\n \t\t\t\t} else {\n \t\t\t\t\tif ( ch1<ch2 )\n \t\t\t\t\t\treturn -1;\n \t\t\t\t\tif ( ch1>ch2 )\n \t\t\t\t\t\treturn 1;\n \t\t\t\t\tp1++;\n \t\t\t\t\tp2++;\n \t\t\t\t}\n \t\t\t}\n \t\t}", "static String morganAndString(String a, String b) {\n\n\t\tString result = \"\";\n\n\t\tint pointerA = 0, pointerB = 0;\n\n\t\touter:\n\t\t\twhile ( pointerA < a.length() || pointerB < b.length()){\n\t\t\t\tif ( pointerA == a.length()) {\n\t\t\t\t\tresult = result + b.charAt(pointerB++);\n\t\t\t\t}\n\t\t\t\telse if ( pointerB == b.length()) {\n\t\t\t\t\tresult = result + a.charAt(pointerA++);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchar ca = a.charAt ( pointerA );\n\t\t\t\t\tchar cb = b.charAt ( pointerB );\n\n\t\t\t\t\tif ( ca < cb ) {\n\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( cb < ca ){\n\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Find the smallest successor.\n\t\t\t\t\t\tint extraPointer = 1;\n\t\t\t\t\t\twhile ( pointerA + extraPointer < a.length() && pointerB + extraPointer < b.length()){\n\t\t\t\t\t\t\tchar cEa = a.charAt ( pointerA + extraPointer);\n\t\t\t\t\t\t\tchar cEb = b.charAt ( pointerB + extraPointer);\n\n\t\t\t\t\t\t\tif ( cEa < cEb ){\n\t\t\t\t\t\t\t\tresult = result + cEa;\n\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( cEb < cEa ){\n\t\t\t\t\t\t\t\tresult = result + cEb;\n\n\n\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\textraPointer++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// We got to the point in which both are the same.\n\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() && pointerB + extraPointer == b.length()){\n\t\t\t\t\t\t\t// Both are equal. It doesn't matter which one I take it from.\n\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif ( pointerA + extraPointer == a.length() ){\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( b.charAt ( pointerB + extraPointer ) > b.charAt ( pointerB + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// The opposite.\n\t\t\t\t\t\t\t\t// Compare the current one of B with the next letter.\n\t\t\t\t\t\t\t\t// If next letter is smaller than current one, cut from here.\n\t\t\t\t\t\t\t\t// else, cut from A.\n\t\t\t\t\t\t\t\tif ( a.charAt ( pointerA + extraPointer ) > a.charAt ( pointerA + extraPointer + 1)){\n\t\t\t\t\t\t\t\t\tresult = result + ca;\n\t\t\t\t\t\t\t\t\tpointerA++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresult = result + cb;\n\t\t\t\t\t\t\t\t\tpointerB++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn result;\n\n\n\t}", "public static String lcp(String s, String t) {\n int n = Math.min(s.length(), t.length());\n for (int i = 0; i < n; i++) {\n if (s.charAt(i) != t.charAt(i))\n return s.substring(0, i);\n }\n return s.substring(0, n);\n }", "public int numDistinct2(String s, String t)\n {\n return findSubS(s.length()-1, t.length()-1, s, t);\n }", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "public static void main(String[] args) {\n\r\n\t\tString s1=\"abcd\";\r\n\t\tString s2=\"vbvabcdqwe\";\r\n\t\tchar arr1[]=s1.toCharArray();\r\n\t\tchar arr2[]=s2.toCharArray();\r\n\r\n\t\tint flag=0;\r\n\t\tfor(int i=0;i<arr1.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<arr2.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(arr1[i]==arr2[j])\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static boolean isIsomorphic(String s, String t) {\n if(s == null || t == null || s.length() != t.length()) return false;\n HashMap<Character, Character> map = new HashMap<>();\n for(int i = 0; i < s.length(); i++) {\n if(map.containsKey(s.charAt(i))) {\n if(map.get(s.charAt(i)) == t.charAt(i))\n continue;\n else\n return false;\n }\n if(map.containsValue(t.charAt(i)))\n return false;\n map.put(s.charAt(i), t.charAt(i));\n\n }\n return true;\n }", "@Override\npublic int compare(String first, String second) {\n\tint ans= Integer.compare(first.length(), second.length());\n\t//\n\t\n\t\n\t\n\t\n\treturn ans;\n\t//\n\t\n\t\n}", "public boolean isIsomorphic(String s, String t) {\n\n\t\tMap<Character, Character> map = new HashMap<>();\n\t\tMap<Character, Character> tmap = new HashMap<>();\n\n\t\tint i = 0, j = 0, m = s.length(), n = t.length();\n\t\tif (m != n)\n\t\t\treturn false;\n\t\twhile (i < m && j < n) {\n\t\t\tchar sChar = s.charAt(i);\n\t\t\tchar tChar = t.charAt(j);\n\n\t\t\tif (map.containsKey(sChar) && map.get(sChar) != tChar)\n\t\t\t\treturn false;\n\n\t\t\tif (tmap.containsKey(tChar) && tmap.get(tChar) != sChar)\n\t\t\t\treturn false;\n\n\t\t\tif (!tmap.containsKey(tChar)) {\n\t\t\t\ttmap.put(tChar, sChar);\n\t\t\t}\n\n\t\t\tmap.put(sChar, tChar);\n\t\t\ti++;\n\t\t\tj++;\n\n\t\t}\n\t\treturn true;\n\t}", "static String doit(final String string1, final String string2) {\n String shorterString; // a\n String longerString; // b\n if (string1.length() > string2.length()) {\n shorterString = string2;\n longerString = string1;\n } else {\n longerString = string2;\n shorterString = string1;\n }\n String r = \"\";\n\n for (int i = 0; i < shorterString.length(); i++) {\n for (int j = shorterString.length() - i; j > 0; j--) {\n for (int k = 0; k < longerString.length() - j; k++) {\n if (shorterString.regionMatches(i, longerString, k, j) && j > r.length()) {\n r = shorterString.substring(i, i + j);\n }\n }\n } // Ah yeah\n }\n return r;\n\n }", "public boolean isIsomorphic(String s, String t) {\n Map<Character, Integer> maps = new HashMap<>();\n Map<Character, Integer> mapt = new HashMap<>();\n for (Integer i = 0; i < s.length(); i++) {\n if (maps.put(s.charAt(i), i) != mapt.put(t.charAt(i), i)) {\n return false;\n }\n }\n return true;\n }", "public int numDistinct(String s, String t) {\n int m=s.length(), n=t.length();\n if(m<n) {\n return 0;\n }\n int dp[][]=new int[m+1][n+1];\n for(int i=0; i<m+1; i++) {\n Arrays.fill(dp[i], 0);\n }\n for(int i=0; i<m+1; i++) {\n dp[i][0]=1;\n }\n for(int j=1; j<n+1; j++) {\n for(int i=1; i<m+1; i++) {\n if(s.charAt(i-1)==t.charAt(j-1)) {\n // it's the sum of using s.charAt(i-1) as the last match and NOT using it as the last match\n dp[i][j]=dp[i-1][j-1]+dp[i-1][j];\n } else {\n dp[i][j]=dp[i-1][j];\n }\n }\n }\n return dp[m][n];\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "public void BruteForceSimilarity(String s1, String s2, int sLength) {\n\n s1_Array = splitStringIntoArray(s1, sLength);\n s2_Array = splitStringIntoArray(s2, sLength);\n\n// for (int i = 0; i < s1_Array.size(); i++) {\n//// System.out.println(s1_Array.get(i));\n// }\n// System.out.println(\"**************************\");\n//\n// for (int i = 0; i < s2_Array.size(); i++) {\n// System.out.println(s2_Array.get(i));\n// }\n\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint k = input.nextInt();\n\t\tString s = input.next();\n\t\tString smallest = \" \";\n\t\tString largest = \" \";\n\t\tList<String> SubStringsOf_k_Length = new ArrayList<String>();\n\t\tfor(int i=0;(i+k)<=s.length();i++) {\n\t\t\tSubStringsOf_k_Length.add(s.substring(i,i+k));\n\t\t}\n//\t\tSystem.out.println(\"Before Sorting\");\n\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\tSystem.out.println(SubStringsOf_k_Length.size());\n//\t\tCollections.sort(SubStringsOf_k_Length);\n//\t\tSystem.out.println(\"After Sorting\");\n//\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\t\n//\t\tIterator itr = SubStringsOf_k_Length.iterator();\n//\t\t\n//\t\twhile(itr.hasNext()) {\n//\t\t\t\n//\t\t}\n\t\tString temp_largest = SubStringsOf_k_Length.get(0);\n\t\tString temp_smallest = SubStringsOf_k_Length.get(0);\n\t\tfor(int i=0;i<SubStringsOf_k_Length.size();i++) {\n\t\t\tif(temp_largest.compareTo(SubStringsOf_k_Length.get(i))>0 || temp_smallest.compareTo(SubStringsOf_k_Length.get(i))<0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int j=i+1;j<SubStringsOf_k_Length.size();j++) {\n\t\t\t\t\tif(SubStringsOf_k_Length.get(i).compareTo(SubStringsOf_k_Length.get(j))>0) {\n\t\t\t\t\t\tlargest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t\tsmallest=SubStringsOf_k_Length.get(j);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//smallest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_largest = largest;\n\t\t\t\ttemp_smallest = smallest;\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(largest);\n\t\tSystem.out.println(smallest);\n//\t\tfor(int i=1;i<subStrings_Of_k_Length.length;i++) {\n//\t\t\tSystem.out.println(subStrings_Of_k_Length[i-1]);\n//\t\t\tsmallest = subStrings_Of_k_Length[i-1];\n//\t\t\tif((subStrings_Of_k_Length[i].compareTo(smallest))<0) {\n//\t\t\t\tlargest = subStrings_Of_k_Length[i-1];\n//\t\t\t\tsmallest = subStrings_Of_k_Length[i];\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(\"Smallest:\" +smallest);\n//\t\tSystem.out.println(\"Largest:\" +largest);\n\t}", "public static boolean anagram() {\n\t\tboolean isAnagram = false;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter first string\");\n\t\tString string1 = scanner.nextLine();\n\t\tSystem.out.println(\"enter second string\");\n\t\tString string2 = scanner.nextLine();\n\t\tString space1 = string1.replaceAll(\" \",\"\");\n\t\tString space2 = string2.replaceAll(\" \",\"\");\n\t\tString lower1 = string1.toLowerCase();\n\t\tString lower2 = string2.toLowerCase();\n\t\tchar[] array1 = space1.toCharArray();\n\t\tchar[] array2 = space2.toCharArray();\n\t\t\n\t\t\n\t\tif (array1.length == array2.length) \n\t\t{\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array1[i] > array1[j]) {\n\t\t\t\t\t\tchar temp = array1[i];\n\t\t\t\t\t\tarray1[i] = array1[j];\n\t\t\t\t\t\tarray1[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array2[i] > array2[j]) {\n\t\t\t\t\t\tchar temp = array2[i];\n\t\t\t\t\t\tarray2[i] = array2[j];\n\t\t\t\t\t\tarray2[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i; j <=i; j++) {\n\t\t\t\t\tif (array1[i] == array2[j]) {\n\t\t\t\t\t\tcount++;\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\tif (count == array1.length) {\n\t\t\t\tisAnagram=true;\n\n\t\t\t} \n\t\t\telse {\n\t\t\t\tisAnagram = false;\n\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tisAnagram = false;\n\t\t}\n\t\treturn isAnagram;\n\t}", "public int numDistinct(String s, String t) {\n int m = s.length();\n int n = t.length();\n\n int[][] dp = new int[m + 1][n + 1];\n\n // Initialize the first column of dp with 1\n for (int i = 0; i <= m; i++) {\n dp[i][0] = 1;\n }\n\n // Fill the dp array using dynamic programming\n for (int i = 1; i <= m; i++) {\n for (int j = 1; j <= n; j++) {\n if (s.charAt(i - 1) == t.charAt(j - 1)) {\n // If the characters match, we have two choices:\n // 1. Include the current character in both s and t\n // 2. Exclude the current character from s but keep it in t\n dp[i][j] = dp[i - 1][j - 1] + dp[i - 1][j];\n } else {\n // If the characters don't match, we can only exclude the current character from s\n dp[i][j] = dp[i - 1][j];\n }\n }\n }\n\n return dp[m][n];\n }", "static String twoStrings(String s1, String s2) {\n Hashtable<Character, Integer> shortDict = null;\n Hashtable<Character, Integer> longDict = null;\n \n boolean isCommonSubset = false;\n \n String longerString = s1.length() >= s2.length() ? s1 : s2;\n String shorterString = s1.length() < s2.length() ? s1 : s2;\n \n longDict = prepareHashtable(longerString);\n shortDict = prepareHashtable(shorterString);\n \n for (char ch: shortDict.keySet()) {\n if (longDict.containsKey(ch)) {\n isCommonSubset = true;\n break;\n }\n }\n \n return isCommonSubset ? \"YES\" : \"NO\";\n }", "private static boolean checkPermutationCountingArray(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] characterCount = new int[128];\n for (int i = 0; i < s1.length(); i++) {\n characterCount[s1.charAt(i)]++;\n characterCount[s2.charAt(i)]--;\n }\n for (int i = 0; i < characterCount.length; i++) {\n if (characterCount[i] != 0) return false;\n }\n return true;\n }", "public String sortString(String s) {\n List<Character> characters = s.chars().mapToObj(c -> (char) c).collect(Collectors.toList());\n // Sort the input O(logN)\n Collections.sort(characters);\n StringBuilder result = new StringBuilder();\n\n // Iterator over entire input array\n while(!characters.isEmpty()) {\n Set<Character> seenChars = new HashSet();\n // Pick the smallest character from s and append it to the result\n char smallestChar = characters.remove(0);\n result.append(smallestChar);\n seenChars.add(smallestChar);\n\n Iterator<Character> sortedIterator = characters.iterator();\n while (sortedIterator.hasNext()) {\n char c = sortedIterator.next();\n if (!seenChars.contains(c)) {\n result.append(c);\n seenChars.add(c);\n // Remove this character from input\n sortedIterator.remove();\n }\n }\n if (result.length() == s.length()) {\n break;\n }\n\n seenChars = new HashSet();\n char largest = characters.remove(characters.size() - 1);\n result.append(largest);\n seenChars.add(largest);\n\n // Pick the largest character from s and append it to the result\n ListIterator<Character> reverseIterator = characters.listIterator(characters.size());\n while (reverseIterator.hasPrevious()) {\n char c = reverseIterator.previous();\n if (!seenChars.contains(c)) {\n result.append(c);\n seenChars.add(c);\n reverseIterator.remove();\n }\n }\n if (result.length() == s.length()) {\n break;\n }\n }\n\n return result.toString();\n }", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "boolean isPermutationBuckets(String s1, String s2) {\n\t\tint[] countsS1 = new int[256];\n\t\tint[] countsS2 = new int[256];\n\t\t\n\t\tif(s1.length() != s2.length()) return false;\n\t\tfor(int i = 0; i < s1.length(); ++i) {\n\t\t\tchar c1 = s1.charAt(i);\n\t\t\tchar c2 = s2.charAt(i);\n\t\t\t++countsS1[c1];\n\t\t\t++countsS2[c2];\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < countsS1.length; ++i) {\n\t\t\tif(countsS1[i] != countsS2[i]) return false;\n\t\t}\n\t\treturn true;\n\t}", "public int numDistinct(String s, String t) {\n if(t.length()>s.length())return 0;\n int [][]dp = new int[t.length()+1][s.length()+1];\n for(int j=0;j<s.length();j++)dp[0][j]=1;\n for(int j=1;j<t.length();j++)dp[j][0]=0;\n for(int i=1;i<=t.length();i++){\n for(int j=1;j<=s.length();j++){\n dp[i][j] =dp[i][j-1];\n if(s.charAt(j-1)==t.charAt(i-1)){\n dp[i][j] +=dp[i-1][j-1];\n }\n }\n }\n return dp[t.length()][s.length()];\n }", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\r\n\r\n Map<Character, Character> map = new HashMap<>();\r\n Set<Character> assignedValues = new HashSet<>();\r\n for (int i = 0; i < s.length(); i++) {\r\n if (map.containsKey(s.charAt(i)) && map.get(s.charAt(i)) != t.charAt(i)) {\r\n return false;\r\n }\r\n if (!map.containsKey(s.charAt(i)) && assignedValues.contains(t.charAt(i))) {\r\n return false;\r\n }\r\n map.put(s.charAt(i), t.charAt(i));\r\n assignedValues.add(t.charAt(i));\r\n }\r\n return true;\r\n }", "public static boolean checkPermutation(String str1, String str2) {\n if (str1.length() != str2.length()) // imediate check if string is not the same length, obviously false\n return false;\n // null check as well\n int[] arr = new int[256]; // ascii\n for (int i = 0; i < str1.length(); i++) { // for all chars in the first list\n char temp = str1.charAt(i); // get the char at the index\n int index = temp; // get the int val for the char\n arr[index] = arr[index] + 1; // increase an array at that index by 1\n }\n for (int i = 0 ; i < str1.length(); i++) { // for all values in the second string\n char temp = str2.charAt(i); // get the char at the index\n int index = temp; // get the val for that char\n arr[index] = arr[index] - 1; // decrement the array at the index by 1\n if (arr[index] < 0) // if the string has incorrect amount of letters,\n return false; // the array should have -1, which will return false\n }\n return true; // else return true\n }" ]
[ "0.72938305", "0.724049", "0.7065459", "0.69572157", "0.69106716", "0.6882692", "0.6836495", "0.65994644", "0.6570536", "0.6492206", "0.64709294", "0.6451883", "0.64132077", "0.63676614", "0.63644236", "0.63619334", "0.63577056", "0.6350187", "0.6328196", "0.6325302", "0.6319953", "0.63194203", "0.6300736", "0.62950754", "0.6273361", "0.62683594", "0.62561744", "0.6240423", "0.62050563", "0.6195383", "0.61870086", "0.6185158", "0.6172145", "0.6154671", "0.6153753", "0.61468536", "0.61464536", "0.61421454", "0.61392725", "0.61376315", "0.6134762", "0.61320937", "0.6122646", "0.61147517", "0.61011326", "0.6098949", "0.60953516", "0.60870665", "0.60815233", "0.6077676", "0.60717833", "0.60684234", "0.6068129", "0.6060625", "0.60594577", "0.60505474", "0.6042158", "0.6040434", "0.60386026", "0.6030352", "0.6029768", "0.60264724", "0.60251975", "0.6022896", "0.6020724", "0.6007417", "0.60027975", "0.59773195", "0.59763783", "0.59715176", "0.59610724", "0.5948254", "0.59475565", "0.59461004", "0.5943809", "0.5943442", "0.5942749", "0.59399", "0.59186715", "0.5909939", "0.5900148", "0.58952594", "0.58937246", "0.5887027", "0.5885442", "0.58840954", "0.5881442", "0.58733356", "0.5870622", "0.58675593", "0.58635014", "0.5844361", "0.58430654", "0.5841045", "0.5837566", "0.58363837", "0.58303976", "0.5829654", "0.5821668", "0.5819289" ]
0.6455424
11
the assumption is all elements in a[] are different
public static int count(int[] a) { sort(a); int N = a.length; // print out the sorted array System.out.print("Sorted array: "); for (int i = 0; i < N; i++) { System.out.print(a[i] + " "); } System.out.println(); int count = 0; for (int i = 0; i < N; i++) { int j = i + 1; int k = N - 1; while (j < k) { if (a[i] + a[j] + a[k] == 0) { System.out.println(i + "," + j + "," + k); count++; j++; } else if (a[i] + a[j] + a[k] > 0) { k--; } else { j++; } } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean RepVec(String []a){\n boolean rep=false;\n String aux1=\"\",aux2=\"\";\n for (int i = 0; i < a.length; i++) {\n aux1=a[i];\n for (int j = 0; j < a.length; j++) {\n aux2=a[j];\n if( i!=j ){ \n if(aux1==aux2){\n rep=true;\n return rep;\n } \n } \n }\n }\n return rep;\n \n }", "private static int[] removeDuplicateII(int[] a) {\n\t\tif (a.length < 3)\n\t\t\treturn a;\n\n\t\tint i = 0;\n\t\tint j = 1;\n\t\tint k = 2;\n\n\t\twhile (k < a.length) {\n\t\t\tif (a[i] == a[j] && a[j] == a[k]) {\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t\ta[i] = a[j];\n\t\t\t\tj++;\n\t\t\t\ta[j] = a[k];\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\n\t\tint[] b = Arrays.copyOf(a, i + 2);\n\t\treturn b;\n\t}", "private static boolean allElementsEqual(Mark[] array) {\n\t\t\n\t\tboolean areEqual = true;\n\t\t\n for(int i=0 ; i < array.length; i++) {\n \t\n \t\n \tif (array[i] == null) {\n \t\tareEqual = false;\n \t\tbreak;\n \t}\n \t\n if(!array[0].equals(array[i])) {\n areEqual = false;\n break;\n }\n }\n\n return areEqual;\n }", "public static int[][] remDupli(int[] a)\n {\n \tArrays.sort(a);\n \tprint1D(a);\n \tint[] b=new int[a.length];\n \tint j=0;\n \tfor(int i=0;i<a.length-1;i++)\n \t{\n \t\tif(a[i]==a[i+1]) continue;\n \t\telse {\n \t\t\tb[j]=a[i];\n \t\t\tif(i+1==a.length-1 && b[j]!=a[i+1])\n \t\t\t{\n \t\t\t\tj++;\n \t\t\t\tb[j]=a[i+1];\n \t\t\t}\n \t\t\tj++;\n \t\t}\n \t}\n \t//print1D(b);\n \tint[][] x=new int[2][];\n \tx[0]=b;\n \tint[] y= {j};\n \tx[1]= y;\n \treturn x;\n }", "@Test(testName = \"duplicateElementsFromOneArrays\")\n\t public static void commonElementsFromOneArray() \n\t {\n\t int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2};\n\t \n\t for (int i = 0; i < my_array.length-1; i++)\n\t {\n\t for (int j = i+1; j < my_array.length; j++)\n\t {\n\t if ((my_array[i] == my_array[j]) && (i != j))\n\t {\n\t System.out.println(\"Duplicate Element : \"+my_array[j]);\n\t }\n\t }\n\t }\n\t }", "private static int[] removeDuplicates(int[] a) {\n\t\tif (a.length < 2) return a;\n\n\t\tint i = 0;\n\t\tint j = 1;\n\n\t\twhile (j < a.length) {\n\t\t\tif (a[i] == a[j]) {\n\t\t\t\tj++;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t\ta[i] = a[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Arrays.toString(a));\n\t\tint[] b = Arrays.copyOf(a, i + 1);\n\t\treturn b;\n\t}", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\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\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "public static void main(String[] args) {\nint arr[]= {4,3,4,5,6,77,77,2,4,9,2};\nint uniqueelem=arr.length;\n//int arrclean[]=new int[arr.length];\nfor(int i=0;i<uniqueelem;i++)\n{\n\tfor(int j=i+1;j<uniqueelem;j++)\n\t{\n\t\tif(arr[i]==arr[j])\n\t\t{\n\t\t\t\n\t\t\tarr[j]=arr[uniqueelem-1];\n\t\t\tuniqueelem--;\n\t\t\tj--;\n\t\t}\n\t}\n}\n\nint arrclean[]=Arrays.copyOf(arr, uniqueelem);\n\nSystem.out.println(Arrays.toString(arrclean));\n\t}", "public static void main(String[] args) {\nArrayList<String> al1= new ArrayList<String>();\nal1.add(\"a\");\nal1.add(\"b\");\nal1.add(\"a\");\nal1.add(\"d\");\nal1.add(\"e\");\nal1.add(\"e\");\n\nArrayList<String> al2=new ArrayList<String>();\nal2.add(\"a\");\nal2.add(\"e\");\n\n// al1.removeAll(al2); --> b/d\nal1.retainAll(al2);\n\nfor(String a:al1)\nSystem.out.println(a);\n}", "@Test\r\n public void repeatedValuesTest() {\r\n int[] unsorted = new int[]{1,33,1,0,33,-23,1,-23,1,0,-23};\r\n int[] expResult = new int[]{-23,-23,-23,0,0,1,1,1,1,33,33};\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }", "private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "private static void fromUnsortedArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates2(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}", "boolean areTheyEqual(int[] array_a, int[] array_b) {\n if(array_a == null || array_b == null || array_a.length!=array_b.length) return false;\n\n HashMap<Integer,Integer> count = new HashMap<>();\n for(int x : array_a){\n count.put(x, count.getOrDefault(x,0)+1);\n }\n for(int y : array_b){\n count.put(y, count.getOrDefault(y,0)-1);\n if(count.get(y)==0) count.remove(y);\n }\n return count.size()==0;\n }", "private static int[] removeElement(int[] a, int i) {\n\t\tint[] b = new int[a.length-1];\n\t\tint k = 0;\n\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\tif (j != i) {\n\t\t\t\tb[k++] = a[j];\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "public static void main(String[] args) {\n\t\tint a[] = {4,4,4,5,5,5,6,6,6,9};\n\t\t\n\t\tArrayList<Integer> ab = new ArrayList<Integer>();\n\t\t\n\t\tfor(int i=0; i<a.length; i++)\n\t\t{\n\t\t\tint k =0;\n\t\t\tif(!ab.contains(a[i]))\n\t\t\t{\n\t\t\t\tab.add(a[i]);\n\t\t\t\tk++;\n\t\t\t\tfor(int j=i+1; j<a.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==a[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(a[i]);\n\t\t\t//System.out.println(k);\n\t\t\tif(k==1)\n\t\t\t\tSystem.out.println(a[i] +\" is unique number \");\n\t\t}\n\t\t\n\t}", "private static void usingLinkedHashSet()\n\t{\n Integer[] numbers = new Integer[] {1,2,3,4,5,1,3,5};\n \n //This array has duplicate elements\n System.out.println( Arrays.toString(numbers) );\n \n //Create set from array elements\n LinkedHashSet<Integer> linkedHashSet = new LinkedHashSet<>( Arrays.asList(numbers) );\n \n //Get back the array without duplicates\n Integer[] numbersWithoutDuplicates = linkedHashSet.toArray(new Integer[] {});\n \n //Verify the array content\n System.out.println( Arrays.toString(numbersWithoutDuplicates) );\n\t}", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "static int equalizeArray(int[] arr) {\n \n int a[]=new int[arr.length];\n int max=0;\n for(int i=0;i<arr.length;i++){\n int c=0; \n for(int j=0;j<arr.length;j++){\n if(arr[i]==arr[j]){\n c++;\n }\n }\n if(max<c) max=c;\n }\n return arr.length-max;\n }", "public String[] delDupl(String[] arr) {\n int count = 0;\n\n for (int i = 0; i < arr.length - 1; i++) {\n if (arr[i] == null) {\n continue;\n }\n if (count == arr.length - 1) {\n break;\n }\n for (int j = i + 1; j < arr.length; j++) {\n if (arr[i].equals(arr[j])) {\n arr[j] = null;\n count++;\n }\n }\n }\n\n expectArray = new String[arr.length - count];\n\n return reqArray(arr, expectArray);\n }", "static int[] removeElement(int[] a, int b){\n int newSize = a.length - countElement(a,b);\n // create an empty array with the new size\n int[] newArray = new int[newSize];\n // we need a index to know at what position in the new array we need to\n // put first element\n // logically, the first position is 0\n int tempIndex = 0;\n // we go through all elements of old array to find\n // those which need to be put in the new array\n for(int i = 0; i < a.length; i++){\n // once we find one\n if(b != a[i]){\n // we add it to the new array at new index\n newArray[tempIndex] = a[i];\n // increment the index so that the next element we find\n // we put it at the next index, otherwise\n // we'd put everything in position 0\n tempIndex++;\n }\n }\n return newArray;\n }", "public static int[] removeDuplicates(int[] a) {\n\t int length = a.length;\n\t \n\t /*Sort the array*/\n\t Arrays.sort(a);\n\t \n\t int fillPos = 1;\n\t for (int i = 1; i < length; ++i) {\n\t if (a[i] != a[i - 1]) {\n\t a[fillPos] = a[i];\n\t fillPos++;\n\t }\n\t }\n\t \n\t int[] result = Arrays.copyOf(a, fillPos);\n\t return result;\n\t}", "private static void usingTempArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}", "public static void removeDuplicates(int[] a)\r\n\t\t{\r\n\t\t\tLinkedHashSet<Integer> set\r\n\t\t\t\t= new LinkedHashSet<Integer>();\r\n\r\n\t\t\t// adding elements to LinkedHashSet\r\n\t\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t\t\tset.add(a[i]);\r\n\r\n\t\t\t// Print the elements of LinkedHashSet\r\n\t\t\tSystem.out.print(set);\r\n\t\t}", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString[] niz = { \"abc\",\"bcd\",\"efg\",\"ijk\",\"lmn\",\"abc\",\"bcd\"};\n\n\t\tfor(int i=0;i<niz.length-1;i++) {\n\t\t\tfor(int j=i+1;j<niz.length;j++) {\n\t\t\t\tif(niz[i]== niz[j] && (i !=j)) { // moze ici i ovako if( (my_array[i].equals(my_array[j])) && (i != j) )\n\t\t\t\t\tSystem.out.println(\"dupli elementi su : \" + niz[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void removeDuplitcate(List<Integer> a)\n\t{\n\t\tif(a==null ||a.size()==0 ) return ;\n\t\t\n\t\tHashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\t\t\n\t\tfor(int i=a.size()-1;i>=0;i--)\n\t\t{\n\t\t\tif(hm.containsKey(a.get(i)))\n\t\t\t{\n\t\t\t\ta.remove(i);\n\t\t\t}\n\t\t\telse hm.put(a.get(i), 1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}", "private boolean done(Complex[] a, Complex[] b) {\n\t\tboolean unchanged = true;\n\t\tComplex delta;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tdelta = a[i].subtract(b[i]);\n\t\t\tunchanged &= Math.abs(delta.getReal()) < epsilon\n\t\t\t\t\t&& Math.abs(delta.getImaginary()) < epsilon;\n\t\t}\n\t\treturn unchanged;\n\t}", "public static void main(String[] args) {\n\t\tint a1[] = new int[] {4,9,5};\n\t\tint a2[] = new int[] {9,4,9,8,4 }; \n//\t\tArrays.sort(a1);\n//\t\tArrays.sort(a2);\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int i=0;i<a1.length;i++){\n\t\t\tfor(int j=i;j<a2.length;j++){\n\t\t\t\tif(a1[i]!=a2[j]){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(a1[i]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(Integer l:list){\n\t\t\tSystem.out.print(l+\" \");\n\t\t}\n\n\t}", "public static int[] duplicateReplacer(int[] arr) {\n for (int i = 0;i<arr.length;i++){\n for (int x = 0;x<i;x++){\n if (arr[x] == arr[i]) {\n arr[i] = -1;\n break;\n }\n }\n }\n return arr;\n }", "public static boolean equalsArray(int[] a, int[] b){\n\t\t\tif (a.length != b.length) return false;\n\t\t\t\telse{\n\t\t\t\t\tint i = 0;\n\t\t\t\t\twhile (i < a.length){\n\t\t\t\t\t\tif (a[i] != b[i]) return false;\n\t\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static boolean vaihdaTaulukot(int[] taulu1, int[] taulu2) {\n int valitaulu[] = new int[taulu1.length];\n \n if (taulu1.length == taulu2.length) {\t/*\n for (int i=0; i< taulu1.length; i++) {\n valitaulu[i] = taulu1[i];\n }\n taulu1 = taulu2;*/\n\n System.arraycopy(taulu1, 0, valitaulu, 0, taulu1.length);\n //System.out.println(\"Valitaulu : (pitäisi alkaa 1:llä) \" + tauluMerkkijonoksi(valitaulu));\n System.arraycopy(taulu2, 0, taulu1, 0, taulu1.length);\n //System.out.println(\"Taulu1 : (pitäisi alkaa 10:llä) \" + tauluMerkkijonoksi(taulu1));\n System.arraycopy(valitaulu, 0, taulu2, 0, taulu1.length);\n \n //System.out.println(\"Taulu2 : (pitäisi alkaa 1:llä) \" + tauluMerkkijonoksi(taulu2));\n \n //taulu2 = valitaulu;\n }\n return true;\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "public static void main(String[] args) {\n int[] arr={1,2,2,2,3,4,4,45}; // 1 3 45\n int[] array={};\n int j=0;\n for (int each:arr){\n int count=0;\n for (int i = 0; i <arr.length ; i++) {\n if (each==arr[i]){\n count++;\n }\n }\n if (count==1){\n System.out.println(each+\" \");\n // array[j++]=each;\n }\n }\n System.out.println(Arrays.toString(array));\n }", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "private static boolean compareByteArray(byte[] a1, byte[] a2, int length){\n for (int i = 0 ; i < length ; i++){\n if(a1[i] != a2[i])\n return false;\n else\n System.out.println(\"-------------------GOOD ---[ \"+ i);// log feedback\n }\n return true;\n }", "public static void main(String[] args) {\n\t\tint a[] = { 1, 2, 3, 6, 7, 8, 2, 3 };\r\n\r\n\t\tSystem.out.println(\"The Duplicates in the array is: \");\r\n\t\t\r\n\t\t//1 1\r\n\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tfor (int j=i+1; j < a.length; j++) {\r\n\t\t\t\tif (a[i] == a[j]) {\r\n\t\t\t\t\tSystem.out.println(a[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int a[]={1,2,3,4,4,3,2,6,6,9,9,6,7,4,7};\n\n ArrayList<Integer> al= new ArrayList<Integer>();\n\n for (int i =0;i<a.length;i++){\n int k=0;\n if (!al.contains(a[i])){\n al.add(a[i]);\n k++;\n\n for (int j=0;j<a.length;j++){\n if(a[i]==a[j]){\n k++;\n }\n }\n System.out.println(\"The number \"+ a[i] +\"repeats \"+ k+\" number of times.\");\n if (1==k)\n System.out.println(a[i]+ \" is the unique number.\");\n }\n\n\n }\n\n\n\n }", "public static int unique(String[] a) {\n\t\treturn unique(a,0,a.length);\n\t}", "private static <Key extends Comparable<Key>> void exch(Key[] a, int i, int j)\n\t{\n\t\tKey tmp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = tmp;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tArrayList <String> objArray = new ArrayList<String>();\r\n\t\tArrayList <String> objArray2 = new ArrayList<String>();\r\n\t\t\r\n\t\tobjArray2.add(0, \"common1\");\r\n\t\tobjArray2.add(1, \"common2\");\r\n\t\tobjArray2.add(2, \"notcommon0\");\r\n\t\tobjArray2.add(3, \"notcommon1\");\r\n\r\n\t\tobjArray.add(0, \"common1\");\r\n\t\tobjArray.add(1, \"common2\");\r\n\t\tobjArray.add(2, \"notcommon2\");\r\n\t\t\r\n\t\tSystem.out.println(\"Array elements of Array1\"+objArray);\r\n\t\tSystem.out.println(\"Array elements of Array2\"+objArray2);\r\n\t\t\r\n\t\tobjArray.retainAll(objArray2);\r\n\t\t// retainAll : objArray의 객체를 남겨라. 그러나 objArray2 중에서 공통된것만 남기고 나머지는 없애라.\r\n\t\t// 양쪽 배열에 공통적으로 포함되있는 것만을 뽑고 싶을 때, retainAll이라는 메소드펑션을 사용하는 것이다.\r\n\t\t\r\n\t\tSystem.out.println(\"Array1 after retaining common elements of Array1 & Array2\"+objArray);\r\n\r\n//\t\t결과\r\n//\t\tArray elements of Array1[common1, common2, notcommon2]\r\n//\t\tArray elements of Array2[common1, common2, notcommon0, notcommon1]\r\n//\t\tArray1 after retaining common elements of Array1 & Array2[common1, common2]\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n int[] a = {4, 6, 3};\n int[] b = {6, 4, 3};\n System.out.println(areSimilar(a, b));\n\n }", "public static void main(String[] args) {\n\n String[] array = {\"AAA\", \"BBB\", \"ABA\", \"ABB\", \"AAA\", \"ABB\", \"ABB\"};\n\n\n for (\n int i = 0;\n i < array.length - 1; i++)\n {\n for (int j = i + 1; j < array.length; j++) {\n\n if ((array[i].equals(array[j])) && (i != j)) {\n System.out.println(\"Дублирующийся элемент \" + array[j]);\n }\n }\n }\n }", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "public static int unique(int[] a) {\n\t\treturn unique(a,0,a.length);\n\t}", "public static List<String> getRepetitiveElements(String[] array)\n {\n if (array == null) return null;\n\n // variable -> each index maps to a linkedlist containing the values\n List<Integer>[] hashMap = new ArrayList[array.length];\n List<String> duplicateSet = new ArrayList<>();\n int index;\n int n = array.length;\n String curString;\n for (int i = 0; i < array.length; i++) {\n curString = array[i];\n index = curString.hashCode()%n;\n if (hashMap[index] == null) {\n hashMap[index]=new ArrayList<>(); // store the i index\n hashMap[index].add(i); // put in i within the arrayList\n } else { // index is not null\n List<Integer> matchingIndice = hashMap[index];\n boolean hit = false;\n for (Integer mi: matchingIndice) {\n if (array[mi].compareTo(curString)==0) {\n // collision, and the string matches, we are happy\n if (!duplicateSet.contains(curString)) { // this is O(m) where m is # of duplicate strings in the set\n duplicateSet.add(curString);// found duplicate string\n }\n hit = true;\n break; // exit -> found a match\n }\n }\n if (!hit) {\n matchingIndice.add(i); // put i into the linkedlist\n hashMap[index] = matchingIndice;\n }\n }\n }\n\n return duplicateSet;\n }", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "int main()\n{\nint a,b,count=0;\ncin>>a>>b;\nint arr1[a],arr2[b];\n for(int i=0;i<a;i++)\n {\ncin>>arr1[i];\n }\n for(int i=0;i<b;i++)\n {\ncin>>arr2[i];\n }\n if(a==b)\n {\n for(int i=0;i<a;i++)\n {\n if(arr1[i]==arr2[i])\n {\n count++;\n }\n }\n if(count==a)\n {\ncout<<\"Same\";\n }\n else\n {\ncout<<\"Not Same\";\n }\n }\n else\n {\ncout<<\"Not Same\";\n}\n}", "private static void exch(Object[] a, int i, int j) {\r\n Object swap = a[i];\r\n a[i] = a[j];\r\n a[j] = swap;\r\n }", "public static void invert(int[] a) {\r\n\t\tint n = a.length;\r\n\t\tint j = n - 1;\r\n\t\tfor (int i = 0; i < j; i++) {\r\n\t\t\tint tmp = a[i];\r\n\t\t\ta[i] = a[j];\r\n\t\t\ta[j] = tmp;\r\n\t\t\tj--;\r\n\t\t}\r\n\t}", "private static void missRepeat1(int[] a) {\n\t\tint miss = -1;\n\t\tint repeat = -1;\n\t\tint[] b = new int[a.length];\n\t\t\n\t\tfor(int x : a) {\n\t\t\tif(b[x-1] != 0) {\n\t\t\t\trepeat = x;\n\t\t\t}\n\t\t\tb[x-1]++;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length; i++) {\n\t\t\tif(b[i]==0) {\n\t\t\t\tmiss = i+1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(repeat + \" \" + miss);\n\t}", "private static void __exercise36(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = i + StdRandom.uniform(N - i);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }", "private Student[] doubler(Student[] a){\n Student[] newArray = new Student[2*(a.length)];\n for(int i = 0; i<a.length; i++){\n newArray[i] = a[i];\n }\n return newArray;\n }", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static int[] uniqueElements(int[] arr) {\n boolean[] duplicateMap = new boolean[arr.length];\n int duplicate = 0;\n int index=0;\n int[]result;\n\n for (int x = 0; x < arr.length; x++) {\n for (int j = 0; j < arr.length; j++) {\n if (x == j) {\n break;\n }\n if (arr[x] == arr[j]) {\n duplicateMap[x] = true;\n duplicateMap[j]=false;\n duplicate++;\n }\n }\n }\n result=new int[arr.length-duplicate];\n for(int k=0; k< arr.length;k++){\n if(!duplicateMap[k]){\n result[index]=arr[k];\n index++;\n }\n }\n\n return result;\n }", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "private static void findDuplicatesBruteForce(int[] arr) {\n\t\t\n\t\tfor(int i = 0; i< arr.length ; i++)\n\t\t{\n\t\t\tfor ( int j = i+1 ; j < arr.length ; j++)\n\t\t\t{\n\t\t\t\tif(arr[i] == arr[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(arr[i] + \" is duplicate by brute force method\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "@VisibleForTesting\n static boolean isAnyAppIdUnwhitelisted(int[] prevArray, int[] newArray) {\n boolean prevFinished;\n int i1 = 0;\n int i2 = 0;\n while (true) {\n prevFinished = i1 >= prevArray.length;\n boolean newFinished = i2 >= newArray.length;\n if (!prevFinished && !newFinished) {\n int a1 = prevArray[i1];\n int a2 = newArray[i2];\n if (a1 == a2) {\n i1++;\n i2++;\n } else if (a1 < a2) {\n return true;\n } else {\n i2++;\n }\n } else if (!prevFinished) {\n return false;\n } else {\n return newFinished;\n }\n }\n if (!prevFinished) {\n }\n }", "private static void exch(Comparable[] a, int i, int j) {\n Comparable swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "boolean hasIsEquivalent();", "public static void main(String[] args) {\n\t\tint[] a1 = {1,2,3,4,5,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a1));\n\t\tint[] a2 = {1,2,3,4,6,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a2));\n\n\t}", "public abstract ParallelLongArray allUniqueElements();", "private static void __exercise37(final int[] a) {\n final int N = a.length;\n for (int i = 0; i < N; ++i) {\n final int r = StdRandom.uniform(N);\n final int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public void l()\r\n/* 606: */ {\r\n/* 607:650 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 608:651 */ this.a[i] = null;\r\n/* 609: */ }\r\n/* 610:653 */ for (i = 0; i < this.b.length; i++) {\r\n/* 611:654 */ this.b[i] = null;\r\n/* 612: */ }\r\n/* 613: */ }", "private static <Key extends Comparable<Key> > void exch(Key []a, int i, int j){\n Key tmp=a[i-1];\n a[i-1]=a[j-1];\n a[j-1]=tmp;\n }", "static void FindDuplicate(String[] strArray){\n\t\t\n\t\tHashSet<String> set = new HashSet<String>();\n\t\t\n\t\tfor(String arrayElement : strArray){\n\t\t\tif(!set.add(arrayElement))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Duplicate Element is: \"+ arrayElement);\n\t\t\t}\n\t\t}\n\t}", "private Vector<Integer> matchCheckPoint(List<Point> a) {\t\t\t\n\t\tVector<Integer> iDS= new Vector<>();\n\t\tfor(Point p :a) {\n\t\t\tif(!getAsphalt(p.x, p.y,this.trk).isIdDefalt()) {\n\t\t\t\tiDS.add(getAsphalt(p.x, p.y,this.trk).getId());\n\t\t\t}\n\t\t}\n\t\treturn iDS;\n\t}", "public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }", "public static void findMultipleDupes(int[] arr){\n\n for(int i : arr){\n \n if(arr[Math.abs(i)] > 0){\n arr[Math.abs(i)] = -arr[Math.abs(i)];\n }else\n System.out.println(Math.abs(i));\n }\n\n}", "@Test(testName = \"duplicateElementsFromTwoArrays\")\n\t public static void commonElementsFromArrays(){\n\t int[] arr1 = {4,7,3,9,2};\n\t int[] arr2 = {3,2,12,9,40,32,4};\n\t for(int i=0;i<arr1.length;i++){\n\t for(int j=0;j<arr2.length;j++){\n\t if(arr1[i]==arr2[j]){\n\t System.out.println(arr1[i]);\n\t }\n\t }\n\t }\n\t }", "public static void main(String[] args) {\n\t\tint[][] a = {{1,2},{3,4,5}};\r\n\t\tint b[][] = {{1,1,1,1},{1}};\r\n//\t\tSystem.arraycopy(a, 2, b, 2, 3);\r\n//\t\tSystem.out.println(Arrays.toString(b));\r\n\t\tSystem.out.println(Arrays.deepEquals(a, b));\r\n\t}", "static int[] removeDuplicatesPreservingOrder(int[] A) {\n\t\tint l = A.length;\n\t\tif (l == 0)\n\t\t\treturn new int[] {};\n\n\t\tHashSet<Integer> set = new HashSet<Integer>();\n\n\t\tint resIdx = 0, currIdx = 0;\n\n\t\twhile (currIdx < l) {\n\t\t\tif (!set.contains(A[currIdx])) {\n\t\t\t\tset.add(A[currIdx]);\n\n\t\t\t\tA[resIdx] = A[currIdx];\n\t\t\t\tresIdx++;\n\t\t\t}\n\n\t\t\tcurrIdx++;\n\t\t}\n\n\t\tint[] result = new int[resIdx];\n\n\t\t// trim rest of the elements\n\t\tSystem.arraycopy(A, 0, result, 0, resIdx);\n\n\t\treturn result;\n\t}", "@Override\n\t\tpublic int compareTo(ArrayContainer ac) {\n\t\t\treturn this.a[index] - ac.a[ac.index];\n\t\t}", "private int[] removeDuplicate() {\n\n\t\t//Add int array elements to HashSet\n\t\tSet<Integer> temp = new HashSet<Integer>();\n\t\t\n\t\tfor(int num : randomIntegers){\n\t\t\ttemp.add(num);\n\t\t}\n\n\t\t//convert LinkedHashSet to integer array\n\t\tint[] uniqueNumbers = new int[temp.size()];\n\t\tint i = 0;\n\t\t\n\t\tfor (Iterator<Integer> iterator = temp.iterator(); iterator.hasNext();) {\n\t\t\tuniqueNumbers[i++] = iterator.next();\n\t\t}\n\n\t\treturn uniqueNumbers;\n\t}", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "protected static void exch(Comparable[] a, int i, int j) {\n\t\t\r\n\t\tComparable temp = a[i];\r\n\t\ta[i] = a[j];\r\n\t\ta[j] = temp;\r\n\t\t\r\n\t}", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tint[] a={1,2,3,4,5};\r\n\t\tint[] b={2,3,7,8,9,4,5};\r\n\t\tfor(int i=0;i<a.length;i++){\r\n\t\t\tfor(int j=0;j<b.length;j++){\r\n\t\t\t\tif(a[i]==b[j])\r\n\t\t\t\t\tSystem.out.println(b[j]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private static Image[] removeSameElements(Image[] original, Image toRemove) {\n ArrayList<Image> toReturn = new ArrayList<>();\n for(Image i: original) {\n if (!areImagesSame(i, toRemove)) {\n toReturn.add(i);\n }\n }\n toReturn.add(toRemove); // ensure the last Image in the Image[] is the original toRemove\n toReturn.trimToSize(); // ensure size is reduced all the way\n Image[] newArray = new Image[toReturn.size()];\n return toReturn.toArray(newArray);\n }", "public ArrayList<Integer> sameValues(int[] values){\n\t\tArrayList<Integer> pairedValues = new ArrayList<Integer>();\n\t\tArrays.sort(values);\n\t\tint i = 1;\t\t\t \n\t\twhile(i<values.length){\n\t\t\tif (values[i]-values[i-1] == 0){\t\t\t\t\t\n\t\t\t\tpairedValues.add(values[i]);\n\t\t\t}\n\t\t\ti++;\t\n\t\t}\n\t\treturn pairedValues;\n\t}", "void findDifferIndexFromStringArray(String[] arr1 , String[] arr2){\n\t\tif (arr1.length == arr2.length) {\n\t\t\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\t\t\tif (arr1[i]!= arr2[i]) {\n\t\t\t\t\t\tSystem.out.println(\"Values are not matching at index -> \"+i +\", [arr1 value is \" +arr1[i] +\", arr2 Value is\"+ arr2[i] +\"]\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\telse \n\t\t\tSystem.out.println(\"Length are not Equal \");\t\n\t\t}", "private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "public static void main(String args[]) {\n\t\t\n\t\tint arr[]= {1,2,3,2,3,4,5,4,6};\n\t\t\n\t\tSystem.out.print(\"The original including the duplicate elements is: \");\n\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" \\n \");\n\t\t\n//\t\tThe search for the duplicate array begins here.\n\t\t\n\t\tSystem.out.print(\"The array of duplicate elements are the following: \");\n\t\t\n\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\t\n\t\t\tfor(int j=i+1;j<arr.length;j++) {\n\t\t\t\tif(arr[i]==arr[j]) {\n\t\t\t\t\tSystem.out.print(arr[j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "private static void missRepeat2(int[] a) {\n\t\tint miss = -1;\n\t\tint repeat = -1;\n\t\t\n\t\tfor(int x : a) {\n\t\t\tif(a[Math.abs(x)-1] > 0) {\n\t\t\t\ta[Math.abs(x)-1] = - a[Math.abs(x)-1];\n\t\t\t}\n\t\t\telse if (a[Math.abs(x)-1] < 0){\n\t\t\t\trepeat = Math.abs(x);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\tif(a[i]>0) {\n\t\t\t\tmiss = i+1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(repeat + \" \" + miss);\n\t}", "private static boolean slowEquals(byte[] a, byte[] b) {\r\n int diff = a.length ^ b.length;\r\n for (int i = 0; i < a.length && i < b.length; i++) {\r\n diff |= a[i] ^ b[i];\r\n }\r\n return diff == 0;\r\n }", "public boolean same1(int[] c, int[] g) \n\t{\n\t\tfor(int x = 0; x<18; x++) //loop through the boards\n\t\t{\n\t\t\tif(c[x] != g[x]) //if one value is not the same in the afrra return false\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;//if they all are the same return true\n\t}", "@Test\r\n\tpublic void test1() {\r\n\t\tint[] nums = {1,2,3,1,4};\r\n\t\tAssert.assertEquals(true, containsDuplicate(nums));\r\n\t}", "public List<Integer> getRepetitiveElementsUnBounded(int[] array) {\n if (array== null) return null;\n\n List<Integer> result = new ArrayList<>();\n Arrays.sort(array); // complexity: O(nlogn)\n\n int startIndex = 0;\n // O(n)\n while (startIndex < array.length) {\n while (startIndex+1 < array.length && array[startIndex] == array[startIndex+1]){\n startIndex++;\n }\n if (startIndex-1 >= 0 && array[startIndex-1] == array[startIndex]) {\n result.add(array[startIndex]);\n }\n startIndex++;\n }\n return result;\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "void findLeadrsInArray1(int[] a){\n\t\tint n = a.length;\n\t\tboolean flag = true;\n\t\tfor(int i =0;i<n;i++){\n\t\t\tfor(int j=i+1;j<n;j++){\n\t\t\t\tif(a[i] < a[j]){\n\t\t\t\t\tflag = false; \n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag != false){\n\t\t\t\tSystem.out.println(a[i]);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint a[]= {2,5,7,4,7};\n\t\tint b[]= {3,6,1,4,7};\n\t\tArrayList<Integer> al= new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//condition to matching element in both array\t\n\t\tif(a[i]==b[i]) {\n\t\t\t\n\t\t\t//create arraylist to add all matching element in a list\n\t\t\tal.add(a[i]);\n\t\t\t\n\t\t}\n\t\t}\n\t\t//again convert it to array using toArray()\n\t\tObject[] c=al.toArray();\n\t\t//used for each to iterate each element \n\t\tfor(Object obj: c) {\n\t\t\t\n\t\t\n\t\tSystem.out.println(obj);\n\t\t\n\t\t\n\t}\n\n\t}" ]
[ "0.68888634", "0.65231", "0.6467812", "0.6425589", "0.6333656", "0.6289289", "0.62615925", "0.62407184", "0.60220927", "0.60145676", "0.5997038", "0.59634364", "0.59533304", "0.5887015", "0.5879661", "0.5872793", "0.5850803", "0.5846037", "0.5806474", "0.5754974", "0.5750831", "0.5745251", "0.574283", "0.5704628", "0.57003313", "0.5656938", "0.5647139", "0.56363565", "0.5629076", "0.56165", "0.56056345", "0.5602494", "0.5563926", "0.5550228", "0.55477893", "0.5529603", "0.55098975", "0.5509415", "0.55093366", "0.5496458", "0.5486009", "0.5486006", "0.54770404", "0.54761916", "0.5473507", "0.5471831", "0.5458136", "0.5457437", "0.54543096", "0.54480547", "0.5444015", "0.54405075", "0.5437135", "0.5435458", "0.5429013", "0.542303", "0.54200757", "0.54200757", "0.54200757", "0.54192835", "0.54052067", "0.54018015", "0.5400713", "0.5395217", "0.5393749", "0.5382326", "0.53691375", "0.5368489", "0.536378", "0.5356177", "0.5348301", "0.5337429", "0.5335031", "0.53341925", "0.5330696", "0.53206724", "0.5318942", "0.5303228", "0.5301431", "0.53006876", "0.5296765", "0.52894366", "0.52876294", "0.52787244", "0.5273941", "0.5273933", "0.5269047", "0.52665347", "0.5261368", "0.52556455", "0.5252025", "0.52500945", "0.52473736", "0.52468467", "0.52380925", "0.523771", "0.52176225", "0.5217213", "0.52125865", "0.52103287", "0.52077675" ]
0.0
-1
shuffle to avoid worst case scneario
private static void sort(int[] a) { shufle(a); // we use quicksort here because there's no need for stability sort(a, 0, a.length - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffle();", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "void shuffle();", "void shuffle();", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public void shuffle() {\n\t\t\n\t\tRandom random = new Random();\n\t\tint position;\n\t\t\n\t\tfor(int i = 0; i < 200 * dimension; i++) {\n\t\t\tposition = random.nextInt(numTiles - 1);\n\t\t\tif(isValidMove(position)) {\n\t\t\t\tmakeMove(position);\n\t\t\t}\n\t\t}\n\t\t\n\t\tnumMoves = 0;\n\t}", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "public void shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(Math.random()*(i+1));\r\n SpoonsCard temp = deck.get(i);\r\n deck.set(i, deck.get(rand));\r\n deck.set(rand, temp);\r\n }\r\n cardsUsed = 0;\r\n }", "public abstract void shuffled();", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "public void shuffle() {\n Collections.shuffle(this);\n }", "public void shuffle() {\n Collections.shuffle(this.plateau);\n }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }", "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "@Override\n\tpublic void shuffleDeck() {\n\t\tfor(int i = 0; i < 1000000; i++) {\n\t\t\tint randomStelle1 = (int) (Math.random() * 32);\n\t\t\tint randomStelle2 = (int) (Math.random() * 32);\n\t\t\tPlayingCard copy = aktuellesDeck[randomStelle1];\n\t\t\taktuellesDeck[randomStelle1] = aktuellesDeck[randomStelle2];\n\t\t\taktuellesDeck[randomStelle2] = copy;\n\t\t}\n\t}", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "public boolean shuffleNeeded();", "public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}", "public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }", "private void randomizePuzzle() {\n\t\t// Choose random puzzles, shuffle the options.\n\t\tthis.puzzle = BarrowsPuzzleData.PUZZLES[(int) (Math.random() * BarrowsPuzzleData.PUZZLES.length)];\n\t\tthis.shuffledOptions = shuffleIntArray(puzzle.getOptions());\n\t}", "public void shuffle() {\n Collections.shuffle((List<Nummer>) this.albumNummers);\n }", "private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder.set(i, order.get(j));\n\t\t\torder.set(j, pi);\n\t\t}\n\t}", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "public void shuffle() {\n\t\tCollections.shuffle(Shoe);\n\t}", "public void shuffle()\n {\n Collections.shuffle(artefacts);\n }", "public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }", "public void shuffle()\r\n\t{\r\n\t\tCollections.shuffle(_tiles);\r\n\t}", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}", "private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }", "public void shuffle()\r\n/* 18: */ {\r\n/* 19:41 */ for (int i = 0; i < this.pop.size(); i++)\r\n/* 20: */ {\r\n/* 21:43 */ Cluster c = (Cluster)this.pop.elementAt(i);\r\n/* 22:44 */ g.setClusters(c.getClusterVector());\r\n/* 23:45 */ g.shuffleClusters();\r\n/* 24:46 */ c.setClusterVector(g.getClusters());\r\n/* 25:47 */ c.setConverged(false);\r\n/* 26: */ }\r\n/* 27: */ }", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "private static void shuffleArray(int[] ar) {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "public void shuffle(){\n\t\t\n\t\tArrayList<Boolean> used = new ArrayList<Boolean>();\n\t\tArrayList<Integer> copyStones = new ArrayList<Integer>();\n\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\tcopyStones.add(gameStones.get(e));\n\t\t\tused.add(false);\n\t\t}\n\t\tfor(int e : copyStones){\n\t\t\tchar l = stoneChars.get(e);\n\t\t\tboolean placed = false;\t\t\n\t\t\twhile(!placed){\n\t\t\t\tint randNumber = (int) (Math.random() * 7);\n\t\t\t\tif(!used.get(randNumber)){\n\t\t\t\t\tgameStones.set(randNumber, e);\n\t\t\t\t\tstoneLetters.set(randNumber, l);\n\t\t\t\t\tused.set(randNumber, true);\n\t\t\t\t\tplaced = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }", "public int[] shuffle() {\n if (nums == null) {\n return null;\n }\n int[] a = nums.clone();\n for (int j = 1; j < a.length; j++) {\n // 类似蓄水池采样算法\n // i == j -> 1/(1+j)\n // j != j -> (1 - 1/(1+j)) * (1/j) = 1/(1/j)\n int i = random.nextInt(j + 1);\n swap(a, i, j);\n }\n return a;\n }", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "private static void scrambleArray(int[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) // use unpredictable random shuffle\n\t\t{\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else // use repeatable math formula for shuffle\n\t\t{\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}", "public int[] shuffle() {\n for (int i = nums.length - 1; i >= 0; i--) {\n swap(i, rnd.nextInt(i + 1));\n }\n \n return nums;\n }", "public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "private static void shuffleArray(int[] array)\n {\n int index, temp;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "public int[] shuffle() {\n\t\tRandom r = new Random();\n\t\tfor (int i = 0; i < this.nums.length; i++) {\n\t\t\tint index = r.nextInt(this.nums.length);\n\t\t\tif (i != index) {\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t\tnums[index] = nums[i] ^ nums[index];\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "@Override\n public void shuffle() {\n System.out.println(\"shuffling the shoe...\");\n Collections.shuffle(this.cards);\n }", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public void Shuffle() {\n int i = 0;\n while (i < 52) {\n int rando = (int) (5.0 * (Math.random()));\n Cards temp = deck[rando];\n deck[rando] = deck[i];\n deck[i] = temp;\n i++;\n }\n\n Arrays.stream(deck).forEach(c -> System.out.format(\"%s,\",c));\n }", "public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int[] shuffle() {\n\n Random random = new Random();\n int posizioneRandom;\n int i = 0;\n int[] shuffleArray = new int[soluzione.length];\n\n while(i < soluzione.length){\n\n posizioneRandom = random.nextInt(soluzione.length);\n\n if(shuffleArray[posizioneRandom] == 0){\n\n shuffleArray[posizioneRandom] = soluzione[i];\n i++;\n }\n\n continue;\n\n\n }\n\n soluzione = shuffleArray;\n\n return soluzione;\n\n }", "private void shuffle() {\n\t\tint[] temp = new int[ROW];\n\t\tint row, col, decider, indexToSwapWith;\n\n\t\t// Shuffle as many we want.\n\t\tfor (int i = 0; i < SHUFFLE; i++) {\n\t\t\t// Decide which line to shuffle (ex. row or column).\n\t\t\tdecider = rand.nextInt(2);\n\n\t\t\tif (decider == 0) { // Swaps row.\n\t\t\t\trow = rand.nextInt(9);\n\n\t\t\t\tif (row < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides row to swap with.\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (row < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcol = rand.nextInt(9);\n\n\t\t\t\tif (col < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (col < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }", "private void shuffleOnceRandom(){\n\t\t//You need to have a copy of the deck before you shuffled it so you can reference\n\t\t//It when you are trying to replace the new values\n\t\tList<Card> beforeShuffle = ourDeck.makeCopy().getCurrentDeck();\n\t\t//The topIndex tells us where we are in reference to the top half of the deck\n\t\t//Same with bottom this helps us reference the original deck to get whatever\n\t\t//Card we need and the deckIndex helps us put it in the correct spot\n\t\tint topIndex = 0, bottomIndex = ourDeck.getSize() / 2, deckIndex = 0;\n\t\t//These ints help us keep track of how many cards are left in each half\n\t\tint remainingTop = ourDeck.getSize() / 2, remainingBot = ourDeck.getSize() / 2;\n\t\tboolean shouldLoop = true;\n\t\t//This is the shuffling loop\n\t\twhile(shouldLoop){\n\t\t\t//This means the number coming from the specific deck which in this method is random\n\t\t\tint numTop = generator.nextInt(RAND_BOUND), numBot = generator.nextInt(RAND_BOUND);\n\t\t\t//After we determine the random number of cards we're using we have to do some checks\n\t\t\t//This means we wanted more than there was less therefore the stack is out\n\t\t\t//This is the stopping condition for the loop\n\t\t\tif(numTop >= remainingTop){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(numBot >= remainingBot){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t//This is where I replace the newCard into ourDeck\n\t\t\t//I iterate for the number of times we take from the top or bottom\n\t\t\tfor(int i = 1; i <= numTop; i++){\t\n\t\t\t\tCard newCard = beforeShuffle.get(topIndex);\t//I get the card we want to move\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\t\t//Then I move it to the new deckIndex\n\t\t\t\ttopIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tfor(int i = 1; i <= numBot; i++){\n\t\t\t\tCard newCard = beforeShuffle.get(bottomIndex);\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\n\t\t\t\tbottomIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tremainingTop = remainingTop - numTop;\n\t\t\tremainingBot = remainingBot - numBot;\n\t\t}\n\t}", "public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }", "static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }", "public void shuffle () {\n this.lives = 6;\n this.attempts.clear();\n this.victory = false;\n this.lose = false;\n Random r = new Random ();\n this._word = _dictionary[r.nextInt(_dictionary.length)];\n // this._word = _dictionary[2]; // Testing purposes\n this.hint.setLength(0);\n for (int i = 0; i < _word.length(); i++) {\n this.hint.append(\"_ \");\n } \n }", "public void shuffle(){\n\t\tfor(int i=0;i<1000||blank!=9;i++){\r\n\t\t\tif \t\t(blank == 1) shuffleAux(2,4,0,0,2);\t\t\t\t\r\n\t\t\telse if (blank == 2) shuffleAux(1,3,5,0,3);\r\n\t\t\telse if (blank == 3) shuffleAux(2,6,0,0,2);\r\n\t\t\telse if (blank == 4) shuffleAux(1,5,7,0,3);\t\t\t\r\n\t\t\telse if (blank == 5) shuffleAux(2,4,6,8,4);\r\n\t\t\telse if (blank == 6) shuffleAux(3,5,9,0,3);\r\n\t\t\telse if (blank == 7) shuffleAux(4,8,0,0,2);\t\t\t\r\n\t\t\telse if (blank == 8) shuffleAux(5,7,9,0,3);\r\n\t\t\telse if (blank == 9) shuffleAux(6,8,0,0,2);\r\n\t\t}\r\n\t}", "static void shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "static public <T> void shuffle(T[] a, RNG rng) {\r\n\r\n for (int i = a.length - 1; i > 0; i--) {\r\n int j = (int) rng.random((i + 1));\r\n //System.out.println(j);\r\n T x = a[i];\r\n a[i] = a[j];\r\n a[j] = x;\r\n }\r\n \r\n }", "void shuffle() {\r\n cards.addAll(dealtCards);\r\n dealtCards.removeAll(dealtCards);\r\n Collections.shuffle(cards);\r\n System.out.println(\"Shuffled cards\" + cards);\r\n }", "private void reshuffleDiscardPile() {\n ICard topCard = discardPile.pop();\n\n drawPile.addAll(discardPile);\n Collections.shuffle(drawPile, rng);\n\n discardPile.clear();\n discardPile.add(topCard);\n }", "public void shuffle() {\n deck.clear();\n deck.addAll(allCards);\n Collections.shuffle(deck, new Random(System.nanoTime()));\n }", "public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }", "public static void shuffle(int data[]) {\n\n }", "public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }", "public void shuffleCards() {\n Collections.shuffle(suspectCards);\n Collections.shuffle(weaponCards);\n Collections.shuffle(roomCards);\n\n }", "@Test\n public void testShuffle() {\n System.out.println(\"shuffle\");\n // can't really test something random\n }", "public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}" ]
[ "0.7943672", "0.7872671", "0.7841667", "0.7841667", "0.7626503", "0.76101655", "0.75154656", "0.7494708", "0.74839884", "0.7476577", "0.7468383", "0.73991627", "0.734207", "0.7327059", "0.7307463", "0.7300375", "0.7285667", "0.72821456", "0.727858", "0.7268608", "0.7267551", "0.7263339", "0.7260581", "0.7259537", "0.72556365", "0.7243577", "0.7241787", "0.72277135", "0.7212252", "0.71875584", "0.71858525", "0.71654564", "0.7162875", "0.71568465", "0.715448", "0.71533555", "0.71344495", "0.7133361", "0.7130669", "0.71298814", "0.71266913", "0.710433", "0.7103688", "0.7095296", "0.7083812", "0.7074771", "0.705", "0.7036515", "0.7032311", "0.7015517", "0.70139503", "0.70133203", "0.70133203", "0.7009845", "0.70090497", "0.69987136", "0.6996074", "0.6992459", "0.698879", "0.698695", "0.69725215", "0.6968069", "0.69656026", "0.6948747", "0.69447666", "0.69437057", "0.6913791", "0.6911386", "0.6889055", "0.68812263", "0.68803275", "0.6876898", "0.6859048", "0.6851313", "0.6840038", "0.6827938", "0.6827312", "0.6822944", "0.6785243", "0.67841667", "0.6779539", "0.67631096", "0.674606", "0.6730569", "0.6720823", "0.67012805", "0.66998124", "0.66979676", "0.66963226", "0.6687609", "0.667975", "0.66783005", "0.6674339", "0.6674313", "0.6673537", "0.6662146", "0.66537046", "0.6644625", "0.6632887", "0.6632363", "0.6631413" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent = new Intent(); intent.setClass(MainActivity.this, ControlActivity.class); MainActivity.this.startActivity(intent); finish(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
protected void start() { hellotv.setText(""); Map<String, Object> params = new LinkedHashMap<String, Object>(); String event = null; event = SpeechConstant.ASR_START; if (enableOffline) { params.put(SpeechConstant.DECODER, 2); } params.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false); //params.put(SpeechConstant.PID, 1737);//English String json = null; json = new JSONObject(params).toString(); asr.send(event, json, null, 0, 0); printresult("输入参数"+ json); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onEvent(String name, String params, byte[] data, int offset, int length) { String result = "name:" + name; //if(params != null && !params.isEmpty()){ // result+=";params:"+params; //} if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_PARTIAL)){ if(params.contains("\"final_result\"")){ result += "\n"+"语义解析结果:" + params.substring(45, 47); if(result.contains("前进")){ Toast.makeText(MainActivity.this,"识别出了前进!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_FORWARD); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("后退")){ Toast.makeText(MainActivity.this,"识别出了后退!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_BACKWARD); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("左转")){ Toast.makeText(MainActivity.this,"识别出了左转!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_LEFT); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("右转")){ Toast.makeText(MainActivity.this,"识别出了右转!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_RIGHT); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("停")){ Toast.makeText(MainActivity.this,"识别出了停止!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_STOP); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("避障")){ Toast.makeText(MainActivity.this,"识别出了避障!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_AVOID); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("跟踪")){ Toast.makeText(MainActivity.this,"识别出了跟踪!",Toast.LENGTH_SHORT).show(); try{ Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); socketWriter= socket.getOutputStream(); socketWriter.write(COMM_FOLLOW); socketWriter.flush(); } catch(Exception e){ e.printStackTrace(); Toast.makeText(MainActivity.this, "Try to send message to car!", Toast.LENGTH_SHORT).show(); } } if(result.contains("抓取")){ Toast.makeText(MainActivity.this,"识别出了抓取!",Toast.LENGTH_SHORT).show(); Intent intent = new Intent(); intent.setClass(MainActivity.this, GraspActivity.class); MainActivity.this.startActivity(intent); finish(); System.exit(0); } } }else if(data != null){ result += ";data length=" + data.length; } /*if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_READY)){ result +="引擎准备就绪,可以开始说话"; }else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_BEGIN)){ result += "检测到用户已经开始说话"; }else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_END)){ result += "检测到用户已经停止说话"; }else if (data != null) { result += " ;data length=" + data.length; }*/ //show the result printresult(result); }
{ "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
Gets the city value for this Organization.
public java.lang.String getCity() { return city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCity() {\n return (String) get(\"city\");\n }", "public String getCity() {\n return (String)getAttributeInternal(CITY);\n }", "public String getCity() {\n\t\treturn this.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\treturn city;\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() {\r\n\t\treturn city;\t\t\r\n\t}", "public java.lang.String getCity() {\n return City;\n }", "public java.lang.String getCity () {\n\t\treturn city;\n\t}", "public java.lang.String getCity() {\r\n return city;\r\n }", "public String getCity() {\n return city;\n }", "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\t{\n\t\treturn City;\n\t\t\n\t}", "public String getLocationCity() {\n return locationCity;\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 String getCity() {\n\t\treturn this.city;\n\t}", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public Integer getCity() {\n return city;\n }", "public Integer 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 String getCity() {\n return city;\n }", "public String getCity() {\n return City;\n }", "public String getCorpCity() {\n return corpCity;\n }", "public String getCity()\n {\n \treturn city;\n }", "public String getCity() {\n return city;\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 String getCityCode() {\n return (String)getAttributeInternal(CITYCODE);\n }", "public CityEntry getCity(){\n\t\treturn (CityEntry)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_LINK);\n\t}", "@Override\n\tpublic java.lang.String getCity() {\n\t\treturn _candidate.getCity();\n\t}", "@Override\n public String getCity() {\n return this.city;\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public String getContactCity() {\n return contactCity;\n }", "@AutoEscape\n\tpublic String getCity();", "public City getCity() {\n return city;\n }", "public String getOriginCityName() {\n return origin.getCityName();\n }", "public String getJobCity() {\r\n return jobCity;\r\n }", "public String getCityName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_NAME);\n\t}", "public Long getOriginCityId() {\n return origin.getCityId();\n }", "public String getCityCode() {\n return cityCode;\n }", "public String getCityCode() {\n return cityCode;\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCityno() {\n return cityno;\n }", "public String getAccountCityName() {\n return accountCityName;\n }", "public String getCityFieldName() {\n return getStringProperty(CITY_FIELD_NAME_KEY);\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "public String getCityName() {\n return cityName;\n }", "public String getCityName() {\n return cityName;\n }", "public static String getOpenCity() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn city;\n\t}", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "public String getDepartCity() {\n\t\treturn departCityElement.getAttribute(\"value\");\n\t}", "public String getCityId() {\r\n return cityId;\r\n }", "public String getSrcCity() {\r\n return (String) getAttributeInternal(SRCCITY);\r\n }", "public String getHospitalCity() {\n return hospitalCity;\n }", "public String getCityId() {\n return cityId;\n }", "public java.lang.String getCitycode() {\n\t\treturn _dmHistoryMaritime.getCitycode();\n\t}", "public Long getCityId() {\n return cityId;\n }", "String getCity();", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "java.lang.String getRegisteredOfficeCity();", "public String getArrivalCity() {\n\t\treturn arrivalCityElement.getAttribute(\"value\");\n\t}", "public String getAreaCityCode() {\n return areaCityCode;\n }", "public String getCity(){\n return city;\n }", "public String getCity(){\n return city;\n }", "public String getCityname() {\n return cityname;\n }", "public String getCity_id() {\n return city_id;\n }", "public String getCity() {\n\n return \" \\n\" +\n \" B BB \\n\" +\n \" BB BBBB \\n\" +\n \" BBBB BBB BBBBBBB \\n\" +\n \" BBBbBBBB BBBBbbbbBBBBB \\n\" +\n \" BBBbbbBBBBBbbbbbbBBBBBBB\\n\" +\n \" BBbbbbbbbBBbbbbbbbBBBBBBB\\n\" +\n \"BBbbbbbLLLbbbbbbbLbbbbbBBBB\\n\" +\n \"BbbbbLLLLLLLLLLLLLLbbbbbbbB\\n\";\n }", "public String getDestinationCityName() {\n return destination.getCityName();\n }", "java.lang.String getCityName();", "@ApiModelProperty(value = \"City of IP address\")\n public String getCity() {\n return city;\n }", "public java.lang.String getCityPostalcode () {\n\t\treturn cityPostalcode;\n\t}", "public java.lang.String getCityName() {\n java.lang.Object ref = cityName_;\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 cityName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getCityName() {\n java.lang.Object ref = cityName_;\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 cityName_ = s;\n return s;\n }\n }", "public Long getDestinationCityId() {\n return destination.getCityId();\n }", "public String getAdmCity() {\n return admCity;\n }", "public String getCityLink(){\n\t\treturn (String)this.entryMap.get(GeoKeys.LOCAL_GEO_CITY_LINK);\n\t}", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "private String getCurrentCity(double lat, double longitude) {\n String currentCity = \"\";\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(lat,longitude,1);\n currentCity = addresses.get(0).getLocality();\n } catch(IOException e){\n e.printStackTrace();\n }\n return currentCity;\n }", "public java.lang.String getReceiverCity() {\r\n return receiverCity;\r\n }", "public java.lang.String getCITY1()\n {\n \n return __CITY1;\n }", "public String getCreatecity() {\n return createcity;\n }", "public Short getCityId() {\r\n return cityId;\r\n }" ]
[ "0.81543916", "0.79602826", "0.78014594", "0.7780688", "0.7780688", "0.7780688", "0.7780688", "0.7775878", "0.7775878", "0.77312946", "0.77151406", "0.77097243", "0.76958543", "0.766109", "0.7657789", "0.76388574", "0.7556762", "0.7546482", "0.75131696", "0.75131696", "0.75131696", "0.7492616", "0.7473672", "0.747277", "0.747277", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.74602294", "0.7453651", "0.74171525", "0.73980033", "0.7346511", "0.73413706", "0.73413706", "0.73413706", "0.7280136", "0.72676724", "0.72318375", "0.7213174", "0.7178371", "0.7131838", "0.71191645", "0.71060187", "0.7078245", "0.7077359", "0.7070102", "0.70115024", "0.69816315", "0.69816315", "0.69087964", "0.6881343", "0.68683594", "0.68477833", "0.6847775", "0.6827606", "0.6827606", "0.6793855", "0.6786802", "0.67594105", "0.67485744", "0.6742168", "0.6712231", "0.6700591", "0.6687523", "0.6680905", "0.6678987", "0.66713214", "0.66404897", "0.66404897", "0.66260934", "0.66254425", "0.6613254", "0.66107816", "0.66107816", "0.66013086", "0.6574995", "0.6548259", "0.6540771", "0.6520434", "0.65169054", "0.64991516", "0.6496159", "0.6469317", "0.6452797", "0.6437442", "0.6427999", "0.63970673", "0.6393992", "0.63695455", "0.63414633", "0.63375443", "0.6327455" ]
0.77540064
10
Sets the city value for this Organization.
public void setCity(java.lang.String city) { this.city = city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCity(String value) {\n setAttributeInternal(CITY, value);\n }", "public void setCity(City city) {\n this.city = city;\n }", "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(City city) {\n\t\tthis.city = 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) {\n this.City = City;\n }", "public void setCity(String city)\n\t{\n\t\tCity = 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) {\r\n this.city = city;\r\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(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);", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "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}", "@Override\n public void setCity(String a) {\n this.city = a;\n }", "public void setLocationCity(String locationCity) {\n this.locationCity = locationCity;\n }", "public void setSrcCity(String value) {\r\n setAttributeInternal(SRCCITY, value);\r\n }", "@Override\n\tpublic void setCity(java.lang.String city) {\n\t\t_candidate.setCity(city);\n\t}", "public void setCorpCity(String corpCity) {\n this.corpCity = corpCity;\n }", "public void setCityFieldName(final String value) {\n setProperty(CITY_FIELD_NAME_KEY, value);\n }", "public Address city(String city) {\n this.city = city;\n return this;\n }", "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 abstract void setCity(String sValue);", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public void setContactCity(String contactCity) {\n this.contactCity = contactCity;\n }", "@SuppressWarnings(\"All\")\n void setCity(String city){\n prefs.edit().putString(\"city\", city).commit();\n }", "public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }", "public void setCityCode(String value) {\n setAttributeInternal(CITYCODE, value);\n }", "public void setCity(String s) {\r\n\t\tstate = s;\t\t\r\n\t}", "public boolean setCity(String someCity) {\n if (VMSPro.checkString(someCity)) {\n this.city = someCity;\n return true;\n }\n return false;\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 setCityId(String cityId) {\n this.cityId = cityId;\n }", "public String getCity() {\r\n\t\treturn city;\t\t\r\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\treturn city;\n\t}", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public String getCity() {\n return city;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public void setCityName(String cityName) {\n this.cityName = cityName;\n }", "public void setCityName(String cityName) {\n this.cityName = cityName;\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() {\n\t\treturn this.city;\n\t}", "public void setCurrentCity(City newCity) {\n\t\tcurrentCity = newCity;\n\t\tchange();\n\t}", "public Builder setCityName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cityName_ = value;\n onChanged();\n return this;\n }", "public void setCityname(String cityname) {\n this.cityname = cityname;\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "public void setCityno(String cityno) {\n this.cityno = cityno == null ? null : cityno.trim();\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\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 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 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\t{\n\t\treturn city;\n\t}", "public void setCity( EAIMMCtxtIfc theCtxt, java.lang.String theCity) throws EAIException;", "@ApiModelProperty(value = \"City of IP address\")\n public String getCity() {\n return city;\n }", "public void setCityCode(String cityCode) {\n this.cityCode = cityCode == null ? null : cityCode.trim();\n }", "public String getCity() {\n return city;\n }", "public void setCITY1(java.lang.String value)\n {\n if ((__CITY1 == null) != (value == null) || (value != null && ! value.equals(__CITY1)))\n {\n _isDirty = true;\n }\n __CITY1 = value;\n }", "public Builder clearCityName() {\n \n cityName_ = getDefaultInstance().getCityName();\n onChanged();\n return this;\n }", "@Override\n\tpublic void setCityId(int CityId) {\n\t\t_locMstLocation.setCityId(CityId);\n\t}", "public PersonAddressBuilderDFB in(String city){\n person.city = city;\n return this;\n }", "public void SetCheckoutRegistrationcity(String city){\r\n\t\tString Address = getValue(city);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration City should be entered as \"+Address);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"BycheckoutregistrationCity\"),Address);\r\n\t\t\tSystem.out.println(\"Registration City is entered as \"+Address);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration City is entered as \"+Address);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration City is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationCity\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public String getCity() {\n return City;\n }", "public void setCity(AirportDTO airportDTO, Airport airport) {\n City cityFound = cityDAO.findCityByName(airportDTO.getCityDTO().getName());\n if (cityFound != null) {\n airport.setCity(cityFound);\n } else {\n City city = new City();\n city.setName(airportDTO.getCityDTO().getName());\n setCountry(airportDTO, city);\n airport.setCity(city);\n }\n }" ]
[ "0.7670501", "0.76246333", "0.75675035", "0.75675035", "0.75467163", "0.753441", "0.753441", "0.753441", "0.753441", "0.753441", "0.753441", "0.752025", "0.7499718", "0.7499718", "0.74823713", "0.7477186", "0.7434478", "0.7428167", "0.74218047", "0.73966336", "0.73950636", "0.73950636", "0.73950636", "0.73950636", "0.73767835", "0.7375656", "0.7375656", "0.7375656", "0.7375656", "0.7375656", "0.72930884", "0.72930884", "0.721009", "0.6951013", "0.6871143", "0.6867475", "0.6832546", "0.67985964", "0.67945546", "0.6760767", "0.6720327", "0.6717065", "0.6662277", "0.66595894", "0.6606627", "0.65958846", "0.6556671", "0.6554064", "0.64982086", "0.6456738", "0.6456738", "0.6397193", "0.6383751", "0.6374763", "0.6374763", "0.6374763", "0.6374763", "0.6359731", "0.635577", "0.6348151", "0.6325405", "0.6325405", "0.62587416", "0.62587416", "0.62587416", "0.6238845", "0.6221984", "0.6217846", "0.61977595", "0.61937505", "0.61912024", "0.61845857", "0.6183901", "0.61670667", "0.61670667", "0.61670667", "0.6154472", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6150392", "0.6147422", "0.6119788", "0.61106193", "0.61048526", "0.60931516", "0.6045819", "0.6038005", "0.6032164", "0.6028277", "0.6023674", "0.60142004", "0.5982895" ]
0.74184036
20
Gets the complianceBccEmail value for this Organization.
public java.lang.String getComplianceBccEmail() { return complianceBccEmail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setComplianceBccEmail(java.lang.String complianceBccEmail) {\n this.complianceBccEmail = complianceBccEmail;\n }", "public Bcc bcc() {\n if (_bcc == null)\n _bcc = new Bcc(this, Keys.BCC_MANIFEST_BCC_ID_FK);\n\n return _bcc;\n }", "public String getConsigneeAddress() {\n return consigneeAddress;\n }", "public List<String> getBcc() {\n return bcc;\n }", "public AddressList getBcc() {\n return getAddressList(FieldName.BCC);\n }", "public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }", "public java.lang.String getStudent_contactEmail() {\n\t\treturn _primarySchoolStudent.getStudent_contactEmail();\n\t}", "public String returnEmail() {\n\t\treturn this.registration_email.getAttribute(\"value\");\r\n\t}", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 1) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 1) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getContactEmail() {\r\n return this.contactEmail;\r\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 1) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 1) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 1) {\n ref = deliveryMethod_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (deliveryMethodCase_ == 1) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getEmail() {\n\t\t\tjava.lang.Object ref = email_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\temail_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n }\n return s;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getConsignee() {\n return consignee;\n }", "public String getConsignee() {\n return consignee;\n }", "public java.lang.String getEmail() {\n\t\t\t\tjava.lang.Object ref = email_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\temail_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public static String getRecipientEmail() {\n return recipientEmail;\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n email_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString getEmailBytes() {\n\t\t\t\tjava.lang.Object ref = email_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\n\t\t\t\t\temail_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}", "@AutoEscape\n\tpublic String getEmailCom();", "public String getEmailAccount() {\n return emailAccount;\n }", "public final String getEmail() {\n\t\treturn email;\n\t}", "public java.lang.String getEmailAddress() {\n return EmailAddress;\n }", "public String getContactEmail() {\n return contactEmail;\n }", "public com.google.protobuf.ByteString getEmailBytes() {\n\t\t\tjava.lang.Object ref = email_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n\t\t\t\temail_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}", "public String getSmtpEmailTo() {\n return smtpEmailTo;\n }", "public String getInvalidEmailMessage() {\n if (invalidEmail) {\n return getInvalidMessage(INVALID_EMAIL_MSG);\n }\n return \"\";\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 1) {\n ref = deliveryMethod_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 1) {\n deliveryMethod_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final String getEmail() {\n return email;\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\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 email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\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 email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\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 email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "@java.lang.Override\n public java.lang.String getEmail() {\n java.lang.Object ref = email_;\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 email_ = s;\n return s;\n }\n }", "public String getEmail() {\n\t\treturn Email;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getEmailBytes() {\n java.lang.Object ref = email_;\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 email_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCorpEmail() {\n return corpEmail;\n }", "public String getApplicantemail() {\n return applicantemail;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "public java.lang.CharSequence getEmailAddress() {\n return email_address;\n }", "public String getEmail() {\n return sp.getString(USER_EMAIL, null);\n }", "public java.lang.String getEmail() {\n\t\treturn email;\n\t}", "public String getContactEmail() {\r\n return tfContactEmail.getText().trim();\r\n }", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmailAddress() {\r\n\t\treturn emailAddress;\r\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "@ZAttr(id=610)\n public String getFreebusyExchangeUserOrg() {\n return getAttr(Provisioning.A_zimbraFreebusyExchangeUserOrg, null);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "public String getConsigneeName() {\n return consigneeName;\n }", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "public String getEmailAddressOfCustomer()\n\t{\n\t\treturn getEmailAddressOfCustomer( getSession().getSessionContext() );\n\t}", "public String getEmailAddress() {\n return this.emailAddress;\n }", "com.google.protobuf.ByteString\n getEmailBytes();", "com.google.protobuf.ByteString\n getEmailBytes();", "com.google.protobuf.ByteString\n getEmailBytes();", "com.google.protobuf.ByteString\n getEmailBytes();", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public java.lang.String getEMail () {\r\n\t\treturn eMail;\r\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getEmailAddress() {\n return emailAddress;\n }", "public String getEmailAddress() {\n return emailAddress;\n }", "public String getEmailAddress() {\n return emailAddress;\n }", "public String getEmailAddress() {\n return emailAddress;\n }", "public String getEmailAddress() {\n return emailAddress;\n }", "@ApiModelProperty(value = \"User's email. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getEmailAddress() {\n return emailAddress;\n }", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Email getEmail() {\r\n return email;\r\n }", "public String getComplianceType() {\n return complianceType;\n }", "public String getEmailAddress() {\n return EmailAddress.commaSeperateList(this.emailAddressList);\n }" ]
[ "0.6785237", "0.5838467", "0.5674878", "0.55735517", "0.55105156", "0.54592466", "0.53975904", "0.5354438", "0.5350766", "0.5350564", "0.5315163", "0.5308339", "0.5299799", "0.52940124", "0.52940124", "0.52940124", "0.52838725", "0.52728325", "0.52728325", "0.52685237", "0.5263498", "0.5249089", "0.5249089", "0.52391875", "0.52150315", "0.51929015", "0.5191359", "0.5189072", "0.5185269", "0.5169079", "0.5163497", "0.51604605", "0.51592785", "0.51512325", "0.5143145", "0.513073", "0.510493", "0.510493", "0.510493", "0.5103773", "0.50974846", "0.50974846", "0.50974846", "0.5097444", "0.50958556", "0.50910133", "0.50824505", "0.50802183", "0.50789046", "0.50654936", "0.5043222", "0.5042414", "0.50328416", "0.50211126", "0.5017961", "0.5017613", "0.5011728", "0.50034493", "0.5001395", "0.5001395", "0.5001395", "0.5001395", "0.49860477", "0.4980424", "0.4969945", "0.49459493", "0.49416003", "0.4936108", "0.4928779", "0.49263832", "0.49263832", "0.49263832", "0.49263832", "0.49156663", "0.49068043", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.49038506", "0.4898661", "0.48897326", "0.48897326", "0.48897326", "0.48897326", "0.48897326", "0.48835093", "0.48799926", "0.48799926", "0.48799926", "0.48781958", "0.4877422", "0.48645556" ]
0.8629658
0
Sets the complianceBccEmail value for this Organization.
public void setComplianceBccEmail(java.lang.String complianceBccEmail) { this.complianceBccEmail = complianceBccEmail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getComplianceBccEmail() {\n return complianceBccEmail;\n }", "@GenIgnore\n public MailMessage setBcc(String bcc) {\n List<String> bccList = new ArrayList<String>();\n bccList.add(bcc);\n this.bcc = bccList;\n return this;\n }", "public void setBcc(Address bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public MailMessage setBcc(List<String> bcc) {\n this.bcc = bcc;\n return this;\n }", "public void setOrganizationEmail(String organizationEmail) {\n \n this.organizationEmail = organizationEmail;\n\n }", "public void setEmailCom(String emailCom);", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 1;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public com.politrons.avro.AvroPerson.Builder setEmailAddress(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.email_address = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "public Builder setEmail(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\temail_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "@Test\n\t\tpublic void testAddBcc() throws Exception{\n\t\t\temail.addBcc(TEST_EMAILS);\n\t\t\tassertEquals(3, email.getBccAddresses().size());\t\n\t\t}", "public void setEmailAddress(EmailType newEmailAddress) {\n _emailAddress = newEmailAddress;\n }", "void setComplianceCheckResult(ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult complianceCheckResult);", "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "public Builder setEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public void setSrcEmail(String value) {\r\n setAttributeInternal(SRCEMAIL, value);\r\n }", "public void setEmailAddress(java.lang.String newEmailAddress);", "public void setContactEmail(String contactEmail) {\r\n this.contactEmail = contactEmail;\r\n }", "public Builder setEmailBytes(com.google.protobuf.ByteString value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tcheckByteStringIsUtf8(value);\n\n\t\t\t\temail_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public Builder setEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 1;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setContactEmail(String contactEmail) {\n \n this.contactEmail = contactEmail;\n\n }", "public void setGmailAccount(EmailVendor GmailAccount) {\r\n this.GmailAccount = GmailAccount;\r\n }", "@ZAttr(id=610)\n public void setFreebusyExchangeUserOrg(String zimbraFreebusyExchangeUserOrg) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraFreebusyExchangeUserOrg, zimbraFreebusyExchangeUserOrg);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setEmailAddress(java.lang.CharSequence value) {\n this.email_address = value;\n }", "public Bcc bcc() {\n if (_bcc == null)\n _bcc = new Bcc(this, Keys.BCC_MANIFEST_BCC_ID_FK);\n\n return _bcc;\n }", "public void setComplianceType(ComplianceType complianceType) {\n this.complianceType = complianceType.toString();\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddress(String emailAddress);", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "public void setEmail(final String value)\n\t{\n\t\tsetEmail( getSession().getSessionContext(), value );\n\t}", "public void setContactEmail(String contactEmail) {\n this.contactEmail = contactEmail;\n }", "public Builder setEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "public void setEmailAddress(java.lang.String EmailAddress) {\n this.EmailAddress = EmailAddress;\n }", "@Override\r\n\tpublic void setClient(Client cc) {\n\t\tthis.e2eValidationClient = (E2EValidationClient) cc;\r\n\t}", "void setBusinessIndustryLicensesArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense[] businessIndustryLicensesArray);", "@GenIgnore\n public MailMessage setCc(String cc) {\n List<String> ccList = new ArrayList<String>();\n ccList.add(cc);\n this.cc = ccList;\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "public void setContactEmail(String contactEmail) {\n this.contactEmail = contactEmail;\n }", "@Override\n public void setEmail(String email) {\n\n }", "public Builder setEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n email_ = value;\n onChanged();\n return this;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLMAILGROUP(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.CL_MAIL_GROUP = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "public boolean changeEmail(String email, Person g, Booking b)\r\n {\r\n if(b == null)\r\n return false;\r\n \r\n b.changeEmail(email, g);\r\n return true;\r\n }", "public void setEmailAddressOfCustomer(final String value)\n\t{\n\t\tsetEmailAddressOfCustomer( getSession().getSessionContext(), value );\n\t}", "public SendMail(BodyBlock bbRequest, BodyBlock bbResponse, IEmailIOConfiguration iecConfig,\r\n boolean bCompatibility)\r\n {\r\n super(bbRequest, bbResponse, iecConfig);\r\n m_bCompatibility = bCompatibility;\r\n }", "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }", "public void updateEmail(String newEmailAddress)\r\n {\r\n emailAddress = newEmailAddress;\r\n }", "public void setEmailAddress(String emailAddress) {\r\n\t\tthis.emailAddress = emailAddress;\r\n\t}", "@Override\n public HangarMessages addConstraintsEmailMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_Email_MESSAGE));\n return this;\n }", "public void setConsigneeAddress(String consigneeAddress) {\n this.consigneeAddress = consigneeAddress;\n }", "public List<String> getBcc() {\n return bcc;\n }", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public void setEmail(java.lang.String value) {\n\t\tsetValue(org.jooq.example.jaxrs.db.routines.GenerateKey.EMAIL, value);\n\t}", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "void setBusinessIndustryLicensesArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense businessIndustryLicenses);", "public void setComplianceType(String complianceType) {\n this.complianceType = complianceType;\n }", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }", "public void setEmailAddress(String email) {\n this.email = email;\n }", "public final void setEmail(final String emailNew) {\n this.email = emailNew;\n }", "public Builder setUserEmailBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userEmail_ = value;\n onChanged();\n return this;\n }", "public void seteMail(String eMail) {\n this.eMail = eMail;\n }", "public void setEMail (java.lang.String eMail) {\r\n\t\tthis.eMail = eMail;\r\n\t}", "protected boolean checkCompanyEmail() {\n\t\tif (this.getForm().getInteractionManager().getModifiedFieldAttributes().contains(CompanyNaming.EMAIL)) {\r\n\t\t\tMessageManager.getMessageManager().showMessage(this.getForm(), \"W_UNSAVED_EMAIL_MANDATORY\", MessageType.WARNING, new Object[] {});\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tString emailValue = (String) this.emailField.getValue();\r\n\t\tif (StringTools.isEmpty(emailValue) || !UEmailDataField.isValidEmail(emailValue)) {\r\n\t\t\tMessageManager.getMessageManager().showMessage(this.getForm(), \"W_INVALID_EMAIL_MANDATORY\", MessageType.WARNING, new Object[] {});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void setPersonalEmail(java.lang.String personalEmail) {\n\t\t_candidate.setPersonalEmail(personalEmail);\n\t}", "public void setEmail(String account, String email) throws SQLException, MessagingException {\n\t\tthis.userDao.setEmail(account,email);\r\n\t}", "public void setEmail_address(String email_address);", "public SendMail(BodyBlock bbRequest, BodyBlock bbResponse, IEmailIOConfiguration iecConfig)\r\n {\r\n this(bbRequest, bbResponse, iecConfig, false);\r\n }", "public void setEmailAddress(String value) {\n setAttributeInternal(EMAILADDRESS, value);\n }", "public void setEmailAddress(String value) {\n setAttributeInternal(EMAILADDRESS, value);\n }", "public void setCorpEmail(String corpEmail) {\n this.corpEmail = corpEmail;\n }", "public static void setRecipientEmail(String recipientEmail) {\n MailHelper.recipientEmail = recipientEmail;\n }", "public Builder setUserEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userEmail_ = value;\n onChanged();\n return this;\n }", "void setEmail(String email);", "void setEmail(String email);", "public void setServiceAccountEmail(String serviceAccountEmail) {\n this.serviceAccountEmail = serviceAccountEmail;\n }", "public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }", "public void setEmail(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Email email) {\r\n this.email = email;\r\n }", "@Override\r\n\tpublic void setEmail(String email) {\n\t\tif (email == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (email.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.email = email;\r\n\t}", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "public final void setEmail(String email) {\n\t\tthis.email = email;\n\t}", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public void set_email(String Email)\n {\n email =Email;\n }", "void setHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus.Enum hasAuditingCompany);", "public void setEmail(String email);", "public void setUserEmail(String newEmail) {\n profile.setEmail(currentUser, newEmail);\n }", "public final void ruleFunctionBody() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2992:2: ( ( ( rule__FunctionBody__BcAssignment ) ) )\r\n // InternalGo.g:2993:2: ( ( rule__FunctionBody__BcAssignment ) )\r\n {\r\n // InternalGo.g:2993:2: ( ( rule__FunctionBody__BcAssignment ) )\r\n // InternalGo.g:2994:3: ( rule__FunctionBody__BcAssignment )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFunctionBodyAccess().getBcAssignment()); \r\n }\r\n // InternalGo.g:2995:3: ( rule__FunctionBody__BcAssignment )\r\n // InternalGo.g:2995:4: rule__FunctionBody__BcAssignment\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__FunctionBody__BcAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFunctionBodyAccess().getBcAssignment()); \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 void setConsignee(String consignee) {\n this.consignee = consignee;\n }", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "private void setEmail(String email) {\n this.email = StringExtension.nullFilter(email);\n }" ]
[ "0.69233704", "0.5826039", "0.5412688", "0.5311108", "0.5193045", "0.4978488", "0.4925379", "0.47976613", "0.47816816", "0.47814313", "0.4760642", "0.4749891", "0.4693668", "0.45931938", "0.45811105", "0.45648566", "0.45604306", "0.4545056", "0.45341173", "0.45341173", "0.45248014", "0.45205444", "0.4509887", "0.4507929", "0.44972768", "0.449467", "0.4492199", "0.44909298", "0.4482822", "0.44778568", "0.4467296", "0.44652474", "0.44652474", "0.44598725", "0.44496948", "0.44496948", "0.44221517", "0.44160685", "0.44149423", "0.44050652", "0.4400904", "0.4396344", "0.4384008", "0.4383491", "0.43814874", "0.43796265", "0.43747348", "0.4344173", "0.43289626", "0.43271244", "0.432108", "0.4316248", "0.43126267", "0.43126267", "0.43126267", "0.43126267", "0.43002328", "0.42953777", "0.4292954", "0.42897588", "0.42855763", "0.42795548", "0.42648104", "0.42598218", "0.425381", "0.42478287", "0.4243433", "0.42425957", "0.42416835", "0.42355287", "0.4231714", "0.42206725", "0.42206267", "0.42108908", "0.4193078", "0.41878992", "0.41696733", "0.41570887", "0.41550022", "0.41550022", "0.4148974", "0.41384798", "0.41279858", "0.41211414", "0.41211414", "0.4117518", "0.41146946", "0.4111607", "0.41093355", "0.41022587", "0.41020852", "0.41013402", "0.4096788", "0.40952107", "0.40909493", "0.40895143", "0.4084946", "0.40844044", "0.40792692", "0.4075782" ]
0.78441465
0
Gets the country value for this Organization.
public java.lang.String getCountry() { return country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull public CountryCode getCountry() { return country; }", "public final String getCountry() {\n\t\treturn country;\n\t}", "public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }", "public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }", "public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }", "public java.lang.String getCountry() {\n return Country;\n }", "public java.lang.String getCountry() {\n java.lang.Object ref = country_;\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 country_ = s;\n }\n return s;\n }\n }", "public java.lang.String getCountry() {\r\n return country;\r\n }", "public java.lang.String getCountry() {\n java.lang.Object ref = country_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n country_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getCountry () {\n\t\treturn country;\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public Integer getCountry() {\n return country;\n }", "public Integer getCountry() {\n return country;\n }", "public String getCountryCode() {\n return instance.getCountryCode();\n }", "public String getCountry() {\n return country;\n }", "public CountryType getCountry() {\r\n\t\treturn country;\r\n\t}", "public java.lang.CharSequence getCountry() {\n return country;\n }", "public java.lang.String getCountryCode() {\n return countryCode;\n }", "java.lang.String getCountry();", "java.lang.String getCountry();", "public IsoCountry getCountry() {\n return country;\n }", "public String getCountry() {\n return Country;\n }", "public java.lang.CharSequence getCountry() {\n return country;\n }", "public String getCountry() {\r\n return country;\r\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public CountryEntry getCountry(){\n\t\treturn (CountryEntry)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_LINK);\n\t}", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\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 country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return instance.getCountryCodeBytes();\n }", "public java.lang.String getOriginatingCountry() {\r\n return originatingCountry;\r\n }", "public String getCountry(){\n\t\treturn country;\n\t}", "public String getCountry(){\n\t\treturn country;\n\t}", "public CountryCode getCountry() {\n return country;\n }", "public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }", "public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }", "public String countryCode() {\n return countryCode;\n }", "public StrColumn getCountry() {\n return delegate.getColumn(\"country\", DelegatingStrColumn::new);\n }", "public String getCountry() {\n return country;\n }", "public String getCountryCode() {\n return countryCode;\n }", "public String getCountryCode() {\n return countryCode;\n }", "public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}", "public String getCountry() {\n\t\treturn addressFormat;\n\t}", "public String getCompanyCountry() {\n return companyCountry;\n }", "java.lang.String getCountryCode();", "java.lang.String getCountryCode();", "public String getCountryCode() {\n return countryCode_;\n }", "public String getCountryCode() {\n\t\treturn countryCode;\n\t}", "Country getCountry();", "@ApiModelProperty(example = \"null\", value = \"Country resource corresponding to the dial-in number\")\n public DialInNumbersCountryInfo getCountry() {\n return country;\n }", "public String getCountryCode() {\n // Always extract from phone number object instead of using mCurrentRegionCode just in case\n return mCurrentPhoneNumber == null ? null : PhoneNumberUtil.getInstance().getRegionCodeForCountryCode(mCurrentPhoneNumber.getCountryCode());\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "public String getCountry()\n {\n return country;\n }", "public String getCountry() {\r\n return this.country;\r\n }", "public java.lang.String getCountryId() {\r\n return countryId;\r\n }", "public String getCountryCode()\r\n\t{\r\n\t\treturn this.countryCode;\r\n\t}", "public String getcountryCode() {\n return countryCode;\n }", "public String getContactCountry() {\n return contactCountry;\n }", "public String getCountryCode() {\r\n return (String) getAttributeInternal(COUNTRYCODE);\r\n }", "public String getCountryCode() {\n return normalizedBic.substring(COUNTRY_CODE_INDEX, COUNTRY_CODE_INDEX + COUNTRY_CODE_LENGTH);\n }", "public String getCountryName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_NAME);\n\t}", "public static String getCountrySetting() {\r\n\t\treturn countrySetting;\r\n\t}", "public Integer getOriginCountryId() {\r\n\t\treturn originCountryId;\r\n\t}", "public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(countryCode_);\n }", "String getCountryCode();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }", "public String getCountryFieldName() {\n return getStringProperty(COUNTRY_FIELD_NAME_KEY);\n }", "@Override\n\tpublic long getCountryId() {\n\t\treturn _candidate.getCountryId();\n\t}", "com.google.protobuf.ByteString\n getCountryCodeBytes();", "public String getCountryName() {\n return countryName;\n }", "public String getCountryName() {\n return countryName;\n }", "public String getCountryName() {\n return countryName;\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "public String getAuthyCountryCode () {\n\t\treturn this.authyCountryCode;\n\t}", "public Country getCountry() {\r\n return country;\r\n }", "public Integer getCountryId() {\n return countryId;\n }", "public Country getCountry() {\n return country;\n }", "@JsonGetter(\"countryCodeA3\")\r\n public String getCountryCodeA3 ( ) { \r\n return this.countryCodeA3;\r\n }", "public Long getCountryId() {\n return this.countryId;\n }", "public String getCountryId() {\r\n return countryId;\r\n }", "public long getCountryId() {\n return countryId;\n }", "public String getHospitalCountry() {\n return hospitalCountry;\n }", "public int getCountryCallingCode() {\n return countryCallingCode;\n }", "java.lang.String getCountryName();", "public String getCountryFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTRY);\n }", "com.google.protobuf.ByteString\n getCountryCodeBytes();", "com.google.protobuf.ByteString\n getCountryCodeBytes();", "public String getCountryIso() {\n return mCountryIso;\n }", "public String getCountry_id() {\n return country_id;\n }", "public String getCountryID() {\n return countryID;\n }", "public String getCountryAccessCode() {\n return countryAccessCode;\n }", "public java.lang.String getCountryName() {\n java.lang.Object ref = countryName_;\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 countryName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCountryLink(){\n\t\treturn (String)this.entryMap.get(GeoKeys.LOCAL_GEO_COUNTRY_LINK);\n\t}" ]
[ "0.72588396", "0.7191923", "0.71720004", "0.71720004", "0.71720004", "0.70754874", "0.70601946", "0.69896394", "0.6970349", "0.69640553", "0.6952608", "0.6952608", "0.6952608", "0.6913086", "0.6913086", "0.6906522", "0.68581504", "0.68281597", "0.67907035", "0.6783172", "0.6766257", "0.6766257", "0.6756187", "0.67376584", "0.67226875", "0.6708518", "0.6708427", "0.6708427", "0.6708427", "0.6708427", "0.6708427", "0.6708427", "0.6708427", "0.6703765", "0.6685445", "0.6655909", "0.66458404", "0.66364557", "0.66180146", "0.66180146", "0.6614799", "0.66033155", "0.66033155", "0.65943766", "0.6554234", "0.6548981", "0.6527915", "0.6527915", "0.652594", "0.649323", "0.6481054", "0.64792377", "0.64792377", "0.6476332", "0.64758444", "0.6466868", "0.64576644", "0.64510196", "0.6419081", "0.6397213", "0.63912976", "0.6382173", "0.63797575", "0.6365151", "0.635346", "0.63357973", "0.6318463", "0.63174975", "0.6263983", "0.6262245", "0.6260929", "0.62479544", "0.62321657", "0.6221548", "0.62158495", "0.6194889", "0.6184619", "0.6184619", "0.6184619", "0.61585575", "0.6151301", "0.61443484", "0.61233175", "0.6122412", "0.6120948", "0.61039466", "0.60800886", "0.6079544", "0.6073859", "0.6061778", "0.60501564", "0.6046728", "0.60096616", "0.60096616", "0.6003948", "0.59499085", "0.5909355", "0.58892834", "0.58884", "0.5873159" ]
0.7098295
5
Sets the country value for this Organization.
public void setCountry(java.lang.String country) { this.country = country; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setCountry(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.country = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setCountry(Country country) {\n this.country = country;\n }", "public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }", "public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }", "public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }", "public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }", "public void setCountry(String country) {\n\t\tthis.country = country;\n\t}", "public Builder setCountry(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }", "public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }", "public void setCountry (java.lang.String country) {\n\t\tthis.country = country;\n\t}", "public void setCountry(String country) {\n this.country = country == null ? null : country.trim();\n }", "public void setCountry(String country) {\n this.country = country == null ? null : country.trim();\n }", "public void setCountry(String country) {\r\n this.country = country.trim();\r\n }", "public Builder setCountry(CountryCode country) {\n this.country = country;\n return this;\n }", "public final void setCountry(final String ccountry) {\n\t\tthis.country = ccountry;\n\t}", "public void setCountry(Country v) throws TorqueException\n {\n if (v == null)\n {\n setCustCountryId( 999);\n }\n else\n {\n setCustCountryId(v.getCountryId());\n }\n aCountry = v;\n }", "public Address country(String country) {\n this.country = country;\n return this;\n }", "public void setCountryCode(String value) {\r\n setAttributeInternal(COUNTRYCODE, value);\r\n }", "public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }", "public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }", "public Builder setCountryBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }", "public void setAddressCountry(String addressCountry) {\n this.addressCountry = addressCountry;\n }", "public void setCountryId(int value);", "public void setCountryName(String value);", "public void setCountryFieldName(final String value) {\n setProperty(COUNTRY_FIELD_NAME_KEY, value);\n }", "public Builder clearCountry() {\n bitField0_ = (bitField0_ & ~0x00000080);\n country_ = getDefaultInstance().getCountry();\n onChanged();\n return this;\n }", "public void setCountryCode(java.lang.String countryCode) {\n this.countryCode = countryCode;\n }", "public void setContactCountry(String contactCountry) {\n this.contactCountry = contactCountry;\n }", "public void setCountryCode(String countryCode) {\n this.countryCode = countryCode;\n }", "public void setCountryCode(@Nullable String countryCode) {\n this.countryCode = countryCode;\n api.setCountryCode(this.countryCode);\n }", "public void setCountryCode(int value) {\r\n\t\tthis.countryCode = value;\r\n\t}", "public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}", "public Builder setCountryCode(\n String value) {\n copyOnWrite();\n instance.setCountryCode(value);\n return this;\n }", "@Nonnull public CountryCode getCountry() { return country; }", "public DocumentLifecycleWorkflowRequest setCountryName(String countryName) {\n\t\tthis.countryName = countryName;\n\t\treturn this;\n\t}", "private void setCountryCode(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n countryCode_ = value;\n }", "public DocumentLifecycleWorkflowRequest setCountryID(String countryID) {\n\t\tthis.countryID = countryID;\n\t\treturn this;\n\t}", "public void setCountryCode(String countryCode) {\r\n\t\t\tthis.countryCode = countryCode;\r\n\t\t}", "public void setcountryCode(String countryCode) {\n this.countryCode = countryCode;\n }", "public void setCountryId(long countryId) {\n this.countryId = countryId;\n }", "@ApiModelProperty(example = \"null\", value = \"Country resource corresponding to the dial-in number\")\n public DialInNumbersCountryInfo getCountry() {\n return country;\n }", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "@NonNull\n public PhoneBuilder setDefaultCountryIso(@NonNull String iso) {\n Preconditions.checkUnset(getParams(),\n \"Cannot overwrite previously set phone number\",\n ExtraConstants.PHONE,\n ExtraConstants.COUNTRY_ISO,\n ExtraConstants.NATIONAL_NUMBER);\n if (!PhoneNumberUtils.isValidIso(iso)) {\n throw new IllegalStateException(\"Invalid country iso: \" + iso);\n }\n\n getParams().putString(ExtraConstants.COUNTRY_ISO,\n iso.toUpperCase(Locale.getDefault()));\n\n return this;\n }", "public String getCountry() {\n return country;\n }", "public void setCurrentJobCountry(CountryFilter currentJobCountry) {\n\t\tthis.currentJobCountry = currentJobCountry;\n\t}", "public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }", "public void setCurrentCountry(CountryFilter currentCountry) {\n\t\tthis.currentCountry = currentCountry;\n\t}", "public String getCountry() {\r\n return country;\r\n }", "public LCountry() {\n this(DSL.name(\"L_COUNTRY\"), null);\n }", "private void setCountryCode( Office office ) {\n String country = null;\n switch ( office ) {\n case BRISTOL:\n case EDINBURGH:\n case GLASGOW:\n case LONDON:\n case MANCHESTER:\n case TAUNTON:\n country = Country.UK.getLongName();\n break;\n case PERTH:\n case SYDNEY:\n country = Country.AUSTRALIA.getLongName();\n break;\n case SINGAPORE:\n country = Country.SINGAPORE.getLongName();\n break;\n }\n\n countryCode.setText( new StringBuilder()\n .append( country )\n .append( \" \" )\n .append( \"(\" )\n .append( Country.getCountryFromName( country ).getIntCode() )\n .append( \")\" )\n .toString() );\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "public void setDestinationCountry(String value) {\r\n this.destinationCountry = value;\r\n }", "public void setCountries(List<Country> countries)\n {\n this.countries = countries;\n\n countriesMap = countries.stream().\n filter(c -> !\"-99\".equals(c.getIsoCode())).\n collect(Collectors.toMap(Country::getIsoCode, Function.identity()));\n\n LOGGER.info(\"Stored {} countries with valid code ( != -99) \", countriesMap.size());\n\n regions = new WorldRegions(countries);\n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder clearCountry() {\n country = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public Builder setCountryName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n countryName_ = value;\n onChanged();\n return this;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public void setLocale(final String language, final String country) {\r\n setLocale(new Locale(language, country));\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }", "public CountryCode getCountry() {\n return country;\n }", "@JsonSetter(\"countryCodeA3\")\r\n public void setCountryCodeA3 (String value) { \r\n this.countryCodeA3 = value;\r\n }", "public void testSetCountry() {\r\n try {\r\n address.setCountry(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public String getCountry() {\n return country;\n }", "public IsoCountry getCountry() {\n return country;\n }", "public String getCountry() {\r\n return this.country;\r\n }", "private void setCountryCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n countryCode_ = value.toStringUtf8();\n }", "public void setCountry_id(String country_id) {\n this.country_id = country_id;\n }", "public String getCountry(){\n\t\treturn country;\n\t}", "public String getCountry(){\n\t\treturn country;\n\t}", "public void setCountryCallingCode(int countryCallingCode) {\n this.countryCallingCode = countryCallingCode;\n }", "public void setCountryId(java.lang.String countryId) {\r\n this.countryId = countryId;\r\n }", "public void setAuthyCountryCode (String countrycode) {\n\t\tthis.authyCountryCode = countrycode;\n\t}", "public String getCountry() {\n return Country;\n }", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Integer getCountry() {\n return country;\n }", "public Integer getCountry() {\n return country;\n }", "private void setCountryFlag(View view, String country) {\n ImageView countryView = view.findViewById(R.id.collected_country);\n if (country != null) {\n String countryResource = String.format(\"country_%s\", country.toLowerCase());\n int id = mContext.getResources().getIdentifier(countryResource, \"drawable\", mContext.getPackageName());\n if (id != 0) {\n countryView.setImageResource(id);\n countryView.setVisibility(View.VISIBLE);\n return;\n }\n }\n countryView.setVisibility(View.GONE);\n }", "public CountryType getCountry() {\r\n\t\treturn country;\r\n\t}", "public void setContinent(AirportDTO airportDTO, Country country) {\n Continent continentFound = continentDAO.findContinentByName(airportDTO.getCityDTO().getCountryDTO().getContinentDTO().getName());\n if (continentFound != null) {\n country.setContinent(continentFound);\n } else {\n Continent continent = new Continent();\n continent.setName(airportDTO.getCityDTO().getCountryDTO().getContinentDTO().getName());\n country.setContinent(continent);\n }\n }" ]
[ "0.7157324", "0.7152306", "0.70738786", "0.70738786", "0.70738786", "0.6979612", "0.6979612", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.69243497", "0.6897591", "0.68739694", "0.68739694", "0.68739694", "0.6862417", "0.6860498", "0.67801297", "0.6774654", "0.6726518", "0.6665222", "0.6655044", "0.6655044", "0.66103435", "0.6571502", "0.65439713", "0.63581705", "0.6342867", "0.6269003", "0.6265174", "0.6265174", "0.62567365", "0.616957", "0.6114321", "0.60981727", "0.60705554", "0.60254425", "0.5988637", "0.5986925", "0.5982036", "0.5968193", "0.5966108", "0.5954922", "0.5928215", "0.5925472", "0.58937114", "0.58885753", "0.586926", "0.58648217", "0.58180904", "0.5719044", "0.5711355", "0.56896704", "0.56896704", "0.56896704", "0.5685599", "0.5676617", "0.5658925", "0.5651286", "0.5646638", "0.56193304", "0.561753", "0.5604783", "0.5599025", "0.5599025", "0.55931914", "0.5577243", "0.55713224", "0.55669844", "0.5547745", "0.5547745", "0.5547745", "0.5547745", "0.5547745", "0.5547745", "0.5547745", "0.553335", "0.55214167", "0.5517262", "0.5493062", "0.5490878", "0.54711705", "0.54638124", "0.5460994", "0.54500574", "0.5446968", "0.5441102", "0.5441102", "0.5427091", "0.54238796", "0.54229677", "0.541901", "0.54109645", "0.54051214", "0.54051214", "0.5393416", "0.539211", "0.5376605" ]
0.6860214
19
Gets the createdBy value for this Organization.
public com.sforce.soap.enterprise.sobject.User getCreatedBy() { return createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n return createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby() {\n return createdby;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\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 String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"[email protected]\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public String getCreateBy() {\r\n return createBy;\r\n }", "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Date getCreateBy() {\n return createBy;\n }", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "@AutoEscape\n\tpublic String getCreatedByUser();", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public User getCreator() {\n\t\treturn creatorId != null ? (User) User.findById(creatorId) : null;\n\t}", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public String getCreatedUserName() {\n return createdUserName;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Long getCreateduser() {\n return createduser;\n }" ]
[ "0.7700736", "0.7700736", "0.7611713", "0.7540534", "0.7539302", "0.7522346", "0.75007033", "0.748752", "0.74822146", "0.74822146", "0.74822146", "0.7468165", "0.74382454", "0.74212945", "0.7334435", "0.7334435", "0.7334435", "0.73156583", "0.73156583", "0.73156583", "0.73156583", "0.7287518", "0.7287518", "0.7287518", "0.7287518", "0.7277923", "0.723616", "0.7188889", "0.7118819", "0.70814943", "0.70145947", "0.69966894", "0.6988853", "0.69378084", "0.68686414", "0.68671924", "0.68671924", "0.68671924", "0.68671924", "0.68671924", "0.68671924", "0.68660307", "0.68317795", "0.6830477", "0.6803575", "0.6803575", "0.67884743", "0.67884743", "0.67884743", "0.67884743", "0.6616476", "0.645773", "0.63906425", "0.638929", "0.63762295", "0.6365536", "0.63550705", "0.6347549", "0.6347549", "0.6347549", "0.6347549", "0.633189", "0.6251536", "0.62496984", "0.62024647", "0.62024647", "0.62024647", "0.62024647", "0.6083831", "0.6077632", "0.60704327", "0.60644203", "0.606362", "0.60422385", "0.60422385", "0.60248107", "0.6004467", "0.5982967", "0.5973762", "0.5964642", "0.5963504", "0.5963504", "0.5963504", "0.5963504", "0.5963504", "0.5963504", "0.5963504", "0.59417474", "0.59377104", "0.59353757", "0.5906884", "0.5906884", "0.5906884", "0.58513933", "0.584461", "0.584461", "0.584461", "0.58442307", "0.58442307", "0.58436227" ]
0.75651586
3
Sets the createdBy value for this Organization.
public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) { this.createdBy = createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "void setCreateby(final U createdBy);", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public Flow withCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n return this;\n }", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedby(String createdby) {\n this.createdby = createdby == null ? null : createdby.trim();\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n return createdBy;\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public void setCreateBy(Date createBy) {\n this.createBy = createBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreateBy (com.redsaga.hibnatesample.step2.User _createBy) {\n\t\tthis._createBy = _createBy;\n\t}", "public String createdBy() {\n return this.createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedby() {\n return createdby;\n }", "@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}", "public void setCreateBy(String createBy) {\r\n\t\tthis.createBy = createBy;\r\n\t}", "public Builder clearCreatedBy() {\n \n createdBy_ = getDefaultInstance().getCreatedBy();\n onChanged();\n return this;\n }", "public void setCreateBy(String createBy) {\r\n this.createBy = createBy == null ? null : createBy.trim();\r\n }", "public void setCreateBy(String createBy) {\n\t\tthis.createBy = createBy == null ? null : createBy.trim();\n\t}", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }", "public Dataset withCreatedBy(String createdBy) {\n setCreatedBy(createdBy);\n return this;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreatedByUser(String createdByUser);", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }" ]
[ "0.77043176", "0.7416511", "0.7340652", "0.73148096", "0.73087686", "0.73087686", "0.73070055", "0.7306526", "0.7295745", "0.7295543", "0.7295543", "0.7295543", "0.7253061", "0.7185557", "0.7165718", "0.70937365", "0.70701635", "0.70701635", "0.70701635", "0.70701635", "0.70701635", "0.70701635", "0.70701635", "0.70613724", "0.70613724", "0.70613724", "0.70613724", "0.6783015", "0.6658435", "0.6655922", "0.66228926", "0.6608819", "0.65407294", "0.6512527", "0.65077966", "0.64580333", "0.6457083", "0.6456087", "0.64557713", "0.64557713", "0.64557713", "0.64557713", "0.64557713", "0.64557713", "0.64557713", "0.64557713", "0.64534616", "0.64417946", "0.64417946", "0.64417946", "0.6433112", "0.64276916", "0.64177066", "0.63743925", "0.6371766", "0.6352929", "0.6347821", "0.6347821", "0.6347821", "0.6347821", "0.6340321", "0.6333694", "0.6324177", "0.6323738", "0.6323738", "0.6322367", "0.62669325", "0.62468475", "0.62424284", "0.6228417", "0.6194835", "0.6194835", "0.6194835", "0.6194835", "0.6182729", "0.6170426", "0.6157127", "0.611699", "0.6042121", "0.6037274", "0.6005866", "0.6005866", "0.6005866", "0.6005866", "0.59783155", "0.5972871", "0.5972871", "0.5972871", "0.5964432", "0.594202", "0.594202", "0.594202", "0.594202", "0.5894285", "0.58732295", "0.5848274", "0.5847801", "0.5847801", "0.5847801", "0.5847801" ]
0.74277925
1
Gets the createdById value for this Organization.
public java.lang.String getCreatedById() { return createdById; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public Integer getCreatedPersonId() {\n return createdPersonId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return (Integer) get(4);\n }", "public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Integer getCreatePersonId() {\n return createPersonId;\n }", "String getCreatorId();", "public Long getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public String getCreateId() {\n\t\treturn createId;\n\t}", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public String getGeneratedId() {\n return generatedId;\n }", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "public Long getCreateduser() {\n return createduser;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public java.lang.Integer getCreatorId() {\n return creatorId;\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public java.lang.String getCreatedByName() {\n return createdByName;\n }", "public String getCreatorId() {\n return this.CreatorId;\n }", "public String getCreateUserId() {\r\n return createUserId;\r\n }", "public String getCreatorGuid() {\n return creatorGuid;\n }", "public Integer getCreateUserId() {\n return createUserId;\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Long getCreator() {\n return creator;\n }", "public Integer getCreated() {\n return created;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public long getCreatedAt() {\n return createdAt;\n }", "public Integer getCreated() {\r\n return created;\r\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public long getCreated() {\n\t\treturn m_created;\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public void setCreatedById(java.lang.String createdById) {\n this.createdById = createdById;\n }", "public void setCreatedById(java.lang.String createdById) {\n this.createdById = createdById;\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public long getCreatedByUser();", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCreatedby() {\n return createdby;\n }", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\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 String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public Long getCreateAt() {\n return createAt;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }" ]
[ "0.75772184", "0.75772184", "0.65701747", "0.62109756", "0.62109756", "0.6057474", "0.602221", "0.6009112", "0.6009112", "0.6009112", "0.5908752", "0.5893557", "0.58721113", "0.58322185", "0.58322185", "0.5814726", "0.5814726", "0.5814726", "0.5814726", "0.5812714", "0.57614696", "0.5755803", "0.5755803", "0.5755362", "0.57142663", "0.5701541", "0.5701375", "0.5701278", "0.56982595", "0.5696266", "0.56833345", "0.5668567", "0.56488764", "0.56488764", "0.56326413", "0.56326413", "0.56326413", "0.56326413", "0.55889606", "0.558081", "0.55714846", "0.5554254", "0.55538964", "0.55438775", "0.55384547", "0.5537715", "0.5528681", "0.5528681", "0.5528681", "0.5520333", "0.5520285", "0.55162615", "0.55162615", "0.55162615", "0.5495246", "0.54945964", "0.54880536", "0.54880536", "0.54880536", "0.54880536", "0.54880536", "0.54880536", "0.54872924", "0.5486942", "0.54827464", "0.547542", "0.5470472", "0.5465683", "0.5465499", "0.54615015", "0.54615015", "0.54565746", "0.54565746", "0.54565746", "0.54565746", "0.5450925", "0.5450925", "0.5447163", "0.5444083", "0.5437036", "0.54326063", "0.54326063", "0.54311293", "0.5423926", "0.5405157", "0.5403277", "0.53687716", "0.53486717", "0.53478545", "0.53478545", "0.53478545", "0.53478545", "0.5342195", "0.53418404", "0.5333599", "0.53267545", "0.5318938", "0.5318524", "0.53168" ]
0.76185817
1
Sets the createdById value for this Organization.
public void setCreatedById(java.lang.String createdById) { this.createdById = createdById; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public java.lang.String getCreatedById() {\r\n return createdById;\r\n }", "public java.lang.String getCreatedById() {\n return createdById;\n }", "public java.lang.String getCreatedById() {\n return createdById;\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedPersonId(Integer createdPersonId) {\n this.createdPersonId = createdPersonId;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }", "void setCreateby(final U createdBy);", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreated(Integer created) {\n this.created = created;\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreated(Integer created) {\r\n this.created = created;\r\n }", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedByUser(String createdByUser);", "public Integer getCreatedPersonId() {\n return createdPersonId;\n }", "public void setCreated(java.util.Calendar created)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREATED$0);\n }\n target.setCalendarValue(created);\n }\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreatedby( java.lang.Integer newValue ) {\n __setCache(\"createdby\", newValue);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedByUser(long createdByUser);", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedUserId(Integer value) {\n set(4, value);\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "void setDateCreated(final Date dateCreated);", "public void setCreatedDateTime(ZonedDateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }", "public void setCreated(java.util.Date created) {\n this.created = created;\n }", "public void setCreatedby(String createdby) {\n this.createdby = createdby == null ? null : createdby.trim();\n }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public void setDateCreated(java.util.Calendar param) {\n localDateCreatedTracker = param != null;\n\n this.localDateCreated = param;\n }", "public void setCalendarId(final String val) {\n if (Util.checkNull(val) != null) {\n calendarId.setA(val);\n }\n }", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedAt(final ZonedDateTime createdAt);", "public void setCreatorId(java.lang.Integer creatorId) {\n this.creatorId = creatorId;\n }", "public DataResourceBuilder _created_(XMLGregorianCalendar _created_) {\n this.dataResourceImpl.setCreated(_created_);\n return this;\n }", "public org.ga4gh.models.CallSet.Builder setCreated(java.lang.Long value) {\n validate(fields()[4], value);\n this.created = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "@JsonSetter(\"id\")\r\n public void setId(String id) {\r\n this.id = id;\r\n }", "public void setCreatedUser(Integer createdUser) {\n\t\tthis.createdUser = createdUser;\n\t}", "void setCreatedDate(Date createdDate);", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }" ]
[ "0.6879117", "0.6879117", "0.59342027", "0.59342027", "0.59333456", "0.59333456", "0.58772033", "0.57124734", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.54753846", "0.53991985", "0.53935736", "0.53269076", "0.5280735", "0.5279942", "0.5251585", "0.5251585", "0.5199729", "0.51813024", "0.5181037", "0.5172333", "0.51508534", "0.514957", "0.5141433", "0.51348704", "0.5125667", "0.5123509", "0.5111613", "0.5111613", "0.5111613", "0.5111613", "0.5110456", "0.50821", "0.50821", "0.50821", "0.5081522", "0.5065988", "0.5065988", "0.50658184", "0.50658184", "0.5064997", "0.5056947", "0.5056947", "0.5056947", "0.5056947", "0.5056947", "0.5056947", "0.5056947", "0.5056947", "0.5047805", "0.5047805", "0.5041464", "0.5041464", "0.5041464", "0.5041464", "0.5036393", "0.50226223", "0.5017547", "0.49955022", "0.49779382", "0.4975944", "0.4967109", "0.4951537", "0.49507862", "0.49361432", "0.4908283", "0.48627672", "0.48513824", "0.48208725", "0.48188105", "0.48121", "0.48092267", "0.47913954", "0.47905552", "0.4781859", "0.47808787", "0.4775213", "0.4763969", "0.47568324", "0.47568324", "0.47568324", "0.47568324", "0.47507238", "0.47405624", "0.47227323", "0.4721425", "0.47201946", "0.47193578", "0.47153604", "0.4714282", "0.47062296", "0.4696313", "0.4685379", "0.4685379" ]
0.6854704
3
Gets the createdDate value for this Organization.
public java.util.Calendar getCreatedDate() { return createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public java.util.Calendar getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDt() {\n\t\treturn createdDt;\n\t}", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public java.util.Date getDateCreated() {\n return dateCreated;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public java.util.Date getCreated() {\n return this.created;\n }", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public final ZonedDateTime getDateCreated() {\n return this.dateCreated;\n }", "@JsonProperty(\"created_date\")\n\tpublic Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public String getFormattedCreatedDate() {\n if (this.createdDate == null) {\n return null;\n }\n return DateUtilities.getFormattedDateWithTime(this.createdDate);\n }", "public java.util.Date getCreatedate () {\n\t\treturn createdate;\n\t}", "Date getCreatedDate();", "@JsonIgnore\n public long getDateCreated() {\n return this.dateCreated;\n }", "public java.util.Date getCreated_date() {\n\t\treturn _primarySchoolStudent.getCreated_date();\n\t}", "@Basic( optional = true )\n\t@Column( name = \"date_created\" )\n\tpublic Date getDateCreated() {\n\t\treturn this.dateCreated;\n\t\t\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The date that this resource was created (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT).\")\n\n public String getDateCreated() {\n return dateCreated;\n }", "public Date getCreateddate() {\n return createddate;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "@ApiModelProperty(value = \"The date/time this resource was created in seconds since unix epoch\")\n public Long getCreatedDate() {\n return createdDate;\n }", "public Date getCreated() {\n return mCreated;\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "@Nullable\n public Date getCreatedTime() {\n return mCreatedTime == null ? null : new Date(mCreatedTime.getTime());\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public String getDatecreated() {\n return datecreated;\n }", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public Date getCreatedDate();", "public java.util.Calendar getDateCreated() {\n return localDateCreated;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public java.util.Date getCreateDate() {\n if (createDate == null) {\n return null;\n }\n return (java.util.Date)createDate.clone();\n }", "public java.util.Date getCreatedTime() {\n return this.createdTime;\n }", "public String getDateCreatedAsString() {\n return dateCreated.toString(\"MM/dd/yyyy\");\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "public String getCreateDate() {\n return createDate;\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 getCreateDate() {\n\t\treturn createDate;\n\t}", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public Date getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreationDate() {\r\n\t\treturn creationDate;\r\n\t}", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }" ]
[ "0.78007096", "0.76810235", "0.76788014", "0.7670968", "0.7596998", "0.75882316", "0.7485282", "0.7484164", "0.748243", "0.746936", "0.7455736", "0.7455736", "0.7432128", "0.7408021", "0.7408021", "0.7404395", "0.738456", "0.73655045", "0.73655045", "0.73626465", "0.73571396", "0.73571396", "0.7340796", "0.7340796", "0.73296285", "0.73296285", "0.73296285", "0.73296285", "0.73138446", "0.72850984", "0.72833645", "0.7274588", "0.7265002", "0.7218486", "0.71874464", "0.7180702", "0.71784616", "0.717661", "0.7153647", "0.7148302", "0.71411884", "0.7111507", "0.7105549", "0.7100598", "0.7088822", "0.7088822", "0.7082139", "0.7082139", "0.70629466", "0.70629466", "0.70629466", "0.70629466", "0.7060878", "0.7060688", "0.70451844", "0.7036003", "0.7017497", "0.7017497", "0.7017497", "0.7017497", "0.7010121", "0.69933265", "0.6990119", "0.6989649", "0.6973754", "0.69685525", "0.69685525", "0.69685525", "0.69391435", "0.69050527", "0.68970263", "0.68970263", "0.6886025", "0.68797296", "0.68610823", "0.68609124", "0.685267", "0.6848444", "0.6848444", "0.6848444", "0.6842456", "0.6842456", "0.6842456", "0.6842456", "0.6842456", "0.6842456", "0.68188393", "0.68052334", "0.68027705", "0.68027705", "0.68027705", "0.6799822", "0.6798647", "0.67979693", "0.67859334", "0.67859334", "0.6781675", "0.6758064", "0.6757566" ]
0.74946386
7
Sets the createdDate value for this Organization.
public void setCreatedDate(java.util.Calendar createdDate) { this.createdDate = createdDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(Date createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date createdDate);", "public void setDateCreated(java.util.Date dateCreated){\r\n\t\tthis.dateCreated = dateCreated;\r\n\t}", "public void setCreatedDate(java.lang.String createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(String createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(Long createdDate) {\r\n\t\tthis.createdDate = createdDate;\r\n\t}", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public void setDateCreated(final Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public final void setDateCreated(java.util.Date datecreated)\r\n\t{\r\n\t\tsetDateCreated(getContext(), datecreated);\r\n\t}", "void setCreateDate(final Date creationDate);", "public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setDateCreated(Date dateCreated);", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setDateCreated(java.util.Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreateddate(Date createddate) {\n this.createddate = createddate;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "public void setCreationDate(\n @Nullable\n final LocalDateTime creationDate) {\n rememberChangedField(\"CreationDate\", this.creationDate);\n this.creationDate = creationDate;\n }", "public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }", "@Override\n\tpublic void setCreatedDate(java.util.Date CreatedDate) {\n\t\t_locMstLocation.setCreatedDate(CreatedDate);\n\t}", "public void setCreationDate(Date creationDate)\r\n {\r\n m_creationDate = creationDate;\r\n }", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "public void setCreationDate(Date creationDate);", "public void setCreationDate(Date creationDate) {\n \n this.creationDate = creationDate;\n\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreationDate(final Date creationDate) {\n\t\tthis.creationDate = creationDate;\n\t}", "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreated_date(java.util.Date created_date) {\n\t\t_primarySchoolStudent.setCreated_date(created_date);\n\t}", "public void setCreationDate(Date creationDate) {\n }", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreated(java.util.Date created) {\n this.created = created;\n }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "void setCreateDate(Date date);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreatedDate(InstantFilter createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}", "public void setCreatedOn(Date createdOn)\n {\n _model.setCreatedOn(createdOn);\n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public final void setDateCreated(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date datecreated)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.DateCreated.toString(), datecreated);\r\n\t}", "public void setCreationDate(java.util.Date creationDate) {\n this.creationDate = creationDate;\n }", "public ParticipantUpdater setDateCreated(final ZonedDateTime dateCreated) {\n this.dateCreated = dateCreated;\n return this;\n }", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;", "@Override\n\tpublic void setCreated_date(Date created_date) {\n\t\t_buySellProducts.setCreated_date(created_date);\n\t}", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreationDate(java.util.Calendar creationDate) {\n this.creationDate = creationDate;\n }", "public void setCreationDate(Long creationDate)\r\n\t{\r\n\t\tthis.creationDate = creationDate;\r\n\t}", "public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public void setCreationdate(Date creationdate) {\n this.creationdate = creationdate;\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }" ]
[ "0.7607315", "0.75710964", "0.75710964", "0.7529779", "0.7528454", "0.75250435", "0.749474", "0.7470944", "0.74367285", "0.74367285", "0.72751814", "0.7252572", "0.7246146", "0.7211241", "0.7200449", "0.71685386", "0.71685386", "0.71685386", "0.71683323", "0.71389437", "0.7121085", "0.7096237", "0.70194227", "0.70148534", "0.70148534", "0.69996697", "0.69932485", "0.69932485", "0.69770205", "0.69666684", "0.6954064", "0.6946595", "0.6946595", "0.6946595", "0.6946595", "0.6895412", "0.6869744", "0.6867065", "0.6863412", "0.68540674", "0.6837533", "0.6831678", "0.6823931", "0.67534363", "0.6723152", "0.6710256", "0.6710256", "0.6694654", "0.6671614", "0.6639389", "0.6639389", "0.6639389", "0.6639389", "0.6616159", "0.6616159", "0.6616159", "0.6616159", "0.6616159", "0.6616159", "0.6616159", "0.6616159", "0.6611697", "0.65878606", "0.65801287", "0.6567067", "0.6552244", "0.6552244", "0.6535325", "0.6529834", "0.6529834", "0.6529834", "0.65217155", "0.6498381", "0.6496084", "0.64912295", "0.64840734", "0.6482401", "0.6481239", "0.6477556", "0.6464489", "0.64640546", "0.6451348", "0.6451348", "0.6419445", "0.641914", "0.6415854", "0.6415266", "0.64106184", "0.6405983", "0.6401791", "0.6381148", "0.6363323", "0.636285", "0.6344157", "0.6344157", "0.6344157", "0.634375", "0.634375", "0.634375" ]
0.7431493
11
Gets the defaultAccountAndContactAccess value for this Organization.
public java.lang.String getDefaultAccountAndContactAccess() { return defaultAccountAndContactAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public String getDefaultAccount() {\n\n return this.defaultAccount;\n }", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "String getDefaultCannedAcl();", "public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public java.lang.String getDefaultPricebookAccess() {\n return defaultPricebookAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public static Account defaultAccount() {\n return Account.fromHexString(\n \"0xe05d9e08a18cf5573a92d030342c3b45395cd952e02346ba78e16421ee9dad88\");\n }", "public java.lang.String getDefaultCaseAccess() {\n return defaultCaseAccess;\n }", "public java.lang.String getContactAccessId() {\r\n return contactAccessId;\r\n }", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public final DefaultAccount mo17151a() {\n return this.f12933a;\n }", "public User getDefaultAdminUser() {\n //try and find an admin user matching the company contact info\n User adminUser = \n User.find(\"byCompanyAndEmail\", this, contactEmail).first();\n if(adminUser != null && adminUser.hasRole(RoleValue.COMPANY_ADMIN) && \n adminUser.status.equals(UserStatus.ACTIVE)){\n \n return adminUser;\n }\n\n List<User> activeUsers = User.find(\"byCompanyAndStatus\", this, \n UserStatus.ACTIVE).fetch();\n \n for (User activeUser : activeUsers) {\n if(activeUser.hasRole(RoleValue.COMPANY_ADMIN)){\n return activeUser;\n }\n }\n\n throw new IllegalStateException(\"No active, admin user for company \" +\n name + \".\");\n }", "public String getOperatorAccount() {\n\n // is there an in-memory current account?\n String currentAccount = currentAccountId();\n if (!StringUtil.isNullOrEmpty(currentAccount)) {\n return currentAccount;\n }\n // is there an on-disk default account?\n String defaultAccountNameAndId = getDefaultAccount();\n if (!defaultAccountNameAndId.isEmpty()) {\n String[] defaultArray = defaultAccountNameAndId.split(\":\");\n return defaultArray[1];\n }\n // no account, so empty string\n return \"\";\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "com.google.ads.googleads.v6.resources.CustomerUserAccess getCustomerUserAccess();", "public ArrayList getAccountContact() {\n\t\treturn AccountContact;\n\t}", "public int getAuthAccountFlags() {\n return authAccountFlags_;\n }", "public Optional<AuthLoginOci> authLoginOci() {\n return Codegen.objectProp(\"authLoginOci\", AuthLoginOci.class).config(config).get();\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public String getAllowAccout() {\n return allowAccout;\n }", "public String getLoginAccount() {\n return loginAccount;\n }", "public int getAuthAccountFlags() {\n return authAccountFlags_;\n }", "AdPartner getAdDefaultPartner();", "public String getAccountNameNav() {\n\t\treturn keypad.AccountNameNavDrawer.getText();\n\t}", "public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }", "@JsonIgnore public Organization getAuthenticator() {\n return (Organization) getValue(\"authenticator\");\n }", "public Integer getDefaultAssignee() {\n return defaultAssignee;\n }", "public static TypePermission[] getDefaultPermissions() {\n return PERMISSIONS.clone();\n }", "AdminPreference getDefaultAdminPreference();", "java.lang.String getLoginAccount();", "java.lang.String getLoginAccount();", "public boolean GetIsByDefault()\n {\n return this._defaultSpace;\n }", "public Object getDefault() {\n\t\treturn defaultField;\n\t}", "public Organisation getOwner() {\n for (final DeviceAuthorization authorization : this.authorizations) {\n if (authorization.getFunctionGroup().equals(DeviceFunctionGroup.OWNER)) {\n return authorization.getOrganisation();\n }\n }\n\n return null;\n }", "public final String getOrganisation() {\n return organisation;\n }", "public AccountPermissions accountPermissions() {\n return this.accountPermissions;\n }", "public boolean isDefaultAdminRole() {\r\n\t\treturn this.getName().equals(\"Role_Administrator\");\r\n\t}", "default Optional<Boolean> doesCalendarAccessAuthorized() {\n return Optional.ofNullable(toSafeBoolean(getCapability(CALENDAR_ACCESS_AUTHORIZED_OPTION)));\n }", "@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}", "public static final Account createDefaultAdminAccount() {\n Name name = new Name(\"Alice\");\n Credential credential = new Credential(\"admin\", \"admin\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(2);\n Account admin = new Account(name, credential, matricNumber, privilegeLevel);\n return admin;\n }", "public java.util.List<Reference> account() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_ACCOUNT);\n }", "@java.lang.Override\n public starnamed.x.wasm.v1beta1.Types.AccessConfig getInstantiatePermission() {\n return instantiatePermission_ == null ? starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n }", "public starnamed.x.wasm.v1beta1.Types.AccessConfig getInstantiatePermission() {\n if (instantiatePermissionBuilder_ == null) {\n return instantiatePermission_ == null ? starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n } else {\n return instantiatePermissionBuilder_.getMessage();\n }\n }", "int getAuthAccountFlags();", "public String getDefaultLink() {\n return (toAdDefaultLink);\n }", "public CustomerAddressQuery defaultBilling() {\n startField(\"default_billing\");\n\n return this;\n }", "public static synchronized CatalogSettings getDefault() {\n if (instance == null) {\n instance = Lookup.getDefault().lookup(CatalogSettings.class);\n }\n return instance;\n }", "public MicrosoftGraphStsPolicy withIsOrganizationDefault(Boolean isOrganizationDefault) {\n this.isOrganizationDefault = isOrganizationDefault;\n return this;\n }", "public Optional<AuthLogin> authLogin() {\n return Codegen.objectProp(\"authLogin\", AuthLogin.class).config(config).get();\n }", "String getDefaultAttrs() {\n return mDefaultAttrs;\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "public String getAccession() {\n return accession;\n }", "public String getCampaignAccount() {\n return (tozAdCampaignAccount);\n }", "public String getAccount() {\r\n\t\treturn account;\r\n\t}", "public Optional<AuthLoginGcp> authLoginGcp() {\n return Codegen.objectProp(\"authLoginGcp\", AuthLoginGcp.class).config(config).get();\n }", "public Address getDefaultBillingAddress();", "public Object getDefaultBean() {\n Object obj = this._defaultBean;\n if (obj == null) {\n obj = this._beanDesc.instantiateBean(this._config.canOverrideAccessModifiers());\n if (obj == null) {\n obj = NO_DEFAULT_MARKER;\n }\n this._defaultBean = obj;\n }\n if (obj == NO_DEFAULT_MARKER) {\n return null;\n }\n return this._defaultBean;\n }", "public boolean isDefaultOwner() {\r\n\t\treturn defaultOwner;\r\n\t}", "public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}", "public String getDefaultTenancy() {\n return Tenancy.Default.name();\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "@ApiModelProperty(value = \"Gets or sets Default Document Author.\")\n public String getDefaultDocumentAuthor() {\n return defaultDocumentAuthor;\n }", "public java.lang.String getDesignadorAcesso() {\r\n return designadorAcesso;\r\n }", "public PrivilegesRadioEnum getDefaultPrivilegesRadio() {\r\n return PrivilegesRadioEnum.IMMEDIATE;\r\n }", "public static Account getCurrentAccount() {\r\n\t\treturn currentAccount;\r\n\t}", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public boolean isDefaultLocked()\n\t{\n\t\treturn defaultLocked;\n\t}", "com.google.ads.googleads.v6.resources.CustomerUserAccessOrBuilder getCustomerUserAccessOrBuilder();", "public java.lang.Boolean getOpcdefault() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT);\n\t}", "protected String getDefaultUserName()\n {\n return \"admin\";\n }", "public String getDefaultFromAddress() {\n\t\treturn myDefaultFromAddress;\n\t}", "public String getCurrentUserAccount();", "public AccountGrants accountGrants() {\n return this.accountGrants;\n }", "public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}", "public String getAccount() {\n\t\treturn getUsername() + \":\" + getPassword() + \"@\" + getUsername();\n\t}", "public String getOrganization() {\n\t\treturn organization;\n\t}", "String getOrganization();", "public Boolean get_is_default()\r\n\t{\r\n\t\treturn this.is_default;\r\n\t}", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}", "public int getAccountType() {\r\n return accountType;\r\n }", "public String apiAccessLevel() {\n return this.apiAccessLevel;\n }", "public XAD getAdministeredAtAddress() { \r\n\t\tXAD retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }", "protected SystemRole getDefaultSystemRole(){\r\n \tif (true) return AccessDef.SystemRole.SiteAdmin;\r\n return AccessDef.SystemRole.User;\r\n }", "public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }", "@Override\n\tpublic List<Airport> getDefaultAirports() {\n\t\tList<Airport> airports = AirportDaoObject.getDefaultAirports();\n\t\treturn airports;\n\t}", "public String getOrganization() {\n return organization;\n }", "public int getAccessLevel() {\n return 0;\r\n }", "public String getFirstComboDefaultValue() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getUuid();\r\n }", "public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }", "public starnamed.x.wasm.v1beta1.Types.AccessConfigOrBuilder getInstantiatePermissionOrBuilder() {\n if (instantiatePermissionBuilder_ != null) {\n return instantiatePermissionBuilder_.getMessageOrBuilder();\n } else {\n return instantiatePermission_ == null ?\n starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n }\n }", "public Account getAccount() {\r\n\t\treturn account;\r\n\t}", "public String getCustomerContactRecordAuthenticationLevel() {\n return customerContactRecordAuthenticationLevel;\n }" ]
[ "0.66893137", "0.6620492", "0.65258723", "0.6357077", "0.605064", "0.6037283", "0.59631455", "0.5820304", "0.56667197", "0.54883885", "0.5359158", "0.53520155", "0.5339856", "0.52576536", "0.52092075", "0.51746726", "0.5076488", "0.49598184", "0.4922565", "0.4913488", "0.48913395", "0.4722927", "0.46567893", "0.4652877", "0.46266687", "0.4622359", "0.46217406", "0.45995563", "0.4591947", "0.4591871", "0.45902216", "0.45805773", "0.4549475", "0.45425332", "0.45392293", "0.45376256", "0.45277593", "0.45277593", "0.4526893", "0.4516959", "0.45054474", "0.4484543", "0.4480702", "0.44799584", "0.4478803", "0.44724533", "0.44600943", "0.44575152", "0.4449902", "0.44497073", "0.44370496", "0.44246918", "0.4423893", "0.44177818", "0.44094232", "0.43986812", "0.4391866", "0.4379276", "0.43760136", "0.43755978", "0.43598822", "0.43482813", "0.4340334", "0.43313095", "0.43269375", "0.43225932", "0.43207818", "0.43191153", "0.431548", "0.43131673", "0.4308847", "0.43067515", "0.4305487", "0.42997876", "0.42890376", "0.42874196", "0.428469", "0.42817503", "0.4281326", "0.42747986", "0.4269426", "0.4265349", "0.426215", "0.4260975", "0.42586622", "0.42573643", "0.42557076", "0.42452192", "0.4241558", "0.4240022", "0.42387053", "0.42328298", "0.4227503", "0.42233935", "0.42229918", "0.42195985", "0.42178828", "0.42127112", "0.42080668", "0.42072627" ]
0.81986034
0
Sets the defaultAccountAndContactAccess value for this Organization.
public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) { this.defaultAccountAndContactAccess = defaultAccountAndContactAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public void setDefaultPricebookAccess(java.lang.String defaultPricebookAccess) {\n this.defaultPricebookAccess = defaultPricebookAccess;\n }", "public void setDefaultACL(AVACL avacl) {\n this.defaultACL = avacl;\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public void setContactAccess(java.lang.String contactAccess) {\r\n this.contactAccess = contactAccess;\r\n }", "public void setDefaultHackystatAccount(String defaultHackystatAccount) {\r\n this.defaultHackystatAccount = defaultHackystatAccount;\r\n }", "public MicrosoftGraphStsPolicy withIsOrganizationDefault(Boolean isOrganizationDefault) {\n this.isOrganizationDefault = isOrganizationDefault;\n return this;\n }", "String getDefaultCannedAcl();", "public void setDefault(boolean aDefault) {\n m_Default = aDefault;\n }", "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "private void addDefaultAclEntryToAcl(PSAclImpl acl)\n {\n PSAclEntryImpl aclEntry = new PSAclEntryImpl(new PSTypedPrincipal(\n \"Default\", PrincipalTypes.COMMUNITY));\n aclEntry.addPermission(PSPermissions.RUNTIME_VISIBLE);\n acl.addEntry(aclEntry);\n }", "public Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public void setDefaultOwner(boolean defaultOwner) {\r\n\t\tthis.defaultOwner = defaultOwner;\r\n\t}", "public void setDefaultGroup(boolean defaultGroup);", "public void setDefaultChoice(final boolean defaultChoice)\r\n\t{\r\n\t\tthis.defaultChoice = defaultChoice;\r\n\t}", "public String getDefaultAccount() {\n\n return this.defaultAccount;\n }", "public CustomerAddressQuery defaultBilling() {\n startField(\"default_billing\");\n\n return this;\n }", "public void setDefaultPaymentGroupName(String pDefaultPaymentGroupName);", "public void setDefaultEmailRecipients(String defaultEmailRecipients) {\n this.defaultEmailRecipients = defaultEmailRecipients;\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccounts(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public void setForceAccess(boolean forceAccess) {\r\n \t\tthis.forceAccess = forceAccess;\r\n \t}", "public void setDefaultPortConfig(com.vmware.converter.DVPortSetting defaultPortConfig) {\r\n this.defaultPortConfig = defaultPortConfig;\r\n }", "public void setDefaultAssignee(Integer defaultAssignee) {\n this.defaultAssignee = defaultAssignee;\n }", "private void maybeSetDefaultProfileOwnerUserRestrictions() {\n synchronized (getLockObject()) {\n for (final int userId : mOwners.getProfileOwnerKeys()) {\n final ActiveAdmin profileOwner = getProfileOwnerAdminLocked(userId);\n // The following restrictions used to be applied to managed profiles by different\n // means (via Settings or by disabling components). Now they are proper user\n // restrictions so we apply them to managed profile owners. Non-managed secondary\n // users didn't have those restrictions so we skip them to keep existing behavior.\n if (profileOwner == null || !mUserManager.isManagedProfile(userId)) {\n continue;\n }\n maybeSetDefaultRestrictionsForAdminLocked(userId, profileOwner,\n UserRestrictionsUtils.getDefaultEnabledForManagedProfiles());\n ensureUnknownSourcesRestrictionForProfileOwnerLocked(\n userId, profileOwner, false /* newOwner */);\n }\n }\n }", "private void maybeSetDefaultRestrictionsForAdminLocked(\n int userId, ActiveAdmin admin, Set<String> defaultRestrictions) {\n if (defaultRestrictions.equals(admin.defaultEnabledRestrictionsAlreadySet)) {\n return; // The same set of default restrictions has been already applied.\n }\n Slogf.i(LOG_TAG, \"New user restrictions need to be set by default for user \" + userId);\n\n if (VERBOSE_LOG) {\n Slogf.d(LOG_TAG, \"Default enabled restrictions: \"\n + defaultRestrictions\n + \". Restrictions already enabled: \"\n + admin.defaultEnabledRestrictionsAlreadySet);\n }\n\n final Set<String> restrictionsToSet = new ArraySet<>(defaultRestrictions);\n restrictionsToSet.removeAll(admin.defaultEnabledRestrictionsAlreadySet);\n if (!restrictionsToSet.isEmpty()) {\n for (final String restriction : restrictionsToSet) {\n admin.ensureUserRestrictions().putBoolean(restriction, true);\n }\n admin.defaultEnabledRestrictionsAlreadySet.addAll(restrictionsToSet);\n Slogf.i(LOG_TAG, \"Enabled the following restrictions by default: \" + restrictionsToSet);\n saveUserRestrictionsLocked(userId);\n }\n }", "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 }", "public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }", "public Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public static Account defaultAccount() {\n return Account.fromHexString(\n \"0xe05d9e08a18cf5573a92d030342c3b45395cd952e02346ba78e16421ee9dad88\");\n }", "private void assignUsersToDefaultRole() {\n List<Role> roles = (List<Role>) roleService.listAll();\n List<CustomUser> users = (List<CustomUser>) userService.listAll();\n\n users.forEach(user -> {\n if(user.getRoles().size() < 1) {\n roles.forEach(role -> {\n user.addRole(role);\n userService.save(user);\n });\n }\n });\n log.debug(\"Default roles have been assigned to users!\");\n }", "default T setCalendarAccessAuthorized(boolean value) {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, value);\n }", "public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }", "public void setDefault(boolean value) {\n this._default = value;\n }", "public void setDefaultLocked(boolean systemLocked)\n\t{\n\t\tthis.defaultLocked = systemLocked;\n\t}", "public void setDefaultFixedCostAccrual(AccrueType defaultFixedCostAccrual)\r\n {\r\n m_defaultFixedCostAccrual = defaultFixedCostAccrual;\r\n }", "public void setAllowAccout(String allowAccout) {\n this.allowAccout = allowAccout == null ? null : allowAccout.trim();\n }", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "protected void setToDefault(){\n\n\t}", "public void setAccessPolicyConfig(boolean value) {\n\t\tthis.accessPolicyConfig = value;\n\t}", "void setAccountNonLocked(boolean accountNonLocked);", "private void initDefaultIslandData() {\n for (IslandProtectionAccessGroup accessLevel : IslandProtectionAccessGroup.values()) {\n protectionFlags.put(accessLevel, (BitSet) EmberIsles.getInstance().getDefaultProtectionFlags(accessLevel).clone());\n }\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "private GridCoverageRequest setStandardReaderDefaults(GridCoverageRequest subsettingRequest) throws IOException {\n DateRange temporalSubset = subsettingRequest.getTemporalSubset();\n NumberRange<?> elevationSubset = subsettingRequest.getElevationSubset();\n Map<String, List<Object>> dimensionSubset = subsettingRequest.getDimensionsSubset();\n\n // Reader is not a StructuredGridCoverage2DReader instance. Set default ones with policy \"time = max, elevation = min\".\n\n // Setting default time\n if (temporalSubset == null) {\n // use \"max\" as the default\n Date maxTime = accessor.getMaxTime();\n if (maxTime != null) {\n temporalSubset = new DateRange(maxTime, maxTime);\n }\n }\n\n // Setting default elevation\n if (elevationSubset == null) {\n // use \"min\" as the default\n Number minElevation = accessor.getMinElevation();\n if (minElevation != null) {\n elevationSubset = new NumberRange(minElevation.getClass(), minElevation, minElevation);\n }\n }\n\n // Setting default custom dimensions\n final List<String> customDomains = accessor.getCustomDomains();\n int availableCustomDimensions = 0; \n int specifiedCustomDimensions = 0;\n if (customDomains != null && !customDomains.isEmpty()) {\n availableCustomDimensions = customDomains.size();\n specifiedCustomDimensions = dimensionSubset != null ? dimensionSubset.size() : 0; \n if (dimensionSubset == null) {\n dimensionSubset = new HashMap<String, List<Object>>();\n }\n }\n if (availableCustomDimensions != specifiedCustomDimensions) {\n setDefaultCustomDimensions(customDomains, dimensionSubset);\n }\n\n subsettingRequest.setDimensionsSubset(dimensionSubset);\n subsettingRequest.setTemporalSubset(temporalSubset);\n subsettingRequest.setElevationSubset(elevationSubset);\n return subsettingRequest;\n }", "public final void setDefaultEnvProfile(final String defaultEnvProfile) {\r\n\t\tthis.defaultEnvProfile = defaultEnvProfile;\r\n\t}", "public void setIsDefault(boolean value) {\n this.isDefault = value;\n }", "public void setToDefault();", "public void setContactAccessId(java.lang.String contactAccessId) {\r\n this.contactAccessId = contactAccessId;\r\n }", "public final void setDefault() {\n wind.setCoordinates(DEFAULT_TURBULENCES, DEFAULT_TURBULENCES,\n DEFAULT_TURBULENCES);\n }", "void setDefaultSendOptions(SendOptions defaultSendOptions) {\n this.defaultSendOptions = defaultSendOptions;\n }", "@Override\n\tpublic void setDefaultAvatar(String userName) {\n\n\t}", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public void setAccessRights(AccessRights accessRights) {\r\n\t\tthis.accessRights = accessRights;\r\n\t}", "@Override\n\tpublic void setDefaultAttributes() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tattrCatAry.add(\"SUBJECT\");\n\t\tattrTypeAry.add(\"STRING\");\n\t\tattrIdAry.add(\"com.axiomatics.emailAddress\");\n\t\tattrValAry.add(auth.getName());\n\t\tCollection<?> authorities = auth.getAuthorities();\n\t\tfor (Iterator<?> roleIter = authorities.iterator(); roleIter.hasNext();) {\n\t\t\tGrantedAuthority grantedAuthority = (GrantedAuthority) roleIter.next();\n\t\t\tattrCatAry.add(\"SUBJECT\");\n\t\t\tattrTypeAry.add(\"STRING\");\n\t\t\tattrIdAry.add(\"role\");\n\t\t\tattrValAry.add(grantedAuthority.getAuthority());\n\t\t}\n\t}", "public void setResetDefaultSubjects(Boolean resetDefaultSubjects) {\n\t this.resetDefaultSubjects = resetDefaultSubjects;\n\t}", "public void setDefaultRestrictions() {\n addPolicy(DISABLE_EXIT);\n addPolicy(DISABLE_ANY_FILE_MATCHER);\n addPolicy(DISABLE_SECURITYMANAGER_CHANGE);\n //addPolicy(DISABLE_REFLECTION_UNTRUSTED);\n addPolicy(DISABLE_EXECUTION);\n addPolicy(DISABLE_TEST_SNIFFING);\n addPolicy(DISABLE_REFLECTION_SELECTIVE);\n addPolicy(DISABLE_SOCKETS);\n\n InterceptorBuilder.installAgent();\n InterceptorBuilder.initDefaultTransformations();\n }", "private void useDefaultMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useDefaultMenuItemActionPerformed\n\n keyInfoUserTextField.setText(DEFAULT_API_KEY);\n keySearchPhotoTextField.setText(DEFAULT_API_KEY);\n keySearchUserTextField.setText(DEFAULT_API_KEY);\n keygetGroupsTextFIeld.setText(DEFAULT_API_KEY);\n unuseDefaultKeyMenuItem.setEnabled(true);\n useDefaultMenuItem.setEnabled(false);\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAlwaysShowAccountPicker(boolean param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public java.lang.String getDefaultCaseAccess() {\n return defaultCaseAccess;\n }", "public void SetDefaultParams() {\n OCCwrapJavaJNI.BRepAlgo_NormalProjection_SetDefaultParams(swigCPtr, this);\n }", "public void setDefaultBitmap(Bitmap bitmap) {\n mController.setDefaultBitmap(bitmap);\n }", "public void setDefaultConfiguration(Map<String, String> defaultConfiguration) {\n if (defaultConfiguration != null) {\n this.defaultConfiguration.putAll(defaultConfiguration);\n }\n }", "public static void setDefaultUserImage() {\n user.setUserProfileImage(null);\n setUpNavigationHeader();\n ImageManager.deleteImage(ImageManager.USER_PROFILE_IMAGES_PATH, user.getUsername());\n }", "public void setDefaultSettings()\n {\n this.IndexerEffort = 0;\n this.indexZIPFiles = true;\n this.thumbnailsMatrix = \"64\";\n this.SaveThumbnails = false;\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }", "public void setDefaultNamespace(String namespaceUri) {\n if (namespaceUri == null)\n throw new NullPointerException(\"null namespace URI\");\n defaultNamespaceUri = namespaceUri;\n }", "protected void setJAIDefaultOptions() {\r\n\r\n\t\tthis.updateDynamicWelcomeText(\"Setting default JAI options...\");\r\n\r\n\t\tfinal long memCapacity = 1024L * 1024 * 1024; // 1024MByte\r\n\t\t// final long memCapacity = 0L; // 256MByte\r\n\t\t// final long tileCapacity = 1000L;\r\n\t\tJAI.getDefaultInstance().setTileCache(JAI.createTileCache(memCapacity));\r\n\t\tJAI.getDefaultInstance().setRenderingHint(\r\n\t\t\t\tJAI.KEY_CACHED_TILE_RECYCLING_ENABLED, Boolean.FALSE);\r\n\t\tTileScheduler ts = JAI.createTileScheduler();\r\n\t\tts.setPriority(Thread.MAX_PRIORITY);\r\n\t\t// ts.setParallelism(2); //default 2\r\n\t\tJAI.getDefaultInstance().setTileScheduler(ts);\r\n\r\n\t}", "public void setDefaultGroup(SymbolGroup defaultGroup) {\n if (groups != null && !groups.contains(defaultGroup)) {\n addGroup(defaultGroup);\n }\n this.defaultGroup = defaultGroup;\n }", "public void setContactOrganization(String contactOrganization) {\n this.contactOrganization = contactOrganization;\n }", "private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}", "public Address getDefaultBillingAddress();", "public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }", "public void setDefaultOffset(int defaultOffset) {\r\n this.defaultOffset = defaultOffset;\r\n }", "public void setCancelAutoLogin(boolean val) {\n\t\tref.edit().putBoolean(COL_AUTO_LOGIN_CANCEL, val).commit();\n\t}", "public static final Account createDefaultAdminAccount() {\n Name name = new Name(\"Alice\");\n Credential credential = new Credential(\"admin\", \"admin\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(2);\n Account admin = new Account(name, credential, matricNumber, privilegeLevel);\n return admin;\n }", "public static void setAccessMode(boolean writeAccessAllowed) {\r\n\t\tWRITE_ACCESS_ALLOWED = writeAccessAllowed;\r\n\t\tKTcDfl tcDfl = dfl;\r\n\t\tif (tcDfl != null) {\r\n\t\t\ttcDfl.client.setWriteAccess(writeAccessAllowed);\r\n\t\t}\r\n\t}", "private void initAccess() {\n\t\tif (!Users.doesCurrentUserHaveAccess(Users.ACCESS_CLASS_BEGINNING_DATA_ENTRY) &&\n\t\t\t\t!this.getParentEditor().getNewRecord() &&\n\t\t\t\t!referenceNewPatron) {\n\t\t\treadOnly = true;\n\t\t\tsetFormToReadOnly();\n\t\t\t//research purpose\n\t\t\taddResearchPurpose.setEnabled(false);\n\t\t\tremoveResearchPurpose.setEnabled(false);\n\t\t\t//subject buttons\n\t\t\taddSubject.setEnabled(false);\n\t\t\tremoveSubject.setEnabled(false);\n\t\t\t//name buttons\n\t\t\taddName.setEnabled(false);\n\t\t\tremoveName.setEnabled(false);\n\t\t\teditNameRelationshipButton.setEnabled(false);\n // resource button\n addResourceButton.setEnabled(false);\n removeResourceButton.setEnabled(false);\n\t\t}\n\t}", "public void setDefaultPolicy(Policy defaultPolicy) {\n\t\tif (defaultPolicy == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.defaultPolicy = defaultPolicy;\n\t}", "public void setPermissionAccess(String permissionAccess)\n\t{\n\t\tthis.permissionAccess = permissionAccess;\n\t}", "private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }", "public void setAccess(ModbusAccess access) {\r\n\t\tthis.access = access;\r\n\t}", "public void setEditAuthUserApprover(final boolean val) {\n editAuthUserType |= UserAuth.approverUser;\n }", "public java.lang.String getDefaultPricebookAccess() {\n return defaultPricebookAccess;\n }", "public synchronized void createDefaultRoles() {\n if (roleDAO.findByName(getUserRole()) == null) {\n createRole(getUserRole());\n }\n if (roleDAO.findByName(getAdminRole()) == null) {\n createRole(getAdminRole());\n }\n }", "public void setDefaultProxyConfig(ProxyConfig config);", "@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }", "public DefaultGATKVariantAnnotationArgumentCollection(final List<String> defaultGroups, final List<String> defaultAnnotations, final List<String> defaultAnnotationsToExclude) {\n Utils.nonNull(defaultGroups);\n Utils.nonNull(defaultAnnotations);\n Utils.nonNull(defaultAnnotationsToExclude);\n\n annotationGroupsToUse = new ArrayList<>(defaultGroups);\n annotationsToUse = new ArrayList<>(defaultAnnotations);\n annotationsToExclude = new ArrayList<>(defaultAnnotationsToExclude);\n }", "public boolean isDefaultOwner() {\r\n\t\treturn defaultOwner;\r\n\t}", "public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }", "public void setappAccess(String appAccess) {\n\t\t_appAccess = appAccess;\n\t}" ]
[ "0.65892476", "0.64843315", "0.6427673", "0.62579614", "0.57780296", "0.5479313", "0.5395985", "0.51663333", "0.51358414", "0.5092904", "0.49839777", "0.48346335", "0.47749504", "0.47496042", "0.46955913", "0.4666469", "0.46662092", "0.4605472", "0.45979425", "0.45730188", "0.45489076", "0.45111564", "0.4495846", "0.44723096", "0.44367087", "0.4393129", "0.438204", "0.4360218", "0.4324009", "0.43214655", "0.4273444", "0.42709348", "0.42650792", "0.42555887", "0.42158604", "0.42069712", "0.41948587", "0.4188295", "0.41828713", "0.4156932", "0.41472378", "0.41311872", "0.413108", "0.41235816", "0.411597", "0.4097948", "0.40890867", "0.40839672", "0.40525943", "0.40461603", "0.40421623", "0.40377873", "0.40356758", "0.4033042", "0.40246883", "0.40142456", "0.39965943", "0.39899296", "0.39897957", "0.39824063", "0.39745334", "0.3971068", "0.39624053", "0.39590386", "0.3951284", "0.3950756", "0.39499742", "0.39301997", "0.39157352", "0.39150888", "0.3904954", "0.38998523", "0.38966617", "0.38932595", "0.3891158", "0.3883776", "0.38783833", "0.38698342", "0.386686", "0.3865617", "0.38573924", "0.38478413", "0.38224724", "0.38151717", "0.38103974", "0.37950814", "0.37931338", "0.37924454", "0.37912512", "0.37843844", "0.3781125", "0.37794465", "0.37781757", "0.3775516", "0.3769831", "0.3769513", "0.37687823", "0.37624344", "0.37614775", "0.3759472" ]
0.80644405
0
Gets the defaultCalendarAccess value for this Organization.
public java.lang.String getDefaultCalendarAccess() { return defaultCalendarAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "default Optional<Boolean> doesCalendarAccessAuthorized() {\n return Optional.ofNullable(toSafeBoolean(getCapability(CALENDAR_ACCESS_AUTHORIZED_OPTION)));\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public Calendar getCurrentCalendar()\n {\n return this.currentCalendar;\n }", "public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}", "String getDefaultCannedAcl();", "public final String getCalendarName() {\n return calendarName;\n }", "public jkt.hrms.masters.business.MstrCalendar getCalendar () {\n\t\treturn calendar;\n\t}", "public boolean getCalendarType() {\n\t\treturn this.calType;\n\t}", "public Collection<BwCalendar> getPreferredCalendars() {\n return getCurAuthUserPrefs().getCalendarPrefs().getPreferred();\n }", "public String getCalendarName()\r\n {\r\n return (m_calendarName);\r\n }", "public java.lang.String getDefaultCaseAccess() {\n return defaultCaseAccess;\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public Calendar getCalendar() {\n return this.calendar;\n }", "public Calendar getCalendar() {\n return _iborIndex.getCalendar();\n }", "@Override\n\tpublic org.sakaiproject.calendar.api.Calendar getCalendar(String ref)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tSite site = null;\n\t\tif (ref == null){\n\t\t\tsite = getSite();\n\t\t}\n\t\telse{\n\t\t\tsite = getSite(ref);\n\t\t}\n\t\t// We use the e-mail id of the site creator since the Google calendar is created under this id.\n\t\tCalendar googleClient = getGoogleClient(site.getCreatedBy().getEmail());\n\t\treturn new SakaiGCalendarImpl(googleClient);\n\t}", "public BwCalendar getCalendar() {\n if (calendar == null) {\n calendar = new BwCalendar();\n }\n\n return calendar;\n }", "public Calendar getCalendar() {\n return _calendar;\n }", "Calendar getCalendar();", "public Calendar getCalendar() {\n return cal;\n }", "public java.lang.String getDefaultPricebookAccess() {\n return defaultPricebookAccess;\n }", "public Calendar getCalendar() {\n Calendar c = Calendar.getInstance();\n c.setTime(cal.getTime());\n return c;\n }", "public int getC_Calendar_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Calendar_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getCalendarString() {\n return calendarString;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public Integer getCalendarDd() {\r\n return calendarDd;\r\n }", "public ICalendar getCalendar() {\n return calendar;\n }", "public java.lang.String getDesignadorAcesso() {\r\n return designadorAcesso;\r\n }", "public final process.proxies.ChangeCalenderSelection getCalendarSelection()\r\n\t{\r\n\t\treturn getCalendarSelection(getContext());\r\n\t}", "public SelectId<String> retrieveCalendarId() {\n return calendarId;\n }", "public Calendar getCal() {\n return cal;\n }", "default T setCalendarAccessAuthorized(boolean value) {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, value);\n }", "public final Calendar calendarValue() {\n return calValue;\n }", "public String getDefaultAccount() {\n\n return this.defaultAccount;\n }", "@ApiModelProperty(example = \"null\", value = \"The default scheduling period for the different scheduling strategies.\")\n public Map<String, String> getDefaultSchedulingPeriod() {\n return defaultSchedulingPeriod;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "private Calendar chooseCalendar(SignupSite site) throws PermissionException {\n\t\tCalendar calendar = sakaiFacade.getAdditionalCalendar(site.getSiteId());\n\t\tif (calendar == null) {\n\t\t\tcalendar = sakaiFacade.getCalendar(site.getSiteId());\n\t\t}\n\t\treturn calendar;\n\t}", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public AccessType getAccessType() {\n\treturn this.accessType;\n }", "public Dia[] getCalendari() {\n\t\treturn cal;\n\t}", "Long getCalendarId();", "public java.util.Calendar getAuthnTime() {\r\n return authnTime;\r\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public String getCalenderId() {\n\t\treturn calenderId;\n\t}", "public java.util.Calendar getLoginDate() {\r\n return loginDate;\r\n }", "public java.lang.String getContactAccessId() {\r\n return contactAccessId;\r\n }", "public java.util.Calendar getCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "@Override\n\tpublic boolean allowGetCalendar(String ref) {\n\t\treturn false;\n\t}", "public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}", "@Override\n\tpublic CalendarEdit editCalendar(String ref) throws IdUnusedException,\n\t\t\tPermissionException, InUseException {\n\t\treturn null;\n\t}", "public String getAccession() {\n return accession;\n }", "public Calendar getFechaMatriculacion() {\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(Integer.parseInt(cbox_ano.getSelectedItem().toString()), cbox_mes.getSelectedIndex(),\r\n\t\t\t\tInteger.parseInt(cbox_dia.getSelectedItem().toString()));\r\n\t\treturn c;\r\n\t}", "public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }", "public int getAccessType() {\n return accessType;\n }", "public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }", "@Override\n\tpublic CalendarEdit addCalendar(String ref) throws IdUsedException,\n\t\t\tIdInvalidException, PermissionException {\n\t\treturn null;\n\t}", "public final long getAccessDateTime() {\n \treturn m_accessDate;\n }", "public Calendar getValue() {\n \tCalendar c = Calendar.getInstance();\n \tc.setTime(getPersistedAttribute().getDatevalue());\n \tc.setTimeZone(TimeZone.getTimeZone(getPersistedAttribute().getTzvalue()));\n return c;\n }", "protected SystemRole getDefaultSystemRole(){\r\n \tif (true) return AccessDef.SystemRole.SiteAdmin;\r\n return AccessDef.SystemRole.User;\r\n }", "public Long getAccessId() {\n\t\treturn this.accessId;\n\t}", "@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}", "protected Calendar getCurrentCalendar() {\n Calendar current = new Calendar();\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n SimpleDateFormat dateFormatHour = new SimpleDateFormat(\"H\");\n SimpleDateFormat dateFormatWeekDay = new SimpleDateFormat(\"E\");\n SimpleDateFormat dateFormatMonth = new SimpleDateFormat(\"MMM\");\n\n current.setHour(dateFormatHour.format(calendar.getTime()).toString());\n current.setWeekday(dateFormatWeekDay.format(calendar.getTime()));\n current.setMonth(dateFormatMonth.format(calendar.getTime()));\n\n return current;\n }", "@Nullable\n public TimeZone getDefaultTimeZone() {\n return this.defaultTimeZone;\n }", "private void loadDefaultCalendar() {\n ICalendarAgenda iCalendarAgenda = new ICalendarAgenda();\n borderPane.setCenter(iCalendarAgenda);\n\n // block events on calendar\n EventHandler<MouseEvent> handler = MouseEvent::consume;\n borderPane.getCenter().addEventFilter(MouseEvent.ANY, handler);\n setUpBorderPane(iCalendarAgenda);\n }", "public starnamed.x.wasm.v1beta1.Types.AccessConfig getInstantiatePermission() {\n if (instantiatePermissionBuilder_ == null) {\n return instantiatePermission_ == null ? starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n } else {\n return instantiatePermissionBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public starnamed.x.wasm.v1beta1.Types.AccessConfig getInstantiatePermission() {\n return instantiatePermission_ == null ? starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n }", "public String toString() {\n return this.calendarName;\n }", "public String getDstAccessType() {\n return this.DstAccessType;\n }", "public ACL getACL() {\n return folderACL;\n }", "public Integer getDefaultAssignee() {\n return defaultAssignee;\n }", "public String getOrgCd() {\r\n return orgCd;\r\n }", "public String getCalId() {\n return calId;\n }", "public boolean isDefaultAdminRole() {\r\n\t\treturn this.getName().equals(\"Role_Administrator\");\r\n\t}", "public Calendar getCalendarService() throws IOException {\n\t\tCredential credential = this.googleCred;\n\t\treturn new Calendar.Builder(\n\t\t\t\tHTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(APP_NAME)\n\t\t\t\t.build();\n\t}", "public String getAccessTypeString() {\n return String.valueOf(accessType);\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }", "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "public Calendar getArchivalDate();", "public Calendar getFirstVisibleDay() {\n return viewState.getFirstVisibleDay();\n }", "public final String getOrganisation() {\n return organisation;\n }", "public BwCalendar getMeetingCal() {\n return meetingCal;\n }", "@Override\n public CurrentAccess getCurrentAccess() throws WebdavException {\n if (currentAccess != null) {\n return currentAccess;\n }\n\n if (event == null) {\n return null;\n }\n\n try {\n currentAccess = getSysi().checkAccess(event, PrivilegeDefs.privAny, true);\n } catch (Throwable t) {\n throw new WebdavException(t);\n }\n\n return currentAccess;\n }", "public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}", "public GregorianCalendar getCalendar() {\r\n return new GregorianCalendar(this.year, this.month - 1, this.day);\r\n }", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "@Override\n public CalendarUser getCalendarUser() { return calendarUser; }", "public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }", "public int getAccess() {\n\t\treturn access;\n\t}", "public IDatatype getDefaultValue() { \n\t\treturn myDefaultValue;\n\t}", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }" ]
[ "0.7119246", "0.65905833", "0.6297649", "0.62664986", "0.6088871", "0.5839437", "0.5811371", "0.57975614", "0.57395214", "0.56072545", "0.55822486", "0.55610865", "0.55527085", "0.5544805", "0.55394286", "0.55359805", "0.5535407", "0.55313647", "0.54953736", "0.5468925", "0.54682714", "0.5450143", "0.53923243", "0.5377726", "0.5373325", "0.52932847", "0.5260839", "0.5236782", "0.5182237", "0.5164733", "0.5157965", "0.5138414", "0.51249236", "0.5096249", "0.5089551", "0.50784063", "0.5054614", "0.5032009", "0.50309855", "0.5016656", "0.50096667", "0.50096667", "0.49915114", "0.49751124", "0.49551687", "0.49139753", "0.49100122", "0.49097565", "0.48870662", "0.4886868", "0.48835105", "0.4870952", "0.486511", "0.48545566", "0.4829927", "0.4825805", "0.48224798", "0.4807936", "0.47894475", "0.47876978", "0.4783344", "0.4771982", "0.47417983", "0.4714265", "0.47003436", "0.4695997", "0.46947137", "0.468983", "0.4687423", "0.46869126", "0.46764818", "0.46584544", "0.46534652", "0.46477842", "0.46406242", "0.4639563", "0.46385455", "0.46354145", "0.46351644", "0.46351576", "0.46277553", "0.46089765", "0.4606393", "0.4597354", "0.4589053", "0.45887116", "0.45875788", "0.4587553", "0.45780933", "0.45777944", "0.4566737", "0.45585564", "0.45569533", "0.45547214", "0.45517033", "0.4550057", "0.45500466", "0.4547047", "0.4547047", "0.4547047" ]
0.82065725
0
Sets the defaultCalendarAccess value for this Organization.
public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) { this.defaultCalendarAccess = defaultCalendarAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "default T setCalendarAccessAuthorized(boolean value) {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, value);\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setDefaultPricebookAccess(java.lang.String defaultPricebookAccess) {\n this.defaultPricebookAccess = defaultPricebookAccess;\n }", "public void setCalendar (jkt.hrms.masters.business.MstrCalendar calendar) {\n\t\tthis.calendar = calendar;\n\t}", "private void loadDefaultCalendar() {\n ICalendarAgenda iCalendarAgenda = new ICalendarAgenda();\n borderPane.setCenter(iCalendarAgenda);\n\n // block events on calendar\n EventHandler<MouseEvent> handler = MouseEvent::consume;\n borderPane.getCenter().addEventFilter(MouseEvent.ANY, handler);\n setUpBorderPane(iCalendarAgenda);\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public void setSelectedCalendar(String calendarName) {\n }", "public void setCalendarName(String calendarName)\r\n {\r\n if (calendarName == null || calendarName.length() == 0)\r\n {\r\n calendarName = DEFAULT_CALENDAR_NAME;\r\n }\r\n\r\n m_calendarName = calendarName;\r\n }", "public void setDefaultACL(AVACL avacl) {\n this.defaultACL = avacl;\n }", "public void setCalendarId(final String val) {\n if (Util.checkNull(val) != null) {\n calendarId.setA(val);\n }\n }", "public void assignAddingCalendar(final boolean val) {\n addingCalendar = val;\n }", "@Override\n\tpublic CalendarEdit editCalendar(String ref) throws IdUnusedException,\n\t\t\tPermissionException, InUseException {\n\t\treturn null;\n\t}", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void setCalendarPath(final String val) {\n calendarPath = val;\n }", "public void setCalendar(VCalendar calendar) {\n this.calendar = calendar;\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public void setDateAccess(Date dateAccess) {\n this.dateAccess = dateAccess;\n }", "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "@Override\n\tpublic CalendarEdit addCalendar(String ref) throws IdUsedException,\n\t\t\tIdInvalidException, PermissionException {\n\t\treturn null;\n\t}", "default Optional<Boolean> doesCalendarAccessAuthorized() {\n return Optional.ofNullable(toSafeBoolean(getCapability(CALENDAR_ACCESS_AUTHORIZED_OPTION)));\n }", "public void setAccessionDeaccessionToDate(String accessionDeaccessionToDate) {\n this.accessionDeaccessionToDate = accessionDeaccessionToDate;\n }", "void setCalendarId(Long calendarId);", "@Override\n\tpublic boolean allowEditCalendar(String ref) {\n\t\treturn false;\n\t}", "public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }", "public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }", "public JCalendar() {\r\n init();\r\n resetToDefaults();\r\n }", "public final void setCalendarSelection(process.proxies.ChangeCalenderSelection calendarselection)\r\n\t{\r\n\t\tsetCalendarSelection(getContext(), calendarselection);\r\n\t}", "public static process.proxies.UU95_CalendarSetting initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\r\n\t{\r\n\t\treturn new process.proxies.UU95_CalendarSetting(context, mendixObject);\r\n\t}", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "@Override\n\tpublic boolean allowGetCalendar(String ref) {\n\t\treturn false;\n\t}", "public Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public final void setCalendarSelection(com.mendix.systemwideinterfaces.core.IContext context, process.proxies.ChangeCalenderSelection calendarselection)\r\n\t{\r\n\t\tif (calendarselection != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.CalendarSelection.toString(), calendarselection.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.CalendarSelection.toString(), null);\r\n\t}", "public void setC_Calendar_ID(int C_Calendar_ID) {\n\t\tif (C_Calendar_ID <= 0)\n\t\t\tset_Value(\"C_Calendar_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_Calendar_ID\", new Integer(C_Calendar_ID));\n\t}", "protected void setAccessType(AccessType accessType) {\n\tthis.accessType = accessType;\n }", "public void setCalendari(Dia[] c) {\n\t\tcal = c;\n\t}", "public void setAccess(String access)\n\t\t{\n\t\t\tm_access = access;\n\t\t}", "public void setDefault(boolean aDefault) {\n m_Default = aDefault;\n }", "public void setFechaFinal(Calendar fechaFinal){\r\n this.fechaFinal = fechaFinal;\r\n }", "public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }", "public Collection<BwCalendar> getPreferredCalendars() {\n return getCurAuthUserPrefs().getCalendarPrefs().getPreferred();\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "void setLastAccessDate();", "@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "public void setDefaultTimeZone(TimeZone defaultTimeZone) {\n this.defaultTimeZone = defaultTimeZone;\n }", "private Calendar chooseCalendar(SignupSite site) throws PermissionException {\n\t\tCalendar calendar = sakaiFacade.getAdditionalCalendar(site.getSiteId());\n\t\tif (calendar == null) {\n\t\t\tcalendar = sakaiFacade.getCalendar(site.getSiteId());\n\t\t}\n\t\treturn calendar;\n\t}", "@Override\n\tpublic org.sakaiproject.calendar.api.Calendar getCalendar(String ref)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tSite site = null;\n\t\tif (ref == null){\n\t\t\tsite = getSite();\n\t\t}\n\t\telse{\n\t\t\tsite = getSite(ref);\n\t\t}\n\t\t// We use the e-mail id of the site creator since the Google calendar is created under this id.\n\t\tCalendar googleClient = getGoogleClient(site.getCreatedBy().getEmail());\n\t\treturn new SakaiGCalendarImpl(googleClient);\n\t}", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public void setDefault(boolean value) {\n this._default = value;\n }", "public void setAccess(ModbusAccess access) {\r\n\t\tthis.access = access;\r\n\t}", "public void setLastAccess(Date lastAccess) {\n this.lastAccess = lastAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "@PUT\n @Path(\"{id}\")\n @RolesAllowed({\"administrator\", \"user\", \"visitor\"})\n Response createOrUpdateCalendar(@PathParam(\"id\") Long id, Calendar calendar);", "public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}", "public void setAccessType(int accessType) {\n this.accessType = accessType;\n }", "private Calendar formatCalendar(Calendar calendar){\n calendar.set(\n calendar.get(Calendar.YEAR),\n calendar.get(Calendar.MONTH),\n calendar.get(Calendar.DAY_OF_MONTH),\n 0,\n 0,\n 0\n );\n return calendar;\n }", "public final void setUU95_CalendarSetting_ChangeCalendar(process.proxies.UU95_ChangeCalendar uu95_calendarsetting_changecalendar)\r\n\t{\r\n\t\tsetUU95_CalendarSetting_ChangeCalendar(getContext(), uu95_calendarsetting_changecalendar);\r\n\t}", "public void updateCalendarType() {\n\t\tthis.calType = (this.jdCO <= this.jd ? SE_GREG_CAL : SE_JUL_CAL);\n\t\t;\n\t}", "public boolean getCalendarType() {\n\t\treturn this.calType;\n\t}", "public void setappAccess(String appAccess) {\n\t\t_appAccess = appAccess;\n\t}", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "private boolean requireCalendarPermissions() {\r\n boolean hasWriteCalendarPerms = ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CALENDAR) == PackageManager.PERMISSION_GRANTED;\r\n if (hasWriteCalendarPerms)\r\n return true;\r\n\r\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_CALENDAR}, REQUEST_PERMISSION_CALENDAR);\r\n return false;\r\n }", "public void setCal(Calendar cal) {\n\t\tthis.year = (short) cal.get(Calendar.YEAR);\r\n\t\tthis.month = (byte) (cal.get(Calendar.MONTH)+1);\r\n\t\tthis.day = (byte) cal.get(Calendar.DAY_OF_MONTH);\r\n\t\tthis.hh = (byte) cal.get(Calendar.HOUR_OF_DAY);\r\n\t\tthis.mm = (byte) cal.get(Calendar.MINUTE);\r\n\t\tthis.ss = (byte) cal.get(Calendar.SECOND);\r\n\t}", "String getDefaultCannedAcl();", "public static void setEndOfDay(Calendar calendar) {\r\n\t\tcalendar.add(Calendar.DATE, 1);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\t}", "@Override\n\tpublic boolean allowMergeCalendar(String ref) {\n\t\treturn false;\n\t}", "public void setDefaultTimeZone(String defaultTimeZone) {\n setDefaultTimeZone(LocaleUtils.parseTimeZoneString(defaultTimeZone));\n }", "public void setDefaultAssignee(Integer defaultAssignee) {\n this.defaultAssignee = defaultAssignee;\n }", "private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }", "public void setIsDefault(boolean value) {\n this.isDefault = value;\n }", "public Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public void setParentCalendarPath(final String val) {\n parentCalendarPath = val;\n }", "public void setContactAccess(java.lang.String contactAccess) {\r\n this.contactAccess = contactAccess;\r\n }", "public void setDefaultOwner(boolean defaultOwner) {\r\n\t\tthis.defaultOwner = defaultOwner;\r\n\t}", "@Override\n\tpublic boolean allowImportCalendar(String ref) {\n\t\treturn false;\n\t}", "public void resetToDefaults() {\r\n setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n setDateFormatSymbols(new DateFormatSymbols());\r\n setShowControls(true);\r\n setControlsPosition(JCalendar.TOP);\r\n setControlsStep(10);\r\n setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n setWeekDayDisplayType(JCalendar.ONE);\r\n setShowHorizontalLines(false);\r\n setShowVerticalLines(false);\r\n setChangingFirstDayOfWeekAllowed(true);\r\n setTooltipDateFormat(new SimpleDateFormat(\"MMMM dd, yyyy\"));\r\n }", "public void setDefaultStartTime(Date defaultStartTime)\r\n {\r\n m_defaultStartTime = defaultStartTime;\r\n }", "public void setForceAccess(boolean forceAccess) {\r\n \t\tthis.forceAccess = forceAccess;\r\n \t}", "public void setDefaultChoice(final boolean defaultChoice)\r\n\t{\r\n\t\tthis.defaultChoice = defaultChoice;\r\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.ORGANIZER_SCHEDULING_OBJECT,\n jname = \"organizerSchedulingObject\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n @NoProxy\n public void setOrganizerSchedulingObject(final Boolean val) {\n organizerSchedulingObject = val;\n }", "public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }", "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 }", "public void setStart( Calendar start );", "protected void setToDefault(){\n\n\t}", "public final String getCalendarName() {\n return calendarName;\n }", "private void addDefaultAclEntryToAcl(PSAclImpl acl)\n {\n PSAclEntryImpl aclEntry = new PSAclEntryImpl(new PSTypedPrincipal(\n \"Default\", PrincipalTypes.COMMUNITY));\n aclEntry.addPermission(PSPermissions.RUNTIME_VISIBLE);\n acl.addEntry(aclEntry);\n }", "public Calendar getCalendar() {\n return cal;\n }", "private void onRequireCalendarPermissionsDenied() {\r\n showToast(getString(R.string.event_require_calendar_permission), Toast.LENGTH_LONG);\r\n }", "public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }" ]
[ "0.6933316", "0.6494543", "0.607661", "0.6074602", "0.59321004", "0.5911666", "0.55700624", "0.54886156", "0.54886156", "0.5454032", "0.54196274", "0.54146063", "0.53633636", "0.53537786", "0.5318011", "0.53150374", "0.525296", "0.5247527", "0.52092135", "0.5064855", "0.5064464", "0.50417536", "0.5018643", "0.49754542", "0.49478093", "0.49421892", "0.49342752", "0.49302638", "0.49001417", "0.4892821", "0.4889916", "0.48723915", "0.4866433", "0.4849798", "0.48137853", "0.47402805", "0.47241464", "0.47161376", "0.4699498", "0.4689545", "0.4687421", "0.46754804", "0.4674407", "0.4673167", "0.46657866", "0.46521395", "0.46442676", "0.46434528", "0.46319026", "0.46228233", "0.4601379", "0.46003988", "0.45995146", "0.45995146", "0.4595977", "0.45887408", "0.4583958", "0.45732185", "0.4566497", "0.4564659", "0.45619488", "0.45581612", "0.4525892", "0.45137534", "0.4513336", "0.44788882", "0.44780046", "0.44775045", "0.44733924", "0.4469443", "0.44647357", "0.44607225", "0.44593686", "0.44540247", "0.44527948", "0.44512784", "0.44410816", "0.4432416", "0.44207323", "0.4420338", "0.44158897", "0.44132215", "0.44116828", "0.4401889", "0.4387504", "0.438309", "0.43815914", "0.43719107", "0.43660867", "0.43650347", "0.43582025", "0.43540525", "0.43508193", "0.43392384", "0.43288085", "0.4324256", "0.4322219", "0.4318356", "0.4315124", "0.43103942" ]
0.82851243
0
Gets the defaultCaseAccess value for this Organization.
public java.lang.String getDefaultCaseAccess() { return defaultCaseAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "String getDefaultCannedAcl();", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public static int getDefaultCaseType()\n {\n return defaults.case_type;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public java.lang.String getDefaultPricebookAccess() {\n return defaultPricebookAccess;\n }", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public java.lang.String getContactAccessId() {\r\n return contactAccessId;\r\n }", "public String getDefaultAccount() {\n\n return this.defaultAccount;\n }", "public String getAccession() {\n return accession;\n }", "public int getCase() {\n\t\treturn (case_type);\n\t}", "public java.lang.Boolean getOpcdefault() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT);\n\t}", "public static String getCaseBase() {\n\t\treturn casebase;\n\t}", "public YangString getCellAccessModeValue() throws JNCException {\n return (YangString)getValue(\"cell-access-mode\");\n }", "public int getAccessType() {\n return accessType;\n }", "public int getAccessLevel() {\n return 0;\r\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n public UseCaseConfig<?> getUseCaseConfig() {\n return mUseCaseConfig;\n }", "public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}", "protected SystemRole getDefaultSystemRole(){\r\n \tif (true) return AccessDef.SystemRole.SiteAdmin;\r\n return AccessDef.SystemRole.User;\r\n }", "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "public String getCaseId() {\n return caseId;\n }", "public String getAccesslevel() {\n\t\treturn adminLevel;\r\n\t}", "public String getAccessNum() {\r\n return accessNum;\r\n }", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "public String getDefault(){\n return _default;\n }", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public String getDstAccessType() {\n return this.DstAccessType;\n }", "public String getIdCase() {\r\n\t\treturn idCase;\r\n\t}", "public String getDefaultValue() {\n return this.defaultValue;\n }", "default Optional<Boolean> doesCalendarAccessAuthorized() {\n return Optional.ofNullable(toSafeBoolean(getCapability(CALENDAR_ACCESS_AUTHORIZED_OPTION)));\n }", "public String apiAccessLevel() {\n return this.apiAccessLevel;\n }", "public String getCountryAccessCode() {\n return countryAccessCode;\n }", "public int getAccess() {\n\t\treturn access;\n\t}", "public NetworkRuleAction defaultAction() {\n return this.defaultAction;\n }", "public String getOrgCd() {\r\n return orgCd;\r\n }", "public String getDefaultValue () {\n return defaultValue;\n }", "public String getDefaultValue() {\n\t\t\treturn this.defaultValue;\n\t\t}", "@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}", "public String getDefaultValue() {\n return defaultValue;\n }", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "public Integer getDefaultAssignee() {\n return defaultAssignee;\n }", "public AccessType getAccessType() {\n\treturn this.accessType;\n }", "public String getColDefault() {\r\n\t\treturn colDefault;\r\n\t}", "public String getDefaultValue() {\n return defaultValue;\n }", "public java.lang.String getWebToCaseDefaultOrigin() {\n return webToCaseDefaultOrigin;\n }", "public String getDefaultTenancy() {\n return Tenancy.Default.name();\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public boolean GetIsByDefault()\n {\n return this._defaultSpace;\n }", "public String getAccess();", "public Object getDefault() {\n\t\treturn defaultField;\n\t}", "protected String getDefaultUserName()\n {\n return \"admin\";\n }", "public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public String getInheritedAccess()\n\t\t{\n\t\t\treturn m_inheritedAccess;\n\t\t}", "public String getDefaultName()\r\n {\r\n System.out.println(\"returning default name: \" + m_default );\r\n return m_default;\r\n }", "public String getAccessTypeString() {\n return String.valueOf(accessType);\n }", "public static synchronized CatalogSettings getDefault() {\n if (instance == null) {\n instance = Lookup.getDefault().lookup(CatalogSettings.class);\n }\n return instance;\n }", "public String getAllowAccout() {\n return allowAccout;\n }", "public Object getDefaultBean() {\n Object obj = this._defaultBean;\n if (obj == null) {\n obj = this._beanDesc.instantiateBean(this._config.canOverrideAccessModifiers());\n if (obj == null) {\n obj = NO_DEFAULT_MARKER;\n }\n this._defaultBean = obj;\n }\n if (obj == NO_DEFAULT_MARKER) {\n return null;\n }\n return this._defaultBean;\n }", "public AccessMode getAccessMode() {\n return _accessMode;\n }", "public Long getAccessId() {\n\t\treturn this.accessId;\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "public String getDefault();", "public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }", "String getAccess();", "String getAccess();", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode()\n {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode(\n ) {\n return null;\n }", "public org.exolab.castor.mapping.AccessMode getAccessMode(\n ) {\n return null;\n }", "public String getAuthorizedArea() {\n return (String)getAttributeInternal(AUTHORIZEDAREA);\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public String getDefaultValue() {\n\t\t\treturn null;\r\n\t\t}", "public String getDefaultValue() {\n\t\t\treturn null;\r\n\t\t}", "public int getInPortalAccessId() {\n return inPortalAccessId;\n }", "public void setDefaultPricebookAccess(java.lang.String defaultPricebookAccess) {\n this.defaultPricebookAccess = defaultPricebookAccess;\n }", "public String getDefaultValue() {\n return m_defaultValue;\n }", "public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }", "public String getAccessTypeCd() {\n\t return this.rtCode;\n\t}", "public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }", "AdminPreference getDefaultAdminPreference();", "protected PortalObject getDefaultChild()\n {\n String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);\n if (portalName == null)\n {\n portalName = DEFAULT_OBJECT_NAME;\n }\n return getChild(portalName);\n }", "public String getDefaultValue() {\n return type.getDefaultValue();\n }", "public String getappAccess() {\n\t\treturn _appAccess;\n\t}" ]
[ "0.6969778", "0.6877304", "0.6567286", "0.6458737", "0.63611835", "0.60128987", "0.596801", "0.5862285", "0.58578026", "0.5709077", "0.56016064", "0.54757977", "0.5283641", "0.5245555", "0.51287466", "0.5071223", "0.5049625", "0.5034388", "0.49460712", "0.48960444", "0.48229155", "0.48109838", "0.47555593", "0.47397503", "0.47341987", "0.47288918", "0.4727703", "0.47231612", "0.47176406", "0.47085732", "0.4708521", "0.46712413", "0.46683493", "0.46534216", "0.4642996", "0.46427247", "0.46427247", "0.46240976", "0.46088904", "0.4603723", "0.46016023", "0.4597063", "0.45959622", "0.45941445", "0.45891362", "0.45878625", "0.45859072", "0.45811623", "0.45788446", "0.45761853", "0.45721367", "0.4572009", "0.45635605", "0.45556825", "0.45514765", "0.45491403", "0.45486882", "0.45366612", "0.45346645", "0.4531948", "0.45285013", "0.45282072", "0.45245144", "0.4522922", "0.4511305", "0.45051193", "0.4501501", "0.45012113", "0.44984362", "0.449629", "0.44959974", "0.4490027", "0.44883853", "0.448757", "0.448757", "0.448757", "0.448757", "0.44730195", "0.4458775", "0.4452056", "0.4452056", "0.44428828", "0.44428828", "0.44428828", "0.44371507", "0.44371507", "0.44234872", "0.4423047", "0.4414939", "0.4414939", "0.44132233", "0.44132027", "0.44131598", "0.44131413", "0.44044697", "0.44043672", "0.43909267", "0.4381748", "0.43800306", "0.43675378" ]
0.75213856
0
Sets the defaultCaseAccess value for this Organization.
public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) { this.defaultCaseAccess = defaultCaseAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public java.lang.String getDefaultCaseAccess() {\n return defaultCaseAccess;\n }", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public void setDefaultPricebookAccess(java.lang.String defaultPricebookAccess) {\n this.defaultPricebookAccess = defaultPricebookAccess;\n }", "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public void setDefaultACL(AVACL avacl) {\n this.defaultACL = avacl;\n }", "@Override\r\n public void setCase(Case theCase) {\n }", "public Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }", "public void setDefaultChoice(final boolean defaultChoice)\r\n\t{\r\n\t\tthis.defaultChoice = defaultChoice;\r\n\t}", "public void setContactAccess(java.lang.String contactAccess) {\r\n this.contactAccess = contactAccess;\r\n }", "String getDefaultCannedAcl();", "public static int getDefaultCaseType()\n {\n return defaults.case_type;\n }", "public void setDefaultIsolation(int defaultIsolation) {\r\n this.defaultIsolation = defaultIsolation;\r\n }", "public void setDefaultGroup(boolean defaultGroup);", "public final void setDefaultEnvProfile(final String defaultEnvProfile) {\r\n\t\tthis.defaultEnvProfile = defaultEnvProfile;\r\n\t}", "public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }", "default T setCalendarAccessAuthorized(boolean value) {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, value);\n }", "protected void setToDefault(){\n\n\t}", "public void setDefault(boolean aDefault) {\n m_Default = aDefault;\n }", "public void setAccess(String access)\n\t\t{\n\t\t\tm_access = access;\n\t\t}", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "public void setCaseAction(java.lang.String newCaseAction) {\n\tcaseAction = newCaseAction;\n}", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "public void setDefault(boolean value) {\n this._default = value;\n }", "public void setAccess(Rail access) {\n\tthis.access = access;\n }", "public void setForceAccess(boolean forceAccess) {\r\n \t\tthis.forceAccess = forceAccess;\r\n \t}", "public void setDefaultAssignee(Integer defaultAssignee) {\n this.defaultAssignee = defaultAssignee;\n }", "public void setIsDefault(boolean value) {\n this.isDefault = value;\n }", "public final void rule__ExprSwitchCase__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10546:1: ( ( 'default' ) )\r\n // InternalGo.g:10547:1: ( 'default' )\r\n {\r\n // InternalGo.g:10547:1: ( 'default' )\r\n // InternalGo.g:10548:2: 'default'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getDefaultKeyword_1_1()); \r\n }\r\n match(input,82,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getDefaultKeyword_1_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 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 }", "public void setappAccess(String appAccess) {\n\t\t_appAccess = appAccess;\n\t}", "public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }", "private void addDefaultAclEntryToAcl(PSAclImpl acl)\n {\n PSAclEntryImpl aclEntry = new PSAclEntryImpl(new PSTypedPrincipal(\n \"Default\", PrincipalTypes.COMMUNITY));\n aclEntry.addPermission(PSPermissions.RUNTIME_VISIBLE);\n acl.addEntry(aclEntry);\n }", "public void setCase(int case_type) {\n\t\tthis.case_type = case_type;\n\t}", "public void setInheritedAccess(String access)\n\t\t{\n\t\t\tm_inheritedAccess = access;\n\t\t}", "public void setOpcdefault(java.lang.Boolean value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT, value);\n\t}", "protected void setAccessType(AccessType accessType) {\n\tthis.accessType = accessType;\n }", "public void setDefaultPaymentGroupName(String pDefaultPaymentGroupName);", "public void setDefaultFixedCostAccrual(AccrueType defaultFixedCostAccrual)\r\n {\r\n m_defaultFixedCostAccrual = defaultFixedCostAccrual;\r\n }", "public void setAccessType(int accessType) {\n this.accessType = accessType;\n }", "public void setAccessNum(String accessNum) {\r\n this.accessNum = accessNum == null ? null : accessNum.trim();\r\n }", "public void setRestricted( boolean val ) {\n this.restricted = val;\n if ( !val && getFlow().getRestriction() != null ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"restriction\", null ) );\n }\n }", "public void setDefaultOwner(boolean defaultOwner) {\r\n\t\tthis.defaultOwner = defaultOwner;\r\n\t}", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }", "public Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}", "public void setToDefault();", "public ContentCard defaultAction(ContentCardAction defaultAction) {\n this.defaultAction = defaultAction;\n return this;\n }", "public void setRunnerDefaultFromConnection(IntegrityConnection conn)\n {\n _log.message(\"Setting command runner defaults \" + conn.toString());\n _cmdRunner.setDefaultHostname(conn.getHost());\n _cmdRunner.setDefaultPort(conn.getPort());\n _cmdRunner.setDefaultUsername(conn.getUser());\n }", "public void setCancelAutoLogin(boolean val) {\n\t\tref.edit().putBoolean(COL_AUTO_LOGIN_CANCEL, val).commit();\n\t}", "@Override\n\tpublic void setDefaultCpus(int defaultCpus) {\n\t\t_scienceApp.setDefaultCpus(defaultCpus);\n\t}", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public final void rule__TypeSwitchCase__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11194:1: ( ( 'default' ) )\r\n // InternalGo.g:11195:1: ( 'default' )\r\n {\r\n // InternalGo.g:11195:1: ( 'default' )\r\n // InternalGo.g:11196:2: 'default'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeSwitchCaseAccess().getDefaultKeyword_1_1()); \r\n }\r\n match(input,82,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeSwitchCaseAccess().getDefaultKeyword_1_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 void setAccessRights(AccessRights accessRights) {\r\n\t\tthis.accessRights = accessRights;\r\n\t}", "private void setDefaultMode(GlobalState gs) {\n center = gs.cnt;\n double diagonal = gs.vDist * cos(gs.phi);\n double z = sin(gs.phi) * gs.vDist;\n double x = diagonal * cos(gs.theta);\n double y = diagonal * sin(gs.theta);\n \n eye = new Vector(x, y, z);\n \n }", "public void setDefaultHackystatAccount(String defaultHackystatAccount) {\r\n this.defaultHackystatAccount = defaultHackystatAccount;\r\n }", "public void setAuthority (\r\n String strAuthority) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setInitKey_accessid( int newValue ) {\n this.initKey_accessid = (newValue);\n }", "public void setEditAuthUserContentAdmin(final boolean val) {\n editAuthUserType |= UserAuth.contentAdminUser;\n }", "public void setWebToCaseDefaultOrigin(java.lang.String webToCaseDefaultOrigin) {\n this.webToCaseDefaultOrigin = webToCaseDefaultOrigin;\n }", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }", "private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }", "public void setDefault(String key){\n _default = key;\n }", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public MicrosoftGraphStsPolicy withIsOrganizationDefault(Boolean isOrganizationDefault) {\n this.isOrganizationDefault = isOrganizationDefault;\n return this;\n }", "public void setCamelCaseName(CamelCaseName value){\n ((MvwDefinitionDMO) core).setCamelCaseName(value);\n }", "public static boolean defaultCase(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"defaultCase\")) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, DEFAULT_CASE, \"<default case>\");\n r = defaultCase_0(b, l + 1);\n r = r && consumeTokens(b, 1, DEFAULT, COLON);\n p = r; // pin = 2\n r = r && statements(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Override\n public void setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess,\n Role role) {\n ((Preference) (newAccess)).setVisibleAtRole(role);\n }", "public void setDefaultRestrictions() {\n addPolicy(DISABLE_EXIT);\n addPolicy(DISABLE_ANY_FILE_MATCHER);\n addPolicy(DISABLE_SECURITYMANAGER_CHANGE);\n //addPolicy(DISABLE_REFLECTION_UNTRUSTED);\n addPolicy(DISABLE_EXECUTION);\n addPolicy(DISABLE_TEST_SNIFFING);\n addPolicy(DISABLE_REFLECTION_SELECTIVE);\n addPolicy(DISABLE_SOCKETS);\n\n InterceptorBuilder.installAgent();\n InterceptorBuilder.initDefaultTransformations();\n }", "public void setEditAuthUserApprover(final boolean val) {\n editAuthUserType |= UserAuth.approverUser;\n }", "public final void rule__CommCase__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11545:1: ( ( 'default' ) )\r\n // InternalGo.g:11546:1: ( 'default' )\r\n {\r\n // InternalGo.g:11546:1: ( 'default' )\r\n // InternalGo.g:11547:2: 'default'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCommCaseAccess().getDefaultKeyword_1_1()); \r\n }\r\n match(input,82,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCommCaseAccess().getDefaultKeyword_1_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 }", "@Test\n public void test_setDefaultTab() {\n ActionTab value = ActionTab.ADMIN;\n instance.setDefaultTab(value);\n\n assertEquals(\"'setDefaultTab' should be correct.\",\n value, TestsHelper.getField(instance, \"defaultTab\"));\n }", "public void setDefault(String defaultValue) {\n this.defaultValue = defaultValue;\n }", "public void setDefault(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "public void setDefaultAction(final IAction defaultAction)\n\t{\n\t\tthis.defaultAction = defaultAction;\n\t}", "public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }", "public void setDefaultRule(PatternActionRule defRule) {\n\t\tthis.defaultRule = defRule;\n\t}", "public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }" ]
[ "0.68943065", "0.6711335", "0.65386117", "0.6249705", "0.59772885", "0.5437913", "0.5193849", "0.5162167", "0.5096674", "0.50891316", "0.5051074", "0.48884743", "0.4884469", "0.47621644", "0.47260258", "0.47160012", "0.46853188", "0.46686497", "0.46518698", "0.46482337", "0.46341586", "0.46151406", "0.4591687", "0.45625564", "0.4543944", "0.4538454", "0.4529328", "0.45057884", "0.4489779", "0.44844833", "0.44787776", "0.44742534", "0.44736165", "0.44676808", "0.44664368", "0.4451029", "0.4446983", "0.44153148", "0.44109058", "0.43941522", "0.43850285", "0.43803012", "0.4376618", "0.43763357", "0.43622383", "0.4349748", "0.43373686", "0.43294814", "0.4307428", "0.4306757", "0.42957383", "0.42884025", "0.42866316", "0.4285157", "0.42832845", "0.4277306", "0.4269155", "0.42680907", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42608887", "0.42551026", "0.42551026", "0.42405653", "0.42377344", "0.42374134", "0.42354083", "0.4225366", "0.42228535", "0.42113024", "0.4211214", "0.42109603", "0.42109603", "0.41861966", "0.41836777", "0.4181394", "0.41707858", "0.4170364", "0.41595238", "0.4149774", "0.41473806", "0.41446948", "0.41429713", "0.41399142", "0.41267517", "0.41229302", "0.41219643", "0.41074648", "0.4104557", "0.40980533" ]
0.79535663
0
Gets the defaultLeadAccess value for this Organization.
public java.lang.String getDefaultLeadAccess() { return defaultLeadAccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDefaultOpportunityAccess() {\n return defaultOpportunityAccess;\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultLeadAccess(java.lang.String defaultLeadAccess) {\n this.defaultLeadAccess = defaultLeadAccess;\n }", "public java.lang.String getDefaultCalendarAccess() {\n return defaultCalendarAccess;\n }", "public void setDefaultOpportunityAccess(java.lang.String defaultOpportunityAccess) {\n this.defaultOpportunityAccess = defaultOpportunityAccess;\n }", "public AVACL getDefaultACL() {\n return this.defaultACL;\n }", "public java.lang.String getDefaultCaseAccess() {\n return defaultCaseAccess;\n }", "public Boolean isOrganizationDefault() {\n return this.isOrganizationDefault;\n }", "public java.lang.String getDefaultPricebookAccess() {\n return defaultPricebookAccess;\n }", "public String getDefaultAccount() {\n\n return this.defaultAccount;\n }", "String getDefaultCannedAcl();", "public void setDefaultAccountAndContactAccess(java.lang.String defaultAccountAndContactAccess) {\n this.defaultAccountAndContactAccess = defaultAccountAndContactAccess;\n }", "public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }", "public java.lang.String getContactAccessId() {\r\n return contactAccessId;\r\n }", "public void setDefaultCalendarAccess(java.lang.String defaultCalendarAccess) {\n this.defaultCalendarAccess = defaultCalendarAccess;\n }", "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "AdPartner getAdDefaultPartner();", "public String getDefaultLink() {\n return (toAdDefaultLink);\n }", "public Account getLead() {\r\n return lead;\r\n }", "public void setDefaultCaseAccess(java.lang.String defaultCaseAccess) {\n this.defaultCaseAccess = defaultCaseAccess;\n }", "public String getAccesslevel() {\n\t\treturn adminLevel;\r\n\t}", "public String apiAccessLevel() {\n return this.apiAccessLevel;\n }", "public java.lang.String getDesignadorAcesso() {\r\n return designadorAcesso;\r\n }", "public Object getDefault() {\n\t\treturn defaultField;\n\t}", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public int getAccessLevel() {\n return 0;\r\n }", "public int getInPortalAccessId() {\n return inPortalAccessId;\n }", "AdminPreference getDefaultAdminPreference();", "public Rect getDefaultAdRect() {\n return this.mDefaultAdRect;\n }", "public User getDefaultAdminUser() {\n //try and find an admin user matching the company contact info\n User adminUser = \n User.find(\"byCompanyAndEmail\", this, contactEmail).first();\n if(adminUser != null && adminUser.hasRole(RoleValue.COMPANY_ADMIN) && \n adminUser.status.equals(UserStatus.ACTIVE)){\n \n return adminUser;\n }\n\n List<User> activeUsers = User.find(\"byCompanyAndStatus\", this, \n UserStatus.ACTIVE).fetch();\n \n for (User activeUser : activeUsers) {\n if(activeUser.hasRole(RoleValue.COMPANY_ADMIN)){\n return activeUser;\n }\n }\n\n throw new IllegalStateException(\"No active, admin user for company \" +\n name + \".\");\n }", "public String aadAuthority() {\n return this.aadAuthority;\n }", "public Long getAccessId() {\n\t\treturn this.accessId;\n\t}", "public String getAccession() {\n return accession;\n }", "protected PortalObject getDefaultChild()\n {\n String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);\n if (portalName == null)\n {\n portalName = DEFAULT_OBJECT_NAME;\n }\n return getChild(portalName);\n }", "public String getDefaultValue() {\n\t\t\treturn this.defaultValue;\n\t\t}", "public String getDefaultValue() {\n return this.defaultValue;\n }", "public boolean isDefaultAdminRole() {\r\n\t\treturn this.getName().equals(\"Role_Administrator\");\r\n\t}", "public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}", "public Integer getDefaultFlag() {\n return defaultFlag;\n }", "public String getDefaultValue () {\n return defaultValue;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public AccessType getAccessType() {\n return accessType;\n }", "public Integer getDefaultAssignee() {\n return defaultAssignee;\n }", "public final String getOrganisation() {\n return organisation;\n }", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "protected int get_AccessLevel() {\n\t\treturn accessLevel.intValue();\n\t}", "public String getDefaultTenancy() {\n return Tenancy.Default.name();\n }", "public String getDefaultValue() {\n return defaultValue;\n }", "public int getAccessType() {\n return accessType;\n }", "@ApiModelProperty(value = \"Gets or sets Default Document Author.\")\n public String getDefaultDocumentAuthor() {\n return defaultDocumentAuthor;\n }", "public String getDefaultValue() {\n return defaultValue;\n }", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "public AccessType getAccessType() {\n\treturn this.accessType;\n }", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "public boolean isDefaultLocked()\n\t{\n\t\treturn defaultLocked;\n\t}", "public Optional<AuthLoginOci> authLoginOci() {\n return Codegen.objectProp(\"authLoginOci\", AuthLoginOci.class).config(config).get();\n }", "public RoleAccessPK getRoleAccessPK() {\n return roleAccessPK;\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public MicrosoftGraphStsPolicy withIsOrganizationDefault(Boolean isOrganizationDefault) {\n this.isOrganizationDefault = isOrganizationDefault;\n return this;\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "@Doc(\"The value to use if the variable is accessed when it has never been set.\")\n\t@BindNamedArgument(\"default\")\n\tpublic Double getDefaultValue() {\n\t\treturn defaultValue;\n\t}", "public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }", "public String getAllowAccout() {\n return allowAccout;\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}", "public java.lang.Boolean getOpcdefault() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT);\n\t}", "public AccessLevel getAccessLevel(){\n return this.accessLevel;\n }", "public void setDefaultPricebookAccess(java.lang.String defaultPricebookAccess) {\n this.defaultPricebookAccess = defaultPricebookAccess;\n }", "public String getDstAccessType() {\n return this.DstAccessType;\n }", "public boolean GetIsByDefault()\n {\n return this._defaultSpace;\n }", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getDefaultValue() {\n return m_defaultValue;\n }", "public int getDefaultActivityId()\n {\n int activityId = ID_NONE;\n for (Activity activity : activityMap.values())\n {\n if (activity.isDefault)\n {\n activityId = activity.id;\n break;\n }\n }\n\n return activityId;\n }", "public final DefaultAccount mo17151a() {\n return this.f12933a;\n }", "protected SystemRole getDefaultSystemRole(){\r\n \tif (true) return AccessDef.SystemRole.SiteAdmin;\r\n return AccessDef.SystemRole.User;\r\n }", "public Optional<AuthLogin> authLogin() {\n return Codegen.objectProp(\"authLogin\", AuthLogin.class).config(config).get();\n }", "public String getAccessNum() {\r\n return accessNum;\r\n }", "public int getAccess() {\n\t\treturn access;\n\t}", "public static DocumentationSettings getDefault(){\n return INSTANCE;\n }", "String getDefaultAttrs() {\n return mDefaultAttrs;\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public String getDefaultValue() {\n return type.getDefaultValue();\n }", "String getDefaultAlias();", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public String getDefaultBuilder() {\n\n\t\treturn this.defaultBuilder;\n\t}" ]
[ "0.75256693", "0.7114996", "0.70480627", "0.62520325", "0.6190178", "0.5978903", "0.5732577", "0.5721856", "0.5600486", "0.555101", "0.55342984", "0.5480681", "0.52042556", "0.5148841", "0.5140146", "0.5128099", "0.5096368", "0.5045125", "0.49348393", "0.4911738", "0.48903063", "0.4839823", "0.482067", "0.4819327", "0.4802263", "0.47613493", "0.47592565", "0.47468147", "0.47029907", "0.47028005", "0.46958768", "0.4674842", "0.46305823", "0.46142864", "0.46116635", "0.4608275", "0.4571984", "0.45618883", "0.45587996", "0.45504534", "0.45480976", "0.45480976", "0.45475385", "0.45465678", "0.45403662", "0.45403662", "0.45403662", "0.45403662", "0.45104787", "0.4504591", "0.4501733", "0.44981772", "0.449472", "0.4488471", "0.44877455", "0.44859764", "0.44696692", "0.44657567", "0.44548628", "0.44545785", "0.44530505", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44478258", "0.44332823", "0.4429944", "0.44230387", "0.4421293", "0.44203842", "0.44147778", "0.44134927", "0.441186", "0.44078478", "0.44021547", "0.44005492", "0.43991023", "0.43983024", "0.439769", "0.4396387", "0.4393078", "0.43817854", "0.43787974", "0.43748227", "0.43736568", "0.43698812", "0.436943", "0.4365185", "0.43611965", "0.43593937", "0.43564913" ]
0.813658
0