query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method is for the Burning Ship Set Fractal
public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { BurningShipSet burn = new BurningShipSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = burn.burningShip(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", player);\n ships.add(scout_One);\n point = new Point(maxN - 1, 1);\n scout_Two = new Ship(1, point, maxN, \"Scout Two\", player);\n ships.add(scout_Two);\n point = new Point(maxN - 2, 2);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n ships.add(cruiser);\n point = new Point(maxN - 2, 3);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n ships.add(carrier);\n point = new Point(maxN - 4, 5);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n ships.add(motherShip);\n\n }else{\n Random rand = new Random();\n int rowM = maxN-3;\n int colM = maxN -2;\n int row = rand.nextInt(rowM);\n int col = rand.nextInt(colM);\n point = new Point(row, col);\n motherShip = new Ship(12, point, maxN, \"MotherShip\", player);\n updateOccupiedCells(motherShip.getBodyLocationPoints());\n ships.add(motherShip);\n\n rowM = maxN - 1;\n colM = maxN -1;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n carrier = new Ship(4, point, maxN, \"Carrier\", player);\n updateOccupiedCells(carrier.getBodyLocationPoints());\n ships.add(carrier);\n checkIfOccupiedForSetShip(carrier, row, col, rowM, colM);\n\n\n rowM = maxN - 1;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n cruiser = new Ship(2, point, maxN, \"Cruiser\", player);\n updateOccupiedCells(cruiser.getBodyLocationPoints());\n ships.add(cruiser);\n checkIfOccupiedForSetShip(cruiser, row, col, rowM, colM);\n\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_Two = new Ship(1, point, maxN, \"Scout_Two\", player);\n updateOccupiedCells(scout_Two.getBodyLocationPoints());\n ships.add(scout_Two);\n checkIfOccupiedForSetShip(scout_Two, row, col, rowM, colM);\n\n rowM = maxN;\n colM = maxN;\n row = rand.nextInt(rowM);\n col = rand.nextInt(colM);\n point = new Point(row, col);\n scout_One = new Ship(1, point, maxN, \"Scout_One\", player);\n updateOccupiedCells(scout_One.getBodyLocationPoints());\n ships.add(scout_One);\n checkIfOccupiedForSetShip(scout_One, row, col, rowM, colM);\n\n\n\n\n }\n //Need an algorithm to set enemy ship locations at random without overlaps\n }", "public GameObject spawnCarrier(LogicEngine in_logicEngine, float in_x , CARRIER_TYPE in_type)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/thrusterboss.png\",in_x,LogicEngine.SCREEN_HEIGHT+64,30);\r\n\t\t\r\n\t\t\r\n\t\t//set animation frame\r\n\t\tship.i_animationFrame=4;\r\n\t\tship.i_animationFrameRow=0;\r\n\t\tship.i_animationFrameSizeWidth=32;\r\n\t\tship.i_animationFrameSizeHeight=132;\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\t//pause at the first waypoint\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 50);\r\n\t\t\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"50\", null);\r\n\t\t\r\n\t\tfollowPathBehaviour.waitAtWaypoint(1, 300);\r\n\t\t\r\n\t\t//go straight down then split\r\n\t\tship.v.addWaypoint(new Point2d(in_x, LogicEngine.SCREEN_HEIGHT/1.5));\r\n\t\tship.v.addWaypoint(new Point2d(in_x,-100));\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\t\r\n\t\t//turret\r\n\t\t//turret\r\n\t\tDrawable turret = new Drawable();\r\n\t\tturret.i_animationFrame = 6;\r\n\t\tturret.i_animationFrameSizeWidth=16;\r\n\t\tturret.i_animationFrameSizeHeight=16;\r\n\t\tturret.str_spritename = \"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\";\r\n\t\tturret.f_forceRotation = 90;\r\n\t\tship.shotHandler = new TurretShot(turret,\"data/\"+GameRenderer.dpiFolder+\"/redbullets.png\",6,5.0f);\r\n\t\tship.visibleBuffs.add(turret);\r\n\t\t\r\n\t\tship.v.setMaxForce(1);\r\n\t\tship.v.setMaxVel(1);\r\n\t\t\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\tHitpointShipCollision s;\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\t s = new HitpointShipCollision(ship, 160, 32);\r\n\t\telse\r\n\t\t\t s = new HitpointShipCollision(ship, 125, 32);\r\n\t\t\t\r\n\t\ts.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = s; \r\n\t\r\n\t\t//TODO:launch ships handler for shooting\r\n\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_BOTH_SIDES)\r\n\t\t{\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t}\r\n\t\telse\r\n\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_RIGHT_ONLY)\r\n\t\t\t{\r\n\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(true), 50, 5, 5,true));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(in_type == CARRIER_TYPE.PATHFINDERS_LEFT_ONLY)\r\n\t\t\t\t{\r\n\t\t\t\t\tship.stepHandlers.add(new LaunchShipsStep(pathFinder(false), 50, 5, 5,false));\r\n\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "private void drawShip(int startX, int startY, int direction, int length) {\n if (direction == 4) { //South\n for (int y = 0; y < length; y++) {\n defendingGrid[startX][startY + y].setHasShip(true);\n\n\n }\n } else if (direction == 2) { //East\n\n for (int y = 0; y < length; y++) {\n defendingGrid[startX + y][startY].setHasShip(true);\n\n }\n } else if (direction == 6) { //West\n for (int y = 0; y < length; y++) {\n defendingGrid[startX - y][startY].setHasShip(true);\n\n }\n } else if (direction == 0) { //North\n for (int y = 0; y < length; y++) {\n defendingGrid[startX][startY - y].setHasShip(true);\n }\n }\n }", "public F2_Ship4() {\n\n setH(100);\n setW(50); //Set the size of the ship\n\n setArt(\"Art/SpaceShips/Faction2/Ship4.png\"); //Set the artwork of the ship\n }", "public GameObject spawnBomber(LogicEngine in_logicEngine){\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bomber.png\",((float)LogicEngine.SCREEN_WIDTH)+50,LogicEngine.SCREEN_HEIGHT-50,0);\r\n\t\tship.i_animationFrameSizeHeight = 58;\r\n\t\tship.i_animationFrameSizeWidth = 58;\r\n\t\t\r\n\t\t//fly back and forth\r\n\t\tLoopWaypointsStep s = new LoopWaypointsStep();\r\n\t\ts.waypoints.add(new Point2d(-30,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\ts.waypoints.add(new Point2d(LogicEngine.SCREEN_WIDTH+50,LogicEngine.SCREEN_HEIGHT-50));\r\n\t\t\r\n\t\tship.b_mirrorImageHorizontal = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(s);\r\n\t\tship.v.setMaxForce(5.0f);\r\n\t\tship.v.setMaxVel(5.0f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\r\n\r\n\t\t//tadpole bullets\r\n\t\tGameObject go_tadpole = this.spawnTadpole(in_logicEngine);\r\n\t\tgo_tadpole.stepHandlers.clear();\r\n\t\tFlyStraightStep fly = new FlyStraightStep(new Vector2d(0,-0.5f));\r\n\t\tfly.setIsAccelleration(true);\r\n\t\t\r\n\t\t\r\n\t\tif(Difficulty.isHard())\r\n\t\t{\tgo_tadpole.v.setMaxVel(5);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\telse\r\n\t\t{\tgo_tadpole.v.setMaxVel(10);\r\n\t\t\tgo_tadpole.v.setMaxForce(5);\r\n\t\t}\r\n\t\tgo_tadpole.stepHandlers.add(fly);\r\n\t\tgo_tadpole.v.setVel(new Vector2d(-2.5f,0f));\r\n\t\t\r\n\t\t\r\n\t\t//bounce on hard and medium\r\n\t\tif(Difficulty.isHard() || Difficulty.isMedium())\r\n\t\t{\r\n\t\t\tBounceOfScreenEdgesStep bounce = new BounceOfScreenEdgesStep();\r\n\t\t\tbounce.b_sidesOnly = true;\r\n\t\t\tgo_tadpole.stepHandlers.add(bounce);\r\n\t\t}\r\n\t\t\r\n\t\t//drop bombs\r\n\t\tLaunchShipsStep launch = new LaunchShipsStep(go_tadpole, 20, 5, 3, true);\r\n\t\tlaunch.b_addToBullets = true;\r\n\t\tlaunch.b_forceVelocityChangeBasedOnParentMirror = true;\r\n\t\t\r\n\t\tship.stepHandlers.add(launch);\r\n\t\tship.rotateToV=true;\r\n\t\t\r\n\t\t//give it some hp\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 50, 50f);\r\n\t\tc.setSimpleExplosion();\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t\r\n\t}", "public void spawnSateliteShip(LogicEngine in_logicEngine,float in_x)\r\n\t{\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/gravitonlevel.png\",in_x,LogicEngine.SCREEN_HEIGHT,1);\r\n\t\tship.i_animationFrameSizeWidth = 64;\r\n\t\tship.i_animationFrameSizeHeight = 32;\r\n\t\tship.i_animationFrame = 2;\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tship.v.setMaxForce(1.0f);\r\n\t\tship.v.setMaxVel(4.0f);\r\n\t\t\r\n\t\t\r\n\t\t//fly down\r\n\t\t//ship.stepHandlers.add( new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\tSimplePathfollowing followPathBehaviour = new SimplePathfollowing();\r\n\t\tfollowPathBehaviour.setInfluence(1);\r\n\t\tfollowPathBehaviour.setAttribute(\"arrivedistance\", \"10\", null);\r\n\t\t\r\n\t\t//add waypoints\r\n\t\tfor(int i=0 ; i< 20 ; i++)\r\n\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t//put in some edge ones too\r\n\t\t\tif(r.nextInt(6)%3==0)\r\n\t\t\t\tship.v.addWaypoint(new Point2d((int) LogicEngine.SCREEN_WIDTH * (i%2), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t\telse\r\n\t\t\t\t//put in some random doublebacks etc\r\n\t\t\t\tship.v.addWaypoint(new Point2d(r.nextInt((int) LogicEngine.SCREEN_WIDTH), LogicEngine.SCREEN_HEIGHT/1.5 + r.nextInt((int) LogicEngine.SCREEN_HEIGHT/5)));\r\n\t\t}\r\n\t\tship.v.addWaypoint(new Point2d(LogicEngine.SCREEN_WIDTH/2, -100));\r\n\t\t\r\n\t\tif(Difficulty.isEasy())\r\n\t\t\tship.shotHandler = new BeamShot(50);\r\n\t\telse\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tship.shotHandler = new BeamShot(40);\r\n\t\telse\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tship.shotHandler = new BeamShot(30);\r\n\t\t\r\n\t\tCustomBehaviourStep b = new CustomBehaviourStep(followPathBehaviour);\r\n\t\tship.stepHandlers.add(b);\r\n\t\t\r\n\t\t//destroy ships that get too close\r\n\t\tHitpointShipCollision hps = new HitpointShipCollision(ship, 10, 32);\r\n\t\thps.setSimpleExplosion();\r\n\t\t\r\n\t\tship.collisionHandler = hps; \r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\t\r\n\t\r\n\t}", "public Ship getShip (){\n \treturn this.ship;\n }", "private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}", "public Ship getShip()\n {\n return ship;\n }", "protected abstract void addBonusToShip(Ship ship);", "public void setshippingcost() {\r\n\t\tshippingcost = getweight() * 3;\r\n\t}", "public Ship getShip(){\n return this.ship;\n }", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "private void deplacerBall() {\n\t\tassert(f.getLevel() != null);\n\t\t\n\t\tLevel l = f.getLevel();\n\t\t\n\t\tif(l.getBall() == null ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*1/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*4/5) {//defilement vers le bas\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()<f.getLargeurFenetre()*1/5) {//defilement vers la gauche\n\t\t\t\tf.defilerEcranX(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()>f.getLargeurFenetre()*4/5) {//defilement vers la droite\n\t\t\t\tf.defilerEcranX(false);\n\t\t\t}\n\t\t}else if(l.getType() == Type.INVERSE){\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*3/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t}else {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*2/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {//mode automatique -> deplacement automatique\n\t\t\tl.getBall().deplacer();\n\t\t}else {\n\t\t\tl.getBall().deplacer();\n\t\t\tl.getBall().gravityY(l.gravityY());//la balle tombe selon la gravite\n\t\t}\n\t}", "public void processReturnShipment() {\n \n }", "public void setShip (Ship s){\n \tthis.ship=s;\n }", "@Override\n public String toString() {\n return \"Ship\";\n }", "private void updateBaseToShip(Toroidal2DPhysics space) {\n\t\tList<Base> finishedBase = new ArrayList<Base>();\n\t\tShip ship; // Hold reference to ship going to base\n\t\tBase base; // Hold reference to base\n\t\t\n\t\tfor (UUID baseID : baseToShip.keySet()) {\n\t\t\tbase = (Base) space.getObjectById(baseID);\n\t\t\tship = (Ship) space.getObjectById(baseToShip.get(base.getId()).getId());\n\t\t\t\n\t\t\tif(ship == null || !(ship.isAlive()) || ship.getResources().getTotal() == 0 && \n\t\t\t\t\tspace.findShortestDistance(ship.getPosition(), base.getPosition()) < HIT_BASE_DISTANCE \n\t\t\t\t\t&& !(ship.isCarryingFlag())) {\n\t\t\t\tfinishedBase.add(base); // Ship managed to get to base\n\t\t\t\t\n\t\t\t\tif(ship.getId().equals(flagCarrier)) // Flag carrier hit base so unassign flag carrier\n\t\t\t\t\tflagCarrier = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Base baseElement : finishedBase) { // Delete base from map\n\t\t\tbaseToShip.remove(baseElement.getId());\n\t\t}\n\t}", "private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}", "public void setShipTo(vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemShipTo shipTo) {\n this.shipTo = shipTo;\n }", "public void makeShips()\n\t{\n\t\t//The below is firstly to create the five ships \n\t\tint[] shipSizes= {2,3,3,4,5};\n\n\t\t//### Creating battleship to be put in the playerBattleShipsList\n\t\tfor (int x = 0; x < shipSizes.length; x ++) \n\t\t{\n\t\t\t//This creates a new battleship of size X from index's of shipSizes\n\t\t\tBattleShip newPlayerBattleShip = new BattleShip(shipSizes[x]);\n\n\t\t\t//This add the new battleship of size x (above) to a part in the array\n\t\t\tplayerBattleShipsList[x] = newPlayerBattleShip;\n\t\t}\n\n\t\t//### Creating battleship to be put in the aiBattleShipsList\n\n\t\tfor (int y = 0; y < shipSizes.length; y ++) \n\t\t{\n\t\t\t//This creates a new battleship of size X from index's of shipSizes\n\t\t\tBattleShip newAIBattleShip = new BattleShip(shipSizes[y]);\n\n\t\t\t//This add the new battleship of size x (above) to a part in the array\n\t\t\taiBattleShipsList[y] = newAIBattleShip;\n\t\t}\n\n\t}", "private static String placeShip(Request req) {\n\n if( req.params(\"Version\").equals(\"Updated\") ) {\n\n BattleshipModelUpdated model = (BattleshipModelUpdated) getModelFromReq( req );\n\n model.resetArrayUpdated( model );\n model = model.PlaceShip( model, req );\n model.resetArrayUpdated( model );\n\n Gson gson = new Gson();\n return gson.toJson( model );\n\n }else{\n\n BattleshipModelNormal model = (BattleshipModelNormal) getModelFromReq( req );\n\n model.resetArrayNormal( model );\n model = model.PlaceShip( model, req );\n model.resetArrayNormal( model );\n\n Gson gson = new Gson();\n return gson.toJson( model );\n\n }\n }", "public Ship getShip() {\r\n\t\treturn ship;\r\n\t}", "public Ship getShip() {\r\n\t\treturn ship;\r\n\t}", "private void loadShip() {\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Furs());\n cargo.add(new Ore());\n cargo.add(new Food());\n numOfGoods = cargo.size();\n }", "public void bsetCostElements() {\n\t\t\t\n\t\t\t\n\t\tfor (int obj = 0; obj < finalLocation.length; obj++) {\n\t\t for (int time = 0; time < finalLocation[obj].length; time++) {\n\t\t\t\n\t\t bfCost[obj][time].bstorageCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bstorageCost;\n\t\t\t bfCost[obj][time].breadCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].breadCost;\n\t\t\t bfCost[obj][time].bwriteCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bwriteCost;\n\t\t\t bfCost[obj][time].btranCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].btranCost;\n\t\t\t \n\t\t\t //1. we calculate latency cost for two cases separately: when the object is in the hot tier or cool tier.\n\t\t\t if (finalLocation[obj][time]==0){//Object is in the cool tier\n\t\t\t\t bfCost[obj][time].bdelayCost=totalCostCalculation.btotalResidentCost[time][obj][0].bdelayCost;\n\t\t\t\t \n\t\t\t }else{// object is in both tiers and, in consequence, the latency cost of writes is the maximum latency of writing in both tiers, and the read latency is the one in hot tier.\n\t\t\t\t bfCost[obj][time].bedelCost=fc.bdelayMaxWriteReadCost(workloadGenerator.objectListRegion[obj], 1, obj, time);\n\t\t\t }\n\t\t\t \n\t\t /* 2. Here we calculate storage cost and transaction cost to make consistent data. This requires just write transaction. Since in our cost \n calculation make a computation for both read and writes.\n\t\t */\n\t\t \n\t\t if(finalLocation[obj][time]==1){//NOTE: in above cost storage, we calculate the cost of object in either in hot or cold tier. \n\t\t \t //So here we calculate the storage cost in cold tier when the object is in hot tier.\n\t\t \t bfCost[obj][time].bstorageCost=bfCost[obj][time].bstorageCost.add(totalCostCalculation.btotalResidentCost[time][obj][0].bstorageCost);\n\t\t bfCost[obj][time].bconsisCost=totalCostCalculation.btotalResidentCost[time][obj][0].bconsisCost;\n\t\t }\n\t\t\t bfCost[obj][time].bnonMigrationCost=bfCost[obj][time].bstorageCost.add(bfCost[obj][time].breadCost).add( bfCost[obj][time].bwriteCost).\n\t\t\t\t\t add(bfCost[obj][time].btranCost).add( bfCost[obj][time].bconsisCost).\n\t\t\t\t\t add(bfCost[obj][time].bdelayCost);\n\t\t\t\t\t //totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bnonMigrationCost.add(bfCost[obj][time].bconsisCost);\n\t\t\t \n\t\t\t //3. We need to calculate just transfer cost between cold to hot tier. From hot to cold tier does not make sense because we have a copy of data in cold tier.\n\t\t if(breakPoint==1){//If breakPoint is ONE then for serving every user, the object for each time slot is transfered from Cold to Hot tier.\n\t\t \t \n\t\t }\n\t\t else if(time>0 && finalLocation[obj][time-1]==0 && finalLocation[obj][time]==1){\n\t\t\t bfCost[obj][time].bmigrationCost=totalCostCalculation.btotalMigrationCost[time][obj][finalLocation[obj][time-1]][finalLocation[obj][time]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public void deliverStone6() {\n }", "public boolean fitShip(int x0, int y0, int x1, int y1) {\r\n\t\tArrayList<OwnField> fields = getFieldsFromCoordinates(x0, y0, x1, y1);\r\n\t\tfor (Field<SetState> field : fields) {\r\n\t\t\tif (field.getState() == SetState.BLOCKED || field.getState() == SetState.SHIP)\r\n\t\t\t\treturn false;\r\n\t\t\tfor (Field<SetState> neighbourField : this.getNeighbours(field)) {\t\t// redundant\r\n\t\t\t\tif (neighbourField.getState() == SetState.SHIP)\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tString getShipType() {\r\n\t\treturn \"empty\"; \r\n\t}", "public void deliverStone4() {\n }", "public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }", "public void deliverStone2() {\n }", "public void deliverStone5() {\n }", "public void placeShip(Ship thisShip, String coordinate, int direction){\r\n\t\tthisShip.placed = true;\r\n\t\tint letterCoord = letterToIndex(coordinate.charAt(0));\r\n\t\tint numberCoord = Integer.parseInt(coordinate.substring(1))-1;\r\n\t\t\r\n\t\t\r\n\t\t\tif (direction == 1) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\t\tthisShip.set_position(numberCoord+i, letterCoord);\r\n\t\t\t\t\t}\r\n\t\t\t} else if (direction == 2) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord, letterCoord+i);\r\n\t\t\t\t\t}\r\n\t\t\t} else if (direction == 3) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord-i, letterCoord);\r\n\t\t\t\t}\r\n\t\t\t} else if (direction == 4) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord, letterCoord - i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\tif(thisShip.name == \"Carrier\"){\r\n\t\t\tmyBoard.carrier.placed=thisShip.placed;\r\n\t\t\tmyBoard.carrier.position=thisShip.position;\r\n\t\t\t}\r\n\t\t\t\r\n\t\telse if(thisShip.name == \"Battleship\"){\r\n\t\t\tmyBoard.battleship.placed=thisShip.placed;\r\n\t\t\tmyBoard.battleship.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Cruiser\"){\r\n\t\t\tmyBoard.cruiser.placed=thisShip.placed;\r\n\t\t\tmyBoard.cruiser.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Submarine\"){\r\n\t\t\tmyBoard.submarine.placed=thisShip.placed;\r\n\t\t\tmyBoard.submarine.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Patrol Boat\"){\r\n\t\t\t\tmyBoard.patrolboat.placed=thisShip.placed;\r\n\t\t\t\tmyBoard.patrolboat.position=thisShip.position;\r\n\t\t}\r\n\t\t\t\r\n\t\t}", "private void initializeShippingPoints() {\n shipping_points = new ShippingPoint[num_shipping_points];\n \n int x_size = 8;\n int y_size = 8;\n int[][] grid = new int[x_size][y_size]; //keeps track of which locations are taken\n //so no two ShippingPoints have the same location\n \n int x = 0;\n int y = 0;\n \n for(int i = 0; i < num_shipping_points; i++)\n {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n while(grid[x][y] != 0) {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n }\n grid[x][y] = 1;\n if(i % 4 == 0) { //be careful -- probably won't work in the general case\n Supplier supplier = new Supplier(x, y, i);\n shipping_points[i] = supplier;\n }\n else {\n Customer customer = new Customer(x, y, i);\n shipping_points[i] = customer;\n }\n }\n \n if(eight_shipping_points) {\n //for 8 shipping points\n shipping_points[0].setPosition(4, 0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(8, 4);\n shipping_points[3].setPosition(8, 8);\n shipping_points[4].setPosition(4, 8);\n shipping_points[5].setPosition(0, 8);\n shipping_points[6].setPosition(0, 4);\n shipping_points[7].setPosition(0, 0);\n }\n \n else {\n //for 20 shipping points\n /**/shipping_points[0].setPosition(4,0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(12, 0);\n shipping_points[3].setPosition(16, 0);\n shipping_points[4].setPosition(20, 0);\n shipping_points[5].setPosition(20, 4);\n shipping_points[6].setPosition(20, 8);\n shipping_points[7].setPosition(20, 12);\n shipping_points[8].setPosition(20, 16);\n shipping_points[9].setPosition(20, 20);\n shipping_points[10].setPosition(16, 20);\n shipping_points[11].setPosition(12, 20);\n shipping_points[12].setPosition(8, 20);\n shipping_points[13].setPosition(4, 20);\n shipping_points[14].setPosition(0, 20);\n shipping_points[15].setPosition(0, 16);\n shipping_points[16].setPosition(0, 12);\n shipping_points[17].setPosition(0, 8);\n shipping_points[18].setPosition(0, 4);\n shipping_points[19].setPosition(0, 0);/**/\n }\n \n displayShippingPoints();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Ship [weight=\" + weight + \", capacity=\" + capacity + \", velocitySame=\" + velocitySame\n\t\t\t\t+ \", velocityReverse=\" + velocityReverse + \", fuelStart=\" + fuelStart + \", typeFuel=\" + typeFuel\n\t\t\t\t+ \", id=\" + id + \", owner=\" + owner + \", color=\" + color + \", brand=\" + brand + \", distance=\" + distance\n\t\t\t\t+ \", time=\" + time + \", literFuel=\" + literFuel + \", calculateVelocity()=\" + calculateVelocity()\n\t\t\t\t+ \", calcSpendFuel()=\" + calcSpendFuel() + \"]\";\n\t}", "public static ArrayList<Freebody> preset4(){\n\t\t\r\n\t\tinitializePreqs();\r\n\t\tint size = 8; //radius of balls\r\n\t\tfloat bounce = 1; //elasticity of balls\r\n\t\tfloat drag=1;\r\n\t\t// DRAG IS A VALUE BETWEEN 0 AND 1!! 1 would make it completely stop, by sapping\r\n\t\t// away all velocity.\r\n\t\t// 0.5 would reduce the speed by 1/2 each tick, and 0 is no friction\r\n\t\tint locX,locY,locZ;\r\n\t\t\r\n\t\tint dis=1500;\t\t\t \t//distance between the main mass and secondary masses\r\n\t\t\r\n\t\tfloat invertMass=-200000;\t\t//mass of the secondary masses, negative mass makes them repel the smaller particles, not attract\r\n\t\tfloat mainMass = 850000;\t\t//mass of the main Freebody.\r\n\t\t\r\n\t\tfloat ratio=(-invertMass/mainMass);\r\n\t\tint secSize=(int) ((Math.cbrt(ratio)*10*size)); \t //size of secondary masses; size is proportional to mass.\r\n\t\tint worldSize=0;\r\n\t\t\r\n\t\tif(worldSize!=0) { locX=worldSize/2;locY=worldSize/2;locZ=worldSize/2; } //location of the action, typically the middle of the scene, or where the main mass is located.\r\n\t\t else { locX=2500;locY=2500;locZ=2500; }\r\n\t\t\r\n\t\t//Black hole\r\n\t\tlist.add(new Freebody(0, 0, mainMass, locX,locY,locZ, (int)(size)*10, bounce, drag));\r\n\t\t\r\n\t\t//below is secondary masses creation\r\n\t\t//z axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ+dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY,locZ-dis, secSize, size, size, bounce, 1, Color.blue));\r\n\t\t//x axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX+dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX-dis,locY,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//y axis offset\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY+dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//list.add(new Freebody(0, 0, invertMass, locX,locY-dis,locZ, secSize, size, size, bounce, drag, Color.blue));\r\n\t\t//end of large masses creation\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//variable to make it easier to change the # of particles\r\n\t\tint c=25;\r\n\t\t\r\n\t\t//below is explaining how to setup the particles around the center mass.\r\n\t\t//make symmetry with 1000 open space on both sides\r\n\t\t//worldsize-2000=usable space\r\n\t\t//c*2*d is space used by objects\r\n\t\t//worldsize-2000=c*2*d\r\n\t\t//d=(worldsize-2000)/(2c)\r\n\t\t//starting x is 1000.\r\n\t\t\r\n\t\t//y starting is so that c/2 is at locY.\r\n\t\t//worldSize/2=y+(c/2*d)\r\n\t\t//y starting = (worldSize/2)-(c/2*d)\r\n\t\t//END of explanation\r\n\t\t\r\n\t\tfloat d=(locX*2-2000)/(2*c);\r\n\t\tfloat yStart=(locY)-((c/2)*d);\r\n\t\t//setting the max sizes of i,j,k in the for loops.\r\n\t\tint I=1*c;\r\n\t\tint J=2*c;\r\n\t\tint K=2;\r\n\t\t//speed and angle of particles, defaulted inverted for symmetry.\r\n\t\tint sped=500;\r\n\t\tint ang=30;\r\n\t\t\r\n\t\tint start=1000;\r\n\t\tfor(int i=0; i<I; i++) {\r\n\t\t\tfor(int j=0; j<J;j++) {\r\n\t\t\t\tfor(int k=0; k<K;k++) { \r\n\t\t\t\t\tlist.add(new Freebody(-sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(-k*d)+(locZ -1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<I; i++) {\r\n\t\t\tfor(int j=0; j<J;j++) {\r\n\t\t\t\tfor(int k=0; k<K;k++) {\r\n\t\t\t\t\tlist.add(new Freebody( sped, ang, 1, start+(int)(d*j), (int)(i*d+yStart), (int)(k*d)+(locZ +1000), size, bounce, 0.001f));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint obsInOnHalf=I*J*K; //how many particles(Freebodys) are in one \"half\" (presets are normally made with 2 distinct halves)\r\n\t\t\t\t\t\t\t\t //below is to set velocities of every particle easily.\r\n\t\tint larges=1; //set this value equal to how many large masses were made.\r\n\t\t\r\n\t\t//vels of particles\r\n\t\tfloat vX=sped,vY=sped,vZ=0;\r\n\t\tfor(int i=5; i<(obsInOnHalf)+larges;i++) {\r\n\t\t\tlist.get(i).setVel(vX, vY, vZ);\r\n\t\t}\r\n\t\tfor(int i=(obsInOnHalf)+larges; i<list.size();i++) {\r\n\t\t\tlist.get(i).setVel(-vX, -vY, 0);\r\n\t\t}\r\n\t\t\r\n\t\t//set worldSize to 0 for no boundaries (unlimited universe)\t\t\t\r\n\t\tuni = new WorldCreator(worldSize, worldSize, worldSize, 0,2,locX,locY,locZ);\r\n\t\t\r\n\t\t//turns on(or off) object/object collisions, off by default.\r\n\t\tuni.collisions(false);\t\t\t\r\n\t\treturn list;\r\n\t}", "public void execute() {\n\t\tif(p.getType().equals(\"Manufacturing\")) {\n\t\t\tArrayList<Item> items = DatabaseSupport.getItems();\n\t\t\tIterator<Item> it = items.iterator();\n\t\t\tItem i;\n\t\t\twhile(it.hasNext()) {\n\t\t\t\ti = it.next();\n\t\t\t\tint a = InputController.promptInteger(\"How many \"+i.getName()+\" were manufactured? (0 for none)\", 0, Integer.MAX_VALUE);\n\t\t\t\tif(a>0) {\n\t\t\t\t\tWarehouseFloorItem n = p.getFloorItemByItem(i);\n\t\t\t\t\tif(n==null) {\n\t\t\t\t\t\tString newFloorLocation = InputController.promptString(\"This item does not have a floor location.\\nPlease specify a new one for this item.\");\n\t\t\t\t\t\tp.addFloorLocation(new WarehouseFloorItem(newFloorLocation, i, a));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tn.setQuantity(n.getQuantity()+a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tArrayList<Shipment> shipments = DatabaseSupport.getIncomingOrders(p);\n\t\t\tif(shipments.size()>0) {\n\t\t\t\tIterator<Shipment> i;\n\t\t\t\tint k = -1;\n\t\t\t\tShipment a;\n\t\t\t\twhile(k!=0) {\n\t\t\t\t\ti = shipments.iterator();\n\t\t\t\t\tk = 0;\n\t\t\t\t\twhile(i.hasNext()) {\n\t\t\t\t\t\ta = i.next();\n\t\t\t\t\t\tk++;\n\t\t\t\t\t\tSystem.out.println(k+\". \"+a.getShipmentID()+\" - \"+a.getOrderSize()+\" different items\");\n\t\t\t\t\t}\n\t\t\t\t\tk = InputController.promptInteger(\"Please enter the number next to the shipment ID to\\nselect a shipment to handle (0 to quit)\",0,shipments.size());\n\t\t\t\t\tif(k!=0) {\n\t\t\t\t\t\ta = shipments.get(k);\n\t\t\t\t\t\tIterator<ShipmentItem> b = a.getShipmentItems().iterator();\n\t\t\t\t\t\tShipmentItem c;\n\t\t\t\t\t\tString temp;\n\t\t\t\t\t\twhile(b.hasNext()) {\n\t\t\t\t\t\t\tc = b.next();\n\t\t\t\t\t\t\tWarehouseFloorItem d = p.getFloorItemByItem(c.getItem());\n\t\t\t\t\t\t\tif(d==null) {\n\t\t\t\t\t\t\t\ttemp = InputController.promptString(c.getItem().getName()+\" does not have a floor location yet.\\nPlease input a floor location for it.\");\n\t\t\t\t\t\t\t\td = new WarehouseFloorItem(temp, c.getItem(),0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp = InputController.promptString(\"\\nItem: \"+c.getItem().getName()+\"\\nQuantity: \"+c.getQuantity()+\"\\n\\nPress enter once you are done loading this item.\");\n\t\t\t\t\t\t\td.setQuantity(d.getQuantity()+c.getQuantity());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\ta.setShipped();\n\t\t\t\t\t\tSystem.out.println(\"\\nShipment \"+a.getShipmentID()+\" loaded successfully\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are no incoming shipments.\");\n\t\t\t}\n\t\t}\n\t}", "public void setBase(Ship base) {\n this.base = base;\n }", "public void shipPlacer(Board board, ShipTeam fleet){\r\n\r\n\t\tArrayList<Ship> theShips = fleet.getShips();\r\n\r\n\t\tint randomX, randomY;\r\n\t\tfor (Ship s : theShips){\r\n\t\t\tboolean goodPlace = false;\r\n\t\t\twhile (goodPlace == false){\r\n\t\t\t\tRandom randCoords = new Random();\r\n\t\t\t\trandomX = randCoords.nextInt(10);\r\n\t\t\t\trandomY = randCoords.nextInt(10);\r\n\t\t\t\tif (randomX % 2 == 0)\r\n\t\t\t\t\tgoodPlace = board.placeShip(randomX, randomY, s, 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tgoodPlace = board.placeShip(randomX, randomY, s, 2);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void power() {\n\t\tfor(int i = 0; i < map.length; i++) {\n\t\t\tfor(int j = 0; j < map.length; j++){\n\t\t\t\tif(map[j][i] instanceof PirateShip){\n\t\t\t\t\tPirateShip ps = (PirateShip) map[j][i];\n\t\t\t\t\tps.changeFollowStrategy();\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public final void draw(Batch batch, float parentAlpha) {\n\n Matrix4 originalTransform = ActorMixins.setBatchTransformMatrix(batch, this);\n batch.end();\n POLYGON_BATCH.begin();\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n\n if (useSpineBoy && finalSkeleton != null) {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(finalSkeleton);\n\n finalSkeleton.updateWorldTransform();\n renderer.draw(POLYGON_BATCH, finalSkeleton, parentAlpha); // Draw the skeleton images.\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n //draw debug tangent circles on running animation\n debug.draw(POLYGON_BATCH, finalSkeleton);\n } else {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(emptySkeleton);\n\n emptySkeleton.updateWorldTransform(); // Uses the bones' local SRT to compute their world SRT.\n for (Slot sl : emptySkeleton.getSlots()) {\n if (sl.getAttachment() instanceof RegionAttachment) {\n RegionAttachment r = ((RegionAttachment) sl.getAttachment());\n\n //calculate region attachment bounds here\n if (r instanceof PolygonRegionAttachment) {\n ((PolygonRegionAttachment) r).calculateBoundsAdj(sl, this);\n r.updateOffset();\n }\n\n //---------------------------------------------------------------------\n }\n }\n Skeleton temp = emptySkeleton;\n if ((useSpineBoy || temp == null) && finalSkeleton != null) {\n temp = finalSkeleton;\n }\n renderer.draw(POLYGON_BATCH, temp, 1);\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n// if (isUseSpineBoy())\n debug.draw(POLYGON_BATCH, temp);\n }\n\n POLYGON_BATCH.end();\n batch.begin();\n Array<Slot> slots = null;\n float height = 0;\n float width = 0;\n\n if (finalSkeleton != null) {\n slots = finalSkeleton.getSlots();\n width = finalSkeleton.getData().getWidth();\n height = finalSkeleton.getData().getHeight();\n } else if (emptySkeleton != null) {\n slots = emptySkeleton.getSlots();\n width = emptySkeleton.getData().getWidth();\n height = emptySkeleton.getData().getHeight();\n }\n\n int anglePart = 360 / slots.size;\n int pos = 0;\n selectedAngle = -1;\n\n for (Slot sl : slots) {\n if (sl.getAttachment() instanceof PolygonRegionAttachment) {\n PolygonRegionAttachment attachment = ((PolygonRegionAttachment) sl.getAttachment());\n if (attachment.getRegion() != null) {\n int rotation = anglePart * pos + chosAngle;\n rotation = (rotation + 360) % 360;\n float off = 1f - Math.abs((180f - rotation) / 180f);\n Vector2 dd1 = new Vector2(0, Math.max(width, height) * distance);\n if (distance > 0.0f) {\n distance -= .01f;\n }\n// System.out.println(\"distance:\"+distance);\n\n// Vector2 dd2 = new Vector2(0, Math.max(width, height) / 1.0f);\n if (getSelectedBone() != null && sl.getBone().getData().getName().equals(getSelectedBone().getData().getName())) {\n batch.setColor(Color.WHITE);\n selectedAngle = pos;\n } else {\n batch.setColor(new Color(off, off, off, 0));\n }\n\n dd1.rotate(rotation);\n\n// Vector2 dd2=dd1.cpy();\n dd1.add(-width / 2, height / 3);\n// dd2.add(-width / 2, -height);\n pos++;\n TextureRegion cropRegion = attachment.getRotatedRegion();\n boolean atlas = false;\n if (cropRegion == null || !isUseSpineBoy()) {\n cropRegion = attachment.getAtlasRegion();\n atlas = true;\n }\n TextureRegion blankRegion = attachment.getBlankRegion();\n\n if (cropRegion != null && blankRegion != null) {\n Vector2 diff = new Vector2(cropRegion.getRegionWidth() - blankRegion.getRegionWidth(), cropRegion.getRegionHeight() - blankRegion.getRegionHeight());\n diff.scl(off);\n diff.scl(.5f);\n off *= 2f;\n if (!atlas) {\n// float rot = attachment.getFinalizedRotation();\n// batch.draw(cropRegion, dd1.x - diff.x, dd1.y - diff.y, cropRegion.getRegionWidth() * .5f, cropRegion.getRegionHeight() * .5f, cropRegion.getRegionWidth(), cropRegion.getRegionHeight(), off, off * flip, rot);\n TextureRegion tr = attachment.getRotatedRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n }\n\n } else {\n TextureRegion tr = attachment.getAtlasRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, -off, 0);\n }\n }\n\n batch.draw(blankRegion, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n\n\n }\n }\n }\n }\n if (selectedAngle != -1) {\n int dff = anglePart * selectedAngle + chosAngle;\n if (dff > 185) {\n chosAngle -= 5;\n }\n if (dff < 175) {\n chosAngle += 5;\n }\n// if (dff < 0) {\n// chosAngle += 180;\n// }\n }\n// chosAngle=(chosAngle+360)%360;\n batch.setTransformMatrix(originalTransform);\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "protected ArrayList<Ship> initiateShips(){\n ArrayList<Ship> initialShips = new ArrayList<>();\n\n //battleship\n for (int i=0;i<1;i++){\n Battleship battleship = new Battleship();\n initialShips.add(battleship);\n }\n\n //cruiser\n for (int i=0;i<2;i++){\n Cruiser cruiser = new Cruiser();\n initialShips.add(cruiser);\n }\n\n //destroyer\n for (int i=0;i<3;i++){\n Destroyer destroyer = new Destroyer();\n initialShips.add(destroyer);\n }\n\n //submarine\n for (int i=0;i<4;i++){\n Submarine submarine = new Submarine();\n initialShips.add(submarine);\n }\n\n return initialShips;\n }", "public interface Iship {\t\n\t\n//gunpoints, places where the cannons stick out of a model, cannot have more than 2?\t\n\tpublic static final int[] PLAYER_GUNPOINTS = {3,60};\n\tpublic static final int[] GUNSHIP_GUNPOINTS = {8, 40};\n\tpublic static final int[] SIDEWAYS_GUNPOINTS = {12, 36};\n\tpublic static final int[] ADVANCED_GUNPOINTS = {0};\n\tpublic static final int[] MOTHERSHIP_GUNPOINTS = {36, 190, 56, 168, 84, 140};\n\tpublic static final int[] SUIBOSS_GUNPOINTS = {10, 200, 145, 60};\n\t\n//bullet destruction vals\npublic static final int PLAYER_BULLET_VAL = 50;\n\n//ship score vals\npublic static final int SUICIDE_SCORE_VAL = 15;\npublic static final int SHOOTER_SCORE_VAL = 25;\npublic static final int SIDEWAYS_SCORE_VAL = 50;\n\n//health values:\npublic static final int PLAYER_MAX_HEALTH = 100;\n\n//standard collision health value\npublic static final int COLLISION_DAMAGE = 10;\npublic static final int BULLET_DAMAGE = 15;\n\n//enemy type ids \npublic static final int SUICIDE_ID = 0;\npublic static final int GUNSHIP_ID = 1;\n\n//enemy health\npublic static final int REGULAR_ENEM_HEALTH = 1;\npublic static final int ELEVATED_ENEM_HEALTH = 2;\n\n//speeds \npublic static final float SHIP_SPEED_NORMAL = 0.2f;\n\n//methods\n\t\n\tpublic int[] getGunpoints(); //returns gun-barrel pixels\n\tpublic int getHealth(); //gets health\n\tpublic void setHealth(int newHealth); //sets the health\n}", "private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}", "public void autoPutShip(int padding) {\n for (int l=3; l>=0; l--) {\n// if already have ships of this type go to another length\n if (decks[l] == (4-l)) continue;\n for (int i = 0; i < (4-l); i++) {\n// if already put ships of that type go on..\n if (decks[l] == (4-l)) continue;\n// choice random side of sea\n// (for optimal placing need to place near it)\n int side = (int) (Math.random() * 4);\n// generate random indent from side corner\n// (like you go counter clock wise)\n int indent = (int) (Math.random() * (10 - l));\n int x = 0, y = 0;\n// for side get direction\n Direction dir = Direction.values()[side];\n// calculate coordinates\n switch (side) {\n case 0:\n x = padding;\n y = indent;\n break;\n case 1:\n x = indent;\n y = 9 - padding;\n break;\n case 2:\n x = 9 - padding;\n y = 9 - indent;\n break;\n case 3:\n x = 9 - indent;\n y = padding;\n break;\n }\n// create ship (just for right coordinates)\n Ship ship = new Ship(x, y, l, dir);\n// and if you can put it - put\n if (canPutShip(ship)) putShip(ship);\n }\n }\n if (!isAllShipsOn()&& padding < 9) autoPutShip(padding + 1);\n }", "public Ship getBase() {\n return base;\n }", "@Override\r\n\tSpaceship getShip() {\n\t\treturn new MotherShip(getWidth()/2, getHeight());\r\n\t}", "public void compress() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.contractDoor();\n\t}", "private void buildBoats(final List<String> subNames) {\n boats = subNames.stream()\n .map(boatName -> new ShipId(boatName, side))\n .map(this::buildBoat)\n .filter(Optional::isPresent)\n .map(Optional::get)\n .collect(Collectors.toList());\n }", "Shipment createShipment();", "private void setOnBoard(Ship currentShip) {\n\t\tchar letter;\n\t\tboolean validInput = false;\n\t\tint letterValue;\n\t\tint num;\n\t\tString coord;\n\t\tString orient;\n//\t\tString[][] backup = radar.clone();\n\t\tString[][] loopBackup = new String[10][10];\n\t\t//System.out.println(\"loop backup: \" + loopBackup.toString());\n\t\t\n\t\twhile(!validInput) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(this);\n\t\t\t\tSystem.out.println(\"Where would you like the \" + currentShip.getShipType() + \" of size \" + currentShip.getSize() + \"?\");\n\t\t\t\tSystem.out.println(\"Give a coordinate. Ex: A2, F6, d9, etc...\");\n\t\t\t\tSystem.out.println(\">\");\n\t\t\t\tcoord = input.nextLine();\n\t\t\t\tSystem.out.println(\"Would you like to set it vertical (V) or horizontal (H)?\");\n\t\t\t\tSystem.out.println(\"(input V or H for the respective orientation, lowercase is fine)\");\n\t\t\t\tSystem.out.println(\">\");\n\t\t\t\t\n\t\t\t\twhile(!validInput) {\n\t\t\t\t\torient = input.nextLine();\n\t\t\t\t\t\n\t\t\t\t\tletter = coord.toUpperCase().charAt(0);\n\t\t\t\t\tletterValue = (int) letter;\n\t\t\t\t\tletterValue -= 65;\n\t\t\t\t\tnum = Integer.parseInt(coord.substring(1));\n\t\t\t\t\tnum -= 1;\n\t\t\t\t\tString tempCoor;\n\t\t\t\t\tloopBackup = backup(radar);\n\t\t\t\t\t\n\t\t\t\t\tif(orient.toUpperCase().equals(\"H\")) {\n\t\t\t\t\t\tfor(int i = 0; i <= currentShip.getSize() - 1; i++) {\n\t\t\t\t\t\t\tif(radar[letterValue][num].equals(\"X \"))\n\t\t\t\t\t\t\t\tradar[100][0].toString();\n\t\t\t\t\t\t\ttempCoor = radar[letterValue][num];\n\t\t\t\t\t\t\tcurrentShip.addCoordinate(tempCoor);\n\t\t\t\t\t\t\tradar[letterValue][num] = \"X \";\n\n\t\t\t\t\t\t\tnum++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalidInput = true;\n\t\t\t\t\t\t//loopBackup = radar.clone();\n\t\t\t\t\t} else if(orient.toUpperCase().equals(\"V\")){\n\t\t\t\t\t\tfor(int i = 0; i <= currentShip.getSize() - 1; i++) {\n\t\t\t\t\t\t\tif(radar[letterValue][num].equals(\"X \"))\n\t\t\t\t\t\t\t\tradar[100][0].toString();\n\t\t\t\t\t\t\ttempCoor = radar[letterValue][num];\n\t\t\t\t\t\t\tcurrentShip.addCoordinate(tempCoor);\n\t\t\t\t\t\t\tradar[letterValue][num] = \"X \";\n\n\t\t\t\t\t\t\tletterValue++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalidInput = true;\n\t\t\t\t\t\t//loopBackup = radar.clone();\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Ship is out of bounds. Try again.\");\n\t\t\t\tcurrentShip.getCoordinates().clear();\n\t\t\t\tradar = backup(loopBackup);\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "public void setShipArrays(Ship[] array, BoardValue[][] boardArray) {\r\n\r\n for (Ship ship : array) {\r\n if (ship != null) {\r\n //all coordinates this ship occupies\r\n int[][] coords = ship.getShipCoordinates();\r\n\r\n //going through the coordinates [row,column] of a ship\r\n for (int body = 0; body <= (ship.getLength() - 1); body++) {\r\n\r\n //FRONT of the ship has different image. The very first value of this loop\r\n if (body == 0) {\r\n int[] front = coords[0];\r\n //different images for front and back of ship\r\n addShipImage(\"/images/ShipHead.png\", boardArray, front[0], front[1], ship.getOrientation());\r\n\r\n //BACK of the ship has different image. The very last value of this loop\r\n } else if (body == (ship.getLength() - 1)) {\r\n int[] back = coords[body];\r\n addShipImage(\"/images/ShipTail.png\", boardArray, back[0], back[1], ship.getOrientation());\r\n\r\n //BODY of the ship\r\n } else {\r\n int[] coordinate = coords[body];\r\n addShipImage(\"/images/ShipBody.png\", boardArray, coordinate[0], coordinate[1], ship.getOrientation());\r\n }\r\n }\r\n }\r\n }\r\n }", "private void positionShipRandomly(Ship ship, boolean[][] b) {\r\n\t\tsetRandomOrientation(ship);\r\n\t\tship.setStartLocation(new int[] {rm.nextInt(BOARD_WIDTH_DEFAULT),rm.nextInt(BOARD_HEIGHT_DEFAULT)});\r\n\t\tint[] startLocation = findFreePosition(b, ship);\r\n\t\tship.setStartLocation(startLocation);\r\n\t\tmarkOccupiedSectors(b,ship);\r\n\t}", "private void setShips(int x, int y) {\n\t\t// Mausi innerhalb des 1. Spielfeldes?\n\t\tif (x > 450 && x < 750 && y > 90 && y < 390) {\n\t\t\t// Position auf dem Spielfeld ermitteln\n\t\t\tint posX = Math.floorDiv(x - 450, 30);\n\t\t\tint posY = Math.floorDiv(y - 90, 30);\n\t\t\t// Wie \"lang\" ist das Schiff\n\t\t\tint anzahl = ships[anzahlschiffe - 1];\n\t\t\t// kontrolle ob der Punkt wo das Schiff gesetzt wird\n\t\t\t// nicht bereits in Liste ist. Ansonsten funktion beeneden.\n\t\t\t// Einmal fuer die drehung (vertikal) und einmal ohne (horizontal)\n\t\t\tif (drehen) {\n\t\t\t\tif (posX + anzahl <= 10) {\n\t\t\t\t\tfor (int l = 0; l < anzahl; l++) {\n\t\t\t\t\t\t// kontrolle ob nicht bereits in Liste\n\t\t\t\t\t\tif (gesetzeSchiffe.contains(new Point(posX + l, posY)))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (posY + anzahl <= 10) {\n\t\t\t\t\tfor (int l = 0; l < anzahl; l++) {\n\t\t\t\t\t\t// kontrolle ob nicht bereits in Liste\n\t\t\t\t\t\tif (gesetzeSchiffe.contains(new Point(posX, posY + l)))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Wenn das Schiff gesetzt werden kann setze es.\n\t\t\tif (drehen) {\n\t\t\t\tif (posX + anzahl <= 10) {\n\t\t\t\t\tfor (int l = 0; l < anzahl; l++) {\n\t\t\t\t\t\tgesetzeSchiffe.add(new Point(posX + l, posY));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (posY + anzahl <= 10) {\n\t\t\t\t\tfor (int l = 0; l < anzahl; l++) {\n\t\t\t\t\t\tgesetzeSchiffe.add(new Point(posX, posY + l));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Gesetzte Schiffe reduzieren.\n\t\t\tanzahlschiffe--;\n\t\t\t// Wenn alle Schiffe gesetzt wurden dann \"beende\" das Schiffe\n\t\t\t// setzen.\n\t\t\tif (anzahlschiffe == 0) {\n\t\t\t\tstopPlaceingShips();\n\t\t\t\ttry {\n\t\t\t\t\t//Dem Server die Schiffe mitteilen\n\t\t\t\t\tserver.setShips(this.gesetzeSchiffe, this.spielerNummer);\n\t\t\t\t\tthis.setStatus(\"Bitte warten...\");\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Dannach neu malen damit der User die aenderungen gleich sieht!\n\t\t\tthis.repaint();\n\n\t\t}\n\t}", "@Override\r\n\tpublic void ship(Robot t) {\n\t\t\r\n\t}", "public boolean setUpShip(int noOfShips, List<String> locationSets) throws SizeLimitExceededException {\r\n\r\n\t\tboolean setUpSuccessFully = false;\r\n\t\tif (noOfShips > battleArea.getWidth() * (battleArea.getHeight() - 'A' + 1)) {\r\n\t\t\tthrow new SizeLimitExceededException(\"Number of ships can not exceed width * height of battle area\");\r\n\r\n\t\t}\r\n\r\n\t\tlogger.info(\"No of Ships per player : \" + noOfShips);\r\n\r\n\t\t// Get each ship coordinates from input location sets\r\n\r\n\t\tint i = 0;\r\n\t\twhile (i < noOfShips) {\r\n\t\t\tString result = locationSets.get(i);\r\n\t\t\tString shipType = result.substring(0, 1);\r\n\t\t\tint width = Integer.valueOf(result.substring(2, 3));\r\n\t\t\tint height = Integer.valueOf(result.substring(4, 5));\r\n\t\t\tString startingCell = null;\r\n\r\n\t\t\r\n\r\n\t\t\t\tBattleShip ship = new BattleShip(width, height);\r\n\t\t\t\tstartingCell = result.substring(6, 8);\r\n\t\t\t\tlogger.info(\"Player Name :\" + this.getPlayerName() + \" \" + \"ship type : \" + shipType);\r\n\t\t\t\tlogger.info(\"width of ship: \" + width + \" \" + \"height : \" + height + \" \" + \"starting Cell: \"\r\n\t\t\t\t\t\t+ startingCell);\r\n\r\n\t\t\t\tsetUpSuccessFully = battleArea.addShipsToBattleArea(ship, startingCell, BattleShipType.valueOf(shipType).getVal());\r\n\t\t\t\r\n//\r\n//\t\t\telse if (BattleShipConstants.PType.equals(shipType)) {\r\n//\r\n//\t\t\t\tBattleShip pShip = new PTypeBattleShip(width, height);\r\n//\t\t\t\tstartingCell = result.substring(6, 8);\r\n//\t\t\t\tlogger.info(\"Player Name :\" + this.getPlayerName() + \" \" + \"ship type : \" + shipType);\r\n//\t\t\t\tlogger.info(\"width of ship: \" + width + \" \" + \"height : \" + height + \" \" + \"starting Cell: \"\r\n//\t\t\t\t\t\t+ startingCell);\r\n//\r\n//\t\t\t\tsetUpSuccessFully = battleArea.addShipsToBattleArea(pShip, startingCell, BattleShipConstants.pStrength);\r\n//\t\t\t}\r\n\r\n//\t\t\telse {\r\n//\t\t\t\tSystem.out.println(\"Ships can be either Q-Type or P-Type\");\r\n//\t\t\t}\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tif (!setUpSuccessFully) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn setUpSuccessFully;\r\n\r\n\t}", "public void basketWeave() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Basket Weave\");\n win.setLocation(10, 10);\n for(int y = -5; y < HEIGHT; y += 80) {\n for(int x = -5; x < WIDTH; x += 80) {\n basketDraw(x, y, g);\n }\n for(int x = -45; x < WIDTH; x += 80) {\n basketDraw(x, y+40, g);\n }\n }\n }", "public void enterShipment(){\n Shipment shipment = new Shipment();\n shipment.setShipmentID(data.numberOfShipment());\n shipment.setReceiver(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser(\"Enter Receiver FirstName: \"),\n GetChoiceFromUser.getStringFromUser(\"Enter Receiver Last Name: \"),data.getBranchEmployee(ID).getBranchID()));\n shipment.setSender(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser(\"Enter Sender First Name: \"),\n GetChoiceFromUser.getStringFromUser(\"Enter Sender Last Name: \"),data.getBranchEmployee(ID).getBranchID()));\n shipment.setCurrentStatus(getStatus());\n shipment.setTrackingNumber(getUniqueTrackingNumber());\n shipment.setBranchID(data.getBranchEmployee(ID).getBranchID());\n data.getBranch(shipment.getBranchID()).addShipment(shipment);\n data.addShipment(shipment,shipment.getReceiver());\n System.out.printf(\"Your Shipment has added with tracking Number %d !\\n\",shipment.getTrackingNumber());\n }", "public void deliverStone1() {\n }", "public void update(Spaceship ship) {\n Log.d(\"Powerstate\", \"ShieldPowerState\");\n ship.paint.setColor(Color.argb(255,47,247,250));\n ship.isHit = false;\n\n\n }", "public void deliverStone3() {\n }", "public VRPBShipment getSelectShipment(VRPBDepotLinkedList currDepotLL,\r\n\t\t\tVRPBDepot currDepot,\r\n\t\t\tVRPBShipmentLinkedList currShipLL,\r\n\t\t\tVRPBShipment currShip) {\n\t\tboolean isDiagnostic = false;\r\n\t\t//VRPShipment temp = (VRPShipment) getHead(); //point to the first shipment\r\n\t\tVRPBShipment temp = (VRPBShipment) currShipLL.getVRPBHead().getNext(); //point to the first shipment\r\n\r\n\t\tVRPBShipment foundShipment = null; //the shipment found with the criteria\r\n\t\tdouble angle;\r\n\t\tdouble foundAngle = 360; //initial value\r\n\t\t//double distance;\r\n\t\t//double foundDistance = 200; //initial distance\r\n\t\tdouble depotX, depotY;\r\n\t\tint type = 2;\r\n\r\n\t\t//Get the X and Y coordinate of the depot\r\n\t\tdepotX = currDepot.getXCoord();\r\n\t\tdepotY = currDepot.getYCoord();\r\n\t\t\r\n\t\twhile (temp != currShipLL.getVRPBTail()) {\r\n\t\t\tSystem.out.println(temp.getCustomerType());\r\n\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.println(\"Temp is \"+temp);\r\n\t\t\t\tSystem.out.println(\"Tail is \"+getTail());\r\n\t\t\t\tSystem.out.print(\"Shipment \" + temp.getIndex() + \" \");\r\n\r\n\t\t\t\tif ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotX) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant I \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) <= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant II \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord()) <= (0 - depotX)) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant III \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant VI \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.print(\"No Quadrant\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//if the shipment is assigned, skip it\r\n\t\t\tif (temp.getIsAssigned()) {\r\n\t\t\t\tif (isDiagnostic) {\r\n\t\t\t\t\tSystem.out.println(\"has been assigned\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tangle = calcPolarAngle(depotX, depotX, temp.getXCoord(),\r\n\t\t\t\t\ttemp.getYCoord());\r\n\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.println(\" \" + angle);\r\n\t\t\t}\r\n\r\n\t\t\t//check if this shipment should be tracked\r\n\t\t\tif (foundShipment == null) { //this is the first shipment being checked\r\n\t\t\t\tfoundShipment = temp;\r\n\t\t\t\tfoundAngle = angle;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (angle < foundAngle) { //found an angle that is less\r\n\t\t\t\t\tfoundShipment = temp;\r\n\t\t\t\t\tfoundAngle = angle;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\t\t}\r\n\t\treturn foundShipment; //stub\r\n\t}", "@Override\n \tpublic void drawBoid(Sim sim) {\n \t\tif (Set.SHOW_Awareness) {\n \t\t\tsim.stroke(255, 0, 0);\n \t\t\tsim.fill(255, 0, 0, 25);\n \t\t\tsim.ellipse(position.x, position.y,\n \t\t\t\t\t2 * AWARE_RADIUS, 2 * AWARE_RADIUS);\n \t\t}\n \t\tif (Set.SHOW_AwarenessCone) {\n \t\t\tsim.stroke(255, 0, 0);\n \t\t\tsim.fill(255, 0, 0, 25);\n \n \t\t\tPVector cone[] = {\n \t\t\t\t\tnew PVector(0, -1 * AWARE_CONE_WIDTH_MAX),\n \t\t\t\t\tnew PVector(AWARE_CONE_LENGTH, -1 * AWARE_CONE_WIDTH_MIN),\n \t\t\t\t\tnew PVector(AWARE_CONE_LENGTH, AWARE_CONE_WIDTH_MIN),\n \t\t\t\t\tnew PVector(0, AWARE_CONE_WIDTH_MAX) };\n \n \t\t\tcone = Boid.matrixMultParallel(basis, cone);\n \n \t\t\tsim.beginShape();\n \t\t\tsim.vertex(position.x + cone[0].x, position.y + cone[0].y);\n \t\t\tsim.vertex(position.x + cone[1].x, position.y + cone[1].y);\n \t\t\tsim.vertex(position.x + cone[2].x, position.y + cone[2].y);\n \t\t\tsim.vertex(position.x + cone[3].x, position.y + cone[3].y);\n \t\t\tsim.endShape();\n \t\t}\n \n \t\t//=========DRAW FISH===========\n \t\tif( Set.SHOW_Sprites ) {\n \t\t\t// Code to animate sprites\n \t\t\t\n \t\t\tfloat angle = (float) getHeading();\n \t\t\tsim.fishSprite.setRot(angle);\n \t\t\tsim.fishSprite.setXY(position.x, position.y);\n \t\t\tfloat totalAccel = recentAccel.mag();\n \t\t\t\n \t\t\tif(totalAccel < 1)\n \t\t\t{\n \t\t\t\tsim.fishSprite.setFrame(Sim.frameCounter/6 % 5);\n \t\t\t}\n \t\t\telse if(totalAccel < 2)\n \t\t\t{\n \t\t\t\tsim.fishSprite.setFrame(Sim.frameCounter/3 % 5);\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tsim.fishSprite.setFrame(Sim.frameCounter % 5);\n \t\t\t}\n \t\t\t//fishSprite.setZorder(frameCounter%62);\n \t\t\tS4P.drawSprites();\n \t\t\n \t\t\t\n \t\t} else {\n \t\t\t// Code to draw the fish from scratch\n \t\t\t\n \t\t\t// head are the three points that define the head\n \t\t\tPVector head[] = {\n \t\t\t\t\tnew PVector((float) (H_WIDTH * Math.cos(getHeading()\n \t\t\t\t\t\t\t+ PConstants.PI / 2)),\n \t\t\t\t\t\t\t(float) (H_WIDTH * Math.sin(getHeading() + PConstants.PI / 2))),\n \t\t\t\t\tnew PVector(\n \t\t\t\t\t\t\t(float) (H_LENGTH * Math.cos(getHeading())),\n \t\t\t\t\t\t\t(float) (H_LENGTH * Math.sin(getHeading()))),\n \t\t\t\t\tnew PVector((float) (H_WIDTH * Math.cos(getHeading()\n \t\t\t\t\t\t\t- PConstants.PI / 2)),\n \t\t\t\t\t\t\t(float) (H_WIDTH * Math.sin(getHeading() - PConstants.PI / 2))) };\n \n \t\t\t\n \t\t\t// Scales the width of head inversely and length directly with %speed\n \t\t\tfloat fracSpeed = (float) speed.mag() / getMAX_SPEED();\n \n \t\t\tif (speed.mag() > 1) {\n \t\t\t\thead[0].mult(1.1f - .3f * fracSpeed);\n \t\t\t\thead[1].mult(.9f + .5f * fracSpeed);\n \t\t\t\thead[2].mult(1.1f - .3f * fracSpeed);\n \t\t\t}\n \n \t\t\t// tail are the two points that define the tail\n \t\t\tPVector tail[] = {\n \t\t\t\t\tnew PVector((float) (T_LENGTH * Math.cos(getHeading()\n \t\t\t\t\t\t\t\t\t\t+ PConstants.PI / 2 + T_ANGLE)),\n \t\t\t\t\t\t\t\t(float) (T_LENGTH * Math.sin(getHeading()\n \t\t\t\t\t\t\t\t\t\t+ PConstants.PI / 2 + T_ANGLE))),\n \t\t\t\t\tnew PVector((float) (T_LENGTH * Math.cos(getHeading()\n \t\t\t\t\t\t\t\t\t\t- PConstants.PI / 2 - T_ANGLE)),\n \t\t\t\t\t\t\t\t(float) (T_LENGTH * Math.sin(getHeading()\n \t\t\t\t\t\t\t\t\t\t- PConstants.PI / 2 - T_ANGLE))) };\n \n \t\t/*\n \t\t * PVector accel = recentAccel;\n \t\t * \n \t\t * \n \t\t * if( accel != null ) { accel =\n \t\t * Boid.matrixMult(Boid.inverse(basis), recentAccel );\n \t\t * accel.normalize(); accel.mult((float)T_LENGTH/2); if( accel.x >\n \t\t * 0 ) { accel.x = - accel.x; } accel.y *= .5f; //if( accel.x >\n \t\t * -.5f*T_LENGTH ) { // accel.x = (float) (-.5*T_LENGTH); //}\n \t\t * } else { accel = new PVector( -1, 0 ); } accel =\n \t\t * Boid.matrixMult(basis, accel);\n \t\t * \n \t\t * //PVector accel = recentAccel; PVector tail[] = { PVector.sub(\n \t\t * accel, head[2] ), PVector.sub( accel, head[0] ) };\n \t\t * \n \t\t * tail[0].normalize(); tail[1].normalize(); tail[0].mult( (float)\n \t\t * T_LENGTH ); tail[1].mult( (float) T_LENGTH );\n \t\t */\n \n \t\t\n \t\t\t// Draw head\n \t\t\tsim.fill(head_color);\n \t\t\tsim.stroke(head_color);\n \n \t\t\t// Connect the dots\n \t\t\tsim.beginShape();\n \t\t\tsim.vertex((int) (position.x + head[0].x),\n \t\t\t\t\t(int) (position.y + head[0].y));\n \t\t\tsim.vertex((int) (position.x + head[1].x),\n \t\t\t\t\t(int) (position.y + head[1].y));\n \t\t\tsim.vertex((int) (position.x + head[2].x),\n \t\t\t\t\t(int) (position.y + head[2].y));\n \t\t\tsim.vertex((int) (position.x + head[0].x),\n \t\t\t\t\t(int) (position.y + head[0].y));\n \t\t\tsim.endShape();\n \n \t\t\t// Draw body\n \t\t\tsim.fill(color);\n \t\t\tsim.stroke(color);\n \n \t\t\t// Connect the dots\n \t\t\tsim.beginShape();\n \t\t\tsim.vertex((int) (position.x + head[0].x),\n \t\t\t\t\t(int) (position.y + head[0].y));\n \t\t\tsim.vertex((int) (position.x + head[2].x),\n \t\t\t\t\t(int) (position.y + head[2].y));\n \t\t\tsim.vertex((int) (position.x + tail[0].x),\n \t\t\t\t\t(int) (position.y + tail[0].y));\n \t\t\tsim.vertex((int) (position.x + tail[1].x),\n \t\t\t\t\t(int) (position.y + tail[1].y));\n \t\t\tsim.vertex((int) (position.x + head[0].x),\n \t\t\t\t\t(int) (position.y + head[0].y));\n \t\t\tsim.endShape();\n \n \t\t}\n \t\t// END DRAW FISH\t\n \t\t\n \t\t//====DISPLAY EXTRAS====\n \t\t// Draws each fish's basis vectors\n \t\tif (Set.SHOW_Bases) {\n \t\t\tsim.stroke(255, 255, 0);\n \t\t\tsim.line(position.x, position.y, position.x + 20\n \t\t\t\t\t* basis[0].x, position.y + 20 * basis[0].y);\n \t\t\tsim.line(position.x, position.y, position.x + 15\n \t\t\t\t\t* basis[1].x, position.y + 15 * basis[1].y);\n \t\t}\n \n \t\t// Draws each fish's acceleration and velocity vectors\n \t\tif (Set.SHOW_KinematicVectors) {\n \t\t\tsim.stroke(255, 255, 0);\n \t\t\tsim.line(position.x, position.y, position.x + 10\n \t\t\t\t\t* speed.x, position.y + 10 * speed.y);\n \t\t\tif (recentAccel != null) {\n \t\t\t\tsim.stroke(0, 0, 255);\n \t\t\t\tsim.line(position.x, position.y, position.x + 35\n \t\t\t\t\t\t* recentAccel.x, position.y + 35\n \t\t\t\t\t\t* recentAccel.y);\n \t\t\t}\n \t\t}\n \n \t}", "public void assignBaseBuilder(Ship ship) {\n\t\tbaseBuilder = ship.getId();\n\t}", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemShipTo getShipTo() {\n return shipTo;\n }", "public GameObject spawnBigBeamer(LogicEngine in_logicEngine) {\n\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/bigbeamer.png\",((float)LogicEngine.SCREEN_WIDTH/2),LogicEngine.SCREEN_HEIGHT+64,0);\r\n\t\tship.i_animationFrameSizeHeight = 115;\r\n\t\tship.i_animationFrameSizeWidth = 115;\r\n\t\t\r\n\t\t\r\n\t\tship.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-1f)));\r\n\t\t\r\n\t\r\n\t\tship.v.setMaxForce(2.5f);\r\n\t\tship.v.setMaxVel(2.5f);\r\n\t\tship.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\r\n\t\tint i_shootEvery = 80;\r\n\t\t\r\n\t\tBeamShot b = new BeamShot(i_shootEvery);\r\n\t\t\r\n\t\tb.b_flare=false;\r\n\t\tb.f_offsetX=-40;\r\n\t\tb.f_offsetY=-30;\r\n\t\tb.i_delay = 40;\r\n\t\tb.i_beamWidth = 15;\r\n\t\t\r\n\t\tBeamShot b2 = new BeamShot(i_shootEvery);\r\n\t\tb2.b_flare=false;\r\n\t\tb2.f_offsetX=40;\r\n\t\tb2.f_offsetY=-30;\r\n\t\tb2.i_delay = 40+(i_shootEvery/2);\r\n\t\tb2.i_beamWidth = 15;\r\n\t\tb.nextBeam = b2;\r\n\t\t\r\n\t\tship.shootEverySteps=1;\r\n\t\tship.shotHandler = b;\r\n\t\t\r\n\t\tHitpointShipCollision c = new HitpointShipCollision(ship, 100, 50f);\r\n\t\t\r\n\t\tif(!Difficulty.isHard())\r\n\t\t\tc.f_numberOfHitpoints = 200;\r\n\t\tif(!Difficulty.isMedium())\r\n\t\t\tc.f_numberOfHitpoints = 160;\r\n\t\t\r\n\t\tc.setExplosion(Utils.getBossExplosion(ship));\r\n\t\tship.collisionHandler = c;\r\n\t\t\r\n\t\tin_logicEngine.objectsEnemies.add(ship);\r\n\t\t\r\n\t\treturn ship;\r\n\t}", "Cone orderCone(Flavor[]balls) {\n\t \n }", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "public void setShipStatus(Boolean shipStatus) {\n this.shipStatus = shipStatus;\n }", "public void fireBombs() {\n electricSide.set(Value.kForward);\n pneumaticSide.set(Value.kForward);\n }", "private void buildShipsList() {\r\n ObservableList<ShipBar> lstShips = FXCollections.observableArrayList();\r\n Map<String, ShipType> ships = Data.SHIPS.get();\r\n for (String s : planet.getShips()) {\r\n ShipType ship = ships.get(s);\r\n ShipBar u = new ShipBar();\r\n u.setKey(s);\r\n u.setText(ship.getName());\r\n u.setPrice(ship.getPrice() - currentShip.getNetWorth());\r\n u.setToggleGroup(shipGroup);\r\n lstShips.add(u);\r\n }\r\n buyShips.setItems(lstShips);\r\n }", "public void addShip(Ship ship) {\n\t\tint row = ship.getRow();\n\t\tint column = ship.getColumn();\n\t\tint direction = ship.getDirection();\n\t\tint shipLength = ship.getLength();\n\t\t//0 == Horizontal; 1 == Vertical\n\t\tif (direction == 0) {\n\t\t\tfor (int i = column; i < shipLength + column; i++) {\n\t\t\t\tthis.grid[row][i].setShip(true);\n\t\t\t\tthis.grid[row][i].setLengthOfShip(shipLength);\n\t\t\t\tthis.grid[row][i].setDirectionOfShip(direction);\n\t\t\t}\n\t\t}\n\t\telse if (direction == 1) {\n\t\t\tfor (int i = row; i < shipLength + row; i++) {\n\t\t\t\tthis.grid[i][column].setShip(true);\n\t\t\t\tthis.grid[i][column].setLengthOfShip(shipLength);\n\t\t\t\tthis.grid[i][column].setDirectionOfShip(direction);\n\t\t\t}\n\t\t}\n\t}", "public void paintComponent(Graphics g) {\n\t\t\n\t\tImage img1 = Utility.getImage(shipPositionLeft.getS1().getA().getImg());\n\t\tImage img2 = Utility.getImage(shipPositionLeft.getS1().getB().getImg());\n\t\tImage img3 = Utility.getImage(shipPositionLeft.getS1().getC().getImg());\n\t\tImage img4 = Utility.getImage(shipPositionLeft.getS1().getD().getImg());\n\t\tImage img5 = Utility.getImage(shipPositionLeft.getS2().getA().getImg());\n\t\tImage img6 = Utility.getImage(shipPositionLeft.getS2().getB().getImg());\n\t\tImage img7 = Utility.getImage(shipPositionLeft.getS2().getC().getImg());\n\t\tImage img8 = Utility.getImage(shipPositionLeft.getS3().getA().getImg());\n\t\tImage img9 = Utility.getImage(shipPositionLeft.getS3().getB().getImg());\n\t\tImage img10 = Utility.getImage(shipPositionLeft.getS4().getA().getImg());\n\t\tImage img11 = Utility.getImage(shipPositionLeft.getS4().getB().getImg());\n\t\tImage img12 = Utility.getImage(shipPositionLeft.getS4().getC().getImg());\n\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D)g;\n\n\t\tg2.drawImage(img1, shipPositionLeft.getS1().getA().getX()*25, shipPositionLeft.getS1().getA().getY()*25, this);\n\t\tg2.drawImage(img2, shipPositionLeft.getS1().getB().getX()*25, shipPositionLeft.getS1().getB().getY()*25, this);\n\t\tg2.drawImage(img3, shipPositionLeft.getS1().getC().getX()*25, shipPositionLeft.getS1().getC().getY()*25, this);\n\t\tg2.drawImage(img4, shipPositionLeft.getS1().getD().getX()*25, shipPositionLeft.getS1().getD().getY()*25, this);\n\t\tg2.drawImage(img5, shipPositionLeft.getS2().getA().getX()*25, shipPositionLeft.getS2().getA().getY()*25, this);\n\t\tg2.drawImage(img6, shipPositionLeft.getS2().getB().getX()*25, shipPositionLeft.getS2().getB().getY()*25, this);\n\t\tg2.drawImage(img7, shipPositionLeft.getS2().getC().getX()*25, shipPositionLeft.getS2().getC().getY()*25, this);\n\t\tg2.drawImage(img8, shipPositionLeft.getS3().getA().getX()*25, shipPositionLeft.getS3().getA().getY()*25, this);\n\t\tg2.drawImage(img9, shipPositionLeft.getS3().getB().getX()*25, shipPositionLeft.getS3().getB().getY()*25, this);\n\t\tg2.drawImage(img10, shipPositionLeft.getS4().getA().getX()*25, shipPositionLeft.getS4().getA().getY()*25, this);\n\t\tg2.drawImage(img11, shipPositionLeft.getS4().getB().getX()*25, shipPositionLeft.getS4().getB().getY()*25, this);\n\t\tg2.drawImage(img12, shipPositionLeft.getS4().getC().getX()*25, shipPositionLeft.getS4().getC().getY()*25, this);\n\n\t}", "public int processShipment(AascShipmentOrderInfo aascShipmentOrderInfo, \n AascShipMethodInfo aascShipMethodInfo, \n AascIntlInfo aascIntlInfo, \n AascProfileOptionsBean aascProfileOptionsInfo, \n String fedExCarrierMode, String fedExKey, \n String fedExPassword, \n String cloudLabelPath) { \n logger.info(\"Entered processShipment()\" + fedExCarrierMode);\n String intFlag = \"\";\n if (returnShipment.equalsIgnoreCase(\"PRINTRETURNLABEL\")) {\n fedExWSChkReturnlabelstr = \"PRINTRETURNLABEL\";\n } else {\n fedExWSChkReturnlabelstr = \"NONRETURN\";\n }\n\n\n this.fedExCarrierMode = fedExCarrierMode;\n this.fedExKey = fedExKey;\n this.fedExPassword = fedExPassword;\n\n try {\n \n outputFile = cloudLabelPath;\n try {\n intFlag = aascShipmentHeaderInfo.getInternationalFlag();\n } catch (Exception e) {\n intFlag = \"\";\n }\n\n shipmentRequest = \"\"; // String that holds shipmentRequest \n aascShipmentHeaderInfo = \n aascShipmentOrderInfo.getShipmentHeaderInfo(); // returns header info bean object\n shipPackageInfo = \n aascShipmentOrderInfo.getShipmentPackageInfo(); // returns the linkedlist contains the package info bean objects \n\n int size = shipPackageInfo.size();\n\n Iterator packageIterator = shipPackageInfo.iterator();\n\n while (packageIterator.hasNext()) {\n AascShipmentPackageInfo shipPackageInfo = \n (AascShipmentPackageInfo)packageIterator.next();\n if (\"PRINTRETURNLABEL\".equalsIgnoreCase(shipPackageInfo.getReturnShipment())) {\n size++;\n }\n\n if (\"Y\".equalsIgnoreCase(shipPackageInfo.getHazMatFlag())) {\n size++;\n }\n }\n\n\n calendar = Calendar.getInstance();\n time = calendar.get(Calendar.HOUR_OF_DAY) + \":\" + calendar.get(Calendar.MINUTE) + \":\" + calendar.get(Calendar.SECOND);\n currentDate = new Date(stf.parse(time).getTime());\n shipFlag = aascShipmentHeaderInfo.getShipFlag();\n time = stf.format(currentDate);\n \n Timestamp time1 = aascShipmentHeaderInfo.getShipTimeStamp();\n logger.info(\"TimeStamp =========> ::\" + time1);\n\n String timeStr = time1.toString();\n\n timeStr = timeStr.substring(11, timeStr.length() - 2);\n fedExWsTimeStr = nullStrToSpc(timeStr);\n \n\n //fedExWsTimeStr = \"00:00:00\";\n\n\n orderNumber = \n aascShipmentOrderInfo.getShipmentHeaderInfo().getOrderNumber();\n\n customerTransactionIdentifier = \n aascShipmentOrderInfo.getShipmentHeaderInfo().getOrderNumber();\n\n ListIterator packageInfoIterator = shipPackageInfo.listIterator();\n if (aascShipmentOrderInfo != null && \n aascShipmentHeaderInfo != null && shipPackageInfo != null && \n aascShipMethodInfo != null) {\n carrierId = aascShipmentHeaderInfo.getCarrierId();\n\n if (carrierPayMethodCode.equalsIgnoreCase(\"PP\")) {\n\n senderAccountNumber = \n nullStrToSpc(aascShipmentHeaderInfo.getCarrierAccountNumber()); // FedEx Account number for prepaid from shipment page\n \n if (senderAccountNumber.length() < 9 || \n senderAccountNumber.length() > 12) {\n aascShipmentHeaderInfo.setMainError(\"shipper's account number should not be less than 9 digits and greater than 12 digits \");\n responseStatus = 151;\n return responseStatus;\n }\n } else {\n senderAccountNumber = \n nullStrToSpc(aascShipMethodInfo.getCarrierAccountNumber(carrierId));\n \n\n \n\n if (senderAccountNumber.length() < 9 || \n senderAccountNumber.length() > 12) {\n aascShipmentHeaderInfo.setMainError(\"shipper's account number should not be less than 9 digits and greater than 12 digits \");\n responseStatus = 151;\n return responseStatus;\n }\n\n }\n\n\n fedExTestMeterNumber = \n nullStrToSpc(aascShipMethodInfo.getMeterNumber(carrierId));\n \n shipToCompanyName = \n nullStrToSpc(aascShipmentHeaderInfo.getCustomerName()); // retreiving ship to company name from header bean \n \n shipToCompanyName = encode(shipToCompanyName);\n\n shipToAddressLine1 = \n nullStrToSpc(aascShipmentHeaderInfo.getAddress()); // retreiving ship to address from header bean \n shipToAddressLine1 = \n encode(shipToAddressLine1); //added by Jagadish\n shipToAddressCity = \n nullStrToSpc(aascShipmentHeaderInfo.getCity()); // retreiving ship to city from header bean \n shipToAddressPostalCode = \n nullStrToSpc(nullStrToSpc(aascShipmentHeaderInfo.getPostalCode())); // retreiving ship to postal code from header bean \n\n shipToAddressPostalCode = escape(shipToAddressPostalCode);\n\n shipToCountry = \n nullStrToSpc(aascShipmentHeaderInfo.getCountrySymbol()).toUpperCase(); // retreiving ship to country name from header bean \n \n shipToEMailAddress = nullStrToSpc(aascShipmentHeaderInfo.getShipToEmailId());\n \n shipToAddressState = \n nullStrToSpc(aascShipmentHeaderInfo.getState()).toUpperCase(); // retreiving ship to state from header bean \n \n residentialAddrFlag = aascShipmentHeaderInfo.getResidentialFlag(); \n \n shipDate = \n aascShipmentHeaderInfo.getShipmentDate(); // retreiving ship date from header bean \n shipFromAddressLine1 = \n nullStrToSpc(aascShipmentHeaderInfo.getShipFromAddressLine1()); // indicates ship From address \n shipFromAddressLine1 = \n encode(shipFromAddressLine1); //added by Jagadish\n shipFromAddressLine2 = \n nullStrToSpc(aascShipmentHeaderInfo.getShipFromAddressLine2()); // indicates ship From address \n shipFromAddressLine2 = \n encode(shipFromAddressLine2); //added by Jagadish \n shipFromAddressCity = \n aascShipmentHeaderInfo.getShipFromCity(); // indicates ship From address city \n shipFromAddressPostalCode = \n nullStrToSpc(aascShipmentHeaderInfo.getShipFromPostalCode()); // indicates ship From postal code \n shipFromPersonName = \n aascShipmentHeaderInfo.getShipFromContactName();\n // System.out.println(\":::::::::::::::::::::::::::::::::::::: shipFromPersonName :::::::::::::::::::::: -- > in Fedex shipment \"+shipFromPersonName);\n shipFromAddressPostalCode = escape(shipFromAddressPostalCode);\n\n shipFromCountry = \n aascShipmentHeaderInfo.getShipFromCountry().toUpperCase(); // indicates ship From country \n shipFromAddressState = \n aascShipmentHeaderInfo.getShipFromState().toUpperCase();\n shipFromDepartment = \n nullStrToSpc(aascShipmentHeaderInfo.getDepartment()); // Retrieving the shipfrom department \n shipFromDepartment = encode(shipFromDepartment);\n shipMethodName = \n nullStrToSpc(aascShipmentHeaderInfo.getShipMethodMeaning()); // retreiving ship method meaning from header bean \n carrierCode = \n aascShipMethodInfo.getCarrierName(shipMethodName); // retreiving carrier code from ship method bean \n\n reference1 = \n nullStrToSpc(aascShipmentHeaderInfo.getReference1());\n reference1 = encode(reference1);\n reference2 = \n nullStrToSpc(aascShipmentHeaderInfo.getReference2());\n reference2 = encode(reference2);\n \n receipientPartyName = encode(aascShipmentHeaderInfo.getRecCompanyName());\n recipientPostalCode= encode(aascShipmentHeaderInfo.getRecPostalCode());\n //Mahesh added below code for Third Party development \n tpCompanyName = encode(aascShipmentHeaderInfo.getTpCompanyName());\n tpAddress= encode(aascShipmentHeaderInfo.getTpAddress());\n tpCity= encode(aascShipmentHeaderInfo.getTpCity());\n tpState= encode(aascShipmentHeaderInfo.getTpState());\n tpPostalCode= encode(aascShipmentHeaderInfo.getTpPostalCode());\n tpCountrySymbol= encode(aascShipmentHeaderInfo.getTpCountrySymbol());\n \n // khaja added code \n satShipFlag = \n nullStrToSpc(aascShipmentHeaderInfo.getSaturdayShipFlag()); // retreiving saturday ship flag from header bean \n //System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ satShipFlag :\"+satShipFlag);\n // khaja added code end\n size = shipPackageInfo.size();\n\n while (packageInfoIterator.hasNext()) {\n AascShipmentPackageInfo aascPackageBean = \n (AascShipmentPackageInfo)packageInfoIterator.next();\n\n pkgWtUom = nullStrToSpc(aascPackageBean.getUom());\n if (pkgWtUom.equalsIgnoreCase(\"LB\") || \n pkgWtUom.equalsIgnoreCase(\"KG\")) {\n pkgWtUom = (pkgWtUom + \"S\").toUpperCase();\n }\n pkgWtVal = aascPackageBean.getWeight();\n //pkgWtVal BY MADHAVI\n\n DecimalFormat fmt = new DecimalFormat();\n fmt.setMaximumFractionDigits(1);\n String str = fmt.format(pkgWtVal);\n if (carrierCode.equalsIgnoreCase(\"FDXG\")) {\n pkgWtVal = Float.parseFloat(str);\n \n } else {\n \n }\n\n dimensions = nullStrToSpc(aascPackageBean.getDimension());\n units = nullStrToSpc(aascPackageBean.getDimensionUnits());\n\n\n if (dimensions != null && !dimensions.equals(\"\")) {\n\n index = dimensions.indexOf(\"*\");\n if (index != -1) {\n length = dimensions.substring(0, index);\n }\n dimensions = dimensions.substring(index + 1);\n index = dimensions.indexOf(\"*\");\n if (index != -1) {\n width = dimensions.substring(0, index);\n }\n dimensions = dimensions.substring(index + 1);\n height = dimensions;\n \n }\n // Email Notification details\n emailFlag = aascShipmentHeaderInfo.getEmailNotificationFlag();\n SenderEmail = aascShipmentHeaderInfo.getShipFromEmailId();\n ShipAlertNotification = aascShipmentHeaderInfo.getShipNotificationFlag();\n ExceptionNotification = aascShipmentHeaderInfo.getExceptionNotification();\n DeliveryNotification = aascShipmentHeaderInfo.getDeliveryNotification();\n Format = aascShipmentHeaderInfo.getFormatType();\n recipientEmailAddress1 = aascShipmentHeaderInfo.getShipToEmailId();\n if(aascShipmentHeaderInfo.getEmailCustomerName().equalsIgnoreCase(\"Y\")){\n message = \"/ Customer : \"+nullStrToSpc(encode(aascShipmentHeaderInfo.getCustomerName()));\n }\n \n if (aascShipmentHeaderInfo.getReference1Flag().equalsIgnoreCase(\"Y\")) {\n message = message + \"/ Ref 1: \"+nullStrToSpc(aascShipmentHeaderInfo.getReference1());\n }\n \n if (aascShipmentHeaderInfo.getReference2Flag().equalsIgnoreCase(\"Y\")) {\n message = message + \"/ Ref 2:\" + nullStrToSpc(aascShipmentHeaderInfo.getReference2());\n }\n \n // Email Notification details\n\n codFlag = nullStrToSpc(aascPackageBean.getCodFlag());\n\n if (codFlag.equalsIgnoreCase(\"Y\")) {\n \n codAmt = aascPackageBean.getCodAmt();\n \n codAmtStr = String.valueOf(codAmt);\n\n int index = codAmtStr.indexOf(\".\");\n\n \n\n if (index < 1) {\n codAmtStr = codAmtStr + \".00\";\n \n } else if ((codAmtStr.length() - index) > 2) {\n codAmtStr = codAmtStr.substring(0, index + 3);\n \n } else {\n while (codAmtStr.length() != (index + 3)) {\n codAmtStr = codAmtStr + \"0\";\n \n }\n }\n codTag = \n \"<COD>\" + \"<CollectionAmount>\" + codAmtStr + \"</CollectionAmount>\" + \n \"<CollectionType>ANY</CollectionType>\" + \n \"</COD>\";\n } else {\n \n codTag = \"\";\n }\n\n halPhone = aascPackageBean.getHalPhone();\n halCity = aascPackageBean.getHalCity();\n halState = aascPackageBean.getHalStateOrProvince();\n halLine1 = aascPackageBean.getHalLine1();\n halLine2 = aascPackageBean.getHalLine2();\n halZip = aascPackageBean.getHalPostalCode();\n halFlag = aascPackageBean.getHalFlag();\n\n dryIceUnits = aascPackageBean.getDryIceUnits();\n chDryIce = aascPackageBean.getDryIceChk();\n dryIceWeight = aascPackageBean.getDryIceWeight();\n \n logger.info(\"DryIce Flag=\" + chDryIce);\n if (chDryIce.equalsIgnoreCase(\"Y\")) {\n logger.info(\"DryIce Flag is Y\");\n dryIceTag = \n \"<DryIce><WeightUnits>\" + dryIceUnits + \"</WeightUnits><Weight>\" + \n dryIceWeight + \"</Weight></DryIce>\";\n } else {\n logger.info(\"DryIce Flag is N\");\n dryIceTag = \"\";\n }\n\n\n\n String halLine2Tag = \"\";\n\n if (halLine2.equalsIgnoreCase(\"\") || halLine2 == null) {\n halLine2Tag = \"\";\n } else {\n halLine2Tag = \"<Line2>\" + halLine2 + \"</Line2>\";\n }\n\n\n if (halFlag.equalsIgnoreCase(\"Y\")) {\n \n hal = \n\"<HoldAtLocation><PhoneNumber>\" + halPhone + \"</PhoneNumber>\" + \n \"<Address><Line1>\" + halLine1 + \"</Line1>\" + halLine2Tag + \"<City>\" + \n halCity + \"</City>\" + \"<StateOrProvinceCode>\" + halState + \n \"</StateOrProvinceCode>\" + \"<PostalCode>\" + halZip + \n \"</PostalCode></Address></HoldAtLocation>\";\n\n } else {\n \n hal = \"\";\n }\n\n HazMatFlag = aascPackageBean.getHazMatFlag();\n HazMatType = aascPackageBean.getHazMatType();\n HazMatClass = aascPackageBean.getHazMatClass();\n \n\n String HazMatCertData = \"\";\n String ShippingName = \"\";\n String ShippingName1 = \"\";\n String ShippingName2 = \"\";\n String ShippingName3 = \"\";\n String Class = \"\";\n\n if (HazMatFlag.equalsIgnoreCase(\"Y\")) {\n \n if (!HazMatClass.equalsIgnoreCase(\"\")) {\n \n int classIndex = HazMatClass.indexOf(\"Class\", 1);\n if (classIndex == -1) {\n classIndex = HazMatClass.indexOf(\"CLASS\", 1);\n \n }\n \n int firstIndex = 0;\n \n\n firstIndex = HazMatClass.indexOf(\"-\");\n \n String HazMatClassStr = \n HazMatClass.substring(0, firstIndex);\n \n if (classIndex == -1) {\n \n ShippingName = \"\";\n \n \n try {\n Class = \n trim(HazMatClassStr.substring(HazMatClassStr.indexOf(\" \"), \n HazMatClassStr.length()));\n } catch (Exception e) {\n Class = \"\";\n firstIndex = -1;\n }\n\n } else {\n \n ShippingName = \n HazMatClass.substring(0, classIndex - \n 1);\n \n Class = \n trim(HazMatClassStr.substring(HazMatClassStr.lastIndexOf(\" \"), \n HazMatClassStr.length()));\n }\n \n if (HazMatClass.length() > firstIndex + 1 + 100) {\n ShippingName1 = \n HazMatClass.substring(firstIndex + 1, \n firstIndex + 1 + \n 50);\n ShippingName2 = \n HazMatClass.substring(firstIndex + 1 + \n 50, \n firstIndex + 1 + \n 100);\n ShippingName3 = \n HazMatClass.substring(firstIndex + 1 + \n 100, \n HazMatClass.length());\n } else if (HazMatClass.length() > \n firstIndex + 1 + 50) {\n ShippingName1 = \n HazMatClass.substring(firstIndex + 1, \n firstIndex + 1 + \n 50);\n ShippingName2 = \n HazMatClass.substring(firstIndex + 1 + \n 50, \n HazMatClass.length());\n } else if (HazMatClass.length() <= \n firstIndex + 1 + 50) {\n ShippingName1 = \n HazMatClass.substring(firstIndex + 1, \n HazMatClass.length());\n }\n \n fedExWsShippingName = ShippingName;\n fedExWsShippingName1 = ShippingName1+ShippingName2+ShippingName3;\n fedExWsShippingName2 = ShippingName2;\n fedExWsShippingName3 = ShippingName3;\n fedExWsClass = Class;\n HazMatCertData = \n \"<HazMatCertificateData>\" + \"<DOTProperShippingName>\" + \n ShippingName + \"</DOTProperShippingName>\" + \n \"<DOTProperShippingName>\" + ShippingName1 + \n \"</DOTProperShippingName>\" + \n \"<DOTProperShippingName>\" + ShippingName2 + \n \"</DOTProperShippingName>\" + \n \"<DOTProperShippingName>\" + ShippingName3 + \n \"</DOTProperShippingName>\" + \n \"<DOTHazardClassOrDivision>\" + Class + \n \"</DOTHazardClassOrDivision>\";\n // \"</HazMatCertificateData>\";\n\n }\n\n\n HazMatQty = aascPackageBean.getHazMatQty();\n HazMatUnit = aascPackageBean.getHazMatUnit();\n\n HazMatIdentificationNo = \n aascPackageBean.getHazMatIdNo();\n HazMatEmergencyContactNo = \n aascPackageBean.getHazMatEmerContactNo();\n HazMatEmergencyContactName = \n aascPackageBean.getHazMatEmerContactName();\n HazardousMaterialPkgGroup = \n nullStrToSpc(aascPackageBean.getHazMatPkgGroup());\n\n // Added on Jul-05-2011\n try {\n hazmatPkgingCnt = \n aascPackageBean.getHazmatPkgingCnt();\n } catch (Exception e) {\n hazmatPkgingCnt = 0.0;\n }\n hazmatPkgingUnits = \n nullStrToSpc(aascPackageBean.getHazmatPkgingUnits());\n hazmatTechnicalName = \n nullStrToSpc(aascPackageBean.getHazmatTechnicalName());\n //End on Jul-05-2011\n hazmatSignatureName = \n nullStrToSpc(aascPackageBean.getHazmatSignatureName());\n\n /* if(HazardousMaterialPkgGroup.equalsIgnoreCase(\"\"))\n {\n HazardousMaterialPkgGroup = aascPackageBean.getHazMatPkgGroup();\n }\n else {\n HazardousMaterialPkgGroup=\"\";\n }*/\n HazMatDOTLabelType = \n aascPackageBean.getHazMatDOTLabel();\n HazardousMaterialId = aascPackageBean.getHazMatId();\n\n String AccessibilityTag = \n \"<Accessibility>\" + HazMatType + \n \"</Accessibility>\";\n String additionalTag = \"\";\n String additionalTag1 = \"\";\n\n if (carrierCode.equalsIgnoreCase(\"FDXG\")) {\n \n AccessibilityTag = \"\";\n additionalTag = \n \"<Quantity>\" + HazMatQty + \"</Quantity><Units>\" + \n HazMatUnit + \n \"</Units></HazMatCertificateData>\";\n additionalTag1 = \n \"<DOTIDNumber>\" + HazMatIdentificationNo + \n \"</DOTIDNumber>\" + \"<PackingGroup>\" + \n HazardousMaterialPkgGroup + \n \"</PackingGroup>\" + \"<DOTLabelType>\" + \n HazMatDOTLabelType + \"</DOTLabelType>\" + \n \"<TwentyFourHourEmergencyResponseContactName>\" + \n HazMatEmergencyContactName + \n \"</TwentyFourHourEmergencyResponseContactName>\" + \n \"<TwentyFourHourEmergencyResponseContactNumber>\" + \n HazMatEmergencyContactNo + \n \" </TwentyFourHourEmergencyResponseContactNumber>\";\n\n additionalTag = \n additionalTag1 + \"<Quantity>\" + HazMatQty + \n \"</Quantity><Units>\" + HazMatUnit + \n \"</Units></HazMatCertificateData>\";\n\n } else {\n \n additionalTag = \"\" + \"</HazMatCertificateData>\";\n }\n\n HazMat = \n \"<DangerousGoods>\" + AccessibilityTag + HazMatCertData + \n additionalTag + \"</DangerousGoods>\";\n\n } else {\n \n HazMat = \"\";\n }\n\n // Added code for dimensions \n packageLength = aascPackageBean.getPackageLength();\n packageWidth = aascPackageBean.getPackageWidth();\n packageHeight = aascPackageBean.getPackageHeight();\n units = nullStrToSpc(aascPackageBean.getDimensionUnits());\n\n //System.out.println(\"packageLength----------------------------in fedex shipment::\"+packageLength);\n // Added for dimensions \n if (packageLength != 0 && packageWidth != 0 && \n packageHeight != 0 && packageLength != 0.0 && \n packageWidth != 0.0 && packageHeight != 0.0) {\n header9 = \n \"<Dimensions>\" + \"<Length>\" + (int)packageLength + \n \"</Length>\" + \"<Width>\" + (int)packageWidth + \n \"</Width>\" + \"<Height>\" + (int)packageHeight + \n \"</Height>\" + \"<Units>\" + units + \"</Units>\" + \n \"</Dimensions>\";\n } else {\n header9 = \"\";\n }\n\n signatureOptions = \n nullStrToSpc(aascPackageBean.getSignatureOptions());\n\n\n returnShipment = \n nullStrToSpc(aascPackageBean.getReturnShipment());\n if (returnShipment.equalsIgnoreCase(\"PRINTRETURNLABEL\")) {\n rtnShipFromCompany = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromCompany().trim()));\n \n rtnShipToCompany = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToCompany().trim()));\n rtnShipFromContact = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromContact().trim()));\n rtnShipToContact = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToContact().trim()));\n\n if (rtnShipToContact.equalsIgnoreCase(\"\") || \n rtnShipToContact == null) {\n rtnTagshipToContactPersonName = \"\";\n } else {\n rtnTagshipToContactPersonName = \n \"<PersonName>\" + rtnShipToContact + \n \"</PersonName>\";\n }\n\n rtnShipFromLine1 = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromLine1().trim()));\n\n rtnShipToLine1 = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToLine1().trim()));\n rtnShipFromLine2 = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromLine2().trim()));\n\n rtnShipToLine2 = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToLine2().trim()));\n rtnShipFromCity = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromCity().trim()));\n rtnShipFromSate = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromSate().trim()));\n rtnShipFromZip = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromZip()));\n rtnShipToCity = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToCity().trim()));\n rtnShipToState = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToState().trim()));\n rtnShipToZip = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToZip()));\n rtnShipFromPhone = \n encode(nullStrToSpc(aascPackageBean.getRtnShipFromPhone().trim()));\n\n rtnShipFromPhone = rtnShipFromPhone.replace(\"(\", \"\");\n rtnShipFromPhone = rtnShipFromPhone.replace(\")\", \"\");\n rtnShipFromPhone = rtnShipFromPhone.replace(\"-\", \"\");\n\n rtnShipToPhone = \n encode(nullStrToSpc(aascPackageBean.getRtnShipToPhone().trim()));\n\n rtnShipToPhone = rtnShipToPhone.replace(\"(\", \"\");\n rtnShipToPhone = rtnShipToPhone.replace(\")\", \"\");\n rtnShipToPhone = rtnShipToPhone.replace(\"-\", \"\");\n\n rtnShipMethod = \n encode(nullStrToSpc(aascPackageBean.getRtnShipMethod()));\n rtnDropOfType = \n encode(nullStrToSpc(aascPackageBean.getRtnDropOfType()));\n rtnPackageList = \n encode(nullStrToSpc(aascPackageBean.getRtnPackageList()));\n //rtnPayMethod=nullStrToSpc(aascPackageBean.getRtnPayMethod());\n rtnPayMethod = \n encode((String)carrierPayMethodCodeMap.get(nullStrToSpc(aascPackageBean.getRtnPayMethod())));\n rtnPayMethodCode = \n encode(nullStrToSpc(aascPackageBean.getRtnPayMethodCode()));\n rtnACNumber = \n encode(nullStrToSpc(aascPackageBean.getRtnACNumber().trim()));\n rtnRMA = \n encode(nullStrToSpc(aascPackageBean.getRtnRMA().trim()));\n }\n // rtnTrackingNumber=nullStrToSpc(aascPackageBean.getRtnTrackingNumber().trim());\n //18/07/07(end)\n //25/07/07(start)\n String rtnShipTagToContact = \"\";\n String rtnshipToContactPersonName = \"\";\n String rtnShipTagFromContact = \"\";\n String rtnshipFromContactPersonName = \"\";\n if (rtnShipToCompany.equalsIgnoreCase(\"\") || \n rtnShipToCompany == null) {\n\n if (rtnShipToContact.equalsIgnoreCase(\"\") || \n rtnShipToContact == null) {\n rtnShipTagToContact = \"\";\n } else {\n rtnShipTagToContact = \n \"<PersonName>\" + rtnShipToContact + \n \"</PersonName>\";\n }\n\n\n } else {\n\n if (rtnShipToContact.equalsIgnoreCase(\"\") || \n rtnShipToContact == null) {\n rtnshipToContactPersonName = \"\";\n } else {\n rtnshipToContactPersonName = \n \"<PersonName>\" + rtnShipToContact + \n \"</PersonName>\";\n\n }\n rtnShipTagToContact = \n rtnshipToContactPersonName + \"<CompanyName>\" + \n rtnShipToCompany + \"</CompanyName>\";\n\n }\n\n\n if (rtnShipFromCompany.equalsIgnoreCase(\"\") || \n rtnShipFromCompany == null) {\n\n if (rtnShipFromContact.equalsIgnoreCase(\"\") || \n rtnShipFromContact == null) {\n rtnShipTagFromContact = \"\";\n } else {\n rtnShipTagFromContact = \n \"<PersonName>\" + rtnShipFromContact + \n \"</PersonName>\";\n }\n\n\n } else {\n\n if (rtnShipFromContact.equalsIgnoreCase(\"\") || \n rtnShipFromContact == null) {\n rtnshipFromContactPersonName = \"\";\n } else {\n rtnshipFromContactPersonName = \n \"<PersonName>\" + rtnShipFromContact + \n \"</PersonName>\";\n\n }\n rtnShipTagFromContact = \n rtnshipFromContactPersonName + \"<CompanyName>\" + \n rtnShipFromCompany + \"</CompanyName>\";\n\n }\n //25/07/07(end)\n\n\n //24/07/07(start)\n String toLine2Tag = \"\";\n\n if (rtnShipToLine2.equalsIgnoreCase(\"\") || \n rtnShipToLine2 == null) {\n toLine2Tag = \"\";\n } else {\n toLine2Tag = \"<Line2>\" + rtnShipToLine2 + \"</Line2>\";\n }\n\n String fromLine2Tag = \"\";\n\n if (rtnShipFromLine2.equalsIgnoreCase(\"\") || \n rtnShipFromLine2 == null) {\n fromLine2Tag = \"\";\n } else {\n fromLine2Tag = \n \"<Line2>\" + rtnShipFromLine2 + \"</Line2>\";\n }\n //24/07/07(end)\n if (rtnRMA != null && !(rtnRMA.equalsIgnoreCase(\"\"))) {\n rmaTag = \n \"<RMA>\" + \"<Number>\" + rtnRMA + \"</Number>\" + \"</RMA>\";\n } else {\n rmaTag = \"\";\n }\n packageDeclaredValue = \n aascPackageBean.getPackageDeclaredValue();\n \n rtnPackageDeclaredValue = \n aascPackageBean.getRtnDeclaredValue();\n \n rtnPackageDeclaredValueStr = \n String.valueOf(rtnPackageDeclaredValue);\n\n int indexRtr = rtnPackageDeclaredValueStr.indexOf(\".\");\n\n if (indexRtr < 1) {\n rtnPackageDeclaredValueStr = \n rtnPackageDeclaredValueStr + \".00\";\n\n } else if ((rtnPackageDeclaredValueStr.length() - \n indexRtr) > 2) {\n rtnPackageDeclaredValueStr = \n rtnPackageDeclaredValueStr.substring(0, \n index + 3);\n\n } else {\n while (rtnPackageDeclaredValueStr.length() != \n (indexRtr + 3)) {\n rtnPackageDeclaredValueStr = \n rtnPackageDeclaredValueStr + \"0\";\n\n }\n }\n //31/07/07(end)\n\n packageDeclaredValueStr = \n String.valueOf(packageDeclaredValue);\n int index = packageDeclaredValueStr.indexOf(\".\");\n\n\n if (index < 1) {\n packageDeclaredValueStr = \n packageDeclaredValueStr + \".00\";\n\n } else if ((packageDeclaredValueStr.length() - index) > \n 2) {\n packageDeclaredValueStr = \n packageDeclaredValueStr.substring(0, \n index + 3);\n\n } else {\n while (packageDeclaredValueStr.length() != \n (index + 3)) {\n packageDeclaredValueStr = \n packageDeclaredValueStr + \"0\";\n\n }\n }\n /*End 15-04-09 */\n\n\n packageSequence = \n nullStrToSpc(aascPackageBean.getPackageSequence());\n \n packageFlag = nullStrToSpc(aascPackageBean.getVoidFlag());\n \n packageTrackinNumber = \n nullStrToSpc(aascPackageBean.getTrackingNumber());\n\n packageCount = \n nullStrToSpc(aascPackageBean.getPackageCount());\n\n \n\n if (!packageCount.equalsIgnoreCase(\"1\")) {\n\n shipmentWeight = \n nullStrToSpc(String.valueOf(aascPackageBean.getWeight()));\n\n \n\n if (packageSequence.equalsIgnoreCase(\"1\")) {\n if (carrierCode.equalsIgnoreCase(\"FDXG\") || \n (carrierCode.equalsIgnoreCase(\"FDXE\") && \n codFlag.equalsIgnoreCase(\"Y\")) || \n (carrierCode.equalsIgnoreCase(\"FDXE\") && \n intFlag.equalsIgnoreCase(\"Y\"))) {\n shipMultiPieceFlag = 1;\n }\n masterTrackingNumber = \"\";\n masterFormID = \"\";\n /*shipWtTag = \"<ShipmentWeight>\"\n + aascHeaderInfo.getPackageWeight()\n + \"</ShipmentWeight>\"; */\n } else {\n if (shipFlag.equalsIgnoreCase(\"Y\")) {\n masterTrackingNumber = \n nullStrToSpc(String.valueOf(aascShipmentHeaderInfo.getWayBill()));\n masterFormID = \n nullStrToSpc(String.valueOf(aascShipmentHeaderInfo.getMasterFormId()));\n \n } else {\n masterTrackingNumber = \n nullStrToSpc((String)hashMap.get(\"masterTrkNum\"));\n\n \n if (masterTrackingNumber == \"\" || \n masterTrackingNumber.equalsIgnoreCase(\"\")) {\n masterTrackingNumber = \n nullStrToSpc(String.valueOf(aascShipmentHeaderInfo.getWayBill()));\n\n //aascShipmentHeaderInfo.setWayBill(masterTrackingNumber);\n\n }\n //26/07/07(end)\n masterFormID = \n nullStrToSpc((String)hashMap.get(\"masterFormId\"));\n //shipWtTag = \"\";\n }\n\n }\n\n if (shipMultiPieceFlag == \n 1) { //shipWtTag + // \"<ShipmentWeight>\"+aascHeaderInfo.getPackageWeight()+\"</ShipmentWeight>\"+\n part1 = \n \"<MultiPiece>\" + \"<PackageCount>\" + packageCount + \n \"</PackageCount>\" + \n \"<PackageSequenceNumber>\" + \n packageSequence + \n \"</PackageSequenceNumber>\" + \n \"<MasterTrackingNumber>\" + \n masterTrackingNumber + \n \"</MasterTrackingNumber>\";\n part2 = \"\";\n if (carrierCode.equalsIgnoreCase(\"FDXE\")) {\n part2 = \n \"<MasterFormID>\" + masterFormID + \"</MasterFormID></MultiPiece>\";\n } else {\n part2 = \"</MultiPiece>\";\n }\n\n header4 = part1 + part2;\n }\n\n else {\n header4 = \"\";\n }\n }\n\n\n chkReturnlabel = \"NONRETURN\";\n\n responseStatus = \n setCarrierLevelInfo1(aascShipmentHeaderInfo, \n aascPackageBean, \n aascShipMethodInfo, \n chkReturnlabel); //calling local method\n int ctr = 0;\n if (responseStatus == 151 && \n !(shipFlag.equalsIgnoreCase(\"Y\"))) {\n // aascHeaderInfo.setWayBill(\"\"); \n packageInfoIterator = shipPackageInfo.listIterator();\n\n while (packageInfoIterator.hasNext()) {\n ctr = ctr + 1;\n aascPackageBean = \n (AascShipmentPackageInfo)packageInfoIterator.next();\n aascPackageBean.setMasterTrackingNumber(\"\");\n aascPackageBean.setMasterFormID(\"\");\n // aascPackageBean.setTrackingNumber(\"\");\n aascPackageBean.setPkgCost(0.0);\n aascPackageBean.setRtnShipmentCost(0.0);\n aascPackageBean.setRtnTrackingNumber(\"\");\n aascPackageBean.setSurCharges(0.0);\n }\n return responseStatus;\n }\n if (responseStatus == 151 && \n shipFlag.equalsIgnoreCase(\"Y\")) {\n\n packageInfoIterator = shipPackageInfo.listIterator();\n while (packageInfoIterator.hasNext()) {\n ctr = ctr + 1;\n aascPackageBean = \n (AascShipmentPackageInfo)packageInfoIterator.next();\n\n }\n return responseStatus;\n }\n\n // }//End of Iterator \n\n customerCarrierAccountNumber = \n aascShipmentHeaderInfo.getCarrierAccountNumber(); // FedEx Account number of the client \n // Modified to retrieve the Ship From company name from Profile Options instead of from Header Info\n // shipFromCompanyName = nullStrToSpc(aascProfileOptionsInfo.getCompanyName());\n shipFromCompanyName = \n aascShipmentHeaderInfo.getShipFromCompanyName();\n logger.info(\"ship from company name::::\" + \n shipFromCompanyName);\n shipFromCompanyName = encode(shipFromCompanyName);\n \n shipFromPhoneNumber1 = \n nullStrToSpc(aascShipmentHeaderInfo.getShipFromPhoneNumber1());\n //start\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\"(\", \"\");\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\")\", \"\");\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\"-\", \"\");\n\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\"(\", \"\");\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\")\", \"\");\n shipFromPhoneNumber1 = \n shipFromPhoneNumber1.replace(\"-\", \"\");\n\n shipFromPhoneNumber1 = escape(shipFromPhoneNumber1);\n\n shipToContactPhoneNumber = \n nullStrToSpc(aascShipmentHeaderInfo.getPhoneNumber()); // retreiving phone number from header bean \n\n shipToContactPhoneNumber = \n escape(shipToContactPhoneNumber);\n \n if (shipToContactPhoneNumber.equalsIgnoreCase(\"\")) {\n shipToContactPhoneNumber = shipFromPhoneNumber1;\n }\n\n shipToContactPhoneNumber = \n shipToContactPhoneNumber.replace(\"(\", \"\");\n shipToContactPhoneNumber = \n shipToContactPhoneNumber.replace(\")\", \"\");\n shipToContactPhoneNumber = \n shipToContactPhoneNumber.replace(\"-\", \"\");\n \n shipFromEMailAddress = nullStrToSpc(aascShipmentHeaderInfo.getShipFromEmailId());\n \n carrierPayMethod = \n (String)carrierPayMethodCodeMap.get(nullStrToSpc(aascShipmentHeaderInfo.getCarrierPaymentMethod()));\n carrierPayMethodCode = \n nullStrToSpc(aascShipMethodInfo.getCarrierPayCode(aascShipmentHeaderInfo.getCarrierPaymentMethod()));\n if (\"RECIPIENT\".equalsIgnoreCase(carrierPayMethod) && \n \"FC\".equalsIgnoreCase(carrierPayMethodCode)) {\n carrierPayMethodCode = \"CG\";\n }\n dropoffType = \n nullStrToSpc(aascShipmentHeaderInfo.getDropOfType());\n service = \n aascShipMethodInfo.getConnectShipScsTag(shipMethodName);\n packaging = \n nullStrToSpc(aascShipmentHeaderInfo.getPackaging());\n portString = aascShipMethodInfo.getCarrierPort(carrierId);\n if (portString != null && !(portString.equals(\"\"))) {\n port = Integer.parseInt(portString);\n } else {\n logger.severe(\"portString is null \" + portString);\n }\n host = \naascShipMethodInfo.getCarrierServerIPAddress(carrierId);\n\n if (carrierCode.equalsIgnoreCase(\"FDXE\") && \n carrierPayMethodCode.equalsIgnoreCase(\"FC\")) {\n aascShipmentHeaderInfo.setMainError(\"bill to type of collect is for ground services only \");\n responseStatus = 151;\n return responseStatus;\n }\n //By Madhavi\n String line2Tag = \"\";\n shipToAddressLine2 = \n nullStrToSpc(aascShipmentHeaderInfo.getShipToAddrLine2());\n shipToAddressLine2 = shipToAddressLine2.trim();\n shipToAddressLine2=encode(shipToAddressLine2); //added by Jagadish\n \n if (shipToAddressLine2.equalsIgnoreCase(\"\") || \n shipToAddressLine2 == null) {\n line2Tag = \"\";\n } else {\n line2Tag = \"<Line2>\" + shipToAddressLine2 + \"</Line2>\";\n }\n op900LabelFormat = \n nullStrToSpc(aascShipMethodInfo.getHazmatOp900LabelFormat(carrierId));\n \n intFlag = aascShipmentHeaderInfo.getInternationalFlag();\n LinkedList coList = null;\n try {\n aascIntlHeaderInfo = aascIntlInfo.getIntlHeaderInfo();\n coList = aascIntlInfo.getIntlCommodityInfo();\n } catch (Exception e) {\n aascIntlHeaderInfo = new AascIntlHeaderInfo();\n coList = new LinkedList();\n }\n if (intFlag.equalsIgnoreCase(\"Y\")) {\n \n intPayerType = \n nullStrToSpc(aascIntlHeaderInfo.getIntlPayerType());\n \n intAccNumber = nullStrToSpc(aascShipmentHeaderInfo.getCarrierAccountNumber());\n// nullStrToSpc(aascIntlHeaderInfo.getIntlAccountNumber());\n//logger.info(\"intAccNumber:2167::\"+intAccNumber);\n // logger.info(\"nullStrToSpc(aascIntlHeaderInfo.getIntlAccountNumber()):2168::\"+nullStrToSpc(aascIntlHeaderInfo.getIntlAccountNumber()));\n\n intMaskAccNumber = \n nullStrToSpc(aascIntlHeaderInfo.getIntlMaskAccountNumber());\n intcountryCode = \n nullStrToSpc(aascIntlHeaderInfo.getIntlCountryCode());\n \n intTermsOfSale = \n nullStrToSpc(aascIntlHeaderInfo.getIntlTermsOfSale());\n intTotalCustomsValue = \n nullStrToSpc(aascIntlHeaderInfo.getIntlTotalCustomsValue());\n intFreightCharge = \n aascIntlHeaderInfo.getIntlFreightCharge();\n intInsuranceCharge = \n aascIntlHeaderInfo.getIntlInsuranceCharge();\n intTaxesOrMiscellaneousCharge = \n aascIntlHeaderInfo.getIntlTaxMiscellaneousCharge();\n intPurpose = \n nullStrToSpc(aascIntlHeaderInfo.getIntlPurpose());\n intSenderTINOrDUNS = \n nullStrToSpc(aascIntlHeaderInfo.getIntlSedNumber());\n intSenderTINOrDUNSType = \n nullStrToSpc(aascIntlHeaderInfo.getIntlSedType());\n packingListEnclosed = \n aascIntlHeaderInfo.getPackingListEnclosed();\n shippersLoadAndCount = \n aascIntlHeaderInfo.getShippersLoadAndCount();\n bookingConfirmationNumber = \n aascIntlHeaderInfo.getBookingConfirmationNumber();\n generateCI = aascIntlHeaderInfo.getGenerateCI();\n declarationStmt = \n aascIntlHeaderInfo.getIntlDeclarationStmt();\n \n importerName = aascIntlHeaderInfo.getImporterName();\n importerCompName = \n aascIntlHeaderInfo.getImporterCompName();\n importerAddress1 = \n aascIntlHeaderInfo.getImporterAddress1();\n importerAddress2 = \n aascIntlHeaderInfo.getImporterAddress2();\n importerCity = aascIntlHeaderInfo.getImporterCity();\n importerCountryCode = \n aascIntlHeaderInfo.getImporterCountryCode();\n \n importerPhoneNum = \n aascIntlHeaderInfo.getImporterPhoneNum();\n \n importerPostalCode = \n aascIntlHeaderInfo.getImporterPostalCode();\n importerState = aascIntlHeaderInfo.getImporterState();\n \n impIntlSedNumber = \n aascIntlHeaderInfo.getImpIntlSedNumber();\n \n impIntlSedType = \n aascIntlHeaderInfo.getImpIntlSedType();\n \n recIntlSedNumber = \n aascIntlHeaderInfo.getRecIntlSedNumber();\n recIntlSedType = \n aascIntlHeaderInfo.getRecIntlSedType();\n \n brokerName = aascIntlHeaderInfo.getBrokerName();\n brokerCompName = \n aascIntlHeaderInfo.getBrokerCompName();\n \n brokerAddress1 = \n aascIntlHeaderInfo.getBrokerAddress1();\n \n brokerAddress2 = \n aascIntlHeaderInfo.getBrokerAddress2();\n \n brokerCity = aascIntlHeaderInfo.getBrokerCity();\n \n brokerCountryCode = \n aascIntlHeaderInfo.getBrokerCountryCode();\n \n brokerPhoneNum = \n aascIntlHeaderInfo.getBrokerPhoneNum();\n \n brokerPostalCode = \n aascIntlHeaderInfo.getBrokerPostalCode();\n \n brokerState = aascIntlHeaderInfo.getBrokerState();\n \n\n recIntlSedType = \n aascIntlHeaderInfo.getRecIntlSedType();\n \n\n ListIterator CoInfoIterator = coList.listIterator();\n\n intHeader6 = \"\";\n String harCode = \"\";\n String uPrice = \"\";\n String exportLicense = \"\";\n\n while (CoInfoIterator.hasNext()) {\n AascIntlCommodityInfo aascIntlCommodityInfo = \n (AascIntlCommodityInfo)CoInfoIterator.next();\n\n numberOfPieces = \n aascIntlCommodityInfo.getNumberOfPieces();\n description = \n encode(aascIntlCommodityInfo.getDescription());\n countryOfManufacture = \n aascIntlCommodityInfo.getCountryOfManufacture();\n harmonizedCode = \n aascIntlCommodityInfo.getHarmonizedCode();\n weight = aascIntlCommodityInfo.getWeight();\n quantity = aascIntlCommodityInfo.getQuantity();\n quantityUnits = \n aascIntlCommodityInfo.getQuantityUnits();\n unitPrice = aascIntlCommodityInfo.getUnitPrice();\n customsValue = \n aascIntlCommodityInfo.getCustomsValue();\n exportLicenseNumber = \n aascIntlCommodityInfo.getExportLicenseNumber();\n exportLicenseExpiryDate = \n aascIntlCommodityInfo.getExportLicenseExpiryDate();\n String rdate = \"\";\n\n try {\n //String mon[]={\"\",\"JAN\",\"FEB\",\"MAR\",\"APR\",\"MAY\",\"JUN\",\"JUL\",\"AUG\",\"SEP\",\"OCT\",\"NOV\",\"DEC\"};\n // String exportLicenseExpiryDateStr = \n // exportLicenseExpiryDate.substring(0, 1);\n String convertDate = exportLicenseExpiryDate;\n\n // 18-FEB-08 2008-02-18\n int len = convertDate.length();\n int indexs = convertDate.indexOf('-');\n int index1 = convertDate.lastIndexOf('-');\n\n String syear = \n convertDate.substring(index1 + 1, \n len).trim();\n String sdate = \n convertDate.substring(0, indexs).trim();\n String smon = \n convertDate.substring(indexs + 1, index1).trim();\n String intMonth = \"\";\n if (smon.equalsIgnoreCase(\"JAN\"))\n intMonth = \"01\";\n else if (smon.equalsIgnoreCase(\"FEB\"))\n intMonth = \"02\";\n else if (smon.equalsIgnoreCase(\"MAR\"))\n intMonth = \"03\";\n else if (smon.equalsIgnoreCase(\"APR\"))\n intMonth = \"04\";\n else if (smon.equalsIgnoreCase(\"MAY\"))\n intMonth = \"05\";\n else if (smon.equalsIgnoreCase(\"JUN\"))\n intMonth = \"06\";\n else if (smon.equalsIgnoreCase(\"JUL\"))\n intMonth = \"07\";\n else if (smon.equalsIgnoreCase(\"AUG\"))\n intMonth = \"08\";\n else if (smon.equalsIgnoreCase(\"SEP\"))\n intMonth = \"09\";\n else if (smon.equalsIgnoreCase(\"OCT\"))\n intMonth = \"10\";\n else if (smon.equalsIgnoreCase(\"NOV\"))\n intMonth = \"11\";\n else if (smon.equalsIgnoreCase(\"DEC\"))\n intMonth = \"12\";\n\n rdate = \n \"20\" + syear + '-' + intMonth + '-' + sdate;\n rdate = exportLicenseExpiryDate;\n\n } catch (Exception e) {\n exportLicenseExpiryDate = \"\";\n rdate = \"\";\n }\n\n try {\n // String harmonizedCodeStr = \n // harmonizedCode.substring(0, 1);\n } catch (Exception e) {\n harmonizedCode = \"\";\n }\n if (harmonizedCode.equalsIgnoreCase(\"\")) {\n harCode = \"\";\n } else {\n harCode = \n \"<HarmonizedCode>\" + harmonizedCode + \"</HarmonizedCode>\";\n }\n if (unitPrice.equalsIgnoreCase(\"\")) {\n uPrice = \"\";\n } else {\n uPrice = \n \"<UnitPrice>\" + unitPrice + \"</UnitPrice>\";\n }\n try {\n // String expNoStr = \n // exportLicenseNumber.substring(0, 1);\n\n } catch (Exception e) {\n exportLicenseNumber = \"\";\n }\n if (exportLicenseNumber.equalsIgnoreCase(\"\")) {\n exportLicense = \"\";\n } else {\n exportLicense = \n \"<ExportLicenseNumber>\" + exportLicenseNumber + \n \"</ExportLicenseNumber>\" + \n \"<ExportLicenseExpirationDate>\" + \n rdate + \n \"</ExportLicenseExpirationDate>\";\n }\n\n\n intHeader6 = \n intHeader6 + \"<Commodity>\" + \"<NumberOfPieces>\" + \n numberOfPieces + \"</NumberOfPieces>\" + \n \"<Description>\" + description + \n \"</Description>\" + \n \"<CountryOfManufacture>\" + \n countryOfManufacture + \n \"</CountryOfManufacture>\" + harCode + \n \"<Weight>\" + weight + \"</Weight>\" + \n \"<Quantity>\" + quantity + \"</Quantity> \" + \n \"<QuantityUnits>\" + quantityUnits + \n \"</QuantityUnits>\" + uPrice + \n \"<CustomsValue>\" + customsValue + \n \"</CustomsValue>\" + exportLicense + \n \"</Commodity>\";\n\n\n }\n\n if (intPayerType.equalsIgnoreCase(\"THIRDPARTY\")) {\n intHeader1 = \n \"<DutiesPayor><AccountNumber>\" + intAccNumber + \n \"</AccountNumber>\" + \"<CountryCode>\" + \n intcountryCode + \"</CountryCode>\" + \n \"</DutiesPayor>\";\n intHeader2 = \n \"<DutiesPayment>\" + intHeader1 + \"<PayorType>\" + \n intPayerType + \"</PayorType>\" + \n \"</DutiesPayment>\";\n payorCountryCodeWS = intcountryCode;\n } else {\n intHeader2 = \n \"<DutiesPayment>\" + \"<PayorType>\" + intPayerType + \n \"</PayorType>\" + \"</DutiesPayment>\";\n }\n\n /*\n try{\n String ifc = intFreightCharge.substring(0,1);\n }catch(Exception e)\n {\n intFreightCharge = \"0.0\";\n }\n try{\n String iic = intInsuranceCharge.substring(0,1);\n }catch(Exception e)\n {\n intInsuranceCharge = \"0.0\";\n }\n try{\n String itmc = intTaxesOrMiscellaneousCharge.substring(0,1);\n }catch(Exception e)\n {\n intTaxesOrMiscellaneousCharge = \"0.0\";\n }\n */\n\n if (intPurpose.equalsIgnoreCase(\"\")) { // +\"<Comments>dd</Comments>\"+\n intHeader3 = \n \"<CommercialInvoice>\" + \"<FreightCharge>\" + \n intFreightCharge + \"</FreightCharge>\" + \n \"<InsuranceCharge>\" + intInsuranceCharge + \n \"</InsuranceCharge>\" + \n \"<TaxesOrMiscellaneousCharge>\" + \n intTaxesOrMiscellaneousCharge + \n \"</TaxesOrMiscellaneousCharge>\" + \n \"</CommercialInvoice>\";\n } else { // +\"<Comments>dd</Comments>\"+\n intHeader3 = \n \"<CommercialInvoice>\" + \"<FreightCharge>\" + \n intFreightCharge + \"</FreightCharge>\" + \n \"<InsuranceCharge>\" + intInsuranceCharge + \n \"</InsuranceCharge>\" + \n \"<TaxesOrMiscellaneousCharge>\" + \n intTaxesOrMiscellaneousCharge + \n \"</TaxesOrMiscellaneousCharge>\" + \n \"<Purpose>\" + intPurpose + \"</Purpose>\" + \n \"</CommercialInvoice>\";\n }\n /*\n intHeader4 = \"<Commodity>\"+\n \"<NumberOfPieces>1</NumberOfPieces> \"+\n \"<Description>Computer Keyboards</Description> \"+\n \"<CountryOfManufacture>US</CountryOfManufacture> \"+\n \"<HarmonizedCode>00</HarmonizedCode> \"+\n \"<Weight>5.0</Weight> \"+\n \"<Quantity>1</Quantity> \"+\n \"<QuantityUnits>PCS</QuantityUnits> \"+\n \"<UnitPrice>25.000000</UnitPrice> \"+\n \"<CustomsValue>25.000000</CustomsValue> \"+\n \"<ExportLicenseNumber>25</ExportLicenseNumber> \"+\n \"<ExportLicenseExpirationDate>25</ExportLicenseExpirationDate> \"+\n \"</Commodity>\";\n\n intHeader4 = \"\"; */\n\n if (!intSenderTINOrDUNS.equalsIgnoreCase(\"\")) {\n intHeader5 = \n \"<SED>\" + \"<SenderTINOrDUNS>\" + intSenderTINOrDUNS + \n \"</SenderTINOrDUNS>\" + \n \"<SenderTINOrDUNSType>\" + \n intSenderTINOrDUNSType + \n \"</SenderTINOrDUNSType>\" + \"</SED>\";\n } else {\n intHeader5 = \"\";\n }\n\n internationalTags = \n \"<International>\" + intHeader2 + \"<TermsOfSale>\" + \n intTermsOfSale + \"</TermsOfSale>\" + \n \"<TotalCustomsValue>\" + intTotalCustomsValue + \n \"</TotalCustomsValue>\" + intHeader3 + \n intHeader6 + intHeader5 + \"</International>\";\n\n\n } else {\n internationalTags = \"\";\n }\n\n\n // end of addition on 09/06/08\n\n // end of addition on 09/06/08\n\n // Start on Aug-01-2011\n try {\n shipToContactPersonName = \n nullStrToSpc(aascShipmentHeaderInfo.getContactName());\n shipToContactPersonName = \n encode(shipToContactPersonName); //Added by dedeepya on 28/05/08\n if (shipToContactPersonName.equalsIgnoreCase(\"\")) {\n tagshipToContactPersonName = \"\";\n } else {\n tagshipToContactPersonName = \n \"<PersonName>\" + shipToContactPersonName + \n \"</PersonName>\";\n }\n } catch (Exception e) {\n e.printStackTrace();\n tagshipToContactPersonName = \"\";\n }\n // End on Aug-01-2011\n\n\n \n chkReturnlabel = \"NONRETURN\";\n \n responseStatus = \n setCarrierLevelInfo1(aascShipmentHeaderInfo, \n aascPackageBean, \n aascShipMethodInfo, \n chkReturnlabel);\n sendfedexRequest(aascShipmentOrderInfo, aascShipMethodInfo, \n chkReturnlabel, aascProfileOptionsInfo, \n aascIntlInfo, cloudLabelPath);\n responseStatus = \n Integer.parseInt((String)hashMap.get(\"ResponseStatus\"));\n \n\n if (returnShipment.equals(\"PRINTRETURNLABEL\") && \n responseStatus == 150) {\n \n \n shipmentRequestHdr = \"\";\n\n\n \n\n chkReturnlabel = \"PRINTRETURNLABEL\";\n\n responseStatus = \n setCarrierLevelInfo1(aascShipmentHeaderInfo, \n aascPackageBean, \n aascShipMethodInfo, \n chkReturnlabel); //calling local method\n\n //processReturnShipment();\n //Shiva modified code for FedEx Return Shipment\n \n rtnShipMethod = \n rtnShipMethod.substring(0, rtnShipMethod.indexOf(\"@@\"));\n // System.out.println(\"rtnShipMethod.indexOf(\\\"@@\\\")\"+rtnShipMethod.indexOf(\"@@\")+\"rtnShipMethod:::\"+rtnShipMethod); \n rtnShipMethod = \n aascShipMethodInfo.getShipMethodFromAlt(rtnShipMethod);\n \n carrierCode = \n aascShipMethodInfo.getCarrierName(rtnShipMethod);\n \n rtnShipMethod = \n aascShipMethodInfo.getConnectShipScsTag(rtnShipMethod);\n rtnACNumber = \n nullStrToSpc(aascPackageBean.getRtnACNumber().trim());\n\n \n rntHeader1 = \n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\" + \n \"<FDXShipRequest xmlns:api=\\\"http://www.fedex.com/fsmapi\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"FDXShipRequest.xsd\\\">\" + \n \"<RequestHeader>\" + \n \"<CustomerTransactionIdentifier>\" + \n customerTransactionIdentifier + \n \"</CustomerTransactionIdentifier>\" + \n \"<AccountNumber>\" + senderAccountNumber + \n \"</AccountNumber>\" + \"<MeterNumber>\" + \n fedExTestMeterNumber + \"</MeterNumber>\" + \n \"<CarrierCode>\" + carrierCode + \n \"</CarrierCode>\" + \"</RequestHeader>\" + \n \"<ShipDate>\" + shipDate + \"</ShipDate>\" + \n \"<ShipTime>\" + time + \"</ShipTime>\" + \n \"<DropoffType>\" + rtnDropOfType + \n \"</DropoffType>\" + \"<Service>\" + \n rtnShipMethod + \"</Service>\" + \"<Packaging>\" + \n rtnPackageList + \n \"</Packaging>\"; // added for package options\n rntHeader6 = \n \"<Origin>\" + \"<Contact>\" + rtnShipTagFromContact + \n header8 + \"<PhoneNumber>\" + rtnShipFromPhone + \n \"</PhoneNumber>\" + \"</Contact>\" + \"<Address>\" + \n \"<Line1>\" + rtnShipFromLine1 + \"</Line1>\" + \n fromLine2Tag + \"<City>\" + rtnShipFromCity + \n \"</City>\" + \"<StateOrProvinceCode>\" + \n rtnShipFromSate + \"</StateOrProvinceCode>\" + \n \"<PostalCode>\" + rtnShipFromZip + \n \"</PostalCode>\" + \"<CountryCode>\" + \n shipFromCountry + \"</CountryCode>\" + \n \"</Address>\" + \"</Origin>\" + \"<Destination>\" + \n \"<Contact>\" + rtnShipTagToContact + \n \"<PhoneNumber>\" + rtnShipToPhone + \n \"</PhoneNumber>\" + \"</Contact>\" + \"<Address>\" + \n \"<Line1>\" + rtnShipToLine1 + \"</Line1>\" + \n toLine2Tag + \"<City>\" + rtnShipToCity + \n \"</City>\" + \"<StateOrProvinceCode>\" + \n rtnShipToState + \"</StateOrProvinceCode>\" + \n \"<PostalCode>\" + rtnShipToZip + \n \"</PostalCode>\" + \"<CountryCode>\" + \n shipToCountry + \"</CountryCode>\" + \n \"</Address>\" + \"</Destination>\" + \"<Payment>\" + \n \"<PayorType>\" + rtnPayMethod + \"</PayorType>\";\n\n header4 = \"\";\n rntHeader5 = \n \"<ReturnShipmentIndicator>PRINTRETURNLABEL</ReturnShipmentIndicator>\"; // added for package options\n\n header2 = \n \"<WeightUnits>\" + pkgWtUom + \"</WeightUnits>\" + \n \"<Weight>\" + pkgWtVal + \"</Weight>\";\n\n listTag = \"<ListRate>true</ListRate>\";\n\n // added for package options\n header3 = \n \"<CurrencyCode>\" + currencyCode + \"</CurrencyCode>\";\n //Shiva modified code for FedEx Return Shipment\n sendfedexRequest(aascShipmentOrderInfo, \n aascShipMethodInfo, chkReturnlabel, \n aascProfileOptionsInfo, aascIntlInfo, \n cloudLabelPath);\n }\n\n\n \n shipmentDeclaredValueStr = \n String.valueOf(shipmentDeclaredValue);\n \n int i = shipmentDeclaredValueStr.indexOf(\".\");\n\n if (i < 1) {\n shipmentDeclaredValueStr = \n shipmentDeclaredValueStr + \".00\";\n \n } else if ((shipmentDeclaredValueStr.length() - index) > \n 2) {\n shipmentDeclaredValueStr = \n shipmentDeclaredValueStr.substring(0, \n index + 3);\n \n } else {\n while (shipmentDeclaredValueStr.length() != (i + 3)) {\n shipmentDeclaredValueStr = \n shipmentDeclaredValueStr + \"0\";\n\n }\n }\n \n\n\n } //iterator\n\n\n packageInfoIterator = shipPackageInfo.listIterator();\n\n int ctr1 = 0;\n\n while (packageInfoIterator.hasNext()) {\n ctr1 = ctr1 + 1;\n\n AascShipmentPackageInfo aascPackageBean1 = \n (AascShipmentPackageInfo)packageInfoIterator.next();\n\n totalShipmentCost = \n totalShipmentCost + aascPackageBean1.getPkgCost();\n\n totalFreightCost = \n totalFreightCost + aascPackageBean1.getTotalDiscount();\n\n surCharges = surCharges + aascPackageBean1.getSurCharges();\n \n }\n \n\n if (carrierCode.equalsIgnoreCase(\"FDXE\")) {\n\n\n totalShipmentCost = \n (Math.floor(totalShipmentCost * 100)) / 100;\n totalFreightCost = \n (Math.floor(totalFreightCost * 100)) / 100;\n \n }\n\n if (carrierCode.equalsIgnoreCase(\"FDXG\")) {\n totalShipmentCost = \n (Math.floor(totalShipmentCost * 100)) / 100;\n\n totalFreightCost = \n (Math.floor(totalFreightCost * 100)) / 100;\n \n }\n surCharges = (Math.floor(surCharges * 100)) / 100;\n aascShipmentHeaderInfo.setTotalSurcharge(surCharges);\n\n } else {\n responseStatus = 151;\n aascShipmentHeaderInfo.setMainError(\"aascShipmentOrderInfo is null OR aascShipmentHeaderInfo is null\" + \n \"OR aascpackageInfo is null OR aascShipMethodInfo is null \");\n logger.info(\"aascShipmentOrderInfo is null OR aascShipmentHeaderInfo is null\" + \n \"OR aascpackageInfo is null OR aascShipMethodInfo is null \");\n }\n } catch (Exception exception) {\n aascShipmentHeaderInfo.setMainError(\"null values or empty strings passed in request\");\n logger.severe(\"Exception::\"+exception.getMessage());\n }\n logger.info(\"Exit from processShipment()\");\n return responseStatus;\n }", "public void PathPac2Fruit(Packman p) \n\t{\n\t\t\n\t double[] pathFun= ShortestPathAlgo.findClosestFruit(p, hashAvailableFruit/*fruitList*/);\n\t int idPackman=(int)pathFun[0];\n\t int idFruit=(int)pathFun[1];\n\t double theShortsTime =pathFun[2];\n\t Path path = new Path(idPackman,idFruit,theShortsTime);\n\t allPath.add(path);\n\t // allPath.Print();//*************\n\t \n\t}", "private void drawPacksFromSets()\n {\n // Database of cards and their appropriate images... This is all built-in and pre-created in the assets folder.\n // Retrieve information from database and create the card pool to draw cards from.\n CardDatabase cardDb = new CardDatabase(this);\n // Store card pool here.\n ArrayList<Card> cardPool;\n\n if (setsForDraft.size() == ONE_DRAFT_SET)\n {\n cardPool = cardDb.getCardPool(setsForDraft.get(0));\n // Make a card pack generator. This will use the cardPool passed in to make the packs that will be opened.\n CardPackGenerator packGenerator = new CardPackGenerator(cardPool);\n\n // Since this is a Sealed simulator, open 6 (SEALED_PACKS) packs.\n openedCardPool = packGenerator.generatePacks(SEALED_PACKS);\n }\n else if(setsForDraft.size() == TWO_DRAFT_SETS)\n {\n // Two sets are being drafted. First set is major one, second is minor one.\n cardPool = cardDb.getCardPool(setsForDraft.get(0));\n // Make a card pack generator. This will use the cardPool passed in to make the packs that will be opened.\n CardPackGenerator packGenerator = new CardPackGenerator(cardPool);\n // Major set opening.\n openedCardPool = packGenerator.generatePacks(MAJOR_SEALED);\n\n // Fetch minor set's cards.\n cardPool = cardDb.getCardPool(setsForDraft.get(1));\n // Make appropriate card pack generator.\n packGenerator = new CardPackGenerator(cardPool);\n // Minor set opening. Add to opened pool.\n openedCardPool.addAll(packGenerator.generatePacks(MINOR_SEALED));\n }\n else\n {\n // ERROR!\n }\n }", "private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}", "public VRPBShipment getSelectShipment(VRPBDepotLinkedList currDepotLL,\r\n\t\t\tVRPBDepot currDepot,\r\n\t\t\tVRPBShipmentLinkedList currShipLL,\r\n\t\t\tVRPBShipment currShip) {\n\t\tboolean isDiagnostic = false;\r\n\t\t//VRPShipment temp = (VRPShipment) getHead(); //point to the first shipment\r\n\t\tVRPBShipment temp = (VRPBShipment)currShipLL.getVRPBHead().getNext(); //point to the first shipment\r\n\t\tVRPBShipment foundShipment = null; //the shipment found with the criteria\r\n\t\tdouble angle;\r\n\t\tdouble foundAngle = 360; //initial value\r\n\t\tdouble distance;\r\n\t\tdouble foundDistance = 200; //initial distance\r\n\t\tdouble depotX, depotY;\r\n\t\tint type = 2;\r\n\r\n\t\t//Get the X and Y coordinate of the depot\r\n\t\tdepotX = currDepot.getXCoord();\r\n\t\tdepotY = currDepot.getYCoord();\r\n\r\n\t\twhile (temp != currShipLL.getVRPBTail()) {\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.print(\"Shipment \" + temp.getIndex() + \" \");\r\n\r\n\t\t\t\tif ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotX) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant I \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) <= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant II \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord()) <= (0 - depotX)) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant III \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant VI \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.print(\"No Quadrant\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//if the shipment is assigned, skip it\r\n\t\t\tif (temp.getIsAssigned()) {\r\n\t\t\t\tif (isDiagnostic) {\r\n\t\t\t\t\tSystem.out.println(\"has been assigned\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tdistance = calcDist(depotX, temp.getXCoord(), depotY, temp.getYCoord());\r\n\t\t\tangle = calcPolarAngle(depotX, depotX, temp.getXCoord(),\r\n\t\t\t\t\ttemp.getYCoord());\r\n\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.println(\" \" + angle);\r\n\t\t\t}\r\n\r\n\t\t\t//check if this shipment should be tracked\r\n\t\t\tif (foundShipment == null) { //this is the first shipment being checked\r\n\t\t\t\tfoundShipment = temp;\r\n\t\t\t\tfoundAngle = angle;\r\n\t\t\t\tfoundDistance = distance;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//if angle and disnace are smaller than what had been found\r\n\t\t\t\t//if (angle <= foundAngle && distance <= foundDistance) {\r\n\t\t\t\tif (angle+ distance <= foundAngle + foundDistance) {\r\n\t\t\t\t\t//if ((angle*.90)+ (distance * 0.1) <= (foundAngle*0.9) + (foundDistance*0.1)) {\r\n\t\t\t\t\tfoundShipment = temp;\r\n\t\t\t\t\tfoundAngle = angle;\r\n\t\t\t\t\tfoundDistance = distance;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\t\t}\r\n\t\treturn foundShipment; //stub\r\n\t}", "public String getShipName() {\n return shipName;\n }", "public Ship(){\n\t}", "protected void updateShips(String input) {\n\t\t//System.out.println(\"updateShips \" + input);\n\t\tShip temp = smallShip;\n \tfor(int i = 0; i < 3; i++) {\n \t\t\n// \t\n \tfor(int j = 0; j < temp.getCoordinates().size(); j++) {\n \t\tif(temp.getCoordinates().get(j).equals(input))\n \t\t\ttemp.getCoordinates().set(j, \"X\");\n \t}\n \tif(i == 0)\n \t\ttemp = mediumShip;\n \telse if(i == 1)\n \t\ttemp = largeShip;\n \t}\n\t}", "private void shrapnel(EntityManager manager) {\r\n if (manager.getAmmo(5) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n Shot shrapnel = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 100, forwardY * 100, 400, 1.5f, 0, 0, 1, true, 250, true);\r\n\r\n manager.addEntity(shrapnel);\r\n if (!testMode) manager.updateAmmo(5, -1, false);\r\n ;\r\n manager.shotFired(5);\r\n }", "public VRPBShipment getSelectShipment(VRPBDepotLinkedList currDepotLL,\r\n\t\t\tVRPBDepot currDepot,\r\n\t\t\tVRPBShipmentLinkedList currShipLL,\r\n\t\t\tVRPBShipment currShip) {\n\t\tboolean isDiagnostic = false;\r\n\t\t//VRPShipment temp = (VRPShipment) getHead(); //point to the first shipment\r\n\t\tVRPBShipment temp = (VRPBShipment) currShipLL.getVRPBHead().getNext(); //point to the first shipment\r\n\t\tVRPBShipment foundShipment = null; //the shipment found with the criteria\r\n\t\t//double angle;\r\n\t\t//double foundAngle = 360; //initial value\r\n\t\tdouble distance;\r\n\t\tdouble foundDistance = 200; //initial distance\r\n\t\tdouble depotX, depotY;\r\n\r\n\t\t//Get the X and Y coordinate of the depot\r\n\t\tdepotX = currDepot.getXCoord();\r\n\t\tdepotY = currDepot.getYCoord();\r\n\r\n\t\twhile (temp != currShipLL.getVRPBTail()) {\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.print(\"Shipment \" + temp.getIndex() + \" \");\r\n\r\n\t\t\t\tif ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotX) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant I \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) <= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) >= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant II \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord()) <= (0 - depotX)) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant III \");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ( (temp.getXCoord() - depotX) >= 0) &&\r\n\t\t\t\t\t\t( (temp.getYCoord() - depotY) <= 0)) {\r\n\t\t\t\t\tSystem.out.print(\"Quadrant VI \");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.print(\"No Quadrant\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (temp.getIsAssigned()) \r\n\t\t\t{\r\n\t\t\t\tif (isDiagnostic) \r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"has been assigned\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t/** @todo Associate the quadrant with the distance to get the correct shipment.\r\n\t\t\t * Set up another insertion that takes the smallest angle and the smallest distance */\r\n\t\t\tdistance = calcDist(depotX, temp.getXCoord(), depotY, temp.getYCoord());\r\n\r\n\t\t\tif (isDiagnostic) {\r\n\t\t\t\tSystem.out.println(\" \" + distance);\r\n\t\t\t}\r\n\r\n\t\t\t//check if this shipment should be tracked\r\n\t\t\tif (foundShipment == null) { //this is the first shipment being checked\r\n\t\t\t\tfoundShipment = temp;\r\n\t\t\t\tfoundDistance = distance;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (distance < foundDistance) { //found an angle that is less\r\n\t\t\t\t\tfoundShipment = temp;\r\n\t\t\t\t\tfoundDistance = distance;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp = (VRPBShipment) temp.getNext();\r\n\t\t}\r\n\t\treturn foundShipment; //stub\r\n\t}", "public Ships() {\n\t\tships = new ArrayList<Ship>();\n\t\tships.add(new Ship(ShipType.BATTLESHIP));\n\t\tships.add(new Ship(ShipType.CRUISER));\n\t\tships.add(new Ship(ShipType.CRUISER));\n\t\tships.add(new Ship(ShipType.DESTROYER));\n\t\tships.add(new Ship(ShipType.DESTROYER));\n\t\tships.add(new Ship(ShipType.DESTROYER));\n\t\tships.add(new Ship(ShipType.SUBMARINE));\n\t\tships.add(new Ship(ShipType.SUBMARINE));\n\t\tships.add(new Ship(ShipType.SUBMARINE));\n\t}", "public void setShipDate(Date shipDate) {\n _shipDate = shipDate;\n }", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\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}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "public int getSize(){\n\t\treturn shipSize;\n\t}", "private void nextShip(CurrentShip c) {\n switch (c) {\n case CARRIER:\n currentShip = CurrentShip.AIRCRAFT1;\n break;\n case AIRCRAFT1:\n currentShip = CurrentShip.AIRCRAFT2;\n break;\n case AIRCRAFT2:\n currentShip = CurrentShip.BATTLESHIP;\n break;\n case BATTLESHIP:\n currentShip = CurrentShip.DESTROYER;\n break;\n case DESTROYER:\n currentShip = CurrentShip.SUBMARINE;\n break;\n case SUBMARINE:\n currentShip = CurrentShip.PATROLBOAT;\n break;\n case PATROLBOAT:\n initializePlayerShips(playerShips);\n break;\n }\n }", "@FXML\r\n public void makeSale(ActionEvent event) throws Exception {\r\n // TODO:\r\n // K, here's what needs to happen to beautify this:\r\n // ShipBar needs to extend javafx.scene.control.Toggle,\r\n // and then we can use ToggleGroup.getSelectedToggle()\r\n // rather than this shit\r\n Map<String, ShipType> ships = Data.SHIPS.get();\r\n for (ShipBar bar : buyShips.getItems()) {\r\n if (bar.isSelected()) {\r\n ShipType ship = ships.get(bar.getKey());\r\n int playerCash = player.getMoney();\r\n int price = ship.getPrice() - currentShip.getNetWorth();\r\n if (!(playerCash < price)) {\r\n // TODO: use a dedicated class to facilitate ship upgrades\r\n // the same way Transaction is used for goods\r\n Ship newShip = new Ship(ship);\r\n player.setShip(newShip);\r\n player.setMoney(playerCash - price);\r\n // update labels\r\n fillLabels();\r\n // rebuild ships list (?)\r\n currentShip = player.getShip();\r\n buildShipsList();\r\n }\r\n /*else {\r\n // TODO: warning: not enough money\r\n\r\n }*/\r\n // TODO: don't use a for loop here (see above)\r\n break;\r\n }\r\n }\r\n }", "private Shape makeBarb() {\n if (model == null) {\n return null;\n }\n\n Shape barb = null;\n\n if (!model.isCalm()) {\n // initialize the Geometry.\n GeneralPath geom = new GeneralPath(GeneralPath.WIND_NON_ZERO);\n\n // draw the \"staff\"\n geom.moveTo(0, 0);\n geom.lineTo(0, STAFF_LEN);\n\n // start drawing at the end of the staff.\n float y = STAFF_LEN;\n\n // draw the pennants\n for (int i = model.getPennants(); i > 0; i--) {\n makePennant(geom, y);\n y -= STEP;\n }\n\n // draw the full flags\n for (int i = model.getFullFlags(); i > 0; i--) {\n makeFullFlag(geom, y);\n y -= STEP;\n }\n\n // draw the half flags...\n if (model.isLoneHalfFlag()) {\n y -= STEP;\n }\n if (model.isHalfFlag()) {\n makeHalfFlag(geom, y);\n }\n\n // set the return value\n barb = geom;\n } else {\n barb = makeCalm();\n }\n\n return barb;\n }", "private void m7635b() {\n if (!this.f6418o) {\n this.f6417n = false;\n this.f6405b.clearAnimation();\n this.f6406c.removeAnnotations();\n List arrayList = new ArrayList();\n for (GridDTO polygons : this.f6414k) {\n arrayList.add(new PolygonOptions().addAll(polygons.getPolygons()).fillColor(Color.parseColor(\"#00bcd4\")).strokeColor(-16728876).alpha(0.5f));\n }\n this.f6406c.addPolygons(arrayList);\n this.f6417n = false;\n }\n }", "public boolean deployWeapon(int x, int y, Player opponent, Map attacked_map, Map current_player_map, Player current_player, int method_choice) {\n Ship temp_ship = new Minesweeper();\n //Catches if current player is trying to use a bomb on an underwater map or space map, returns false for not successful\n if (current_player.player_weapons.contains(this) && (attacked_map.getName().equals(\"UnderwaterMap\") || attacked_map.getName().equals(\"SpaceMap\"))) {\n bombOutputs(method_choice, 1, attacked_map, temp_ship, x, y);\n return false;\n }\n\n //Checks if coordinate is in bounds\n if (x > 10 || x < 0 || y > 10 || y < 0) {\n bombOutputs(method_choice, 2, attacked_map, temp_ship, x, y);\n return false;\n }\n\n int is_occupied = attacked_map.defensiveGrid.checkCellStatus(x,y);\n\n //Checks if there is a ship at the attacked location: 0 = no ship, 1 = ship exists, 2 = ship exists and already hit\n if (is_occupied == 0) {\n //no ship: miss!\n bombOutputs(method_choice, 3, attacked_map, temp_ship, x, y);\n\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(1, x, y);\n }\n } else if (is_occupied == 1) {\n //ship there: first time attacking!\n Ship attacked_ship = new Minesweeper();\n\n for (int i = 0; i < attacked_map.existing_ships.size(); i++){\n Ship shipy = attacked_map.existing_ships.get(i);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(shipy);\n for (Coordinate coordinate : coordsList) {\n if (coordinate.x == x && coordinate.y == y) {\n attacked_ship = shipy;\n break;\n }\n }\n }\n\n //Check if captain's quarters at location\n Coordinate capt_quart = attacked_map.captains_quarters.get(attacked_ship);\n if (capt_quart.x == x && capt_quart.y == y) {\n //Check for armoured captain's quarters\n if (attacked_ship instanceof ArmoredShip) {\n //Armoured!\n //Armoured captains quarters hasn't been hit before\n if (((ArmoredShip) attacked_ship).getHitCount() == 0) {\n //Prints out a miss - some sneaky captain's quarters here\n bombOutputs(method_choice, 4, attacked_map, attacked_ship, x, y);\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(1, x, y);\n }\n ((ArmoredShip) attacked_ship).updateHitCount();\n }\n //Armoured captains quarters has been hit before\n else if (((ArmoredShip) attacked_ship).getHitCount() == 1){\n //Destroys entire ship!\n bombOutputs(method_choice, 5, attacked_map, attacked_ship, x, y);\n bombOutputs(method_choice, 6, attacked_map, attacked_ship, x, y);\n\n attacked_map.sinkShip(attacked_ship);\n\n if (method_choice == 2 || method_choice == 3) {\n current_player.incrementShipSunkCount();\n current_player.hasSunkFirstShip();\n }\n\n attacked_map.ship_health.replace(attacked_ship, 0);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(attacked_ship);\n for (Coordinate coordinate : coordsList) {\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n ((ArmoredShip) attacked_ship).updateHitCount();\n }\n }\n //Hit a captain's quarters but not armoured\n else {\n //Destroy the ship!\n bombOutputs(method_choice, 7, attacked_map, attacked_ship, x, y);\n attacked_map.sinkShip(attacked_ship);\n if (method_choice == 2 || method_choice == 3) {\n current_player.incrementShipSunkCount();\n current_player.hasSunkFirstShip();\n }\n\n attacked_map.ship_health.replace(attacked_ship, 0);\n ArrayList<Coordinate> coordsList = attacked_map.ship_coordinates.get(attacked_ship);\n for (Coordinate coordinate : coordsList) {\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, coordinate.x, coordinate.y);\n }\n }\n }\n //Not a captain's quarters there\n else {\n //Attack and hit!\n int current_health = attacked_map.ship_health.get(attacked_ship);\n current_health -= 1;\n attacked_map.ship_health.replace(attacked_ship, current_health);\n\n bombOutputs(method_choice, 8, attacked_map, temp_ship, x, y);\n if (method_choice == 2 || method_choice == 3) {\n current_player_map.offensiveGrid.setCellStatus(2, x, y);\n }\n attacked_map.defensiveGrid.setCellStatus(2, x, y);\n }\n } else if (method_choice == 2 || method_choice == 3) {\n //Already attacked, already hit a ship!\n bombOutputs(method_choice, 9, attacked_map, temp_ship, x, y);\n }\n\n return true;\n }", "public void generateShipmentList(String fileName){\n Shipment sh;\n ShipmentValidation shValid = new ShipmentValidation();\n Template rf = new Template();\n rf.setTemplateFileName(fileName);\n rf.generateListExcel();\n ArrayList<Shipment> arrTemp = new ArrayList<>();\n\n for (Object item: rf.getArrList()\n ) {\n sh = new Shipment(((HashMap<Integer, String>) item).get(0),((HashMap<Integer, String>) item).get(1),((HashMap<Integer, String>) item).get(2),((HashMap<Integer, String>) item).get(3),((HashMap<Integer, String>) item).get(4)\n ,((HashMap<Integer, String>) item).get(5),((HashMap<Integer, String>) item).get(6),((HashMap<Integer, String>) item).get(7),((HashMap<Integer, String>) item).get(8),((HashMap<Integer, String>) item).get(9)\n ,((HashMap<Integer, String>) item).get(10),((HashMap<Integer, String>) item).get(11),((HashMap<Integer, String>) item).get(12),((HashMap<Integer, String>) item).get(13),((HashMap<Integer, String>) item).get(14)\n ,((HashMap<Integer, String>) item).get(15),((HashMap<Integer, String>) item).get(16),((HashMap<Integer, String>) item).get(17),((HashMap<Integer, String>) item).get(18),((HashMap<Integer, String>) item).get(19)\n ,((HashMap<Integer, String>) item).get(20),((HashMap<Integer, String>) item).get(21),((HashMap<Integer, String>) item).get(22),((HashMap<Integer, String>) item).get(23),((HashMap<Integer, String>) item).get(24)\n ,((HashMap<Integer, String>) item).get(25),((HashMap<Integer, String>) item).get(26),((HashMap<Integer, String>) item).get(27),((HashMap<Integer, String>) item).get(28),((HashMap<Integer, String>) item).get(29)\n ,((HashMap<Integer, String>) item).get(30),((HashMap<Integer, String>) item).get(31),((HashMap<Integer, String>) item).get(32),((HashMap<Integer, String>) item).get(33),((HashMap<Integer, String>) item).get(34)\n ,((HashMap<Integer, String>) item).get(35),((HashMap<Integer, String>) item).get(36),((HashMap<Integer, String>) item).get(37),((HashMap<Integer, String>) item).get(38),((HashMap<Integer, String>) item).get(39)\n ,((HashMap<Integer, String>) item).get(40),((HashMap<Integer, String>) item).get(41),((HashMap<Integer, String>) item).get(42),((HashMap<Integer, String>) item).get(43),((HashMap<Integer, String>) item).get(44)\n ,((HashMap<Integer, String>) item).get(45),((HashMap<Integer, String>) item).get(46),((HashMap<Integer, String>) item).get(47),((HashMap<Integer, String>) item).get(48),((HashMap<Integer, String>) item).get(49)\n ,((HashMap<Integer, String>) item).get(50),((HashMap<Integer, String>) item).get(51),((HashMap<Integer, String>) item).get(52),((HashMap<Integer, String>) item).get(53),((HashMap<Integer, String>) item).get(54)\n ,((HashMap<Integer, String>) item).get(55),((HashMap<Integer, String>) item).get(56),((HashMap<Integer, String>) item).get(57),((HashMap<Integer, String>) item).get(58),((HashMap<Integer, String>) item).get(59)\n ,((HashMap<Integer, String>) item).get(60),((HashMap<Integer, String>) item).get(61),((HashMap<Integer, String>) item).get(62),((HashMap<Integer, String>) item).get(63));\n sh.setErrorMsg(shValid.FindError(sh));\n\n arrTemp.add(sh);\n }\n\n this.setShipmentList(arrTemp);\n }", "ShipmentItemFeature createShipmentItemFeature();", "boolean testDrawShip(Tester t) {\n return t.checkExpect(ship3.draw(), new CircleImage(10, OutlineMode.SOLID, Color.CYAN))\n && t.checkExpect(ship1.draw(), new CircleImage(10, OutlineMode.SOLID, Color.CYAN));\n }", "public Ship(String name) {\r\n this.name = name;\r\n }", "private void decorateMountainsFloat(int xStart, int xLength, int floor, boolean enemyAddedBefore, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "public void skystonePos5() {\n }" ]
[ "0.6229569", "0.6071517", "0.6026356", "0.5918195", "0.5908817", "0.58977884", "0.5803731", "0.5768349", "0.5689709", "0.56894386", "0.5651043", "0.5631334", "0.56304705", "0.5619451", "0.5617464", "0.56159705", "0.5604529", "0.5602328", "0.55869055", "0.55823934", "0.55722934", "0.5568243", "0.55437845", "0.55437845", "0.55145484", "0.54975957", "0.54906076", "0.5490451", "0.54894996", "0.54887795", "0.54862833", "0.54821265", "0.5476044", "0.5468054", "0.5452857", "0.5438739", "0.5419084", "0.5409905", "0.5388406", "0.5379553", "0.53755426", "0.5373401", "0.5364984", "0.53648525", "0.5356533", "0.5356227", "0.53544104", "0.5353651", "0.5352663", "0.53518677", "0.5345315", "0.5340367", "0.533863", "0.5335861", "0.53357637", "0.5324404", "0.5313036", "0.53073215", "0.5303761", "0.5303018", "0.5299866", "0.5294502", "0.52819324", "0.5276811", "0.52741504", "0.52688015", "0.52559257", "0.5252005", "0.5247283", "0.5245857", "0.5241107", "0.52396333", "0.5237285", "0.52333784", "0.52174944", "0.5216675", "0.5212884", "0.51931036", "0.51862466", "0.5184903", "0.518384", "0.51816756", "0.5178908", "0.51751995", "0.5173699", "0.51715004", "0.51713634", "0.5170918", "0.51667315", "0.5164175", "0.51633215", "0.51609623", "0.51604277", "0.5147051", "0.5144814", "0.51401025", "0.51343083", "0.5130956", "0.51302624", "0.512987" ]
0.61352795
1
This method is for the Mandelbrot Set Fractal
public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { MandelbrotSet man = new MandelbrotSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = man.mandelbrot(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMandelbrot(int steps) {\r\n if (initialValue == null) {\r\n System.out.println(\"Initial value for Mandelbrot set undefined\");\r\n return;\r\n }\r\n if (colors.size() < 2) {\r\n System.out.println(\"At least two colors are needed to calculate Mandelbrot set value color\");\r\n return;\r\n }\r\n \r\n // Creating BufferedImage to store calculated image\r\n BufferedImage ncanvas = new BufferedImage(dimensions.width, dimensions.height, BufferedImage.TYPE_INT_ARGB);\r\n \r\n // Calculating steps in imaginary window to check\r\n double stepx = window.getWidth() / (double)dimensions.width;\r\n double stepy = window.getHeight() / (double)dimensions.height;\r\n \r\n // Evaluating each pixel in image\r\n for (int y = 0; y < dimensions.height; y++) {\r\n for (int x = 0; x < dimensions.width; x++) {\r\n // Calculating 'c' (xx + yyi) to check in Mandelbrot set:\r\n // Z(0) = 'initialValue'\r\n // Z(n+1) = Z(n)^2 + c \r\n double xx = (double)x * stepx + window.getXMin();\r\n double yy = (double)y * stepy + window.getYMin();\r\n \r\n // Evaluating steps to determine if value xx+yyi allows to Mandelbrot set\r\n int s = IFCMath.isMandelbrot(initialValue, new Complex(xx, yy), steps);\r\n \r\n // Evaluating color for this value\r\n ncanvas.setRGB(x, y, s == steps ? mandelbrotColor.getRGB() : getColor(colors, s, steps).getRGB());\r\n }\r\n }\r\n \r\n // Adding produced image to array\r\n canvas.add(ncanvas);\r\n }", "public void setMandelbrotColor(Color c) {\r\n mandelbrotColor = c;\r\n }", "public int[][] FractalMulti(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMultibrotSet multi = new MultibrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = multi.multibrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "private void updateImage() {\r\n \tfor(int i=0;i<rows;i++){\r\n for(int j=0;j<cols;j++){\r\n if(complexArray[i][j].escapeTime(RADIUS, maxIterations)!=-1){//the complex escaped\r\n mandelbrotColor[i][j]=new RGBColor(palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)]);\r\n }\r\n else{\r\n mandelbrotColor[i][j]=palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)+1];//the complex didnt escaped\r\n }\r\n }\r\n }\r\n }", "public void calculate() {\n double x = startX, y = startY; // x,y are the real and imaginary values of the tested complex number\n\n //run through each pizel on the screen\n for (int i = 0; i < width; i++) {\n for (int j = height - 1; j >= 0; j--) {\n Complex c = new Complex(x, y);\n\n //isinMS() returns a float, which is 0.0f if it is in the Mandelbrot set, and a real number between 0 and #iterations if it is not.\n grid[i][j] = c.isinMS();\n if (grid[i][j] == 0.0f) {\n cols[i][j] = Color.black;\n } else {\n //generate color\n float s=(float)(Math.pow((double)grid[i][j], 0.3));\n cols[i][j] = new Color(Color.HSBtoRGB(0.7f, 1f-s, s));\n }\n //move up grid\n y += intervalY;\n }\n //move right\n x += intervalX;\n //move to bottom of grid\n y = startY;\n }\n }", "@LargeTest\n public void testMandelbrot() {\n TestAction ta = new TestAction(TestName.MANDELBROT_FLOAT);\n runTest(ta, TestName.MANDELBROT_FLOAT.name());\n }", "public static void main(String[] args)\n\t{\n\t\tMandelbrotState state = new MandelbrotState(40, 40);\n\t\tMandelbrotSetGenerator generator = new MandelbrotSetGenerator(state);\n\t\tint[][] initSet = generator.getSet();\n\n\t\t// print first set;\n\t\tSystem.out.println(generator);\n\n\t\t// change res and print sec set\n\t\tgenerator.setResolution(30, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// change rest and print third set\n\t\tgenerator.setResolution(10, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// go back to previous state and print\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// redo and print\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// try to redo when the redo stack is empty\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// do the same for more undo operations\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changeBounds edge cases\n\t\t// min is lager than max this can be visualised by flipping the current min and max values\n\t\tMandelbrotState state1 = generator.getState();\n\t\tgenerator.setBounds(state1.getMaxReal(), state1.getMinReal(), state1.getMaximaginary(), state1.getMinimaginary());\n\t\tSystem.out.println(generator);\n\t\t// when the bounds are the same value\n\t\tgenerator.setBounds(1, 1, -1, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing radius sq value\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setSqRadius(10);\n\t\t// negative radius expected zeros\n\t\tSystem.out.println(generator);\n\t\tgenerator.setSqRadius(-20);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing maxIterations to a negative number expected zeros\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setMaxIterations(-1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing reset\n\t\tSystem.out.println(\"Testing reset\");\n\t\tgenerator.reset();\n\t\tSystem.out.println(generator);\n\t\tboolean pass = true;\n\t\tfor (int j = 0; j < initSet.length; j++)\n\t\t{\n\t\t\tfor (int i = 0; i < initSet[j].length; i++)\n\t\t\t{\n\t\t\t\tif (initSet[j][i] != generator.getSet()[j][i]) pass = false;\n\t\t\t}\n\t\t}\n\t\tif (pass)\n\n\t\t\tSystem.out.println(\"pass\");\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"fail\");\n\t\t}\n\n\t\t// Testing panning by a single pixel horizontally and vertically\n\t\tgenerator.setResolution(10, 10);\n\t\tSystem.out.println(\"Before horizontal shift\");\n\t\tSystem.out.println(generator);\n\t\tSystem.out.println(\"After horizontal shift\");\n\t\tgenerator.shiftBounds(1, 0, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing incorrect changes of resolution (negative value)\n\t\tSystem.out.println(\"Testing changing resolution to negative value... This should throw an exception\");\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\ttry\n\t\t{\n\t\t\tgenerator.setResolution(-1, 3);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception thrown\");\n\t\t}\n\n\t}", "public void computeFractal(){\n\t\tint deltaX =p5.getX()-p1.getX();\n\t\tint deltaY =p5.getY()- p1.getY();\n\t\tint x2= p1.getX()+ (deltaX/3);\n\t\tint y2= p1.getY()+ (deltaY/3);\n\t\tdouble x3=((p1.getX()+p5.getX())/2)+( Math.sqrt(3)*\n\t\t\t\t(p1.getY()-p5.getY()))/6;\n\t\tdouble y3=((p1.getY()+p5.getY())/2)+( Math.sqrt(3)*\n\t\t\t\t(p5.getX()-p1.getX()))/6;\n\t\tint x4= p1.getX()+((2*deltaX)/3);\n\t\tint y4= p1.getY()+((2*deltaY)/3);\n\t\tthis.p2= new Point(x2,y2);\n\t\tthis.p3= new Point((int)x3,(int)y3);\n\t\tthis.p4= new Point(x4,y4);\n\t}", "public static void main(String[] args) throws IOException {\n MandelbrotSet ms = new MandelbrotSet();\n ms.setUp();\n ms.calculate();\n ms.initializeWindow();\n System.out.println(\"Finished!\");\n }", "public int[][] FractalJulia(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tJuliaSet julia = new JuliaSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = julia.juliaset(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "@LargeTest\n public void testMandelbrotfp64() {\n TestAction ta = new TestAction(TestName.MANDELBROT_DOUBLE);\n runTest(ta, TestName.MANDELBROT_DOUBLE.name());\n }", "public void redimensionar() {\n\t\tthis.numCub *= 1.5;\n\t}", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint width= Integer.parseInt(JOptionPane.showInputDialog(\"Input width of result image\"));\r\n\t\t\t\tint height = Integer.parseInt(JOptionPane.showInputDialog(\"Input height of result image\"));\r\n\t\t\t\tcanvas.setPreferredSize(new Dimension(width,height));\r\n\t\t\t\tcanvas.setBounds(10, 50, width, height);\r\n\r\n\t\t\t\t//create a list of options for the palette.\r\n\t\t\t\tPaletteList paletteList = new PaletteList(\"Choose a Color Scheme\");\r\n\t\t\t\tpaletteList.displayOptions();\r\n\t\t\t\tPalette chosenPalette = paletteList.getChosenPalette();\r\n\t\t\t\tSystem.out.println(chosenPalette.currentPallete);\r\n\r\n\t\t\t\tDistributedMandelbrot mandelbrot = new DistributedMandelbrot(canvas, chosenPalette, new Dimension(width,height));\r\n\t\t\t\tmandelbrot.execute();\r\n\t\t\t}", "public ChampionnatComplexe (int [] Eq12,Matrice mat,Options o ) {\n\t\topt = o;\n\t\tint equilibrea = 0;\n\t\tint equilibreb = 0;\n\t\tgrpA1 = new int [3]; \n\t\tgrpA2 = new int [3]; \n\t\tgrpB1 = new int [3]; \n\t\tgrpB2 = new int [3]; \n\t\tfor (int i = 0 ; i < 3 ; i++ ) {\n\t\t\tgrpA1 [i] = Eq12 [i]; \n\t\t\tgrpA2 [i] = Eq12 [i+3]; \n\t\t\tgrpB1 [i] = Eq12 [i+6]; \n\t\t\tgrpB2 [i] = Eq12 [i+9]; \n\t\t}\n\t\tArrays.sort(grpA1);\n\t\tArrays.sort(grpA2);\n\t\tArrays.sort(grpB1);\n\t\tArrays.sort(grpB2);\n\t\tint a=0;\n\t\tfor ( int i = 0 ; i < 3 ; i ++ ) {\n\t\t\tfor ( int j = 0 ; j < 3 ; j ++ ) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA1[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB1[j]-1);\n\t\t\t}\n\n\t\t\ta = (int) Math.random();\n\t\t\tif (a==0) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA1[i]-1);\n\t\t\t} else {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA2[i]-1);\n\t\t\t}\n\t\t}\n\t\tint z;\n\t\tfor ( z= 0; z < 3 ; z++) {\n\t\t\tequilibrea = grpA1[z] + grpA2[z] ;\n\t\t\tequilibreb = grpB1[z] + grpB2[z] ;\n\t\t}\n\t\tequilibreDesPoule = Integer.max(equilibrea, equilibreb) - Integer.min(equilibreb, equilibreb);\n\t\tnoteDistance = getDistanceTotale() * 100 / 52000 ;\n\t\tnoteEquilibre = getEquilibreDesPoules() * 100 / 36 ;\n\t\tnoteMoyennePondereeEqDist = ( (noteDistance * opt.getPourcentageDistance()) + (noteEquilibre * (100 - opt.getPourcentageDistance()) ))/100;\n\t}", "private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }", "BasicSet NextClosure(BasicSet M,BasicSet A){\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\t\t\t\t//System.out.println(\"ll11 \"+fermes);\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\t\t\t\tBasicSet b=ap.CalculYseconde(A,context);\r\n\r\n\t\t\t\t//BasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\t//System.out.println(\"b sec \"+b);\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public static long[][] multiplyMod(long F[][], long M[][]){\n long x = (F[0][0]*M[0][0])%MOD + (F[0][1]*M[1][0])%MOD; \n long y = (F[0][0]*M[0][1])%MOD + (F[0][1]*M[1][1])%MOD; \n long z = (F[1][0]*M[0][0])%MOD + (F[1][1]*M[1][0])%MOD; \n long w = (F[1][0]*M[0][1])%MOD + (F[1][1]*M[1][1])%MOD; \n\n return new long[][]{{x,y},{z,w}};\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "@Override\n \tpublic void globe(int M, int N) {\n\t\tvertices = new double[][] { { 1, 1, 1, 0, 0, 1 },\n\t\t\t\t{ 1, -1, 1, 0, 0, 1 }, { -1, -1, 1, 0, 0, 1 },\n\t\t\t\t{ -1, 1, 1, 0, 0, 1 }, { 1, 1, -1, 0, 0, -1 },\n\t\t\t\t{ 1, -1, -1, 0, 0, -1 }, { -1, -1, -1, 0, 0, -1 },\n\t\t\t\t{ -1, 1, -1, 0, 0, -1 }, { 1, 1, 1, 1, 0, 0 },\n\t\t\t\t{ 1, -1, 1, 1, 0, 0 }, { 1, -1, -1, 1, 0, 0 },\n\t\t\t\t{ 1, 1, -1, 1, 0, 0 }, { -1, 1, 1, -1, 0, 0 },\n\t\t\t\t{ -1, -1, 1, -1, 0, 0 }, { -1, -1, -1, -1, 0, 0 },\n\t\t\t\t{ -1, 1, -1, -1, 0, 0 }, { 1, 1, 1, 0, 1, 0 },\n\t\t\t\t{ -1, 1, 1, 0, 1, 0 }, { -1, 1, -1, 0, 1, 0 },\n\t\t\t\t{ 1, 1, -1, 0, 1, 0 }, { 1, -1, 1, 0, -1, 0 },\n\t\t\t\t{ -1, -1, 1, 0, -1, 0 }, { -1, -1, -1, 0, -1, 0 },\n\t\t\t\t{ 1, -1, -1, 0, -1, 0 }, };\n \t\tfaces = new int[6][4];\n \t\tfor (int i = 0; i < faces.length; i++) {\n \t\t\tfaces[i] = new int[] { i * 4, i * 4 + 1, i * 4 + 2, i * 4 + 3 };\n \t\t}\n \n \t\tthis.m.identity();\n \t}", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }", "public static double[] Jordan(Matriks M) {\r\n int i, j, k = 0, c;\r\n int flag = 0;\r\n int n = M.BrsEff; \r\n\t\tdouble[][] a = new double[n][n+1];\r\n\t\tdouble[] x;\r\n \r\n for (i = 0; i < M.BrsEff; i++){\r\n for (j = 0; j < M.KolEff; j++){\r\n a[i][j] = M.Elmt[i][j];\r\n }\r\n }\r\n\r\n for (i = 0; i < n; i++){ \r\n if (a[i][i] == 0){ \r\n c = 1; \r\n while ((i + c) < n && a[i + c][i] == 0){ \r\n c++;\r\n } \r\n if ((i + c) == n){\r\n flag = 1; \r\n break; \r\n }\r\n for (j = i, k = 0; k <= n; k++){\r\n double temp =a[j][k]; \r\n a[j][k] = a[j+c][k]; \r\n a[j+c][k] = temp; \r\n }\r\n } \r\n \r\n for (j = 0; j < n; j++){ \r\n if (i != j){ \r\n double p = a[j][i] / a[i][i];\r\n for (k = 0; k <= n; k++){ \r\n a[j][k] = a[j][k] - (a[i][k]) * p;\r\n } \r\n } \r\n } \r\n }\r\n for (i = 0; i < M.BrsEff; i++){\r\n if ((a[i][i]!=0) && (a[i][i]!=1)){\r\n for (j = i; j < M.KolEff; j++){\r\n M.Elmt[i][j] = a[i][j] / a[i][i];\r\n }\r\n }\r\n }\r\n if (flag == 1){\r\n flag = 3;\r\n \t for (i = 0; i < n; i++) { \r\n \t double sum = 0; \r\n \t for (j = 0; j < n; j++){ \r\n \t sum = sum + M.Elmt[i][j]; \r\n \t }\r\n \t if (sum == M.Elmt[i][n]) { \r\n \t flag = 2; \r\n \t }\r\n \t }\r\n \t if (flag == 3){\r\n \t x = new double[n+3];\r\n for (i = 0; i < n; i++){\r\n x[i] = 0;\r\n }\r\n \t }\r\n \t else {\r\n \t x = new double[n+2];\r\n for (i = 0; i < n; i++){\r\n x[i] = 0;\r\n }\r\n \t }\r\n }\r\n else{\r\n x = new double[n];\r\n for (i = 0; i < n; i++){\r\n x[i] = a[i][M.KolEff-1] / a[i][i];\r\n }\r\n }\r\n return x;\r\n }", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "public RK(int m) {\n\t\tthis.exponent = exponent;\n\t\tthis.hash = 0;\n\t\tthis.workingHash = 0;\n\t\tthis.deletion = 0;\n\t\tthis.querySize = m;\n\t\tthis.buffer = new int [m];\n\t\tfor (int j = 0; j<m; j++){\n\t\t\texponent = (31*exponent)%511;\n\t\t}\n\t\tthis.index = 0;\n\t\t\n\t}", "public abstract double calculate(Complex c,Complex current);", "public ChampionnatComplexe (Matrice mat,Options o) {\n\t\topt = o;\n\t\tint [] Eq12 = FonctionsTransverses.tirage(12);\n\t\tgrpA1 = new int [3]; \n\t\tgrpA2 = new int [3]; \n\t\tgrpB1 = new int [3]; \n\t\tgrpB2 = new int [3];\n\t\tfor (int i = 0 ; i < 3 ; i++ ) {\n\t\t\tgrpA1 [i] = Eq12 [i]; \n\t\t\tgrpA2 [i] = Eq12 [i+3]; \n\t\t\tgrpB1 [i] = Eq12 [i+6]; \n\t\t\tgrpB2 [i] = Eq12 [i+9]; \n\t\t}\n\t\tArrays.sort(grpA1);\n\t\tArrays.sort(grpA2);\n\t\tArrays.sort(grpB1);\n\t\tArrays.sort(grpB2);\n\t\tint a=0;\n\t\tfor ( int i = 0 ; i < 3 ; i ++ ) {\n\t\t\tfor ( int j = 0 ; j < 3 ; j ++ ) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB1[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB2[j]-1)*2;\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpA2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpA1[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpB2[j]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpB1[j]-1);\n\t\t\t}\n\n\t\t\ta = (int) Math.random();\n\t\t\tif (a==0) {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA1[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA1[i]-1);\n\t\t\t} else {\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA1[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpA2[i]-1,grpB2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB1[i]-1,grpA2[i]-1);\n\t\t\t\tdistanceTotale += mat.getDistanceBetween(grpB2[i]-1,grpA2[i]-1);\n\t\t\t}\n\t\t}\n\t\tint z;\n\t\tfor ( z= 0; z < 3 ; z++) {\n\t\t\tequilibreDesPoule = equilibreDesPoule + ( Integer.max(grpA1[z], grpB1[z]) - Integer.min(grpA1[z], grpB1[z]) ) + ( Integer.max(grpA2[z], grpB2[z]) - Integer.min(grpA2[z], grpB2[z]) );\n\t\t}\n\t\tnoteDistance = getDistanceTotale() * 100 / 52000 ;\n\t\tnoteEquilibre = getEquilibreDesPoules() * 100 / 36 ;\n\t\tnoteMoyennePondereeEqDist = ( (noteDistance * opt.getPourcentageDistance()) + (noteEquilibre * (100 - opt.getPourcentageDistance()) ))/100;\n\t}", "private static void multiplyMonty(int[] a, int[] x, int[] y, int[] m, int mDash, boolean smallMontyModulus)\n // mDash = -m^(-1) mod b\n {\n int n = m.length;\n long y_0 = y[n - 1] & IMASK;\n\n // 1. a = 0 (Notation: a = (a_{n} a_{n-1} ... a_{0})_{b} )\n for (int i = 0; i <= n; i++)\n {\n a[i] = 0;\n }\n\n // 2. for i from 0 to (n - 1) do the following:\n for (int i = n; i > 0; i--)\n {\n long a0 = a[n] & IMASK;\n long x_i = x[i - 1] & IMASK;\n\n long prod1 = x_i * y_0;\n long carry = (prod1 & IMASK) + a0;\n\n // 2.1 u = ((a[0] + (x[i] * y[0]) * mDash) mod b\n long u = ((int)carry * mDash) & IMASK;\n\n // 2.2 a = (a + x_i * y + u * m) / b\n long prod2 = u * (m[n - 1] & IMASK);\n carry += (prod2 & IMASK);\n// assert (int)carry == 0;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n\n for (int j = n - 2; j >= 0; j--)\n {\n prod1 = x_i * (y[j] & IMASK);\n prod2 = u * (m[j] & IMASK);\n\n carry += (prod1 & IMASK) + (prod2 & IMASK) + (a[j + 1] & IMASK);\n a[j + 2] = (int)carry;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n }\n\n carry += (a[0] & IMASK);\n a[1] = (int)carry;\n a[0] = (int)(carry >>> 32);\n }\n\n // 3. if x >= m the x = x - m\n if (!smallMontyModulus && compareTo(0, a, 0, m) >= 0)\n {\n subtract(0, a, 0, m);\n }\n\n // put the result in x\n System.arraycopy(a, 1, x, 0, n);\n }", "private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }", "protected abstract void calculateNextFactor();", "public void solucion() {\r\n System.out.println(\"Intervalo : [\" + a + \", \" + b + \"]\");\r\n System.out.println(\"Error : \" + porce);\r\n System.out.println(\"decimales : \"+ deci);\r\n System.out.println(\"Iteraciones : \" + iteraciones);\r\n System.out\r\n .println(\"------------------------------------------------ \\n\");\r\n \r\n double c = 0;\r\n double fa = 0;\r\n double fb = 0;\r\n double fc = 0;\r\n int iteracion = 1;\r\n \r\n do {\r\n // Aqui esta la magia\r\n c = (a + b) / 2; \r\n System.out.println(\"Iteracion (\" + iteracion + \") : \" + c);\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n fc = funcion(c);\r\n if (fa * fc == 0) {\r\n if (fa == 0) {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+a);\r\n System.out.println(a);\r\n System.exit(0);\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+c);\r\n System.out.println(c);\r\n System.exit(0);\r\n }}\r\n \r\n if (fc * fa < 0) {\r\n b = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n } else {\r\n a = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n }\r\n iteracion++;\r\n // Itera mientras se cumpla la cantidad de iteraciones establecidas\r\n // y la funcion se mantenga dentro del margen de error\r\n \r\n er = Math.abs(((c - x) / c)* 100);\r\n BigDecimal bd = new BigDecimal(aux1);\r\n bd = bd.setScale(deci, RoundingMode.HALF_UP);\r\n BigDecimal bdpm = new BigDecimal(pm);\r\n bdpm = bdpm.setScale(deci, RoundingMode.HALF_UP);\r\n cont++;\r\n fc=c ;\r\n JOptionPane.showMessageDialog(null, \"conteos: \" + cont + \" Pm: \" + bd.doubleValue() + \" Funcion: \" + bdpm.doubleValue() + \" Error: \" + er +\"%\"+ \"\\n\");\r\n } while (er <=porce);\r\n \r\n \r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint width= Integer.parseInt(JOptionPane.showInputDialog(\"Input width of result image\"));\r\n\t\t\t\tint height = Integer.parseInt(JOptionPane.showInputDialog(\"Input height of result image\"));\r\n\t\t\t\tcanvas.setPreferredSize(new Dimension(width,height));\r\n\t\t\t\tcanvas.setBounds(10, 50, width, height);\r\n\r\n\t\t\t\t//create a list of options for the palette.\r\n\t\t\t\tPaletteList paletteList = new PaletteList(\"Choose a Color Scheme\");\r\n\t\t\t\tpaletteList.displayOptions();\r\n\t\t\t\tPalette chosenPalette = paletteList.getChosenPalette();\r\n\r\n\t\t\t\t//Execute the standard mandelbrot action\r\n\t\t\t\tStandardMandelbrot mandelbrot = new StandardMandelbrot(canvas, chosenPalette);\r\n\t\t\t\t//mandelbrot.testPallete(chosenPalette);\r\n\t\t\t\tmandelbrot.execute(); //TODO uncomment this for the final product\r\n\t\t\t}", "public static void permute()\n\t{\n\t\t/* INITIALIZE FOR PERMUTATION TESTING */\n\t\t//int l, r, s, T, K;\n\t\t//Random random = new Random();\n\t\tRandom random = new Random(13);\n\n\t\tclade = clad[k];\n\t\tclade.chiPvalue = 0;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] = 0;\n\t\t\tclade.ITnPvalue[l] = 0;\n\t\t\tclade.corrDcWPvalue[l] = 0;\n\t\t\tclade.corrDnWPvalue[l] = 0;\n\t\t \n\t\t for(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tclade.DcPvalue[i][l] = 0;\n\t\t\t\tclade.DnPvalue[i][l] = 0;\n\t\t\t}\n\t\t}\n\n\n\t/*\n\t\tfprintf(stderr, \"\\n\\n\"); \n\t\tfor (i=0; i<numSubClades; i++)\n\t\tfprintf(stderr,\" rowTotal(%d):%d \", i, rowTotal[i]);\n\t\tfprintf(stderr, \"\\n\"); \n\t\tfor (j=0; j<numCladeLocations; j++)\n\t\tfprintf(stderr,\" columnTotal(%d):%d \", j, columnTotal[j]);\n\t\tfprintf(stderr, \"\\n\\n\");\n\t\t\n\t\tfprintf(stderr,\"\\n\\n Permuting %s\", title);\n\t\tfprintf(stderr,\"\\n 0 %d permutations\\n \",numPermutations);\n*/\t\t\n\t\tfor (int K = 0; K < GeoDis.numPermutations; K++)\n\t\t{\t\n\t\t\t\t\n\t\t\tprogress++;\n\t\t\tpercentage = ((double)progress * 100)/((double)numPermutations*(double)numClades); \n\t\n\t\t\trandObsChi = 0;\n\n\t\t\tfor(int l = 0; l < clade.totaNumObs; l++)\n\t\t\t\tclade.RBMatrix[l][0] = random.nextInt(); /* 0 - 32767\t*/\t\n\t\t\t \n\t\t\tclade.cumColTotal = 0; /* cumColTotal is the cumulative column total */\n\n\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t{\t\n\t\t\t\tif (j == 0)\n\t\t\t\t\tclade.cumColTotal = 0;\n\t\t\t\telse\t\t\t\t\n\t\t\t\tclade.cumColTotal = clade.cumColTotal + clade.columnTotal[j-1];\n\t\t\t\t\n\t\t\t\tfor (int s = 0; s < clade.columnTotal[j]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumColTotal;\n\t\t\t\t\tclade.RBMatrix[l][1] = j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t/*for (l=0; l<totaNumObs; l++)\n\t\t\t\tfprintf(stderr,\"\\nB: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\n\t\t\t/* * * ORDER BY RANDOM NUMBERS * * */\n\t\t\tfor(int l = 0; l < (clade.totaNumObs - 1); l++)\n\t\t\t{\t\n\t\t\t\tfor(int r = l +1; r < clade.totaNumObs; r++)\n\t\t\t \t{\t\t\t\n\t\t\t\t\tif(clade.RBMatrix[r][0] < clade.RBMatrix[l][0])\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t//else\n\t\t\t\t\t{\t\n\t\t\t\t\t\tint T = clade.RBMatrix[r][0];\n\t\t\t\t\t\tclade.RBMatrix[r][0] = clade.RBMatrix[l][0];\n\t\t\t\t\t\tclade.RBMatrix[l][0] = T;\n\t\t\t\t\t\tT = clade.RBMatrix[r][1];\n\t\t\t\t\t\tclade.RBMatrix[r][1] = clade.RBMatrix[l][1];\n\t\t\t\t\t\tclade.RBMatrix[l][1] = T;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t \t}\n\t/*for (l=0; l<totaNumObs; l++)\n\t\t\tfprintf(stderr,\"\\nAfter: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\t\t\t/* * * CALCULATE RANDOM OBSERVATIONS * * */\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\tclade.randMatrix[i][j] = 0;\n\n\t\t\t \n\t\t\tclade.cumRowTotal = 0; /* cumulative row totals */\n\t\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (i == 0)\n\t\t\t\tclade.cumRowTotal = 0;\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\tclade.cumRowTotal += clade.rowTotal[i-1];\t\n\t\t\t\t\n\t\t\t\t/*fprintf(stderr, \"\\n\\nRow %d: rowTotal[i]:%d\",i, rowTotal[i]); */\n\t\t\t\t\n\t\t\t\tfor(int s = 0; s < clade.rowTotal[i]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumRowTotal;\n\t\t\t\t\tindex = clade.RBMatrix[l][1]-1;\n\t\t\t\t\t/*fprintf(stderr, \"rowTotal= %d index=%d s=%d \",rowTotal[i], index, s); */\n\t\t\t\t\tclade.randMatrix[i][index]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\t\t/* prints the randomized table of contingency\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfprintf(stderr, \"\\n\");\n\t\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\t\tfprintf(stderr, \"%d \", randMatrix[i][j]);\n\t\t\t\t\t}\n\t\t*/\t\t\n\n\n\t\t\t/* * CALCULATE RANDOM CHI - SQUARE STATISTIC * */\n\t\t\trandObsChi = 0;\n\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\trandObsChi += Math.pow( (double) clade.randMatrix[i][j] - clade.expObsMatrix[i][j], 2) / clade.expObsMatrix[i][j];\n\t\t\t\t\t\n\t\t\t/*fprintf(fpout,\"\\n%f \", randObsChi);\t\t*/\n\t\t\t\t\t\n\t\t\tif(randObsChi - clade.obsChi >= ROUNDING_ERROR)\n\t\t\t\tclade.chiPvalue++;\n\n\n\t\t\tif (doingDistances)\n\t\t\t{\n\t\t\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t\t\t{\n\t\t\t\t\tclade.randDc[c]=0.0;\n\t\t\t\t\tclade.randDn[c]=0.0;\n\t\t\t\t\t//clade.varDc[c]=0;\n\t\t\t\t\t//clade.varDn[c]=0;\n\t\t\t\t\tsum1 = sum2 = sum3 = 0.0;\n\t\t\t\t\tsumc1 = sumc2 = sumc3 = 0.0;\n\n\t\t\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t\t\t{\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsum2 += clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2 ;\n\t\t\t\t\t\tsumc2 += (clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2) + \n\t\t\t\t\t (clade.randMatrix[c][i] * (clade.columnTotal[i] - clade.randMatrix[c][i]));\t\n\t\t\t\t\t\n\t\t\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (j != i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsum1 += (double) clade.randMatrix[c][i] * clade.randMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\t\t\tsum3 += clade.randMatrix[c][i] * clade.randMatrix[c][j];\t\t\t\n\t\t\t\t\t\t\t\tsumc1 += (double) clade.randMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\t\t\tsumc3 += clade.randMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.randMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nROBS[\" + c +\"][\" + i+ \"]= \" + clade.randMatrix[c][i]); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\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\t}\n\t\t\t\t\t} \n\n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (sum3 == 0)\n\t\t\t\t\t\tclade.randDc[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\tif (sumc3 == 0)\n\t\t\t\t\t\tclade.randDn[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t // \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\n\t\t\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \n\n\n\t\t\t\t\tif(clade.Dc[c] - clade.randDc[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDc[c] - clade.Dc[c] >= ROUNDING_ERROR )\n\t\t\t\t\t\tclade.DcPvalue[c][1]++;\n\n\t\t\t\t\tif(clade.Dn[c] - clade.randDn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDn[c] - clade.Dn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][1]++;\n\n\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* * CALCULATE DISTANCE TEST STATISTIC * */\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tclade.randMeanLatitude[i] = 0;\n\t\t\t\t\tclade.randMeanLongitude[i] = 0;\n\t\t\t\t\tclade.randDc[i] = 0;\n\t\t\t\t\tclade.randDn[i] = 0;\n\t\t\t\t\tclade.subCladeSum[i] = 0;\n\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tclade.absFreq[i][j] = (double) clade.randMatrix[i][j] / (double) sampleSize[index];\t\t\n\t\t\t\t\t\tclade.subCladeSum[i] = clade.subCladeSum[i] + clade.absFreq[i][j];\n\t\t\t\t\t}\t\n\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t\tclade.relFreq[i][j] = clade.absFreq[i][j]/clade.subCladeSum[i];\n\t\t\t\t}\n\t\t/*\t\t\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tfprintf(stderr,\"\\n\");\n\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\tfprintf(stderr,\"Asim: %f \", relFreq[i][j]);\n\t\t\t\t}\n\t\t*/\n\t\t\t\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j]-1;\n\t\t\t\t\t\tclade.randMeanLatitude[i] = clade.randMeanLatitude[i] + clade.relFreq[i][j] * Latitude[index];\n\t\t\t\t\t\tclade.randMeanLongitude[i] = clade.randMeanLongitude[i] + clade.relFreq[i][j] * Longitude[index];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clade.relFreq[i][j] == 0)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tif (Latitude[index] == clade.randMeanLatitude[i] && Longitude[index] == clade.randMeanLongitude[i]) \n\t\t\t\t\t\t\tZ = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZ = Math.sin(Latitude[index]) * Math.sin(clade.randMeanLatitude[i]) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.randMeanLatitude[i]) * Math.cos(clade.randMeanLongitude[i] - Longitude[index]);\n\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(Z) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (Z); \n\t\t\t\t\t\t\tclade.randDc[i] += clade.relFreq[i][j] * RVZ;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Latitude[index] == clade.meanLatNest && Longitude[index] == clade.meanLonNest) \n\t\t\t\t\t\t\tZB = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZB = Math.sin(Latitude[index]) * Math.sin(clade.meanLatNest) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.meanLatNest) * Math.cos(clade.meanLonNest - Longitude[index]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(ZB) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (ZB);\n\t\t\t\t\t\t\tclade.randDn[i] += clade.relFreq[i][j] * RVZ;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(clade.Dc[i] - clade.randDc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDc[i] - clade.Dc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][1]++;\n\n\t\t\t\t\tif(clade.Dn[i] - clade.randDn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDn[i] - clade.Dn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][1]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t/* * TEST STATISTICS FOR POSITION VS. INTERIOR * */\n\n\t\t\trandTipDistance = 0;\n\t\t\trandIntDistance = 0;\n\t\t\trandTipDisNested = 0;\n\t\t\trandIntDisNested = 0;\n\t\t\t\n\t\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t\t{\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\trandTipDistance += clade.Position[i] * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandTipDisNested += clade.Position[i] * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandIntDistance += (1 - clade.Position[i]) * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t\trandIntDisNested += (1 - clade.Position[i]) * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(clade.tipIntDistance - (randIntDistance - randTipDistance) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITcPvalue[0]++;\n\n\t\t\t\tif((randIntDistance - randTipDistance) - clade.tipIntDistance >= ROUNDING_ERROR)\n\t\t\t\t \tclade.ITcPvalue[1]++;\n\n\t\t\t\tif(clade.tipIntDisNested - (randIntDisNested - randTipDisNested) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[0]++;\n\t\t\t\t\n\t\t\t\tif((randIntDisNested - randTipDisNested) - clade.tipIntDisNested >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[1]++;\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif(!weights){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//{\n\t\t\t\t/* * CORRELATION TESTS OF DISTANCE WITH OUTGROUP WEIGHTS * */\n\n\t\t\t\t //double c, n, w;\n\t\t\t\t \n\t\t\t\t clade.meanDc = 0;\n\t\t\t\t clade.meanDn = 0;\n\t\t\t\t clade.sumDcxWeight = 0;\n\t\t\t\t clade.sumDnxWeight = 0;\n\t\t\t\t clade.sumDcSq = 0;\n\t\t\t\t clade.sumDnSq = 0;\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t \tclade.meanDc += clade.randDc[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.meanDn += clade.randDn[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.sumDcxWeight += clade.randDc[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDnxWeight += clade.randDn[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDcSq += Math.pow(clade.randDc[i],2); \n\t\t\t\t \tclade.sumDnSq += Math.pow(clade.randDn[i],2);\n\t\t\t\t\t}\n\t\t\t\t\n\t \t\tdouble c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t \t\tdouble n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \t\t\tdouble w = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\t\t\tif (clade.corrDcWeights != NA && c > 0 && w > 0)\n\t\t\t\t\t//;\n\t\t\t\t//else\n\t\t\t\t \t{\n\t\t\t\t \tclade.randCorrDcWeights = (clade.sumDcxWeight - (double) clade.numSubClades * clade.meanDc * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(c*w));\n\n\t\t\t\t\tif(clade.randCorrDcWeights > 1)\n\t\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\t\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDcWeights < -1)\n\t\t\t \t\tclade.randCorrDcWeights = -1;\n\t\t\t\t\n\t\t\t\t\tif(clade.corrDcWeights - clade.randCorrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \t\tclade.corrDcWPvalue[0]++;\n\t\t\t\t\t \n\t\t\t\t\tif(clade.randCorrDcWeights - clade.corrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \tclade.corrDcWPvalue[1]++;\n\t\t\t\t\t}\n\n\n\t\t\t\tif (clade.corrDnWeights == NA || n <= 0 || w <= 0)\n\t\t\t\t\tcontinue;\t\t\n\t\t\t\t//else\n\t\t\t\t\t//{\n\t\t\t\t \tclade.randCorrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(n*w));\n\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDnWeights > 1)\n\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\n\t\t\t\t\tif(clade.randCorrDnWeights < -1)\n\t\t\t\t\t\tclade.randCorrDnWeights = -1;\n\n\t\t\t\t\tif(clade.corrDnWeights - clade.randCorrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[0]++;\n\n\t\t\t\t\tif(clade.randCorrDnWeights - clade.corrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[1]++;\n\t\t\t\t\t//}\n\t\t\t\t//}\n\t} // end of 1 replicate\n\n\n\t\tclade.chiPvalue /= (double) GeoDis.numPermutations;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.ITnPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDcWPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDnWPvalue[l] /= (double) GeoDis.numPermutations;\n\n\t\t\tfor (i =0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t clade.DcPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t clade.DnPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t}\n\t\t}\n\n\t}", "public static Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "public static Resultado KSP_FF_Algorithm_MBBR(GrafoMatriz G, GrafoMatriz Gaux, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n /*Definicion de variables las variables*/\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n \n /*Probamos para cada camino, si exite espectro para ubicar la damanda*/\n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 Gaux.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ){\n OE[i]=0;\n break;\n }\n }\n }\n /*Teniendo la ocupacion del espectro del camino k, buscamos un bloque continuo de FS\n * que satisfazca la demanda.\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\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }", "private int mcHelper(int[][] arr, int[][] g, int i, int j) {\n int mcsum = 0;\n for (int k = 0; k < 4; k++) {\n int a = g[i][k] ^ 0x42;\n int b = arr[k][j];\n mcsum ^= mcCalc(a, b);\n }\n return mcsum;\n }", "public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "private void mul() {\n\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public BigInteger[] multiply_G(BigInteger factor) \r\n{\r\n\tBigInteger[] voher = EXPList.nullVektor;\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\tfor(int i=0;i<=255;i++)\r\n\t{\r\n\t\tif(factor.testBit(i)==true) \r\n\t\t{\r\n\t\t erg = addition(voher,EXPList.list[i]); \r\n\t\t voher = erg;\r\n\t\t} \r\n\t}\r\n\treturn erg; \r\n}", "private static void term(long[] points) {\n\t\tlong temp;\n\t\tfor (int i1 = 0; i1 < points.length; i1++) {\n\t\t\t//System.out.println(((points[i1]/2))*((points[i1]/2)+1));\n\t\t\t//System.out.println((points[i1]/2)*((points[i1]/2)+1));\n\t\t\t\ttemp=(points[i1]/2)*((points[i1]/2)-1);\n\t\t\t//\tSystem.out.println(\"temp\"+temp);\n\t\t\t\tif((points[i1]%2)==0){\n\t\t\t\t\ttemp+=(points[i1])/2;\n\t\t\t\t}else{\n\t\t\t\t\ttemp+=(points[i1])/2;temp+=(points[i1])/2;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(temp);\n\t\t\t\ttemp=0;\n\t\t}\n\t}", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "public static BigInteger[] multiply_Point(BigInteger[] point, BigInteger factor) \r\n{\r\n\tBigInteger[] erg = point;\r\n\tBigInteger[] NULL= new BigInteger[2];\r\n\tNULL[0] = ZERO;\r\n\tNULL[1] = ZERO; \r\n\tif(factor.equals(ZERO)) return NULL;\r\n\tif(factor.equals(ONE)) return erg;\r\n\tif(factor.equals(TWO)) return multiply_2(erg);\r\n\tif(factor.equals(THREE)) return addition(multiply_2(erg),erg);\r\n\tif(factor.equals(FOUR)) return multiply_2(multiply_2(erg));\r\n\tif(factor.compareTo(FOUR)==1); \r\n\t{ \r\n\t\tint exp = factor.bitLength()-1;\r\n\t\tfor(;exp >0;exp--)erg = multiply_2(erg);\r\n\t\tfactor = factor.clearBit(factor.bitLength()-1);\r\n\t\terg = addition(multiply_Point(point,factor),erg);\r\n\t}\r\n\treturn erg; \r\n}", "public float setaMulta(int tempo){\n float multa_aux = valor_multa;\n for(int clk = 0; clk < tempo; clk++){\n multa_aux *= 1.1;\n }\n return multa_aux;\n }", "private Matriks MatriksCofactor(Matriks M){\r\n\t\tMatriks Mcofactor = new Matriks(BrsEff, KolEff);\r\n\t\tfor(int i=0; i<BrsEff; i++){\r\n\t\t\tfor(int j=0;j<KolEff; j++){\r\n\t\t\t\tMatriks temp = M.Cofactor(M,i,j);\r\n\t\t\t\tMcofactor.Elmt[i][j] = temp.DetCofactor(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mcofactor;\r\n\t}", "private void xCubed()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubed ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tBurningShipSet burn = new BurningShipSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = burn.burningShip(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\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}\r\n\t\t\r\n\treturn fractal;\r\n\t\r\n\t\r\n}", "public double magnetization(){\n double total = 0;\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < m; j++) {\n total+=lattice[i][j];\n }\n }\n \n return total;\n }", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "@Override\n\tpublic void algorithm() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t\n\t\tint change = 2;\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<this.getGridGame().getGridCol(); j++) {\n\t\t\t\t\n\t\t\t\tif(j > 0 && j < this.getGridGame().getGridCol()) {\n\t\t\t\t\t\n\t\t\t\t\tif(this.getGridGame().getPattern(i,j-1) != this.getGridGame().getPattern(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\t\tchange--;\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(change > 0) {\n\t\t\t\t\t\n\t\t\t\t\tthis.getArray()[i][0] += this.getGridGame().getPattern(i,j);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tthis.getArray()[i][1] += this.getGridGame().getPattern(i,j);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(change + \" \");\n\t\t\tchange = 2;\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tif(this.getArray()[i][1] == 0) {\n\t\t\t\t\n\t\t\t\tthis.getArray()[i][1] = this.getArray()[i][0];\n\t\t\t\tthis.getArray()[i][0] = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<2; j++) {\n\t\t\t\n\t\t\t\tSystem.out.print(this.getArray()[i][j] + \" \");\n\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t}\n\t\t\n\t\n\t}", "void getCirculation (double effaoa, double thickness_pst, double camber_pst) { \n double beta;\n double th_abs = thickness_pst/100.0; \n xcval = 0.0;\n ycval = camber_pst/50; // was: current_part.camber/25/2\n\n if (current_part.foil == FOIL_CYLINDER || /* get circulation for rotating cylnder */\n current_part.foil == FOIL_BALL) { /* get circulation for rotating ball */\n rval = radius/lconv;\n gamval = 4.0 * Math.PI * Math.PI *spin * rval * rval\n / (velocity/vconv);\n gamval = gamval * spindr;\n ycval = .0001;\n } else {\n rval = th_abs + Math.sqrt((current_part.foil == FOIL_FLAT_PLATE\n ? 0 : th_abs*th_abs)\n + ycval*ycval + 1.0);\n xcval = current_part.foil == FOIL_JOUKOWSKI ? 0 : (1.0 - Math.sqrt(rval*rval - ycval*ycval));\n beta = Math.asin(ycval/rval)/convdr; /* Kutta condition */\n gamval = 2.0*rval*Math.sin((effaoa+beta)*convdr);\n }\n }", "private void center(Complex[] f, int width, int height) {\r\n\r\n\t\tfor (int i = 0; i < f.length; i++) {\r\n\t\t\tint x = i % width;\r\n\t\t\tint y = i / width;\r\n\t\t\tf[i].setReal(f[i].getReal() * Math.pow(-1, (x + y)));\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }", "private static <T> T exhaustiveHelper(FanSet fan, Edge[] e, int numSteps,\n\t\t\tExhaustiveSearchReducer<T> f, int type) {\n\t\t// if there are no more steps to do, \n\t\tif(numSteps == 0) {\n\t\t\t// create a new grid\n\t\t\tGrid grid = new Grid();\n\t\t\t// add the initial edge (the same every time to account for rotation)\n\t\t\tgrid.addInitialEdge(new Edge(new Point(0, 1, 0), new Point(1, 0, 0)));\n\t\t\t// add the initial sequence that has been given (the first is the same every time to\n\t\t\t// account for reflection)\n\t\t\tgrid.addInitialSeq(e);\n\t\t\t// run the algorithm\n\t\t\tgrid.runAlgorithm(type);\n\t\t\t// get the value for the grid and return it\n\t\t\treturn f.getValue(grid);\n\t\t}\n\t\t// get all the edges in the fan\n\t\tHashSet<Edge> temp = fan.getEdges();\n\t\tEdge[] edges = temp.toArray(new Edge[temp.size()]);\n\t\t// Assign the current value as the initial value\n\t\tT current = f.initialValue();\n\t\t// iterate over all the possible edges\n\t\tfor(int i = 0; i < edges.length; i++) {\n\t\t\t// copy the current fan\n\t\t\tFanSet g = fan.deepCopy();\n\t\t\t// divide it on that edge\n\t\t\tg.divideOnEdge(edges[i]);\n\t\t\t// add the edge to the (copied) sequence\n\t\t\tEdge[] d = Arrays.copyOf(e, e.length + 1);\n\t\t\td[e.length] = edges[i];\n\t\t\t// use the above in a recursive call and combine it with the current value\n\t\t\tcurrent = f.reduce(exhaustiveHelper(g, d,\n\t\t\t\t\tnumSteps - 1, f, type), current);\n\t\t}\n\t\t// return the final value\n\t\treturn current;\n\t}", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater ( \n\t\t\t\t new Runnable () {\n\t\t\t\t public void run() {\n\t\t\t\t \tFractalFrame frame = new FractalFrame(\"Mandelbrot Set\");\n\t\t\t\t \t\tframe.setBounds(0, 0, 850, 640);\n\t\t\t\t \t\tframe.init();\n\t\t\t\t \t\t\n\t\t\t\t }\n\t\t\t\t });\n\t\t\n\n\t}", "protected void optimize() {\n int[][] cutMemo = new int[dimX + 1][dimY + 1];\n Tuple[][] tupleMemo = new Tuple[dimX + 1][dimY + 1];\n Memo memo = new Memo(cutMemo,tupleMemo);\n\n //array is filled with -1 because -1 is used as a flag in the memo\n fillMemo(0, dimX, 0, dimY, cutMemo);\n\n //Calculates optimal value of cloth\n ArrayList<FittedPattern> answer = computeOptimal(dimX, dimY, pattern, memo, new ArrayList<>(), 0);\n coordinates = answer;\n finalValue = memo.getFittedPatternMemo()[dimX][dimY].getOptimalValue();\n\n }", "public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }", "public PresentValueHullWhiteMonteCarloCalculator() {\n _nbPath = DEFAULT_NB_PATH;\n }", "private void m1do() {\n for (int i = 0; i < 2; i++) {\n this.my[i] = null;\n }\n for (int i2 = 0; i2 < 2; i2++) {\n this.mz[i2] = 0;\n }\n this.mC = 0.0d;\n this.lf = 0;\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public PresentValueHullWhiteMonteCarloCalculator(final int nbPath) {\n _nbPath = nbPath;\n }", "@Override\n public void run() {\n Point current = remainingPoints.remove(0); // always start at first point\n solutionOfAntK.add(current);\n Point next;\n double[] imaginaryDistances;\n double imaginaryDistance;\n int x, y; // -> index of points: -> to get the correct values form the matrices T & D\n int indexToRemove;\n for (int i = 0; i < tourSize - 1; i++) {\n imaginaryDistances = new double[remainingPoints.size()];\n imaginaryDistance = 0;\n for (int j = 0; j < remainingPoints.size(); j++) {\n next = remainingPoints.get(j);\n x = current.getId();\n y = next.getId();\n imaginaryDistances[j] = (Math.pow(T.get(x, y), alpha)) / (Math.pow(D.get(x, y), beta));\n imaginaryDistance += imaginaryDistances[j];\n }\n indexToRemove = getNextPoint(imaginaryDistances, imaginaryDistance);\n tourLengthOfAntK += utils.Utils.euclideanDistance2D(remainingPoints.get(indexToRemove), current);\n current = remainingPoints.remove(indexToRemove);\n solutionOfAntK.add(current);\n\n }\n // add distance from last point to start points\n tourLengthOfAntK += utils.Utils.euclideanDistance2D(solutionOfAntK.get(-1 + solutionOfAntK.size()), startPoint);\n\n }", "public ColorComponentScaler(double rm, double gm, double bm) {\n canFilterIndexColorModel = true;\n redMultiplier = rm;\n greenMultiplier = gm;\n blueMultiplier = bm;\n h = 0;\n s = 0;\n l = 0;\n }", "public void calculate() {\n float xoff = 0;\n for (int i = 0; i < cols; i++)\n { \n float yoff = 0;\n for (int j = 0; j < rows; j++)\n {\n z[i][j] = map(noise(xoff, yoff,zoff), 0, 1, -120, 120);\n yoff += 0.1f;\n }\n xoff += 0.1f;\n }\n zoff+=0.01f;\n }", "public void conjugateGradient(int stepNumber) {\r\n ArrayList<Atom> atoms = cluster.getAtoms();\r\n Atom a;\r\n int numAtoms = atoms.size();\r\n int i;\r\n double potentialEnergy;\r\n double trialPotential;\r\n double gamma;\r\n Vector3D searchVector = new Vector3D();\r\n boolean isFirstStep;\r\n\r\n //Increment time\r\n totalTime += currentStep;\r\n\r\n //Calculate force on each atom\r\n cluster.calculateForces();\r\n\r\n //Calculate potential energy of the current configuration\r\n HashMap<String, Double> energies = cluster.getEnergies();\r\n potentialEnergy = 0.0;\r\n for(String eName : energies.keySet())\r\n potentialEnergy += energies.get(eName).doubleValue();\r\n\r\n //Check if this is the first step since there will be no previous information\r\n isFirstStep = (stepNumber == 1);\r\n\r\n //Choose either steepest descent or conjugate gradient\r\n if(stepNumber % (numDimensions * numAtoms) == 0) {\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n //Save locations and forces and search vectors\r\n savedLocations[i].x = a.location.x;\r\n savedLocations[i].y = a.location.y;\r\n savedLocations[i].z = a.location.z;\r\n\r\n savedVectors[i].x = savedForces[i].x = a.force.x;\r\n savedVectors[i].y = savedForces[i].y = a.force.y;\r\n savedVectors[i].z = savedForces[i].z = a.force.z;\r\n\r\n //Compute trial location using steepest descent\r\n a.location.x += a.force.x * currentStep;\r\n a.location.y += a.force.y * currentStep;\r\n a.location.z += a.force.z * currentStep;\r\n }\r\n } else {\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n //Save locations and forces\r\n savedLocations[i].x = a.location.x;\r\n savedLocations[i].y = a.location.y;\r\n savedLocations[i].z = a.location.z;\r\n\r\n //Compute trial location using conjugate gradient\r\n searchVector = computeSearchVector(isFirstStep, a.force, savedForces[i], savedVectors[i], searchVector);\r\n a.location.x += searchVector.x * currentStep;\r\n a.location.y += searchVector.y * currentStep;\r\n a.location.z += searchVector.z * currentStep;\r\n\r\n //Save force and search vector from this step\r\n savedForces[i].x = a.force.x;\r\n savedForces[i].y = a.force.y;\r\n savedForces[i].z = a.force.z;\r\n\r\n savedVectors[i].x = searchVector.x;\r\n savedVectors[i].y = searchVector.y;\r\n savedVectors[i].z = searchVector.z;\r\n }\r\n }\r\n\r\n //Calculate potential energy of the new configuration\r\n energies = cluster.getEnergies();\r\n trialPotential = 0.0;\r\n for(String eName : energies.keySet())\r\n trialPotential += energies.get(eName).doubleValue();\r\n\r\n //Decide whether to keep trial configuration based on convergence\r\n if(trialPotential < potentialEnergy) {\r\n //Keep positions and check for convergence\r\n if(Math.abs((potentialEnergy - trialPotential) / potentialEnergy) < convergenceCriterion)\r\n isConverged = true;\r\n\r\n currentStep *= 1.2;\r\n } else {\r\n //Restore old positions\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n a.location.x = savedLocations[i].x;\r\n a.location.y = savedLocations[i].y;\r\n a.location.z = savedLocations[i].z;\r\n }\r\n\r\n currentStep *= 0.5;\r\n }\r\n }", "protected void processBlock() {\n\t\t// expand 16 word block into 64 word blocks.\n\t\t//\n\t\tfor (int t = 16; t <= 63; t++) {\n\t\t\tX[t] = Theta1(X[t - 2]) + X[t - 7] + Theta0(X[t - 15]) + X[t - 16];\n\t\t}\n\n\t\t//\n\t\t// set up working variables.\n\t\t//\n\t\tint a = H1;\n\t\tint b = H2;\n\t\tint c = H3;\n\t\tint d = H4;\n\t\tint e = H5;\n\t\tint f = H6;\n\t\tint g = H7;\n\t\tint h = H8;\n\n\t\tint t = 0;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t// t = 8 * i\n\t\t\th += Sum1(e) + Ch(e, f, g) + K[t] + X[t];\n\t\t\td += h;\n\t\t\th += Sum0(a) + Maj(a, b, c);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 1\n\t\t\tg += Sum1(d) + Ch(d, e, f) + K[t] + X[t];\n\t\t\tc += g;\n\t\t\tg += Sum0(h) + Maj(h, a, b);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 2\n\t\t\tf += Sum1(c) + Ch(c, d, e) + K[t] + X[t];\n\t\t\tb += f;\n\t\t\tf += Sum0(g) + Maj(g, h, a);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 3\n\t\t\te += Sum1(b) + Ch(b, c, d) + K[t] + X[t];\n\t\t\ta += e;\n\t\t\te += Sum0(f) + Maj(f, g, h);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 4\n\t\t\td += Sum1(a) + Ch(a, b, c) + K[t] + X[t];\n\t\t\th += d;\n\t\t\td += Sum0(e) + Maj(e, f, g);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 5\n\t\t\tc += Sum1(h) + Ch(h, a, b) + K[t] + X[t];\n\t\t\tg += c;\n\t\t\tc += Sum0(d) + Maj(d, e, f);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 6\n\t\t\tb += Sum1(g) + Ch(g, h, a) + K[t] + X[t];\n\t\t\tf += b;\n\t\t\tb += Sum0(c) + Maj(c, d, e);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 7\n\t\t\ta += Sum1(f) + Ch(f, g, h) + K[t] + X[t];\n\t\t\te += a;\n\t\t\ta += Sum0(b) + Maj(b, c, d);\n\t\t\t++t;\n\t\t}\n\n\t\tH1 += a;\n\t\tH2 += b;\n\t\tH3 += c;\n\t\tH4 += d;\n\t\tH5 += e;\n\t\tH6 += f;\n\t\tH7 += g;\n\t\tH8 += h;\n\n\t\t//\n\t\t// reset the offset and clean out the word buffer.\n\t\t//\n\t\txOff = 0;\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tX[i] = 0;\n\t\t}\n\t}", "public void mul(Complex c){\n\t\tdouble tempRe = re*c.getRe() - im*c.getIm();\n\t\tim = im*c.getRe() + re*c.getIm();\n\t\tre = tempRe;\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public double[][] coFactorFinder() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t/* co-factor: change signs.\n\t\t\t\t\t|+ - +|\n\t\t\t\t\t|- + -|\n\t\t\t\t\t|+ - +|\t */\n\t\t\t\tthis.coFactor = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t\t\n\t\t\t\tthis.coFactor[0][0] = this.minor[0][0];\n\t\t\t\tthis.coFactor[0][1] = - this.minor[0][1];\n\t\t\t\tthis.coFactor[0][2] = this.minor[0][2];\n\t\t\t\tthis.coFactor[1][0] = - this.minor[1][0];\n\t\t\t\tthis.coFactor[1][1] = this.minor[1][1];\n\t\t\t\tthis.coFactor[1][2] = - this.minor[1][2];\n\t\t\t\tthis.coFactor[2][0] = this.minor[2][0];\n\t\t\t\tthis.coFactor[2][1] = - this.minor[2][1];\n\t\t\t\tthis.coFactor[2][2] = this.minor[2][2];\n\t\t\t\t\t\n\t\t\t}\n\t\t}\t\t\t\t\n\t\t//\tprint\n\t\t\tSystem.out.println(\"\\nCo-factor of the current matrix is: \");\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t \t\t\n\t\t\t\t\tSystem.out.print(String.format(\"%.2f\", coFactor[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t\t}\n\t\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t\t}\n\t\treturn coFactor;\t//return co-factors\n\t\t}", "public void cloningFactor() {\n\t\t\t\n\t\t\tsort();\n\t\t\tdouble factorNum = 0.0; \n\t\t\t\n\t\t\tfor(Solution sol : population) {\n\t\t\t\tfactorNum = averagePath / (double) sol.getPath();\n\t\t\t\tsol.setCloningFactor(factorNum);\n\t\t\t}\n\t\t}", "private void computeHermiteCoefficients (KBKeyFrame kf0,\r\n KBKeyFrame kf1,\r\n KBKeyFrame kf2,\r\n KBKeyFrame kf3) {\r\n\r\n\r\n Point3f deltaP = new Point3f();\r\n Point3f deltaS = new Point3f();\r\n float deltaH;\r\n float deltaT;\r\n float deltaB;\r\n\r\n // Find the difference in position and scale \r\n deltaP.x = kf2.position.x - kf1.position.x;\r\n deltaP.y = kf2.position.y - kf1.position.y;\r\n deltaP.z = kf2.position.z - kf1.position.z;\r\n\r\n deltaS.x = kf2.scale.x - kf1.scale.x;\r\n deltaS.y = kf2.scale.y - kf1.scale.y;\r\n deltaS.z = kf2.scale.z - kf1.scale.z;\r\n\r\n // Find the difference in heading, pitch, and bank\r\n deltaH = kf2.heading - kf1.heading;\r\n deltaT = kf2.pitch - kf1.pitch;\r\n deltaB = kf2.bank - kf1.bank;\r\n \r\n // Incoming Tangent\r\n Point3f dd_pos = new Point3f();\r\n Point3f dd_scale = new Point3f();\r\n float dd_heading, dd_pitch, dd_bank;\r\n\r\n // If this is the first keyframe of the animation \r\n if (kf0.knot == kf1.knot) {\r\n\r\n float ddab = 0.5f * (dda + ddb);\r\n\r\n // Position\r\n dd_pos.x = ddab * deltaP.x;\r\n dd_pos.y = ddab * deltaP.y;\r\n dd_pos.z = ddab * deltaP.z;\r\n\r\n // Scale \r\n dd_scale.x = ddab * deltaS.x;\r\n dd_scale.y = ddab * deltaS.y;\r\n dd_scale.z = ddab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = ddab * deltaH;\r\n dd_pitch = ddab * deltaT;\r\n dd_bank = ddab * deltaB;\r\n\r\n } else {\r\n\r\n float adj0 = (kf1.knot - kf0.knot)/(kf2.knot - kf0.knot);\r\n\r\n // Position\r\n dd_pos.x = adj0 * \r\n ((ddb * deltaP.x) + (dda * (kf1.position.x - kf0.position.x)));\r\n dd_pos.y = adj0 *\r\n ((ddb * deltaP.y) + (dda * (kf1.position.y - kf0.position.y)));\r\n dd_pos.z = adj0 * \r\n ((ddb * deltaP.z) + (dda * (kf1.position.z - kf0.position.z)));\r\n\r\n // Scale \r\n dd_scale.x = adj0 * \r\n ((ddb * deltaS.x) + (dda * (kf1.scale.x - kf0.scale.x)));\r\n dd_scale.y = adj0 * \r\n ((ddb * deltaS.y) + (dda * (kf1.scale.y - kf0.scale.y)));\r\n dd_scale.z = adj0 * \r\n ((ddb * deltaS.z) + (dda * (kf1.scale.z - kf0.scale.z)));\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = adj0 * \r\n ((ddb * deltaH) + (dda * (kf1.heading - kf0.heading)));\r\n dd_pitch = adj0 * \r\n ((ddb * deltaT) + (dda * (kf1.pitch - kf0.pitch)));\r\n dd_bank = adj0 * \r\n ((ddb * deltaB) + (dda * (kf1.bank - kf0.bank)));\r\n }\r\n \r\n // Outgoing Tangent\r\n Point3f ds_pos = new Point3f();\r\n Point3f ds_scale = new Point3f();\r\n float ds_heading, ds_pitch, ds_bank;\r\n\r\n // If this is the last keyframe of the animation \r\n if (kf2.knot == kf3.knot) {\r\n\r\n float dsab = 0.5f * (dsa + dsb);\r\n\r\n // Position\r\n ds_pos.x = dsab * deltaP.x;\r\n ds_pos.y = dsab * deltaP.y;\r\n ds_pos.z = dsab * deltaP.z;\r\n \r\n // Scale\r\n ds_scale.x = dsab * deltaS.x;\r\n ds_scale.y = dsab * deltaS.y;\r\n ds_scale.z = dsab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n ds_heading = dsab * deltaH;\r\n ds_pitch = dsab * deltaT;\r\n ds_bank = dsab * deltaB;\r\n\r\n } else {\r\n\r\n float adj1 = (kf2.knot - kf1.knot)/(kf3.knot - kf1.knot);\r\n\r\n // Position\r\n ds_pos.x = adj1 * \r\n ((dsb * (kf3.position.x - kf2.position.x)) + (dsa * deltaP.x));\r\n ds_pos.y = adj1 * \r\n ((dsb * (kf3.position.y - kf2.position.y)) + (dsa * deltaP.y));\r\n ds_pos.z = adj1 * \r\n ((dsb * (kf3.position.z - kf2.position.z)) + (dsa * deltaP.z));\r\n\r\n // Scale\r\n ds_scale.x = adj1 * \r\n ((dsb * (kf3.scale.x - kf2.scale.x)) + (dsa * deltaS.x));\r\n ds_scale.y = adj1 * \r\n ((dsb * (kf3.scale.y - kf2.scale.y)) + (dsa * deltaS.y));\r\n ds_scale.z = adj1 * \r\n ((dsb * (kf3.scale.z - kf2.scale.z)) + (dsa * deltaS.z));\r\n\r\n // Heading, Pitch and Bank \r\n ds_heading = adj1 * \r\n ((dsb * (kf3.heading - kf2.heading)) + (dsa * deltaH));\r\n ds_pitch = adj1 * \r\n ((dsb * (kf3.pitch - kf2.pitch)) + (dsa * deltaT));\r\n ds_bank = adj1 * \r\n ((dsb * (kf3.bank - kf2.bank)) + (dsa * deltaB));\r\n }\r\n\r\n // Calculate the coefficients of the polynomial for position\r\n c0 = new Point3f();\r\n c0.x = kf1.position.x;\r\n c0.y = kf1.position.y;\r\n c0.z = kf1.position.z;\r\n\r\n c1 = new Point3f();\r\n c1.x = dd_pos.x;\r\n c1.y = dd_pos.y;\r\n c1.z = dd_pos.z;\r\n\r\n c2 = new Point3f();\r\n c2.x = 3*deltaP.x - 2*dd_pos.x - ds_pos.x;\r\n c2.y = 3*deltaP.y - 2*dd_pos.y - ds_pos.y;\r\n c2.z = 3*deltaP.z - 2*dd_pos.z - ds_pos.z;\r\n\r\n c3 = new Point3f();\r\n c3.x = -2*deltaP.x + dd_pos.x + ds_pos.x;\r\n c3.y = -2*deltaP.y + dd_pos.y + ds_pos.y;\r\n c3.z = -2*deltaP.z + dd_pos.z + ds_pos.z;\r\n\r\n // Calculate the coefficients of the polynomial for scale \r\n e0 = new Point3f();\r\n e0.x = kf1.scale.x;\r\n e0.y = kf1.scale.y;\r\n e0.z = kf1.scale.z;\r\n\r\n e1 = new Point3f();\r\n e1.x = dd_scale.x;\r\n e1.y = dd_scale.y;\r\n e1.z = dd_scale.z;\r\n\r\n e2 = new Point3f();\r\n e2.x = 3*deltaS.x - 2*dd_scale.x - ds_scale.x;\r\n e2.y = 3*deltaS.y - 2*dd_scale.y - ds_scale.y;\r\n e2.z = 3*deltaS.z - 2*dd_scale.z - ds_scale.z;\r\n\r\n e3 = new Point3f();\r\n e3.x = -2*deltaS.x + dd_scale.x + ds_scale.x;\r\n e3.y = -2*deltaS.y + dd_scale.y + ds_scale.y;\r\n e3.z = -2*deltaS.z + dd_scale.z + ds_scale.z;\r\n\r\n // Calculate the coefficients of the polynomial for heading, pitch \r\n // and bank\r\n h0 = kf1.heading;\r\n p0 = kf1.pitch;\r\n b0 = kf1.bank;\r\n\r\n h1 = dd_heading;\r\n p1 = dd_pitch;\r\n b1 = dd_bank;\r\n\r\n h2 = 3*deltaH - 2*dd_heading - ds_heading;\r\n p2 = 3*deltaT - 2*dd_pitch - ds_pitch;\r\n b2 = 3*deltaB - 2*dd_bank - ds_bank;\r\n\r\n h3 = -2*deltaH + dd_heading + ds_heading;\r\n p3 = -2*deltaT + dd_pitch + ds_pitch;\r\n b3 = -2*deltaB + dd_bank + ds_bank;\r\n }", "private void molCalculator() {\n\t\tdouble finalMolRMultiplier = 100000000;\n\t\tint finalMolRIndex = 0;\n\t\tdouble finalMolPMultiplier = 100000000;\n\t\tint finalMolPIndex = 0;\n\t\tdouble finalMol = 0;\n\t\tint finalMolAmt = 0;\n\n\t\t/* Finds the limiting moles on the reactant side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\tif (reactantAmt[i] == 0) {\n\t\t\t\t\treactantTextAmt.get(i).setText(\"1\");\n\t\t\t\t\treactantAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\treactantTextAmt.get(i).setText(reactantAmt[i] + \"\");\n\t\t\t\tif (!(reactantMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = reactantMoles[i] / reactantAmt[i];\n\t\t\t\t\tif (finalMolRMultiplier > temp) {\n\t\t\t\t\t\tfinalMolRMultiplier = temp;\n\t\t\t\t\t\tfinalMolRIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Finds the limiting moles on the product side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\tif (productAmt[i] == 0) {\n\t\t\t\t\tproductTextAmt.get(i).setText(\"1\");\n\t\t\t\t\tproductAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\tproductTextAmt.get(i).setText(productAmt[i] + \"\");\n\t\t\t\tif (!(productMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = productMoles[i] / productAmt[i];\n\t\t\t\t\tif (finalMolPMultiplier > temp) {\n\t\t\t\t\t\tfinalMolPMultiplier = temp;\n\t\t\t\t\t\tfinalMolPIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Finds the final limiting moles\n\t\tif (finalMolRMultiplier > finalMolPMultiplier) {\n\t\t\tfinalMol = productMoles[finalMolPIndex];\n\t\t\tfinalMolAmt = productAmt[finalMolPIndex];\n\t\t} else {\n\t\t\tfinalMol = reactantMoles[finalMolRIndex];\n\t\t\tfinalMolAmt = reactantAmt[finalMolRIndex];\n\t\t}\n\n\t\t// Stores the final limiting moles of each reactant\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the reactant side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format((reactantAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolAmt = 1;\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format(reactantAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Stores the final limiting moles of each product\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the product side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format((productAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format(productAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Complex DivideBy (Complex z) {\n\ndouble rz = z.Magnitude();\n\nreturn new Complex((u*z.u+v*z.v)/(rz*rz),(v*z.u-u*z.v)/(rz*rz));\n\n}", "void applyRotationMatrix() {\n for (int i = 0; i < coors.length; i++) {\n for (int j = 0; j < coors[i].length; j++) {\n newCoors[i][j] = coors[i][0] * R[j][0] + coors[i][1] * R[j][1] + coors[i][2] * R[j][2];\n }\n // add perspective\n float scale = map(Math.abs(newCoors[i][2]), 0, (float) (halfSize * Math.sqrt(3)), 1, 1.5f);\n if (newCoors[i][2] < 0) {\n scale = 2f - scale;\n }\n for (int j = 0; j < 2; j++) {\n newCoors[i][j] *= scale;\n }\n }\n // to R2\n // just dont use Z\n setPathAndAlpha();\n }", "private void estimateFlatEarthPolynomial() {\n int minLine = 0;\n int maxLine = sourceImageHeight;\n int minPixel = 0;\n int maxPixel = sourceImageWidth;\n \n Rectangle rectangle = new Rectangle();\n rectangle.setSize(maxPixel, maxLine);\n \n // int srpPolynomialDegree = 5; // for flat earth phase\n int numberOfCoefficients = numberOfCoefficients(srpPolynomialDegree);\n \n double[][] position = distributePoints(srpNumberPoints, rectangle);\n \n // setup observation and design matrix\n DoubleMatrix y = new DoubleMatrix(srpNumberPoints);\n DoubleMatrix A = new DoubleMatrix(srpNumberPoints, numberOfCoefficients);\n \n double masterMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / masterMetadata.radar_wavelength;\n double slaveMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / slaveMetadata.radar_wavelength;\n \n // Loop throu a vector or distributedPoints()\n for (int i = 0; i < srpNumberPoints; ++i) {\n \n double line = position[i][0];\n double pixel = position[i][1];\n \n // compute azimuth/range time for this pixel\n final double masterTimeRange = pix2tr(pixel, masterMetadata);\n \n // compute xyz of this point : sourceMaster\n Point3d xyzMaster = lp2xyz(line, pixel, masterMetadata, masterOrbit);\n \n final Point2d slaveTimeVector = xyz2t(xyzMaster, slaveMetadata, slaveOrbit);\n final double slaveTimeRange = slaveTimeVector.x;\n \n // observation vector\n y.put(i, (masterMinPi4divLam * masterTimeRange) - (slaveMinPi4divLam * slaveTimeRange));\n \n // set up a system of equations\n // ______Order unknowns: A00 A10 A01 A20 A11 A02 A30 A21 A12 A03 for degree=3______\n double posL = normalize(line, minLine, maxLine);\n double posP = normalize(pixel, minPixel, maxPixel);\n \n int index = 0;\n \n for (int j = 0; j <= srpPolynomialDegree; j++) {\n for (int k = 0; k <= j; k++) {\n // System.out.println(\"A[\" + i + \",\" + index + \"]: \"\n // + Math.pow(posL, (float) (j - k)) * Math.pow(posP, (float) k));\n A.put(i, index, (Math.pow(posL, (double) (j - k)) * Math.pow(posP, (double) k)));\n index++;\n }\n }\n }\n \n // Fit polynomial through computed vector of phases\n DoubleMatrix Atranspose = A.transpose();\n DoubleMatrix N = Atranspose.mmul(A);\n DoubleMatrix rhs = Atranspose.mmul(y);\n \n // TODO: validate Cholesky decomposition of JBLAS: see how it is in polyfit and reuse!\n \n // this should be the coefficient of the reference phase\n flatEarthPolyCoefs = Solve.solve(N, rhs);\n \n /*\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_Start_flat_earth\");\n System.out.println(\"*******************************************************************\");\n System.out.println(\"Degree_flat:\" + polyDegree);\n System.out.println(\"Estimated_coefficients_flatearth:\");\n int coeffLine = 0;\n int coeffPixel = 0;\n for (int i = 0; i < numberOfCoefficients; i++) {\n if (flatEarthPolyCoefs.get(i, 0) < 0.) {\n System.out.print(flatEarthPolyCoefs.get(i, 0));\n } else {\n System.out.print(\" \" + flatEarthPolyCoefs.get(i, 0));\n }\n \n System.out.print(\" \\t\" + coeffLine + \" \" + coeffPixel + \"\\n\");\n coeffLine--;\n coeffPixel++;\n if (coeffLine == -1) {\n coeffLine = coeffPixel;\n coeffPixel = 0;\n }\n }\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_End_flat_earth\");\n System.out.println(\"*******************************************************************\");\n */\n \n // TODO: test inverse : when cholesky is finished\n // // ______Test inverse______\n // for (i=0; i<Qx_hat.lines(); i++)\n // for (j=0; j<i; j++)\n // Qx_hat(j,i) = Qx_hat(i,j);// repair Qx_hat\n // const real8 maxdev = max(abs(N*Qx_hat-eye(real8(Qx_hat.lines()))));\n // INFO << \"flatearth: max(abs(N*inv(N)-I)) = \" << maxdev;\n // INFO.print();\n // if (maxdev > .01)\n // {\n // ERROR << \"Deviation too large. Decrease degree or number of points?\";\n // PRINT_ERROR(ERROR.get_str())\n // throw(some_error);\n // }\n // else if (maxdev > .001)\n // {\n // WARNING << \"Deviation quite large. Decrease degree or number of points?\";\n // WARNING.print();\n // }\n // else\n // {\n // INFO.print(\"Deviation is OK.\");\n // }\n // // ______Some other stuff, scale is ok______\n // matrix<real8> y_hat = A * rhs;\n // matrix<real8> e_hat = y - y_hat;\n }", "static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "BasicSet NextLClosure(BasicSet M,BasicSet A){\r\n\t\t//ConceptLattice cp=new ConceptLattice(context);\r\n\t\t//ApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\r\n\r\n\t\t\t\tBasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }", "public void nextSet(){\n this.fillVector();\n }", "private final void m577c() {\n this.f1236i.mo44145a().execute(new C2965g(this));\n this.f1238k = true;\n }", "private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }", "public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "public magu(maguTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 25; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "private static void computeAccurateXYZ(OrbitData data, double[] xyz, double time) {\n \n final double a = Constants.semiMajorAxis;\n final double b = Constants.semiMinorAxis;\n final double a2 = a*a;\n final double b2 = b*b;\n final double del = 0.002;\n final int maxIter = 200;\n \n Matrix X = new Matrix(3, 1);\n final Matrix F = new Matrix(3, 1);\n final Matrix J = new Matrix(3, 3);\n \n X.set(0, 0, xyz[0]);\n X.set(1, 0, xyz[1]);\n X.set(2, 0, xyz[2]);\n \n J.set(0, 0, data.xVel);\n J.set(0, 1, data.yVel);\n J.set(0, 2, data.zVel);\n \n for (int i = 0; i < maxIter; i++) {\n \n final double x = X.get(0,0);\n final double y = X.get(1,0);\n final double z = X.get(2,0);\n \n final double dx = x - data.xPos;\n final double dy = y - data.yPos;\n final double dz = z - data.zPos;\n \n F.set(0, 0, data.xVel*dx + data.yVel*dy + data.zVel*dz);\n F.set(1, 0, dx*dx + dy*dy + dz*dz - Math.pow(time*Constants.halfLightSpeed, 2.0));\n F.set(2, 0, x*x/a2 + y*y/a2 + z*z/b2 - 1);\n \n J.set(1, 0, 2.0*dx);\n J.set(1, 1, 2.0*dy);\n J.set(1, 2, 2.0*dz);\n J.set(2, 0, 2.0*x/a2);\n J.set(2, 1, 2.0*y/a2);\n J.set(2, 2, 2.0*z/b2);\n \n X = X.minus(J.inverse().times(F));\n \n if (Math.abs(F.get(0,0)) <= del && Math.abs(F.get(1,0)) <= del && Math.abs(F.get(2,0)) <= del) {\n break;\n }\n }\n \n xyz[0] = X.get(0,0);\n xyz[1] = X.get(1,0);\n xyz[2] = X.get(2,0);\n }", "public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }", "void unionTreeCoreset(int k,int n_1,int n_2,int d, Point[] setA,Point[] setB, Point[] centres, MTRandom clustererRandom) {\n\t\t//printf(\"Computing coreset...\\n\");\n\t\t//total number of points\n\t\tint n = n_1+n_2;\n\n\t\t//choose the first centre (each point has the same probability of being choosen)\n\t\t\n\t\t//stores, how many centres have been choosen yet\n\t\tint choosenPoints = 0; \n\t\t\n\t\t//only choose from the n-i points not already choosen\n\t\tint j = clustererRandom.nextInt(n-choosenPoints); \n\n\t\t//copy the choosen point\n\t\tif(j < n_1){\n\t\t\t//copyPointWithoutInit(&setA[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setA[j].clone();\n\t\t} else {\n\t\t\tj = j - n_1;\n\t\t\t//copyPointWithoutInit(&setB[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setB[j].clone();\n\t\t}\n\t\ttreeNode root = new treeNode(setA,setB,n_1,n_2, centres[choosenPoints],choosenPoints); //??\n\t\tchoosenPoints = 1;\n\t\t\n\t\t//choose the remaining points\n\t\twhile(choosenPoints < k){\n\t\t\tif(root.cost > 0.0){\n\t\t\t\ttreeNode leaf = selectNode(root, clustererRandom);\n\t\t\t\tPoint centre = chooseCentre(leaf, clustererRandom);\n\t\t\t\tsplit(leaf,centre,choosenPoints);\n\t\t\t\t//copyPointWithoutInit(centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = centre;\n\t\t\t} else {\n\t\t\t\t//create a dummy point\n\t\t\t\t//copyPointWithoutInit(root.centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = root.centre;\n\t\t\t\tint l;\n\t\t\t\tfor(l=0;l<root.centre.dimension;l++){\n\t\t\t\t\tcentres[choosenPoints].coordinates[l] = -1 * 1000000;\n\t\t\t\t}\n\t\t\t\tcentres[choosenPoints].id = -1;\n\t\t\t\tcentres[choosenPoints].weight = 0.0;\n\t\t\t\tcentres[choosenPoints].squareSum = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\tchoosenPoints++;\n\t\t}\n\n\t\t//free the tree\n\t\tfreeTree(root);\n\n\t\t//recalculate clustering features\n\t\tint i;\n\t\tfor(i=0;i<n;i++){\n\t\t\t\t\n\t\t\tif(i < n_1) {\n\t\t\t\t\n\t\t\t\tint index = setA[i].centreIndex;\n\t\t\t\tif(centres[index].id != setA[i].id){\n\t\t\t\t\tcentres[index].weight += setA[i].weight;\n\t\t\t\t\tcentres[index].squareSum += setA[i].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setA[i].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setA[i].coordinates[l];\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\n\t\t\t\tint index = setB[i-n_1].centreIndex;\n\t\t\t\tif(centres[index].id != setB[i-n_1].id){\n\t\t\t\t\tcentres[index].weight += setB[i-n_1].weight;\n\t\t\t\t\tcentres[index].squareSum += setB[i-n_1].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setB[i-n_1].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setB[i-n_1].coordinates[l];\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}", "private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }", "public void solve() throws IOException {\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n int N = nextInt();\r\n int J = nextInt();\r\n \r\n out.format(\"Case #%d:%n\", t);\r\n \r\n boolean[] bitmask = new boolean[N - 2];\r\n int count = 0;\r\n while (count < J) {\r\n BigInteger[] factors = new BigInteger[9];\r\n boolean success = true;\r\n for (int base = 2; base <= 10; base++) {\r\n BigInteger value = BigInteger.ONE;\r\n BigInteger biBase = BigInteger.valueOf(base);\r\n \r\n for (int i = 0; i < N - 2; i++) {\r\n if (bitmask[i]) {\r\n value = value.add(biBase.pow(i + 1));\r\n }\r\n }\r\n value = value.add(biBase.pow(N - 1));\r\n \r\n if (value.isProbablePrime(10)) {\r\n success = false;\r\n break;\r\n } else {\r\n // Pollard rho\r\n BigInteger x = BigInteger.valueOf(2);\r\n BigInteger y = BigInteger.valueOf(2);\r\n BigInteger d = BigInteger.ONE;\r\n while (d.compareTo(BigInteger.ONE) == 0) {\r\n x = x.pow(2).add(BigInteger.ONE).mod(value);\r\n y = y.pow(2).add(BigInteger.ONE).mod(value)\r\n .pow(2).add(BigInteger.ONE).mod(value);\r\n d = x.subtract(y).gcd(value);\r\n }\r\n if (d.compareTo(value) != 0) {\r\n factors[base - 2] = d;\r\n } else {\r\n success = false;\r\n break;\r\n }\r\n }\r\n }\r\n if (success) {\r\n count++;\r\n StringBuilder sb = new StringBuilder(\"1\");\r\n for (int i = N - 3; i >= 0; i--) {\r\n if (bitmask[i]) {\r\n sb.append(1);\r\n } else {\r\n sb.append(0);\r\n }\r\n }\r\n sb.append(1);\r\n \r\n System.out.println(sb.toString() + \" \" + count);\r\n out.print(sb.toString());\r\n for (int i = 0; i < 9; i++) {\r\n out.print(\" \");\r\n out.print(factors[i].toString());\r\n }\r\n out.println();\r\n }\r\n \r\n // Increment bitmask\r\n for (int i = 0; i < N - 2; i++) {\r\n if (!bitmask[i]) {\r\n bitmask[i] = true;\r\n break;\r\n } else {\r\n bitmask[i] = false;\r\n }\r\n }\r\n }\r\n }\r\n }", "public ArrayList<float[]> getSolutions( LockScreen problem ) {\n\t\t\n\t\tArrayList<float[]> solutions = new ArrayList<float[]>();\n\t\tint pbSize = problem._disks.size();\n\t\t\n\t\t// init all to -PI\n\t\tfor (LockDisk disk : problem._disks) {\n\t\t\tdisk.reset();\n\t\t\tdisk._rotAngle = - MathUtils.PI;\t\n\t\t}\n\t\t// Solution\n\t\tSystem.out.println( \"****** Cherche Solution pour\");\n\t\tfor (LockDisk d : problem._disks) {\n\t\t\tSystem.out.println( \"Disk \"+d._id+ \" ang=\"+d._rotAngle*MathUtils.radDeg);\n\t\t}\n\t\tboolean fgSol = evaluateSolution(problem);\n\t\tif (fgSol) {\n\t\t\tfloat[] oneSolution = new float[pbSize];\n\t\t\tfor (int i = 0; i < oneSolution.length; i++) {\n\t\t\t\toneSolution[i] = problem._disks.get(i)._rotAngle;\n\t\t\t}\n\t\t\tsolutions.add( oneSolution );\n\t\t}\n\t\t\n\t\t// increment while not finished\n\t\tboolean fgFinished = false;\n\t\twhile ( !fgFinished ) {\n\t\t\t// CHECK if SOLUTION\n\t\t\t// INCREMENT\n\t\t\tboolean fgNeedIncrement = true;\n\t\t\tLockDisk disk = problem._disks.get(problem._disks.size()-1);\n\t\t\twhile (fgNeedIncrement == true && disk != null) {\n\t\t\t\tdisk._rotAngle += ANG_INCREMENT;\n\t\t\t\n\t\t\t\t// If over PI -> will try to increment next disk\n\t\t\t\tif (disk._rotAngle >= MathUtils.PI) {\n\t\t\t\t\tdisk._rotAngle = - MathUtils.PI;\n\t\t\t\t\tdisk = disk._nextDisk;\n\t\t\t\t}\n\t\t\t\t// else ok, increment is finished\n\t\t\t\telse {\n\t\t\t\t\tfgNeedIncrement = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Finished if disk=null and still need increment\n\t\t\tif (fgNeedIncrement == true && disk == null ) {\n\t\t\t\tfgFinished = true;\n\t\t\t\tSystem.out.println(\">>>>>>> FINISHED <<<<<<\");\n\t\t\t}\n\t\t\t// else, do we have a solution\n\t\t\telse {\n\t\t\t\t// Solution\n\t\t\t\tSystem.out.println( \"****** Cherche Solution pour\");\n\t\t\t\tfor (LockDisk d : problem._disks) {\n\t\t\t\t\tSystem.out.println( \"Disk \"+d._id+ \" ang=\"+d._rotAngle*MathUtils.radDeg);\n\t\t\t\t}\n\t\t\t\tfgSol = evaluateSolution(problem);\n\t\t\t\tif (fgSol) {\n\t\t\t\t\tfloat[] oneSolution = new float[pbSize];\n\t\t\t\t\tfor (int i = 0; i < oneSolution.length; i++) {\n\t\t\t\t\t\toneSolution[i] = problem._disks.get(i)._rotAngle;\n\t\t\t\t\t}\n\t\t\t\t\tsolutions.add( oneSolution );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println( \"**** SOLUTIONS ****\");\n\t\tString solStr = \"\";\n\t\tfor (float[] fs : solutions) {\n\t\t\tsolStr += \" (\";\n\t\t\tfor (int i = 0; i < fs.length; i++) {\n\t\t\t\tsolStr += (fs[i]*MathUtils.radDeg)+\", \";\n\t\t\t}\n\t\t\tsolStr += \"),\";\n\t\t}\n\t\tSystem.out.println(solStr);\n\t\t\n\t\t\n\t\treturn solutions;\n\t}", "private primitives.Color AdaptiveDiffusedAndGlossyRec(Point3D centerP, double WidthAndHeight, double minCubeSize, Point3D pIntersection,Vector Vright,Vector Vup , Vector normal, int direction, int level , double k, double ktr, List<Point3D> prePoints) throws Exception {\r\n List<Point3D> nextCenterPList = new LinkedList<Point3D>();\r\n List<Point3D> cornersList = new LinkedList<Point3D>();\r\n List<primitives.Color> colorList = new LinkedList<primitives.Color>();\r\n Point3D tempCorner;\r\n GeoPoint gp;\r\n Ray tempRay;\r\n for (int i = -1; i <= 1; i += 2)\r\n for (int j = -1; j <= 1; j += 2) {\r\n tempCorner = centerP.add(Vright.scale(i * WidthAndHeight / 2)).add(Vup.scale(j * WidthAndHeight / 2));\r\n cornersList.add(tempCorner);\r\n if (prePoints == null || !isInList(prePoints, tempCorner)) {\r\n tempRay = new Ray(pIntersection, tempCorner.subtract(pIntersection), normal);\r\n if ((normal.dotProduct(tempRay.getDir()) < 0 && direction == 1) || (normal.dotProduct(tempRay.getDir()) > 0 && direction == -1)) {\r\n nextCenterPList.add(centerP.add(Vright.scale(i * WidthAndHeight / 4)).add(Vup.scale(j * WidthAndHeight / 4)));\r\n gp = findClosestIntersection(tempRay);\r\n if (gp == null)\r\n colorList.add(scene.background);\r\n else {\r\n colorList.add(calcColor(gp, tempRay, level - 1, k));\r\n } \r\n }\r\n \r\n }\r\n }\r\n\r\n if (nextCenterPList == null || nextCenterPList.size() == 0) {\r\n return primitives.Color.BLACK;\r\n }\r\n\r\n\r\n if (WidthAndHeight < minCubeSize * 2) {\r\n primitives.Color sumColor = primitives.Color.BLACK;\r\n for (primitives.Color color : colorList) {\r\n sumColor = sumColor.add(color);\r\n }\r\n return sumColor.reduce(colorList.size());\r\n }\r\n\r\n\r\n boolean isAllEquals = true;\r\n primitives.Color tempColor = colorList.get(0);\r\n for (primitives.Color color : colorList) {\r\n if (!tempColor.isAlmostEquals(color))\r\n isAllEquals = false;\r\n }\r\n if (isAllEquals && colorList.size() > 1)\r\n return tempColor;\r\n\r\n\r\n tempColor = primitives.Color.BLACK;\r\n for (Point3D center : nextCenterPList) {\r\n tempColor = tempColor.add(AdaptiveDiffusedAndGlossyRec(center, WidthAndHeight / 2, minCubeSize, pIntersection, Vright, Vup, normal, direction, level, k, ktr, cornersList));\r\n }\r\n return tempColor.reduce(nextCenterPList.size());\r\n }", "@Override\n public void execute() {\n for (LinearEquation e : m) {\n ComplexNumber temp = new ComplexNumber(e.getCoefficient(a));\n e.setCoefficient(a, e.getCoefficient(b));\n e.setCoefficient(b, temp);\n }\n }", "private void init() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(10, 10, 1024, 720 );\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\t/*\n\t\t * The north part of the layout contains the text fields describing the bounds of the displayed complex plane,\n\t\t *Which can be modified by th user\n\t\t */\n\t\tJPanel axisBoxPanel = new JPanel();\n\t\taxisBoxPanel.setLayout(new GridLayout(2,4));\n\t\trMinField = new JTextField(\"-2\");\n\t\trMaxField = new JTextField(\"2\");\n\t\tiMinField = new JTextField(\"-1.6\");\n\t\tiMaxField = new JTextField(\"1.6\");\n\t\taxisBoxPanel.add(rMaxField);\n\t\taxisBoxPanel.add(new JLabel(\" Max real\"));\n\t\taxisBoxPanel.add(iMaxField);\n\t\taxisBoxPanel.add(new JLabel(\" Max imaginary\"));\n\t\taxisBoxPanel.add(rMinField);\n\t\taxisBoxPanel.add(new JLabel(\" Min real\"));\n\t\taxisBoxPanel.add(iMinField);\n\t\taxisBoxPanel.add(new JLabel(\" Min imaginary\"));\n\t\t\n\t\t/*\n\t\t * The south panel contains the text field for changing the iteration number, and to display the point\n\t\t * currently selected by the user and the button to display the related julia set\n\t\t */\n\t\tJPanel southPanel = new JPanel();\n\t\tGridLayout gl = new GridLayout(1,6);\n\t\tgl.setHgap(10);\n\t\tsouthPanel.setLayout(gl);\n\t\t\n\t\titField = new JTextField(\"100\");\n\t\tJButton genButton = new JButton(\"Generate Fractal\");\n\t\tgenButton.addActionListener(new genButtonListener());\n\t\tsouthPanel.add(new JLabel(\"no. of Iterations\"));\n\t\tsouthPanel.add(itField);\n\t\t\n\t\tJLabel uPointLabel = new JLabel(\"User Selected Point\");\n\t\tuPointField = new JTextField(\"test\");\n\t\tJButton juliaButton = new JButton(\"generate julia set\");\n\t\tjuliaButton.addActionListener(new JuliaButtonListener());\n\t\t\n\t\tJButton loadJuliaButton = new JButton(\"Load Favourite Julia Fractal\");\n\t\tloadJuliaButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew LoadJuliaFrame(jSaves);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsouthPanel.add(genButton);\n\t\tsouthPanel.add(uPointLabel);\n\t\tsouthPanel.add(uPointField);\n\t\tsouthPanel.add(juliaButton);\n\t\tsouthPanel.add(loadJuliaButton);\n\n\t\t\n\t\t//This is the central element where the fractal image will appear\n\t\timgPanel = new MandPanel();\n\t\t\n\t\tcontentPane.add(imgPanel, BorderLayout.CENTER);\n\t\tcontentPane.add(axisBoxPanel, BorderLayout.NORTH);\n\t\tcontentPane.add(southPanel, BorderLayout.SOUTH);\n\t\t\n\t\tsetContentPane(contentPane);\n\t\tthis.setVisible(true);\n\t}", "private void fill() {\n\t\tseries1.clear();\n\t\tint m = 50;\n\t\tdouble tmpX, tmpZ;\n\n\t\tfor (double x=-m; x <= +m; x++) {\n\t\t\ttmpX = MathUtils.sqr(x/30);\n\t\t\tfor (double z=-m; z <= +m; z++) {\n\t\t\t\ttmpZ = MathUtils.sqr(z/30);\n\t\t\t\ttmpZ = Math.sqrt(tmpX+tmpZ);\n\t\t\t\tseries1.add(x, 4*Math.cos(3*tmpZ)*Math.exp(-0.5*tmpZ), z);\n\t\t\t}\n\t\t}\n\t }", "public void generate()\n {\n System.out.println(\"Initial allocated space for Set: Not supported\");\n// System.out.println(\"Initial allocated space for Set: \" + theMap.capacity());\n final long startTime = TimeUtils.nanoTime();\n Mnemonic m = new Mnemonic(123456789L);\n// GridPoint2 gp = new GridPoint2(0, 0);\n for (int x = -width; x < width; x++) {\n for (int y = -height; y < height; y++) {\n// for (int z = -height; z < height; z++) {\n\n// long z = (x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL);\n// z = ((z & 0x00000000ffff0000L) << 16) | ((z >>> 16) & 0x00000000ffff0000L) | (z & 0xffff00000000ffffL);\n// z = ((z & 0x0000ff000000ff00L) << 8 ) | ((z >>> 8 ) & 0x0000ff000000ff00L) | (z & 0xff0000ffff0000ffL);\n// z = ((z & 0x00f000f000f000f0L) << 4 ) | ((z >>> 4 ) & 0x00f000f000f000f0L) | (z & 0xf00ff00ff00ff00fL);\n// z = ((z & 0x0c0c0c0c0c0c0c0cL) << 2 ) | ((z >>> 2 ) & 0x0c0c0c0c0c0c0c0cL) | (z & 0xc3c3c3c3c3c3c3c3L);\n// z = ((z & 0x2222222222222222L) << 1 ) | ((z >>> 1 ) & 0x2222222222222222L) | (z & 0x9999999999999999L);\n// theMap.put(z, null); // uses 23312536 bytes of heap\n// long z = szudzik(x, y);\n// theMap.put(z, null); // uses 18331216 bytes of heap?\n// unSzudzik(pair, z);\n// theMap.put(0xC13FA9A902A6328FL * x ^ 0x91E10DA5C79E7B1DL * y, null); // uses 23312576 bytes of heap\n// theMap.put((x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL), null); // uses 28555456 bytes of heap\n theMap.add(new Vector2(x - width * 0.5f, y - height * 0.5f)); // crashes out of heap with 720 Vector2\n// gp.set(x, y);\n// theMap.add(gp.hashCode());\n// long r, s;\n// r = (x ^ 0xa0761d65L) * (y ^ 0x8ebc6af1L);\n// s = 0xa0761d65L * (z ^ 0x589965cdL);\n// r -= r >> 32;\n// s -= s >> 32;\n// r = ((r ^ s) + 0xeb44accbL) * 0xeb44acc8L;\n// theMap.add((int)(r - (r >> 32)));\n\n// theMap.add(m.toMnemonic(szudzik(x, y)));\n }\n }\n// }\n// final GridPoint2 gp = new GridPoint2(x, y);\n// final int gpHash = gp.hashCode(); // uses the updated GridPoint2 hashCode(), not the current GDX code\n// theMap.put(gp, gpHash | 0xFF000000); //value doesn't matter; this was supposed to test ObjectMap\n //theMap.put(gp, (53 * 53 + x + 53 * y) | 0xFF000000); //this is what the hashCodes would look like for the current code\n \n //final int gpHash = x * 0xC13F + y * 0x91E1; // updated hashCode()\n //// In the updated hashCode(), numbers are based on the plastic constant, which is\n //// like the golden ratio but with better properties for 2D spaces. These don't need to be prime.\n \n //final int gpHash = 53 * 53 + x + 53 * y; // equivalent to current hashCode()\n long taken = TimeUtils.timeSinceNanos(startTime);\n System.out.println(taken + \"ns taken, about 10 to the \" + Math.log10(taken) + \" power.\");\n// System.out.println(\"Post-assign allocated space for Set: \" + theMap.capacity());\n System.out.println(\"Post-assign allocated space for Set: Not supported\");\n }" ]
[ "0.67423964", "0.6371584", "0.6345986", "0.62322336", "0.6064482", "0.5909035", "0.58433324", "0.5714331", "0.56933355", "0.55134654", "0.5369383", "0.5297488", "0.5229921", "0.5185284", "0.5179287", "0.5157931", "0.5155008", "0.51493037", "0.5139861", "0.51329875", "0.51122797", "0.5111122", "0.50968647", "0.5072225", "0.5053845", "0.5001856", "0.49983597", "0.49916932", "0.49826428", "0.49567786", "0.49500805", "0.49497548", "0.49493963", "0.4944981", "0.49320036", "0.49179563", "0.49007693", "0.49005547", "0.48929605", "0.48643276", "0.48493034", "0.4835673", "0.48246658", "0.48190862", "0.48081154", "0.47781476", "0.47777498", "0.47708625", "0.47678167", "0.476698", "0.4765101", "0.47619915", "0.4761962", "0.47598112", "0.475607", "0.47477672", "0.47475374", "0.47393158", "0.47352746", "0.47253942", "0.47253022", "0.47213846", "0.4714249", "0.47077736", "0.47027698", "0.47001156", "0.46988428", "0.4697352", "0.46921265", "0.46919078", "0.4687903", "0.46836665", "0.4681177", "0.46759146", "0.46724138", "0.46674502", "0.4664821", "0.46635908", "0.46612263", "0.46563044", "0.46517193", "0.46495485", "0.4646087", "0.46448153", "0.46415457", "0.46372828", "0.4636695", "0.46352744", "0.46342403", "0.46328372", "0.46326128", "0.46246782", "0.4623", "0.46149522", "0.46147123", "0.4614513", "0.46090257", "0.46046743", "0.460057", "0.45970973" ]
0.72545993
0
This method is for the Julia Set Fractal
public int[][] FractalJulia(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { JuliaSet julia = new JuliaSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = julia.juliaset(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public void computeFractal(){\n\t\tint deltaX =p5.getX()-p1.getX();\n\t\tint deltaY =p5.getY()- p1.getY();\n\t\tint x2= p1.getX()+ (deltaX/3);\n\t\tint y2= p1.getY()+ (deltaY/3);\n\t\tdouble x3=((p1.getX()+p5.getX())/2)+( Math.sqrt(3)*\n\t\t\t\t(p1.getY()-p5.getY()))/6;\n\t\tdouble y3=((p1.getY()+p5.getY())/2)+( Math.sqrt(3)*\n\t\t\t\t(p5.getX()-p1.getX()))/6;\n\t\tint x4= p1.getX()+((2*deltaX)/3);\n\t\tint y4= p1.getY()+((2*deltaY)/3);\n\t\tthis.p2= new Point(x2,y2);\n\t\tthis.p3= new Point((int)x3,(int)y3);\n\t\tthis.p4= new Point(x4,y4);\n\t}", "public int[][] FractalMulti(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMultibrotSet multi = new MultibrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = multi.multibrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMandelbrotSet man = new MandelbrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = man.mandelbrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "public static void powerSet(ArrayList<Integer> set) {\n HashSet<ArrayList<Integer>> output = new HashSet<ArrayList<Integer>>();\n output.add(new ArrayList<Integer>());\n for(Integer a : set) {\n HashSet<ArrayList<Integer>> new_subsets = new HashSet<ArrayList<Integer>>();\n ArrayList<Integer> el_set = new ArrayList<Integer>(a);\n new_subsets.add(el_set);\n for(ArrayList<Integer> subset: output) {\n ArrayList<Integer> new_subset = new ArrayList<Integer>(subset);\n new_subset.add(a);\n new_subsets.add(new_subset);\n }\n if(new_subsets.size() > 0) {\n output.addAll(new_subsets);\n }\n }\n for(ArrayList<Integer> subset: output) {\n System.out.print(\"{\");\n for(Integer el: subset) {\n System.out.print(el + \",\");\n }\n System.out.println(\"}\");\n }\n }", "public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }", "BasicSet NextClosure(BasicSet M,BasicSet A){\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\t\t\t\t//System.out.println(\"ll11 \"+fermes);\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\t\t\t\tBasicSet b=ap.CalculYseconde(A,context);\r\n\r\n\t\t\t\t//BasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\t//System.out.println(\"b sec \"+b);\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "private void setSet(int[] set){\n this.set = set;\n }", "Set<CACell> automateNGetOuterLayerSet(CACrystal crystal, final Set<CACell> set);", "public SetOfTiles getSetOfTiles();", "public void nextSet(){\n this.fillVector();\n }", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Set<Set<Polyomino>> tilings(ArrayList<Polyomino> polyominos_list,Polyomino P, boolean use_all_once, boolean rotations, boolean reflections) {\r\n\t\t\r\n\t\tHashMap<Integer, Square> hmap_P = new HashMap<Integer, Square>();\r\n\t\tSet<Integer> X= new HashSet<Integer>();\r\n\t\tSet<Set<Integer>> C= new HashSet<Set<Integer>>();\t\r\n\t\tSet<Set<Polyomino>> tilings = new HashSet<Set<Polyomino>>();\r\n\t\t\r\n\t\tif (use_all_once) {//quick check to see if there is a tiling of P using each tile exactly once: ( sum of area(tile) ) == area(P)\r\n\t\t\tint total_area=0;\r\n\t\t\tfor (Polyomino q: polyominos_list) total_area+=q.area;\r\n\t\t\tif (!(total_area==P.area)) return tilings;\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t//index squares of P\r\n\t\tfor (int i=0; i<P.vertices.size();i++) {\r\n\t\t\thmap_P.put(i+1,P.vertices.get(i));\r\n\t\t\tX.add(i+1);\r\n\t\t}\r\n\t\tif (use_all_once) {//we add extra elements to the ground set to ensure each polyomino is used exactly once\r\n\t\t\tfor (int j=0;j<polyominos_list.size();j++) {\r\n\t\t\t\tX.add(P.vertices.size()+j+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t//we now define C\r\n\t\t//if A= set of (fixed/one-sided/free) polyominos of area n\r\n\t\t//C= union over Q in A of union of S subset of X corresponding to indices of squares of P covered by some translate of Q\r\n\t\t//to generate C, we iterate over the polyominos Q in A and we see, for each possible translation of Q,\r\n\t\t//if Q fits in P, in which case we record the indices of the squares of P it covers\r\n\t\t\r\n\t\tfor (int k=0; k<polyominos_list.size();k++) {\r\n\t\t\tPolyomino tile=polyominos_list.get(k);\r\n\t\t\t\r\n\t\t\tArrayList<Polyomino> orientations_of_tile=new ArrayList<Polyomino>();\r\n\t\t\tif (rotations && reflections) orientations_of_tile=tile.distinct_symmetries();\r\n\t\t\telse if (rotations) orientations_of_tile=tile.rotations();\r\n\t\t\telse if (reflections) orientations_of_tile=tile.reflections();\r\n\t\t\telse orientations_of_tile.add(tile);//if no rotations, the only possible orientation is the tile as it was given\r\n\t\t\r\n\t\t\tfor (Polyomino Q: orientations_of_tile) {\r\n\t\t\t\t//for each VALID translation of Q, we calculate the indices of squares of P which Q occupies, and add this to C\r\n\t\t\t\t//we choose some square of Q, which we will \"nail\" to the squares of P and see if Q fits in in P in that position\r\n\t\t\t\tSquare nail = Q.vertices.get(0);\r\n\t\t\t\tfor (Square s: P.vertices) {\r\n\t\t\t\t Set<Integer> indices_Q_translated= new HashSet<Integer>();\r\n\t\t\t\t boolean Q_fits_inP=true;\r\n\t\t\t\t\tfor (Square q: Q.vertices) {//lets check if this translation of Q fits in P\r\n\t\t\t\t\t\tSquare translated_q=new Square (q.x+s\r\n\t\t\t\t\t\t\t\t.x-nail.x,q.y+s.y-nail.y);\r\n\t\t\t\t\t\tif (!P.contains(translated_q)) {//check if square translated_q fits is in P\r\n\t\t\t\t\t\t\tQ_fits_inP=false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thmap_P.forEach((key, value) -> {//get index of square translated_q\r\n\t\t\t\t\t\t if (value.equals(translated_q)) {\r\n\t\t\t\t\t\t \tindices_Q_translated.add(key);\r\n\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (Q_fits_inP) {\r\n\t\t\t\t\t\t//we add an element which corresponds to putting a one in a dummy column in the exact cover matrix\r\n\t\t\t\t\t\tif (use_all_once) indices_Q_translated.add(k+P.vertices.size()+1); \r\n\t\t\t\t\t\tC.add(indices_Q_translated);\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//Initialization step complete, with complexity at least |polyominos_list|*4*area(P)*area(Q)*area(P)\r\n\t\t\r\n\t\tif(!(C.size()==0)) {\r\n\t\t\t\r\n\t\t\tint[][] M=Exact_cover.sets_to_matrix(X,C);\r\n\t\t\r\n\t\t\t//we add n columns (initialized to all zeros) to M where n=polyominos_list.size().\r\n\t\t\t//Each row of M corresponds to some translation of a polyomino Pk in polyominos_list-{P1,...,Pn}\r\n\t\t\t//in a such a row we place a 1 in the column k\r\n\t\t\t//any exact cover of M must then use each Pk exactly once \r\n\r\n\t\t\tDancingLinks dl = new DancingLinks(M);\r\n\t\t\tSet<Set<data_object>> exact_covers_data_objects=dl.exactCover(dl.master_header);\r\n\t\t\t\r\n\t\t\tfor (Set<data_object> cover_data_objects: exact_covers_data_objects) {\r\n\t\t\t\t\r\n\t\t\t\tSet<Set<Integer>> cover_sets=new HashSet<Set<Integer>>();\r\n\t\t\t\tfor (data_object t: cover_data_objects) cover_sets.add(dl.set_of_row.get(t.row_id));\r\n\t\t\t\t\r\n\t\t\t\tSet<Polyomino> T = new HashSet<Polyomino>();//a tiling, i.e a set of polyominos\r\n\t\t\t\t\r\n\t\t\t\tfor (Set<Integer> indices: cover_sets) {\r\n\t\t\t\t\tArrayList<Square> vertices= new ArrayList<Square>();\r\n\t\t\t\t\t//convert indices to corresponding squares of P, \r\n\t\t\t\t\t//and add the corresponding Polyomino R to T\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int index: indices) {\r\n\t\t\t\t\t\tif (index<P.vertices.size()+1) {//if not a dummy index (in the case of use_all_once polyominos)\r\n\t\t\t\t\t\t\tvertices.add(hmap_P.get(index));\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\tT.add(new Polyomino(vertices,\"R\"));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ttilings.add(T);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tilings;\r\n\t}", "public Set<Set<Integer>> calculate(Set<Integer> originalSet)\n\t{\n\t\tvalidateInputSet(originalSet);\n\n\t\tSet<Set<Integer>> sets = new HashSet<Set<Integer>>();\n\t\t//Base class returns the empty set.\n\t\tif (originalSet.isEmpty())\n\t\t{\n\t\t\tsets.add(new HashSet<Integer>());\n\t\t\treturn sets;\n\t\t}\n\t\t//Take the first element in head.\n\t\tList<Integer> list = new ArrayList<Integer>(originalSet);\n\t\tInteger head = list.get(0);\n\t\t//Generate a hash set without the first element\n\t\tSet<Integer> rest = new HashSet<Integer>(list.subList(1, list.size()));\n\t\t//Recursive call to iterate over every combination generated with the rest list.\n\t\tfor (Set<Integer> set : calculate(rest))\n\t\t{\n\t\t\t//Add every element and the head, the old set and the new set.\n\t\t\tSet<Integer> newSet = new HashSet<Integer>();\n\t\t\tnewSet.add(head);\n\t\t\tnewSet.addAll(set);\n\t\t\tsets.add(newSet);\n\t\t\tsets.add(set);\n\t\t}\n\t\treturn sets;\n\t}", "public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}", "public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tBurningShipSet burn = new BurningShipSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = burn.burningShip(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\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}\r\n\t\t\r\n\treturn fractal;\r\n\t\r\n\t\r\n}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }", "private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }", "private int m15678a(JSONArray jSONArray, Set<String> set, BitSet bitSet, int i) {\n if (jSONArray != null) {\n for (int length = jSONArray.length() - 1; length >= 0; length--) {\n try {\n Object obj = jSONArray.get(length);\n String obj2 = obj != null ? obj.toString() : null;\n if (bitSet != null) {\n if (obj2 != null) {\n if (!set.contains(obj2)) {\n set.add(obj2);\n if (set.size() == 100) {\n return length;\n }\n }\n }\n bitSet.set(length + i, true);\n } else if (obj2 != null) {\n set.add(obj2);\n }\n } catch (Throwable unused) {\n }\n }\n }\n return 0;\n }", "public static void main(String[] args)\n\t{\n\t\tMandelbrotState state = new MandelbrotState(40, 40);\n\t\tMandelbrotSetGenerator generator = new MandelbrotSetGenerator(state);\n\t\tint[][] initSet = generator.getSet();\n\n\t\t// print first set;\n\t\tSystem.out.println(generator);\n\n\t\t// change res and print sec set\n\t\tgenerator.setResolution(30, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// change rest and print third set\n\t\tgenerator.setResolution(10, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// go back to previous state and print\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// redo and print\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// try to redo when the redo stack is empty\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// do the same for more undo operations\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changeBounds edge cases\n\t\t// min is lager than max this can be visualised by flipping the current min and max values\n\t\tMandelbrotState state1 = generator.getState();\n\t\tgenerator.setBounds(state1.getMaxReal(), state1.getMinReal(), state1.getMaximaginary(), state1.getMinimaginary());\n\t\tSystem.out.println(generator);\n\t\t// when the bounds are the same value\n\t\tgenerator.setBounds(1, 1, -1, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing radius sq value\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setSqRadius(10);\n\t\t// negative radius expected zeros\n\t\tSystem.out.println(generator);\n\t\tgenerator.setSqRadius(-20);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing maxIterations to a negative number expected zeros\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setMaxIterations(-1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing reset\n\t\tSystem.out.println(\"Testing reset\");\n\t\tgenerator.reset();\n\t\tSystem.out.println(generator);\n\t\tboolean pass = true;\n\t\tfor (int j = 0; j < initSet.length; j++)\n\t\t{\n\t\t\tfor (int i = 0; i < initSet[j].length; i++)\n\t\t\t{\n\t\t\t\tif (initSet[j][i] != generator.getSet()[j][i]) pass = false;\n\t\t\t}\n\t\t}\n\t\tif (pass)\n\n\t\t\tSystem.out.println(\"pass\");\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"fail\");\n\t\t}\n\n\t\t// Testing panning by a single pixel horizontally and vertically\n\t\tgenerator.setResolution(10, 10);\n\t\tSystem.out.println(\"Before horizontal shift\");\n\t\tSystem.out.println(generator);\n\t\tSystem.out.println(\"After horizontal shift\");\n\t\tgenerator.shiftBounds(1, 0, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing incorrect changes of resolution (negative value)\n\t\tSystem.out.println(\"Testing changing resolution to negative value... This should throw an exception\");\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\ttry\n\t\t{\n\t\t\tgenerator.setResolution(-1, 3);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception thrown\");\n\t\t}\n\n\t}", "public String getFractal()\n {\n return m_Fractal;\n }", "BasicSet NextLClosure(BasicSet M,BasicSet A){\r\n\t\t//ConceptLattice cp=new ConceptLattice(context);\r\n\t\t//ApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\r\n\r\n\t\t\t\tBasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public static Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public static void main(String[] args) {\n\t\tfor(int i = 0 ; i < 5 ; i++)\n\t\t\tSystem.out.println(Arrays.toString(flavoSet(3)));\n\n\t}", "static void printPowerSet(char []set, \n int set_size) \n {\n long pow_set_size = \n (long)Math.pow(2, set_size); \n int counter, j; \n \n /*Run from counter 000..0 to \n 111..1*/\n for(counter = 0; counter < \n pow_set_size; counter++) \n { \n for(j = 0; j < set_size; j++) \n { \n /* Check if jth bit in the \n counter is set If set then \n print jth element from set */\n if((counter & (1 << j)) > 0) \n System.out.print(set[j]); \n } \n \n System.out.println(); \n } \n }", "public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "public static Set transformedSet(Set set, Transformer transformer) {\n/* 221 */ return TransformedSet.decorate(set, transformer);\n/* */ }", "private static <T> T exhaustiveHelper(FanSet fan, Edge[] e, int numSteps,\n\t\t\tExhaustiveSearchReducer<T> f, int type) {\n\t\t// if there are no more steps to do, \n\t\tif(numSteps == 0) {\n\t\t\t// create a new grid\n\t\t\tGrid grid = new Grid();\n\t\t\t// add the initial edge (the same every time to account for rotation)\n\t\t\tgrid.addInitialEdge(new Edge(new Point(0, 1, 0), new Point(1, 0, 0)));\n\t\t\t// add the initial sequence that has been given (the first is the same every time to\n\t\t\t// account for reflection)\n\t\t\tgrid.addInitialSeq(e);\n\t\t\t// run the algorithm\n\t\t\tgrid.runAlgorithm(type);\n\t\t\t// get the value for the grid and return it\n\t\t\treturn f.getValue(grid);\n\t\t}\n\t\t// get all the edges in the fan\n\t\tHashSet<Edge> temp = fan.getEdges();\n\t\tEdge[] edges = temp.toArray(new Edge[temp.size()]);\n\t\t// Assign the current value as the initial value\n\t\tT current = f.initialValue();\n\t\t// iterate over all the possible edges\n\t\tfor(int i = 0; i < edges.length; i++) {\n\t\t\t// copy the current fan\n\t\t\tFanSet g = fan.deepCopy();\n\t\t\t// divide it on that edge\n\t\t\tg.divideOnEdge(edges[i]);\n\t\t\t// add the edge to the (copied) sequence\n\t\t\tEdge[] d = Arrays.copyOf(e, e.length + 1);\n\t\t\td[e.length] = edges[i];\n\t\t\t// use the above in a recursive call and combine it with the current value\n\t\t\tcurrent = f.reduce(exhaustiveHelper(g, d,\n\t\t\t\t\tnumSteps - 1, f, type), current);\n\t\t}\n\t\t// return the final value\n\t\treturn current;\n\t}", "public void setSetpoint(double setpoint);", "public PointSET() {\n\n point2DSET = new SET<>();\n }", "public Ruteo setCovering(){\n\t\tRuteo resultado=null;\n\t\t double time1= System.currentTimeMillis();\n\t\t Integer [][]a=new Integer[Auxiliar.OBRAS.size()][listaSetCovering.size()];\n\t\t List<Double>c=new ArrayList<Double>();\n\t\t List<Double>t=new ArrayList<Double>();\n\t\t List<Obra>listObras=Auxiliar.OBRAS;\n\t\t for(int i=0;i<listaSetCovering.size();i++){\n\t\t\t c.add(listaSetCovering.get(i).costosTotales);\n\t\t\t t.add(listaSetCovering.get(i).tiempoTotal);\n\t\t }\n\t\t for(int i=0;i<Auxiliar.OBRAS.size();i++){\n\t\t\t for(int j=0;j<listaSetCovering.size();j++){\n\t\t\t\t if(listaSetCovering.get(j).estaObraEnRuta(listObras.get(i))){\n\t\t\t\t\t a[i][j]=1;\n\t\t\t\t }else{\n\t\t\t\t\t a[i][j]=0;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t List<Integer>respuesta=new ArrayList<Integer>();\n\t\tif(fo==FO1){\n\t\t\tSetCovering sc=new SetCovering();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\t\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tobjval=sc.fo;\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO2){\n\t\t\tSetCovering2 sc=new SetCovering2();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO3){\n\t\t\tSetCovering3 sc=new SetCovering3();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO4){\n\t\t\tSetCovering4 sc=new SetCovering4();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}\n\t\t double time2= System.currentTimeMillis();\n\t\t tiempoComputacionalSetCovering=(time2-time1)/1000.0;\n\t\t return resultado;\n\t}", "@Override\n \tpublic void globe(int M, int N) {\n\t\tvertices = new double[][] { { 1, 1, 1, 0, 0, 1 },\n\t\t\t\t{ 1, -1, 1, 0, 0, 1 }, { -1, -1, 1, 0, 0, 1 },\n\t\t\t\t{ -1, 1, 1, 0, 0, 1 }, { 1, 1, -1, 0, 0, -1 },\n\t\t\t\t{ 1, -1, -1, 0, 0, -1 }, { -1, -1, -1, 0, 0, -1 },\n\t\t\t\t{ -1, 1, -1, 0, 0, -1 }, { 1, 1, 1, 1, 0, 0 },\n\t\t\t\t{ 1, -1, 1, 1, 0, 0 }, { 1, -1, -1, 1, 0, 0 },\n\t\t\t\t{ 1, 1, -1, 1, 0, 0 }, { -1, 1, 1, -1, 0, 0 },\n\t\t\t\t{ -1, -1, 1, -1, 0, 0 }, { -1, -1, -1, -1, 0, 0 },\n\t\t\t\t{ -1, 1, -1, -1, 0, 0 }, { 1, 1, 1, 0, 1, 0 },\n\t\t\t\t{ -1, 1, 1, 0, 1, 0 }, { -1, 1, -1, 0, 1, 0 },\n\t\t\t\t{ 1, 1, -1, 0, 1, 0 }, { 1, -1, 1, 0, -1, 0 },\n\t\t\t\t{ -1, -1, 1, 0, -1, 0 }, { -1, -1, -1, 0, -1, 0 },\n\t\t\t\t{ 1, -1, -1, 0, -1, 0 }, };\n \t\tfaces = new int[6][4];\n \t\tfor (int i = 0; i < faces.length; i++) {\n \t\t\tfaces[i] = new int[] { i * 4, i * 4 + 1, i * 4 + 2, i * 4 + 3 };\n \t\t}\n \n \t\tthis.m.identity();\n \t}", "public void setFactor(int f) { this.factor = f; }", "public void setLabResults(Set<Cdss4NsarLabor> patLabor);", "public void setF(){\n\t\tf=calculateF();\n\t}", "public int getSet() {\n return set;\n }", "public PointSET() {\n points = new SET<Point2D>();\n }", "protected abstract void useOutput(float output, float setpoint);", "public FractalTrace setFractal(String value)\n {\n\t\n m_Fractal = value;\n setProperty(\"fractal\", value);\n return this;\n }", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public void leerPlanesDietas();", "public Set(){\n setSet(new int[0]);\n }", "public SetSet() {\n\t}", "protected abstract void setShapes();", "private void getCombination(Set<Integer> set, int n, int r)\n {\n // A temporary array to store all combination\n // one by one\n int data[] = new int[r];\n\n // Print all combination using temprary\n // array 'data[]\n Integer[] setArray = new Integer[set.size()];\n set.toArray(setArray);\n\n combinationUtil(setArray, n, r, 0, data, 0);\n //System.out.println();\n }", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "private static void initBaseSet() {\r\n KEYS.add(\"0\");\r\n SET.put(\"0\", new Module(new int[]{1, 1, 1, 2, 2, 1, 2, 1, 1}));\r\n KEYS.add(\"1\");\r\n SET.put(\"1\", new Module(new int[]{2, 1, 1, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"2\");\r\n SET.put(\"2\", new Module(new int[]{1, 1, 2, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"3\");\r\n SET.put(\"3\", new Module(new int[]{2, 1, 2, 2, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"4\");\r\n SET.put(\"4\", new Module(new int[]{1, 1, 1, 2, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"5\");\r\n SET.put(\"5\", new Module(new int[]{2, 1, 1, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"6\");\r\n SET.put(\"6\", new Module(new int[]{1, 1, 2, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"7\");\r\n SET.put(\"7\", new Module(new int[]{1, 1, 1, 2, 1, 1, 2, 1, 2}));\r\n KEYS.add(\"8\");\r\n SET.put(\"8\", new Module(new int[]{2, 1, 1, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"9\");\r\n SET.put(\"9\", new Module(new int[]{1, 1, 2, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"A\");\r\n SET.put(\"A\", new Module(new int[]{2, 1, 1, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"B\");\r\n SET.put(\"B\", new Module(new int[]{1, 1, 2, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"C\");\r\n SET.put(\"C\", new Module(new int[]{2, 1, 2, 1, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"D\");\r\n SET.put(\"D\", new Module(new int[]{1, 1, 1, 1, 2, 2, 1, 1, 2}));\r\n KEYS.add(\"E\");\r\n SET.put(\"E\", new Module(new int[]{2, 1, 1, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"F\");\r\n SET.put(\"F\", new Module(new int[]{1, 1, 2, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"G\");\r\n SET.put(\"G\", new Module(new int[]{1, 1, 1, 1, 1, 2, 2, 1, 2}));\r\n KEYS.add(\"H\");\r\n SET.put(\"H\", new Module(new int[]{2, 1, 1, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"I\");\r\n SET.put(\"I\", new Module(new int[]{1, 1, 2, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"J\");\r\n SET.put(\"J\", new Module(new int[]{1, 1, 1, 1, 2, 2, 2, 1, 1}));\r\n KEYS.add(\"K\");\r\n SET.put(\"K\", new Module(new int[]{2, 1, 1, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"L\");\r\n SET.put(\"L\", new Module(new int[]{1, 1, 2, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"M\");\r\n SET.put(\"M\", new Module(new int[]{2, 1, 2, 1, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"N\");\r\n SET.put(\"N\", new Module(new int[]{1, 1, 1, 1, 2, 1, 1, 2, 2}));\r\n KEYS.add(\"O\");\r\n SET.put(\"O\", new Module(new int[]{2, 1, 1, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"P\");\r\n SET.put(\"P\", new Module(new int[]{1, 1, 2, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"Q\");\r\n SET.put(\"Q\", new Module(new int[]{1, 1, 1, 1, 1, 1, 2, 2, 2}));\r\n KEYS.add(\"R\");\r\n SET.put(\"R\", new Module(new int[]{2, 1, 1, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"S\");\r\n SET.put(\"S\", new Module(new int[]{1, 1, 2, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"T\");\r\n SET.put(\"T\", new Module(new int[]{1, 1, 1, 1, 2, 1, 2, 2, 1}));\r\n KEYS.add(\"U\");\r\n SET.put(\"U\", new Module(new int[]{2, 2, 1, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"V\");\r\n SET.put(\"V\", new Module(new int[]{1, 2, 2, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"W\");\r\n SET.put(\"W\", new Module(new int[]{2, 2, 2, 1, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"X\");\r\n SET.put(\"X\", new Module(new int[]{1, 2, 1, 1, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"Y\");\r\n SET.put(\"Y\", new Module(new int[]{2, 2, 1, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"Z\");\r\n SET.put(\"Z\", new Module(new int[]{1, 2, 2, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"-\");\r\n SET.put(\"-\", new Module(new int[]{1, 2, 1, 1, 1, 1, 2, 1, 2}));\r\n KEYS.add(\".\");\r\n SET.put(\".\", new Module(new int[]{2, 2, 1, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\" \");\r\n SET.put(\" \", new Module(new int[]{1, 2, 2, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"$\");\r\n SET.put(\"$\", new Module(new int[]{1, 2, 1, 2, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"/\");\r\n SET.put(\"/\", new Module(new int[]{1, 2, 1, 2, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"+\");\r\n SET.put(\"+\", new Module(new int[]{1, 2, 1, 1, 1, 2, 1, 2, 1}));\r\n KEYS.add(\"%\");\r\n SET.put(\"%\", new Module(new int[]{1, 1, 1, 2, 1, 2, 1, 2, 1}));\r\n }", "boolean getSet();", "default DiscreteSet2D levelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d == value);\r\n\t}", "public abstract void set( int i, int j, double value ) throws JWaveException;", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tArrayOfFraction arr1= new ArrayOfFraction();\r\n\t\tarr1.add(new Fraction(3,1));\r\n\t\tarr1.add(new Fraction(4,2));\r\n\t\tarr1.add(new Fraction(5,3));\r\n\t\tarr1.add(new Fraction(6,7));\r\n\t\t\r\n\t\tfor(int i=0;i<arr1.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(arr1.a[i].divide());\r\n\t\t}\r\n//\t\tFraction fr1 = new Fraction();\r\n//\t\tfr1.input();\r\n//\t\tarr1.add(fr1);\r\n//\t\t\r\n//\t\tFraction fr2 = new Fraction();\r\n//\t\tfr2.input();\r\n//\t\tarr1.add(fr2);\r\n//\t\t\r\n//\t\tFraction fr3 = new Fraction();\r\n//\t\tfr3.input();\r\n//\t\tarr1.add(fr3);\r\n//\t\t\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tSystem.out.println(\"get ra gia tri index: \"+arr1.get(0));\r\n\r\n//\t\tFraction fr4 = new Fraction();\r\n//\t\tfr4.input();\r\n//\t\tarr1.set(2,fr4 );\r\n//\t\tarr1.output();\r\n//\t\t\r\n//\t\t\r\n//\t\tFraction fr5 = new Fraction();\r\n//\t\tfr5.input();\r\n//\t\tarr1.add(1, fr5);\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tarr1.remove(2);\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tFraction fr6 = new Fraction();\r\n//\t\tfr6.input();\r\n//\t\tSystem.out.println(arr1.indexOf(fr6));\r\n\t\t\r\n//\t\tFraction fr7 = new Fraction();\r\n//\t\tfr7.input();\r\n//\t\tSystem.out.println(arr1.indexOf(r7));\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(arr1.toString());\r\n\t\t\r\n\t}", "protected abstract void setFaces();", "public PointSET() {\n pointSet = new SET<Point2D>();\n }", "@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}", "private static void iterative(String[] set, int n) {\n if(set == null || n <= 0) {\n return;\n }\n \n // number of power sets is 2 ^ n\n long powerSetSize = (long)Math.pow(2, n); // or 1<<n\n \n \n // Run a loop for printing all 2^n subsets\n for(int i = 0; i < powerSetSize; i++) {\n System.out.print(\"\\\"\");\n \n for(int j = 0; j < n; j++) {\n /* \n * Don't understand!\n * \n * Check if jth bit in the counter i is set.\n * If set then print jth element from set \n */\n // (1<<j) is a number with jth bit 1\n // so when we 'and' them with the\n // subset number we get which numbers\n // are present in the subset and which\n // are not\n if((i & (1 << j)) > 0) {\n System.out.print(set[j]);\n }\n }\n System.out.print(\"\\\"\");\n \n System.out.println();\n }\n }", "void mo30185a(HashSet<zzawj> hashSet);", "public FractalMapImpl() {\n this.shift = 0;\n }", "private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }", "public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }", "private void setHoleUNr(Hole hole, Set<Hole> holeSet){\n for (Hole uniqueHole:holeSet) {\n if (hole.equals(uniqueHole)) {\n hole.setUNr(uniqueHole.getUNr());\n return;\n }\n }\n }", "@Override\n public List<Vertex> solution(){\n return solution;\n }", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "public static void main(String[] args) {\n //read the N set from a file\n In in = new In(args[0]);\n int N = in.readInt();\n //StdOut.println(\"N = \" + N);\n Point[] set = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n set[i] = new Point(x, y);\n } \n\n // draw the set\n StdDraw.show(0);\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n //set[0].drawTo(set[1]);\n for (Point p : set) {\n p.draw();\n } \n\n // print and draw the line nSegments\n BruteCollinearPoints collinear = new BruteCollinearPoints(set);\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n segment.draw();\n } \n \n }", "private Complex convertNodeSetToComplex(NodeSet nodeSet) {\n\t\tArrayList<Integer> ids = new ArrayList<Integer>(nodeSet.size());\n\t\tGraph graph = nodeSet.getGraph();\n\t\t\n\t\tfor (int node: nodeSet) {\n\t\t\tids.add(Integer.parseInt(graph.getNodeName(node)));\n\t\t}\n\t\t\n\t\treturn new Complex(ids);\n\t}", "public void testEdgesSet_0args() {\n System.out.println(\"edgesSet\");\n\n Set<Edge<Integer>> set = generateGraph().edgesSet();\n\n Assert.assertEquals(set.size(), 313);\n for (Edge<Integer> edge : set) {\n int sum = edge.getSourceVertex().intValue() + edge.getTargetVertex().intValue();\n Assert.assertTrue(sum % 2 == 0);\n }\n }", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "public float getSetpoint() {\r\n return m_setpoint;\r\n }", "Set createSet();", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "public interface DefaultFractalModel extends RenderingModel {\n\n void setPlaneSegmentFromCenter(double centerX, double centerY, double zoom);\n\n void setFractalCustomParams(String text);\n\n String getFractalCustomParams();\n}", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "void GetAllSuccLeafProduct(HashSet plstSuccPro);", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "@Override\n\tprotected final int getNumSpiralTransforms() { return 2;}", "private native void setflat(float flat, int i_hdl);", "@Test public void setAllPoints()\n\t{\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(0, 0),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 4, 4);\n\t\t}\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(4, 4),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 0, 0);\n\t\t}\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(-4, -4),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 8, 8);\n\t\t}\n\t}", "public void replaceBy(Set set, boolean removeSelf) {\n if (TRACE_INTRA) out.println(\"Replacing \"+this+\" with \"+set+(removeSelf?\", and removing self\":\"\"));\n if (set.contains(this)) {\n if (TRACE_INTRA) out.println(\"Replacing a node with itself, turning off remove self.\");\n set.remove(this);\n if (set.isEmpty()) {\n if (TRACE_INTRA) out.println(\"Replacing a node with only itself! Nothing to do.\");\n return;\n }\n removeSelf = false;\n }\n if (VERIFY_ASSERTIONS) Assert._assert(!set.contains(this));\n if (this.predecessors != null) {\n for (Iterator i=this.predecessors.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (TRACE_INTRA) out.println(\"Looking at predecessor on field \"+f+\": \"+o);\n if (o == null) continue;\n if (o instanceof Node) {\n Node that = (Node)o;\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (removeSelf)\n that._removeEdge(f, this);\n if (that == this) {\n // add self-cycles on f to all nodes in set.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k = (Node)j.next();\n k.addEdge(f, k);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf) {\n k.remove();\n that._removeEdge(f, this);\n }\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (that == this) {\n // add self-cycles on f to all mapped nodes.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k2 = (Node)j.next();\n k2.addEdge(f, k2);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n }\n }\n }\n }\n if (this.addedEdges != null) {\n for (Iterator i=this.addedEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at successor on field \"+f+\": \"+o);\n if (o instanceof Node) {\n Node that = (Node)o;\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n }\n }\n }\n }\n if (this.accessPathEdges != null) {\n for (Iterator i=this.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at access path successor on field \"+f+\": \"+o);\n if (o instanceof FieldNode) {\n FieldNode that = (FieldNode)o;\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf) {\n that.field_predecessors.remove(this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from access path predecessor set of \"+that);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n if (TRACE_INTRA) out.println(\"Adding access path edge \"+node2+\"->\"+that);\n node2.addAccessPathEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n FieldNode that = (FieldNode)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf)\n that.field_predecessors.remove(this);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addAccessPathEdge(f, that);\n }\n }\n }\n }\n }\n if (this.passedParameters != null) {\n if (TRACE_INTRA) out.println(\"Node \"+this+\" is passed as parameters: \"+this.passedParameters+\", adding those parameters to \"+set);\n for (Iterator i=this.passedParameters.iterator(); i.hasNext(); ) {\n PassedParameter pp = (PassedParameter)i.next();\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n ((Node)j.next()).recordPassedParameter(pp);\n }\n }\n }\n }", "public abstract Vector4fc set(float d);", "private void setCoord(float[] fs, int i, float[] p)\n // copy the 3 floats in p[] into fs starting at i\n {\n fs[i] = p[0];\n fs[i + 1] = p[1];\n fs[i + 2] = p[2];\n }", "public void set(float x, float y, float z);", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList1 =arrListHazirla(30, 0, 10);//1.adım method call\n System.out.println(\"arrayList1 = \" + arrayList1);//2.adım\n\n System.out.println(\"*********************************\");\n //3.adım\n ArrayList<Integer> arrayList2 = new ArrayList<>(Arrays.asList(10, 20, 30, 30, 30, 40, 40, 40, 50, 50, 50, 60, 70, 80, 90, 10));\n\n System.out.println(\"arrayList2 = \" + arrayList2);\n\n System.out.println(\"tekrarlananlar silinmiş hali\" + tekrarlariSil(arrayList2));//4.adım\n\n System.out.println(\"*********************************\");\n\n Set<Integer> set = SeteCevir(arrayList1);//5.adım method call\n\n System.out.println(\"set = \" + set);\n\n\n System.out.println(\"*********************************\");\n\n System.out.println(\"list = \" + ListeCevir(set));//6.adım method call\n }", "private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}", "public InbreedingCoeff(){\n super((Set<String>) null);\n }", "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "public abstract String getSetSpec();", "void setFractions(Set<String> fractions);", "public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }", "public VectorSet getMappedData() {\n\t\tMap<double[], ClassDescriptor> newData = new HashMap<double[], ClassDescriptor>();\n\t\tMap<double[], ClassDescriptor> data = orig.getData();\n\t\t\n\t\t// y = A x\n\t\tfor(double[] x: data.keySet()) {\n\t\t\tnewData.put(mapVector(x), data.get(x));\n\t\t}\n\n\t\tString[] labels = new String[resultDimension];\n\t\tfor(int i = 0; i < resultDimension; i++) {\n\t\t\tlabels[i] = Integer.toString(i + 1);\n\t\t}\n\n\t\treturn new VectorSet(newData, labels);\n\t}", "public void setZ(float f)\n {\n fz = f;\n setMagnitude();\n }", "@SuppressWarnings(\"unchecked\")\n private void doShow(final int width, final ShapeSet wirezShapeSet, final Object definitionSet) {\n\n // Clear current palette groups.\n view.clearGroups();\n\n final Collection<String> definitions = definitionManager.getDefinitionSetAdapter( definitionSet.getClass() ).getDefinitions( definitionSet );\n\n if ( null != definitions ) {\n\n final Map<String, List<PaletteGroupItem<Group>>> paletteGroupItems = new HashMap<>();\n\n for( final String defId : definitions ) {\n\n final ShapeFactory<?, ?, ? extends Shape> factory = shapeManager.getFactory( defId );\n \n if ( null != factory ) {\n\n // TODO: Avoid creating objects here.\n final Object definition = clientFactoryServices.newDomainObject( defId );\n \n final DefinitionAdapter definitionAdapter = definitionManager.getDefinitionAdapter( definition.getClass() );\n final String category = definitionAdapter.getCategory( definition );\n final String description = factory.getDescription( defId );\n final ShapeGlyph<Group> glyph = factory.glyph( defId, 50, 50 );\n\n // Shapes not considered to be on the palette.\n if ( null == glyph ) {\n continue;\n }\n \n List<PaletteGroupItem<Group>> items = paletteGroupItems.get(category);\n if ( null == items ) {\n items = new LinkedList<>();\n paletteGroupItems.put(category, items);\n }\n\n PaletteGroupItem paletteGroupItem = PaletteGroup.buildItem(glyph, description,\n new PaletteGroupItem.Handler() {\n\n @Override\n public void onFocus(double x, double y) {\n paletteTooltip.show(glyph,description, width + 5, y - 50);\n }\n\n @Override\n public void onLostFocus() {\n paletteTooltip.hide();\n }\n\n /**\n * Add the shape into the canvas diagram when mouse click at a fixed position.\n * Disabled for now.\n */\n @Override\n public void onClick() {\n // TODO: Disabled adding shape on just click. It should be added inside the BPMNDiagram by default.\n // log(Level.FINE, \"Palette: Adding \" + description);\n // addShapeToCanvasEvent.fire(new AddShapeToCanvasEvent(definition, factory));\n }\n\n /**\n * Add the shape into the canvas diagram using drag features. \n * Drag proxy and final position into the canvas is given by the glyph drag handler implementation.\n */\n @Override\n public void onDragStart(final LienzoPanel parentPanel, final double x, final double y) {\n\n shapeGlyphDragHandler.show(parentPanel, glyph, x, y, new ShapeGlyphDragHandler.Callback<LienzoPanel>() {\n @Override\n public void onMove(final LienzoPanel floatingPanel, final double x, final double y) {\n\n }\n\n @Override\n public void onComplete(final LienzoPanel floatingPanel, final double x, final double y) {\n if ( null != callback ) {\n log(Level.FINE, \"Palette: Adding \" + description + \" at \" + x + \",\" + y);\n callback.onAddShape( definition, factory, x, y );\n }\n }\n });\n\n }\n });\n\n items.add(paletteGroupItem);\n\n }\n \n }\n\n // Show palette groups.\n if (!paletteGroupItems.isEmpty()) {\n\n int x = 0;\n final Set<Map.Entry<String, List<PaletteGroupItem<Group>>>> entries = paletteGroupItems.entrySet();\n for (final Map.Entry<String, List<PaletteGroupItem<Group>>> entry : entries) {\n final String category = entry.getKey();\n final List<PaletteGroupItem<Group>> items = entry.getValue();\n\n PaletteGroup paletteGroup = buildPaletteGroup();\n paletteGroup.show(category, x == 0, width, items);\n view.addGroup(paletteGroup);\n x++;\n }\n \n }\n \n }\n \n }", "public static ArrayList<ArrayList<Furniture>> getSubsets(ArrayList<Furniture> set) {\n ArrayList<ArrayList<Furniture>> allsubsets = new ArrayList<ArrayList<Furniture>>();\n // amount of subsets is 2^(set size)\n int max = 1 << set.size();\n\n for (int i = 0; i < max; i++) {\n ArrayList<Furniture> subset = new ArrayList<Furniture>();\n for (int j = 0; j < set.size(); j++) {\n if (((i >> j) & 1) == 1) {\n subset.add(set.get(j));\n }\n }\n allsubsets.add(subset);\n }\n return allsubsets;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }", "public abstract Vector4fc set(float x, float y, float z, float w);", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }" ]
[ "0.6013339", "0.5914425", "0.5750162", "0.5702223", "0.56645954", "0.55140394", "0.53723735", "0.53624415", "0.533266", "0.5319593", "0.5304892", "0.52828026", "0.52025884", "0.52016026", "0.51894176", "0.5180206", "0.5164546", "0.5155662", "0.51415545", "0.5132078", "0.5069889", "0.5062922", "0.5062816", "0.5046745", "0.5035567", "0.50097376", "0.4991193", "0.49901685", "0.49885392", "0.49842912", "0.49839413", "0.49685302", "0.4967903", "0.49629512", "0.49525195", "0.49447381", "0.49441895", "0.49413925", "0.49408278", "0.49397892", "0.4934905", "0.49347612", "0.49340597", "0.4931994", "0.49313274", "0.49276042", "0.49246952", "0.49239674", "0.4923062", "0.49184564", "0.4916948", "0.49168047", "0.49160087", "0.49058118", "0.4902429", "0.49004462", "0.48971146", "0.48891625", "0.48829585", "0.4877608", "0.48684418", "0.48636737", "0.48617828", "0.48559943", "0.4853844", "0.48522228", "0.4850187", "0.484467", "0.4843325", "0.48397017", "0.4839235", "0.48370767", "0.48331448", "0.48311472", "0.48267302", "0.48236924", "0.48236477", "0.48233178", "0.4822841", "0.4822547", "0.48190597", "0.4817782", "0.48168814", "0.48168778", "0.48039076", "0.47903848", "0.4787907", "0.47787952", "0.4775856", "0.47746176", "0.47708675", "0.47629535", "0.47564745", "0.47535583", "0.47496274", "0.4746585", "0.4744045", "0.47427514", "0.4741269", "0.4729447" ]
0.6458627
0
This method is for the Multibrot Set Fractal
public int[][] FractalMulti(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { MultibrotSet multi = new MultibrotSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = multi.multibrot(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMandelbrotSet man = new MandelbrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = man.mandelbrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "public int[][] FractalJulia(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tJuliaSet julia = new JuliaSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = julia.juliaset(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "public void computeFractal(){\n\t\tint deltaX =p5.getX()-p1.getX();\n\t\tint deltaY =p5.getY()- p1.getY();\n\t\tint x2= p1.getX()+ (deltaX/3);\n\t\tint y2= p1.getY()+ (deltaY/3);\n\t\tdouble x3=((p1.getX()+p5.getX())/2)+( Math.sqrt(3)*\n\t\t\t\t(p1.getY()-p5.getY()))/6;\n\t\tdouble y3=((p1.getY()+p5.getY())/2)+( Math.sqrt(3)*\n\t\t\t\t(p5.getX()-p1.getX()))/6;\n\t\tint x4= p1.getX()+((2*deltaX)/3);\n\t\tint y4= p1.getY()+((2*deltaY)/3);\n\t\tthis.p2= new Point(x2,y2);\n\t\tthis.p3= new Point((int)x3,(int)y3);\n\t\tthis.p4= new Point(x4,y4);\n\t}", "public static void main(String[] args)\n\t{\n\t\tMandelbrotState state = new MandelbrotState(40, 40);\n\t\tMandelbrotSetGenerator generator = new MandelbrotSetGenerator(state);\n\t\tint[][] initSet = generator.getSet();\n\n\t\t// print first set;\n\t\tSystem.out.println(generator);\n\n\t\t// change res and print sec set\n\t\tgenerator.setResolution(30, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// change rest and print third set\n\t\tgenerator.setResolution(10, 30);\n\t\tSystem.out.println(generator);\n\n\t\t// go back to previous state and print\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// redo and print\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// try to redo when the redo stack is empty\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tgenerator.redoState();\n\t\tSystem.out.println(generator);\n\n\t\t// do the same for more undo operations\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changeBounds edge cases\n\t\t// min is lager than max this can be visualised by flipping the current min and max values\n\t\tMandelbrotState state1 = generator.getState();\n\t\tgenerator.setBounds(state1.getMaxReal(), state1.getMinReal(), state1.getMaximaginary(), state1.getMinimaginary());\n\t\tSystem.out.println(generator);\n\t\t// when the bounds are the same value\n\t\tgenerator.setBounds(1, 1, -1, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing radius sq value\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setSqRadius(10);\n\t\t// negative radius expected zeros\n\t\tSystem.out.println(generator);\n\t\tgenerator.setSqRadius(-20);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing changing maxIterations to a negative number expected zeros\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\tgenerator.setMaxIterations(-1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing reset\n\t\tSystem.out.println(\"Testing reset\");\n\t\tgenerator.reset();\n\t\tSystem.out.println(generator);\n\t\tboolean pass = true;\n\t\tfor (int j = 0; j < initSet.length; j++)\n\t\t{\n\t\t\tfor (int i = 0; i < initSet[j].length; i++)\n\t\t\t{\n\t\t\t\tif (initSet[j][i] != generator.getSet()[j][i]) pass = false;\n\t\t\t}\n\t\t}\n\t\tif (pass)\n\n\t\t\tSystem.out.println(\"pass\");\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"fail\");\n\t\t}\n\n\t\t// Testing panning by a single pixel horizontally and vertically\n\t\tgenerator.setResolution(10, 10);\n\t\tSystem.out.println(\"Before horizontal shift\");\n\t\tSystem.out.println(generator);\n\t\tSystem.out.println(\"After horizontal shift\");\n\t\tgenerator.shiftBounds(1, 0, 1);\n\t\tSystem.out.println(generator);\n\n\t\t// Testing incorrect changes of resolution (negative value)\n\t\tSystem.out.println(\"Testing changing resolution to negative value... This should throw an exception\");\n\t\tgenerator.undoState();\n\t\tgenerator.undoState();\n\t\ttry\n\t\t{\n\t\t\tgenerator.setResolution(-1, 3);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception thrown\");\n\t\t}\n\n\t}", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void redimensionar() {\n\t\tthis.numCub *= 1.5;\n\t}", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "private void mul() {\n\n\t}", "BasicSet NextClosure(BasicSet M,BasicSet A){\r\n\t\tConceptLattice cp=new ConceptLattice(context);\r\n\t\tApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\t\t\t\t//System.out.println(\"ll11 \"+fermes);\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\t\t\t\tBasicSet b=ap.CalculYseconde(A,context);\r\n\r\n\t\t\t\t//BasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\t//System.out.println(\"b sec \"+b);\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "public void createMandelbrot(int steps) {\r\n if (initialValue == null) {\r\n System.out.println(\"Initial value for Mandelbrot set undefined\");\r\n return;\r\n }\r\n if (colors.size() < 2) {\r\n System.out.println(\"At least two colors are needed to calculate Mandelbrot set value color\");\r\n return;\r\n }\r\n \r\n // Creating BufferedImage to store calculated image\r\n BufferedImage ncanvas = new BufferedImage(dimensions.width, dimensions.height, BufferedImage.TYPE_INT_ARGB);\r\n \r\n // Calculating steps in imaginary window to check\r\n double stepx = window.getWidth() / (double)dimensions.width;\r\n double stepy = window.getHeight() / (double)dimensions.height;\r\n \r\n // Evaluating each pixel in image\r\n for (int y = 0; y < dimensions.height; y++) {\r\n for (int x = 0; x < dimensions.width; x++) {\r\n // Calculating 'c' (xx + yyi) to check in Mandelbrot set:\r\n // Z(0) = 'initialValue'\r\n // Z(n+1) = Z(n)^2 + c \r\n double xx = (double)x * stepx + window.getXMin();\r\n double yy = (double)y * stepy + window.getYMin();\r\n \r\n // Evaluating steps to determine if value xx+yyi allows to Mandelbrot set\r\n int s = IFCMath.isMandelbrot(initialValue, new Complex(xx, yy), steps);\r\n \r\n // Evaluating color for this value\r\n ncanvas.setRGB(x, y, s == steps ? mandelbrotColor.getRGB() : getColor(colors, s, steps).getRGB());\r\n }\r\n }\r\n \r\n // Adding produced image to array\r\n canvas.add(ncanvas);\r\n }", "@Override\n \tpublic void globe(int M, int N) {\n\t\tvertices = new double[][] { { 1, 1, 1, 0, 0, 1 },\n\t\t\t\t{ 1, -1, 1, 0, 0, 1 }, { -1, -1, 1, 0, 0, 1 },\n\t\t\t\t{ -1, 1, 1, 0, 0, 1 }, { 1, 1, -1, 0, 0, -1 },\n\t\t\t\t{ 1, -1, -1, 0, 0, -1 }, { -1, -1, -1, 0, 0, -1 },\n\t\t\t\t{ -1, 1, -1, 0, 0, -1 }, { 1, 1, 1, 1, 0, 0 },\n\t\t\t\t{ 1, -1, 1, 1, 0, 0 }, { 1, -1, -1, 1, 0, 0 },\n\t\t\t\t{ 1, 1, -1, 1, 0, 0 }, { -1, 1, 1, -1, 0, 0 },\n\t\t\t\t{ -1, -1, 1, -1, 0, 0 }, { -1, -1, -1, -1, 0, 0 },\n\t\t\t\t{ -1, 1, -1, -1, 0, 0 }, { 1, 1, 1, 0, 1, 0 },\n\t\t\t\t{ -1, 1, 1, 0, 1, 0 }, { -1, 1, -1, 0, 1, 0 },\n\t\t\t\t{ 1, 1, -1, 0, 1, 0 }, { 1, -1, 1, 0, -1, 0 },\n\t\t\t\t{ -1, -1, 1, 0, -1, 0 }, { -1, -1, -1, 0, -1, 0 },\n\t\t\t\t{ 1, -1, -1, 0, -1, 0 }, };\n \t\tfaces = new int[6][4];\n \t\tfor (int i = 0; i < faces.length; i++) {\n \t\t\tfaces[i] = new int[] { i * 4, i * 4 + 1, i * 4 + 2, i * 4 + 3 };\n \t\t}\n \n \t\tthis.m.identity();\n \t}", "private void updateImage() {\r\n \tfor(int i=0;i<rows;i++){\r\n for(int j=0;j<cols;j++){\r\n if(complexArray[i][j].escapeTime(RADIUS, maxIterations)!=-1){//the complex escaped\r\n mandelbrotColor[i][j]=new RGBColor(palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)]);\r\n }\r\n else{\r\n mandelbrotColor[i][j]=palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)+1];//the complex didnt escaped\r\n }\r\n }\r\n }\r\n }", "private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "@Override\r\n\t\tpublic int cube() {\n\t\t\treturn width*width*width;\r\n\t\t}", "public float setaMulta(int tempo){\n float multa_aux = valor_multa;\n for(int clk = 0; clk < tempo; clk++){\n multa_aux *= 1.1;\n }\n return multa_aux;\n }", "public static void powerSet(ArrayList<Integer> set) {\n HashSet<ArrayList<Integer>> output = new HashSet<ArrayList<Integer>>();\n output.add(new ArrayList<Integer>());\n for(Integer a : set) {\n HashSet<ArrayList<Integer>> new_subsets = new HashSet<ArrayList<Integer>>();\n ArrayList<Integer> el_set = new ArrayList<Integer>(a);\n new_subsets.add(el_set);\n for(ArrayList<Integer> subset: output) {\n ArrayList<Integer> new_subset = new ArrayList<Integer>(subset);\n new_subset.add(a);\n new_subsets.add(new_subset);\n }\n if(new_subsets.size() > 0) {\n output.addAll(new_subsets);\n }\n }\n for(ArrayList<Integer> subset: output) {\n System.out.print(\"{\");\n for(Integer el: subset) {\n System.out.print(el + \",\");\n }\n System.out.println(\"}\");\n }\n }", "public void multiply() {\n\t\t\n\t}", "@LargeTest\n public void testMandelbrot() {\n TestAction ta = new TestAction(TestName.MANDELBROT_FLOAT);\n runTest(ta, TestName.MANDELBROT_FLOAT.name());\n }", "public void setMandelbrotColor(Color c) {\r\n mandelbrotColor = c;\r\n }", "private static void assignFractalsIds(Job job, int nodeCount, int lastAssigned) {\n if (nodeCount < job.getN()) {\n int receiverId = AppConfig.chordState.getAllNodeInfoHelper().get(lastAssigned).getUuid();\n fractalIds.put(receiverId, job.getName() + \"0\");\n baseFractalLevel = 1;\n baseFractalLevelsByJob.add(baseFractalLevel);\n overflowLevelNodes = 0;\n overflowLevelNodesByJob.add(overflowLevelNodes);\n return;\n }\n\n int dots = job.getN();\n\n int needed = 1;\n int increment = dots - 1;\n for (; needed + increment <= nodeCount; needed += increment);\n\n baseFractalLevel = 1;\n while (dots <= needed) {\n baseFractalLevel++;\n dots *= dots;\n }\n baseFractalLevelsByJob.add(baseFractalLevel);\n\n overflowLevelNodes = (needed - ((int)Math.pow(job.getN(), baseFractalLevel - 1)));\n overflowLevelNodes += (overflowLevelNodes / increment);\n overflowLevelNodesByJob.add(overflowLevelNodes);\n// fractalIds = new HashMap<>();\n\n int copyOfOverflowLevelNodes = overflowLevelNodes;\n\n AppConfig.timestampedStandardPrint(AppConfig.chordState.getAllNodeInfoHelper().toString());\n String prefix = job.getName() + \"0\";\n// int lastAssigned = 0;\n for (int i = 0; i < job.getN(); i++) {\n if (copyOfOverflowLevelNodes > 0) {\n assign(prefix + i, lastAssigned, lastAssigned + (int)Math.pow(job.getN(), baseFractalLevel - 1) - 1, job.getN());\n lastAssigned += (int)Math.pow(job.getN(), baseFractalLevel - 1);\n copyOfOverflowLevelNodes -= job.getN();\n } else {\n assign(prefix + i, lastAssigned, lastAssigned + (int)Math.pow(job.getN(), baseFractalLevel - 2) - 1, job.getN());\n lastAssigned += (int)Math.pow(job.getN(), baseFractalLevel - 2);\n }\n }\n }", "@Override\n\tprotected final int getNumSpiralTransforms() { return 2;}", "public static void main(String[] args) throws IOException {\n MandelbrotSet ms = new MandelbrotSet();\n ms.setUp();\n ms.calculate();\n ms.initializeWindow();\n System.out.println(\"Finished!\");\n }", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public void nextSet(){\n this.fillVector();\n }", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "BasicSet NextLClosure(BasicSet M,BasicSet A){\r\n\t\t//ConceptLattice cp=new ConceptLattice(context);\r\n\t\t//ApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\r\n\r\n\t\t\t\tBasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "public void setFactor(int f) { this.factor = f; }", "protected abstract Set method_1559();", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}", "public FractalMapImpl() {\n this.shift = 0;\n }", "public BranchGroup cubo2(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.2,.05,.2);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(.5,.6,.5);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private static int galoisMult(int a, int b)\n\t{\n\t\tint result = 0;\n\t\tfor (int i=0; i<8; i++)\n\t\t{\n\t\t\tif((b&1) == 1) //low bit of b set\n\t\t\t\tresult = result^a;\n\t\t\tboolean aHighSet = (a & 128) == 128; //8th bit of a set\n\t\t\ta <<= 1;\n\t\t\tassert (a&1) == 0;\n\t\t\t\n\t\t\ta &= 255; //getting rid of 9th bit\n\t\t\tassert ((a&256) != 256);\n\t\t\t\n\t\t\tif (aHighSet)\n\t\t\t\ta ^= (0x1b);\n\t\t\t\n\t\t\tb >>= 1;\n\t\t\tassert (b&128) != 128; //8 bit is zero\n\t\t}\n\t\treturn result;\n\t}", "public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }", "@Override\n protected void inputObjects() {\n alpha1 = Utils.computeRandomNumber(Modulus, sp);\n alpha2 = Utils.computeRandomNumber(Modulus, sp);\n gamma = Utils.computeRandomNumber(Modulus, sp);\n gammaTilde = Utils.computeRandomNumber(Modulus, sp);\n\n capC = g2.modPow(gamma, Modulus);\n capCTilde = g2.modPow(gammaTilde, Modulus);\n\n beta1 = alpha1.multiply(x);\n beta2 = alpha2.multiply(x);\n BigInteger capU1 = t_i.modPow(alpha1, Modulus).multiply(b_i.modPow(beta1.negate(), Modulus))\n .mod(Modulus);\n BigInteger capU2 = g1.modPow(alpha1, Modulus).multiply(g2.modPow(alpha2, Modulus)).mod(Modulus);\n\n objects.put(\"tInverse\", t.modInverse(Modulus));\n objects.put(\"b\", b);\n objects.put(\"g1\", g1);\n objects.put(\"g2\", g2);\n objects.put(\"U1Inverse\", capU1.modInverse(Modulus));\n objects.put(\"U2Inverse\", capU2.modInverse(Modulus));\n objects.put(\"CInverse\", capC.modInverse(Modulus));\n objects.put(\"CTildeInverse\", capCTilde.modInverse(Modulus));\n objects.put(\"t_i\", t_i);\n objects.put(\"b_iInverse\", b_i.modInverse(Modulus));\n }", "public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tBurningShipSet burn = new BurningShipSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = burn.burningShip(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\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}\r\n\t\t\r\n\treturn fractal;\r\n\t\r\n\t\r\n}", "public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}", "private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }", "abstract void mulS();", "protected abstract void calculateNextFactor();", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "private void coins_fB(){\n\t\tthis.cube[22] = this.cube[18]; \n\t\tthis.cube[18] = this.cube[24];\n\t\tthis.cube[24] = this.cube[26];\n\t\tthis.cube[26] = this.cube[20];\n\t\tthis.cube[20] = this.cube[22];\n\t}", "public SetOfTiles getSetOfTiles();", "@LargeTest\n public void testMandelbrotfp64() {\n TestAction ta = new TestAction(TestName.MANDELBROT_DOUBLE);\n runTest(ta, TestName.MANDELBROT_DOUBLE.name());\n }", "private void coins_fY(){\n\t\tthis.cube[49] = this.cube[45]; \n\t\tthis.cube[45] = this.cube[51];\n\t\tthis.cube[51] = this.cube[53];\n\t\tthis.cube[53] = this.cube[47];\n\t\tthis.cube[47] = this.cube[49];\n\t}", "public static boolean checkPath(int[][] bs, int i) {\n ArrayList<Integer> temp_cP = new ArrayList<Integer>();\r\n Set<Integer> temp_setcP = new HashSet<Integer>();\r\n boolean denoter = true;\r\n while (i == 3) {\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n while (i == 6) {\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n return denoter;\r\n }", "public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "Sum getMultiplier();", "public BranchGroup cubo3(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.01,1,1);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.01,-.5,2);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n\n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "public void multiplyTheCorners(CubieCube multiplier) {\n\n char[] cornerPerms = new char[cornerValues.length];\n char[] cornerOrientation = new char[cornerValues.length];\n\n for (int i = 0; i < cornerValues.length; i++) {\n\n cornerPerms[i] = cp[multiplier.cp[i]];\n\n char oriA = co[multiplier.cp[i]];\n char oriB = multiplier.co[i];\n char oriResult = 0;\n\n // check if the cube are regular or mirrored\n // regular * regular = regular\n if (oriA < 3 && oriB < 3) {\n oriResult = (char) (oriA + oriB);\n if (oriResult >= 3)\n oriResult -= 3;\n }\n\n //regular * mirrored = mirrored\n else if (oriA < 3 && oriB >= 3) {\n oriResult = (char) (oriA + oriB); ;\n if (oriResult >= 6)\n oriResult -= 3;\n }\n\n // mirrored* regular = mirrored\n else if (oriA >= 3 && oriB < 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 3) {\n oriResult += 3;\n }\n }\n\n //mirrored * mirrored = regular\n else if (oriA >= 3 && oriB >= 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 0)\n oriResult += 3;\n }\n\n cornerOrientation[i] = oriResult;\n }\n\n this.cp = cornerPerms;\n this.co = cornerOrientation;\n }", "private void m3611b() {\r\n this.f4269y.clear();\r\n for (Object add : C1194i.f5603g) {\r\n this.f4269y.add(add);\r\n }\r\n }", "private void blpf(Complex[] F, int width, int height) {\r\n\t\tint centerY = width / 2;\r\n\t\tint centerX = height / 2;\r\n\t\tint D0 = 30;\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tdouble value = 0;\r\n \r\n\t\tfor (int y = 0; y < width; y++)\r\n {\r\n for (int x = 0; x < height; x++)\r\n {\r\n int distance = (int)(Math.pow(x-centerX, 2)+Math.pow(y-centerY, 2));\r\n value = distance/Math.pow(D0, 2);\r\n value = value+1;\r\n value = 1/value;\r\n\r\n F[x*width+y] = F[x*width+y].mul(value); \r\n \r\n\t\t \t\t\t}\r\n }\t\t\r\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "private static void initBaseSet() {\r\n KEYS.add(\"0\");\r\n SET.put(\"0\", new Module(new int[]{1, 1, 1, 2, 2, 1, 2, 1, 1}));\r\n KEYS.add(\"1\");\r\n SET.put(\"1\", new Module(new int[]{2, 1, 1, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"2\");\r\n SET.put(\"2\", new Module(new int[]{1, 1, 2, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"3\");\r\n SET.put(\"3\", new Module(new int[]{2, 1, 2, 2, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"4\");\r\n SET.put(\"4\", new Module(new int[]{1, 1, 1, 2, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"5\");\r\n SET.put(\"5\", new Module(new int[]{2, 1, 1, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"6\");\r\n SET.put(\"6\", new Module(new int[]{1, 1, 2, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"7\");\r\n SET.put(\"7\", new Module(new int[]{1, 1, 1, 2, 1, 1, 2, 1, 2}));\r\n KEYS.add(\"8\");\r\n SET.put(\"8\", new Module(new int[]{2, 1, 1, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"9\");\r\n SET.put(\"9\", new Module(new int[]{1, 1, 2, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"A\");\r\n SET.put(\"A\", new Module(new int[]{2, 1, 1, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"B\");\r\n SET.put(\"B\", new Module(new int[]{1, 1, 2, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"C\");\r\n SET.put(\"C\", new Module(new int[]{2, 1, 2, 1, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"D\");\r\n SET.put(\"D\", new Module(new int[]{1, 1, 1, 1, 2, 2, 1, 1, 2}));\r\n KEYS.add(\"E\");\r\n SET.put(\"E\", new Module(new int[]{2, 1, 1, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"F\");\r\n SET.put(\"F\", new Module(new int[]{1, 1, 2, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"G\");\r\n SET.put(\"G\", new Module(new int[]{1, 1, 1, 1, 1, 2, 2, 1, 2}));\r\n KEYS.add(\"H\");\r\n SET.put(\"H\", new Module(new int[]{2, 1, 1, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"I\");\r\n SET.put(\"I\", new Module(new int[]{1, 1, 2, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"J\");\r\n SET.put(\"J\", new Module(new int[]{1, 1, 1, 1, 2, 2, 2, 1, 1}));\r\n KEYS.add(\"K\");\r\n SET.put(\"K\", new Module(new int[]{2, 1, 1, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"L\");\r\n SET.put(\"L\", new Module(new int[]{1, 1, 2, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"M\");\r\n SET.put(\"M\", new Module(new int[]{2, 1, 2, 1, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"N\");\r\n SET.put(\"N\", new Module(new int[]{1, 1, 1, 1, 2, 1, 1, 2, 2}));\r\n KEYS.add(\"O\");\r\n SET.put(\"O\", new Module(new int[]{2, 1, 1, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"P\");\r\n SET.put(\"P\", new Module(new int[]{1, 1, 2, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"Q\");\r\n SET.put(\"Q\", new Module(new int[]{1, 1, 1, 1, 1, 1, 2, 2, 2}));\r\n KEYS.add(\"R\");\r\n SET.put(\"R\", new Module(new int[]{2, 1, 1, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"S\");\r\n SET.put(\"S\", new Module(new int[]{1, 1, 2, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"T\");\r\n SET.put(\"T\", new Module(new int[]{1, 1, 1, 1, 2, 1, 2, 2, 1}));\r\n KEYS.add(\"U\");\r\n SET.put(\"U\", new Module(new int[]{2, 2, 1, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"V\");\r\n SET.put(\"V\", new Module(new int[]{1, 2, 2, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"W\");\r\n SET.put(\"W\", new Module(new int[]{2, 2, 2, 1, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"X\");\r\n SET.put(\"X\", new Module(new int[]{1, 2, 1, 1, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"Y\");\r\n SET.put(\"Y\", new Module(new int[]{2, 2, 1, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"Z\");\r\n SET.put(\"Z\", new Module(new int[]{1, 2, 2, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"-\");\r\n SET.put(\"-\", new Module(new int[]{1, 2, 1, 1, 1, 1, 2, 1, 2}));\r\n KEYS.add(\".\");\r\n SET.put(\".\", new Module(new int[]{2, 2, 1, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\" \");\r\n SET.put(\" \", new Module(new int[]{1, 2, 2, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"$\");\r\n SET.put(\"$\", new Module(new int[]{1, 2, 1, 2, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"/\");\r\n SET.put(\"/\", new Module(new int[]{1, 2, 1, 2, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"+\");\r\n SET.put(\"+\", new Module(new int[]{1, 2, 1, 1, 1, 2, 1, 2, 1}));\r\n KEYS.add(\"%\");\r\n SET.put(\"%\", new Module(new int[]{1, 1, 1, 2, 1, 2, 1, 2, 1}));\r\n }", "public float sizeMultiplier();", "protected abstract void recombineNext();", "private void xCubed()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubed ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\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 }", "private void coins_fG(){\n\t\tthis.cube[31] = this.cube[27]; \n\t\tthis.cube[27] = this.cube[33];\n\t\tthis.cube[33] = this.cube[35];\n\t\tthis.cube[35] = this.cube[29];\n\t\tthis.cube[29] = this.cube[31];\n\t}", "public String getFractal()\n {\n return m_Fractal;\n }", "public static Resultado KSP_FF_Algorithm_MBBR(GrafoMatriz G, GrafoMatriz Gaux, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n /*Definicion de variables las variables*/\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n \n /*Probamos para cada camino, si exite espectro para ubicar la damanda*/\n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 Gaux.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ){\n OE[i]=0;\n break;\n }\n }\n }\n /*Teniendo la ocupacion del espectro del camino k, buscamos un bloque continuo de FS\n * que satisfazca la demanda.\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\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 Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public List<GenPolynomial<C>> \n GB( List<GenPolynomial<C>> F ) { \n return GB(0,F);\n }", "private static void multiply(float[] a, float[] b, float[] destination) {\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\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void getCombination(Set<Integer> set, int n, int r)\n {\n // A temporary array to store all combination\n // one by one\n int data[] = new int[r];\n\n // Print all combination using temprary\n // array 'data[]\n Integer[] setArray = new Integer[set.size()];\n set.toArray(setArray);\n\n combinationUtil(setArray, n, r, 0, data, 0);\n //System.out.println();\n }", "private HyperplaneSubsets() {\n }", "public Inatnum multiply(Inatnum a) {\n Inatnum zero = new zeronatnum(); // we need a new zero natural number for our res\n Inatnum res = zero;// this is our res value where we store our information, it needs to start at 0\n //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1)\n for(int i = this.getVal(); i>0;i--) {// setting our i value to our this and if its greater than zero decrement by 1\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()\n\t\t\tres = res.add(a);//now we save our res value as the previous res value plus a. we do this as many times as we are multiplying by. So if it is 3 times\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()-1) \n \t\t\t//i-- => i = this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1) \n\t\t\t // 4 then we are adding 4 3 times\n }\n\t\t\t //INV: i<0 && i-1 < this.getval() ==> i ==0 && res = a^i ==> i=this.getval()\n //Termination Argument: i starts at this.getval(), i decrements each time through the loop\n\t\t\t\t\t\t return res;// we need to return our res value that holds our current value.\n }", "public BranchGroup cubo1(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.5,.05,.5);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.5,.6,1);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n TransformGroup objRotate = new TransformGroup(rotate);\n\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private void computeHermiteCoefficients (KBKeyFrame kf0,\r\n KBKeyFrame kf1,\r\n KBKeyFrame kf2,\r\n KBKeyFrame kf3) {\r\n\r\n\r\n Point3f deltaP = new Point3f();\r\n Point3f deltaS = new Point3f();\r\n float deltaH;\r\n float deltaT;\r\n float deltaB;\r\n\r\n // Find the difference in position and scale \r\n deltaP.x = kf2.position.x - kf1.position.x;\r\n deltaP.y = kf2.position.y - kf1.position.y;\r\n deltaP.z = kf2.position.z - kf1.position.z;\r\n\r\n deltaS.x = kf2.scale.x - kf1.scale.x;\r\n deltaS.y = kf2.scale.y - kf1.scale.y;\r\n deltaS.z = kf2.scale.z - kf1.scale.z;\r\n\r\n // Find the difference in heading, pitch, and bank\r\n deltaH = kf2.heading - kf1.heading;\r\n deltaT = kf2.pitch - kf1.pitch;\r\n deltaB = kf2.bank - kf1.bank;\r\n \r\n // Incoming Tangent\r\n Point3f dd_pos = new Point3f();\r\n Point3f dd_scale = new Point3f();\r\n float dd_heading, dd_pitch, dd_bank;\r\n\r\n // If this is the first keyframe of the animation \r\n if (kf0.knot == kf1.knot) {\r\n\r\n float ddab = 0.5f * (dda + ddb);\r\n\r\n // Position\r\n dd_pos.x = ddab * deltaP.x;\r\n dd_pos.y = ddab * deltaP.y;\r\n dd_pos.z = ddab * deltaP.z;\r\n\r\n // Scale \r\n dd_scale.x = ddab * deltaS.x;\r\n dd_scale.y = ddab * deltaS.y;\r\n dd_scale.z = ddab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = ddab * deltaH;\r\n dd_pitch = ddab * deltaT;\r\n dd_bank = ddab * deltaB;\r\n\r\n } else {\r\n\r\n float adj0 = (kf1.knot - kf0.knot)/(kf2.knot - kf0.knot);\r\n\r\n // Position\r\n dd_pos.x = adj0 * \r\n ((ddb * deltaP.x) + (dda * (kf1.position.x - kf0.position.x)));\r\n dd_pos.y = adj0 *\r\n ((ddb * deltaP.y) + (dda * (kf1.position.y - kf0.position.y)));\r\n dd_pos.z = adj0 * \r\n ((ddb * deltaP.z) + (dda * (kf1.position.z - kf0.position.z)));\r\n\r\n // Scale \r\n dd_scale.x = adj0 * \r\n ((ddb * deltaS.x) + (dda * (kf1.scale.x - kf0.scale.x)));\r\n dd_scale.y = adj0 * \r\n ((ddb * deltaS.y) + (dda * (kf1.scale.y - kf0.scale.y)));\r\n dd_scale.z = adj0 * \r\n ((ddb * deltaS.z) + (dda * (kf1.scale.z - kf0.scale.z)));\r\n\r\n // Heading, Pitch and Bank\r\n dd_heading = adj0 * \r\n ((ddb * deltaH) + (dda * (kf1.heading - kf0.heading)));\r\n dd_pitch = adj0 * \r\n ((ddb * deltaT) + (dda * (kf1.pitch - kf0.pitch)));\r\n dd_bank = adj0 * \r\n ((ddb * deltaB) + (dda * (kf1.bank - kf0.bank)));\r\n }\r\n \r\n // Outgoing Tangent\r\n Point3f ds_pos = new Point3f();\r\n Point3f ds_scale = new Point3f();\r\n float ds_heading, ds_pitch, ds_bank;\r\n\r\n // If this is the last keyframe of the animation \r\n if (kf2.knot == kf3.knot) {\r\n\r\n float dsab = 0.5f * (dsa + dsb);\r\n\r\n // Position\r\n ds_pos.x = dsab * deltaP.x;\r\n ds_pos.y = dsab * deltaP.y;\r\n ds_pos.z = dsab * deltaP.z;\r\n \r\n // Scale\r\n ds_scale.x = dsab * deltaS.x;\r\n ds_scale.y = dsab * deltaS.y;\r\n ds_scale.z = dsab * deltaS.z;\r\n\r\n // Heading, Pitch and Bank\r\n ds_heading = dsab * deltaH;\r\n ds_pitch = dsab * deltaT;\r\n ds_bank = dsab * deltaB;\r\n\r\n } else {\r\n\r\n float adj1 = (kf2.knot - kf1.knot)/(kf3.knot - kf1.knot);\r\n\r\n // Position\r\n ds_pos.x = adj1 * \r\n ((dsb * (kf3.position.x - kf2.position.x)) + (dsa * deltaP.x));\r\n ds_pos.y = adj1 * \r\n ((dsb * (kf3.position.y - kf2.position.y)) + (dsa * deltaP.y));\r\n ds_pos.z = adj1 * \r\n ((dsb * (kf3.position.z - kf2.position.z)) + (dsa * deltaP.z));\r\n\r\n // Scale\r\n ds_scale.x = adj1 * \r\n ((dsb * (kf3.scale.x - kf2.scale.x)) + (dsa * deltaS.x));\r\n ds_scale.y = adj1 * \r\n ((dsb * (kf3.scale.y - kf2.scale.y)) + (dsa * deltaS.y));\r\n ds_scale.z = adj1 * \r\n ((dsb * (kf3.scale.z - kf2.scale.z)) + (dsa * deltaS.z));\r\n\r\n // Heading, Pitch and Bank \r\n ds_heading = adj1 * \r\n ((dsb * (kf3.heading - kf2.heading)) + (dsa * deltaH));\r\n ds_pitch = adj1 * \r\n ((dsb * (kf3.pitch - kf2.pitch)) + (dsa * deltaT));\r\n ds_bank = adj1 * \r\n ((dsb * (kf3.bank - kf2.bank)) + (dsa * deltaB));\r\n }\r\n\r\n // Calculate the coefficients of the polynomial for position\r\n c0 = new Point3f();\r\n c0.x = kf1.position.x;\r\n c0.y = kf1.position.y;\r\n c0.z = kf1.position.z;\r\n\r\n c1 = new Point3f();\r\n c1.x = dd_pos.x;\r\n c1.y = dd_pos.y;\r\n c1.z = dd_pos.z;\r\n\r\n c2 = new Point3f();\r\n c2.x = 3*deltaP.x - 2*dd_pos.x - ds_pos.x;\r\n c2.y = 3*deltaP.y - 2*dd_pos.y - ds_pos.y;\r\n c2.z = 3*deltaP.z - 2*dd_pos.z - ds_pos.z;\r\n\r\n c3 = new Point3f();\r\n c3.x = -2*deltaP.x + dd_pos.x + ds_pos.x;\r\n c3.y = -2*deltaP.y + dd_pos.y + ds_pos.y;\r\n c3.z = -2*deltaP.z + dd_pos.z + ds_pos.z;\r\n\r\n // Calculate the coefficients of the polynomial for scale \r\n e0 = new Point3f();\r\n e0.x = kf1.scale.x;\r\n e0.y = kf1.scale.y;\r\n e0.z = kf1.scale.z;\r\n\r\n e1 = new Point3f();\r\n e1.x = dd_scale.x;\r\n e1.y = dd_scale.y;\r\n e1.z = dd_scale.z;\r\n\r\n e2 = new Point3f();\r\n e2.x = 3*deltaS.x - 2*dd_scale.x - ds_scale.x;\r\n e2.y = 3*deltaS.y - 2*dd_scale.y - ds_scale.y;\r\n e2.z = 3*deltaS.z - 2*dd_scale.z - ds_scale.z;\r\n\r\n e3 = new Point3f();\r\n e3.x = -2*deltaS.x + dd_scale.x + ds_scale.x;\r\n e3.y = -2*deltaS.y + dd_scale.y + ds_scale.y;\r\n e3.z = -2*deltaS.z + dd_scale.z + ds_scale.z;\r\n\r\n // Calculate the coefficients of the polynomial for heading, pitch \r\n // and bank\r\n h0 = kf1.heading;\r\n p0 = kf1.pitch;\r\n b0 = kf1.bank;\r\n\r\n h1 = dd_heading;\r\n p1 = dd_pitch;\r\n b1 = dd_bank;\r\n\r\n h2 = 3*deltaH - 2*dd_heading - ds_heading;\r\n p2 = 3*deltaT - 2*dd_pitch - ds_pitch;\r\n b2 = 3*deltaB - 2*dd_bank - ds_bank;\r\n\r\n h3 = -2*deltaH + dd_heading + ds_heading;\r\n p3 = -2*deltaT + dd_pitch + ds_pitch;\r\n b3 = -2*deltaB + dd_bank + ds_bank;\r\n }", "public abstract double getFractionMultiplier();", "public void cloningFactor() {\n\t\t\t\n\t\t\tsort();\n\t\t\tdouble factorNum = 0.0; \n\t\t\t\n\t\t\tfor(Solution sol : population) {\n\t\t\t\tfactorNum = averagePath / (double) sol.getPath();\n\t\t\t\tsol.setCloningFactor(factorNum);\n\t\t\t}\n\t\t}", "public static BigInteger[] multiply_Point(BigInteger[] point, BigInteger factor) \r\n{\r\n\tBigInteger[] erg = point;\r\n\tBigInteger[] NULL= new BigInteger[2];\r\n\tNULL[0] = ZERO;\r\n\tNULL[1] = ZERO; \r\n\tif(factor.equals(ZERO)) return NULL;\r\n\tif(factor.equals(ONE)) return erg;\r\n\tif(factor.equals(TWO)) return multiply_2(erg);\r\n\tif(factor.equals(THREE)) return addition(multiply_2(erg),erg);\r\n\tif(factor.equals(FOUR)) return multiply_2(multiply_2(erg));\r\n\tif(factor.compareTo(FOUR)==1); \r\n\t{ \r\n\t\tint exp = factor.bitLength()-1;\r\n\t\tfor(;exp >0;exp--)erg = multiply_2(erg);\r\n\t\tfactor = factor.clearBit(factor.bitLength()-1);\r\n\t\terg = addition(multiply_Point(point,factor),erg);\r\n\t}\r\n\treturn erg; \r\n}", "public void setHalfCarry() {\n\t\tset((byte) (get() | (1 << 5)));\n\t}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "public static void main(String[] args) {\n // write your code here\n initialize();\n\n\n Sort(profile.getProfile());\n Integer[][][] mas = new Integer[11][11][1];\n\n R.add(Q.pollFirst());\n\n for (Integer[] e : Q) {\n if (DiskCover(e, R, Rant)) {\n R.add(e);\n // Rtmp.add(Q.pollFirst());\n }\n }\n\n FindMaxAngle(R, 0);\n\n Rg = R;\n //Rtmp-R add Q\n list_r.add(R);\n int j = 0;\n boolean flag = false;\n while (!Q.isEmpty()) {\n\n\n list_r.add(FindMaxPolygonCover(Rg));\n\n }\n\n MakePolygon(list_r);\n\n boolean work = true;\n\n do {\n R.clear();\n Gr.getEdge().clear();\n // algorithmConnectivity.setMarketVertexFirst();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n\n AlgorithmConnectivity algorithmConnectivity = new AlgorithmConnectivity();\n algorithmConnectivity.initializated(Gr.getVertex().size());\n algorithmConnectivity.setMarketVertexFirst();\n algorithmConnectivity.setMarketVertexSecond(i);\n while (algorithmConnectivity.findSecond() != 100) {\n //int a= iterator.next();\n int index = algorithmConnectivity.findSecond();\n algorithmConnectivity.setMarketVertexThird(index);\n algorithmConnectivity = MakeConnection(index, algorithmConnectivity);\n }\n R.add(algorithmConnectivity.getMarket());\n }\n if (!checkConnectionGraf(R)) {\n //MakeConnection(Gr);\n ArrayList<Integer[]> result = new ArrayList<Integer[]>();\n ArrayList<Integer> ver = new ArrayList<Integer>();\n ArrayList<ArrayList<Integer>> v = new ArrayList<ArrayList<Integer>>();\n for (Integer[] p : R) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n ver.clear();\n for (int i = 0; i < p.length; i++) {\n if (p[i] != 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n if (ver.size() != 1) {\n // result.add(AddNewRoute(ver));\n // v.add(ver);\n result.addAll(AddNewRoute(ver));\n }\n }\n int minumum = 1000;\n Integer[] place = new Integer[3];\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n if (minumum == 1000) {\n for (Integer[] p : R) {\n ver.clear();\n for (int i = 0; i < p.length - 1; i++) {\n if (p[i] == 1) {\n ver.add(Gr.getVertex().get(i));\n }\n }\n result.addAll(AddNewRoute(ver));\n // result.add(AddNewRoute(ver));\n for (int i = 0; i < result.size(); i++) {\n Integer[] ma = result.get(i);\n if (ma[2] == null) {\n System.out.print(\"\");\n }\n if ((minumum > ma[2]) && (ma[2]) != 0) {\n minumum = ma[2];\n place = ma;\n }\n }\n AddNewVertex(place);\n }\n } else {\n AddNewVertex(place);\n }\n } else {\n work = false;\n }\n\n } while (work);\n\n MobileProfile prof = new MobileProfile();\n prof.initialization(Gr.getVertex().size());\n int sum = 0;\n int[][][] massive = profile.getProfile();\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n // sum=sum+massive;\n }\n\n\n zcd = new ZCD();\n\n zcd.setGraphR(Gr);\n\n Iterator<Edges> it = Gr.getEdgeses().iterator();\n boolean fla = false;\n while (it.hasNext()) {\n Edges d = it.next();\n LinkedList<Integer[]> graph_edges = g.getSort_index();\n\n for (int i = 0; i < graph_edges.size(); i++) {\n Integer[] mass = graph_edges.get(i);\n if (checkLine(g.getCoordinate().get(mass[0]), g.getCoordinate().get(mass[1]), Gr.getCoordinate().get(d.getX()), Gr.getCoordinate().get(d.getY()))) {\n if (!fla) {\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = mass[2];\n fla = true;\n zcd.addWrEdges(wr);\n }\n }\n }\n if (!fla) {\n\n Integer[] wr = new Integer[3];\n wr[0] = d.getX();\n wr[1] = d.getY();\n wr[2] = 2;\n\n zcd.addWrEdges(wr);\n\n }\n fla = false;\n }\n\n Edges e = null;\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n int sumwr = 0;\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n for (int k = 0; k < zcd.getWrEdges().size(); k++) {\n\n e = iterator.next();\n if (e.checkEdge(i)) {\n Integer[] m = zcd.getWrEdges().get(k);\n sumwr = sumwr + m[2];\n\n }\n\n }\n wr.add(sumwr);\n\n }\n\n int max = 0;\n int count = 0;\n for (int i = 0; i < wr.size(); i++) {\n if (max < wr.get(i)) {\n max = wr.get(i);\n count = i;\n }\n }\n Integer[] a = new Integer[2];\n a[0] = count;\n a[1] = max;\n zcd.setRoot_vertex(a);\n\n\n int number_vertex = 5;\n //ZTC ztc = new ZTC();\n neig = new int[Gr.getVertex().size()][Gr.getVertex().size()];\n for (int i = 0; i < Gr.getVertex().size(); i++) {\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n while (iterator.hasNext()) {\n e = iterator.next();\n if (e.checkEdge(i)) {\n\n neig[i][e.getY()] = 1;\n }\n }\n }\n ztc.setNeigboor(neig);\n ztc.addTVertex(a[0]);\n Integer[] zero = new Integer[3];\n zero[0] = a[0];\n zero[1] = 0;\n zero[2] = 0;\n verLmtest.add(zero);\n vertex_be = new boolean[Gr.getVertex().size()];\n int root_number = 5;\n while (ztc.getTvertex().size() != Gr.getVertex().size()) {\n\n LinkedList<Edges> q = new LinkedList<Edges>();\n\n\n count_tree++;\n\n\n LinkedList<Integer> vertext_t = new LinkedList<Integer>(ztc.getTvertex());\n while (vertext_t.size() != 0) {\n // for(int i=0; i<count_tree;i++){\n\n number_vertex = vertext_t.pollFirst();\n weight_edges.clear();\n if (!vertex_be[number_vertex]) {\n vertex_be[number_vertex] = true;\n } else {\n continue;\n }\n\n // if(i<vertext_t.size())\n\n\n HashSet<Edges> item = Gr.getEdgeses();\n Iterator<Edges> iterator = item.iterator();\n // while (iterator.hasNext()) {\n for (int k = 0; k < item.size(); k++) {\n e = iterator.next();\n\n if (e.checkEdge(number_vertex)) {\n\n weight_edges.add(zcd.getWrEdges().get(k));\n q.add(e);\n }\n\n if (q.size() > 1)\n q = sort(weight_edges, q);\n\n\n while (!q.isEmpty()) {\n e = q.pollFirst();\n Integer[] lm = new Integer[3];\n\n\n lm[0] = e.getY();\n lm[1] = 1;\n lm[2] = 0;\n boolean add_flag = true;\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getY() == mess[0]) {\n add_flag = false;\n }\n }\n if (add_flag) {\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n mess[2] = mess[2] + 1;\n /* if (e.getX() == root_number) {\n mess[1] = 1;\n } else {\n mess[1] = mess[1] + 1;\n lm[1]=mess[1];\n\n }*/\n verLmtest.set(i, mess);\n break;\n }\n\n }\n for (int i = 0; i < verLmtest.size(); i++) {\n Integer[] mess = verLmtest.get(i);\n if (e.getX() == mess[0]) {\n lm[1] = mess[1] + 1;\n }\n\n }\n\n verLmtest.add(lm);\n } else {\n continue;\n }\n // }\n if (ztc.getTvertex().size() == 1) {\n edgesesTestHash.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n edgesesTestHash.add(e1);\n\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n // q.removeFirst();\n\n\n } else {\n // edgesTest.add(e);\n int x = e.getX();\n int y = e.getY();\n Edges e1 = new Edges(y, x);\n // disable.add(e);\n // disable.add(e1);\n\n edgesesTestHash.add(e1);\n edgesesTestHash.add(e);\n\n int[][] ad = getNeighboor();\n\n\n if (checkLegal(e, ad)) {\n ztc.addEdges(e);\n ztc.addEdges(e1);\n\n ztc.addTVertex(lm[0]);\n\n // if(q.size()!=0)\n // q.removeFirst();\n } else {\n // q.removeFirst();\n\n Iterator<Edges> edgesIterator = edgesesTestHash.iterator();\n while (edgesIterator.hasNext()) {\n Edges eo = edgesIterator.next();\n if ((eo.getY() == e.getY()) && (eo.getX() == e.getX())) {\n edgesIterator.remove();\n }\n if ((eo.getY() == e1.getY()) && (eo.getX() == e1.getX())) {\n edgesIterator.remove();\n }\n }\n\n verLmtest.removeLast();\n }\n\n\n }\n\n\n }\n\n\n }\n }\n }\n\n ztc.setEdgesesTree(edgesesTestHash);\n ztc.setGr(Gr);\n ConvertDataToJs convertDataToJs=new ConvertDataToJs();\n try {\n convertDataToJs.save(ztc);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n }\n\n System.out.print(\"\");\n\n }", "public void setDimensionFromCubicMesh(){\r\n\t\t\r\n\t\t\r\n\t}", "private void m7635b() {\n if (!this.f6418o) {\n this.f6417n = false;\n this.f6405b.clearAnimation();\n this.f6406c.removeAnnotations();\n List arrayList = new ArrayList();\n for (GridDTO polygons : this.f6414k) {\n arrayList.add(new PolygonOptions().addAll(polygons.getPolygons()).fillColor(Color.parseColor(\"#00bcd4\")).strokeColor(-16728876).alpha(0.5f));\n }\n this.f6406c.addPolygons(arrayList);\n this.f6417n = false;\n }\n }", "public static Set<Set<Polyomino>> tilings(ArrayList<Polyomino> polyominos_list,Polyomino P, boolean use_all_once, boolean rotations, boolean reflections) {\r\n\t\t\r\n\t\tHashMap<Integer, Square> hmap_P = new HashMap<Integer, Square>();\r\n\t\tSet<Integer> X= new HashSet<Integer>();\r\n\t\tSet<Set<Integer>> C= new HashSet<Set<Integer>>();\t\r\n\t\tSet<Set<Polyomino>> tilings = new HashSet<Set<Polyomino>>();\r\n\t\t\r\n\t\tif (use_all_once) {//quick check to see if there is a tiling of P using each tile exactly once: ( sum of area(tile) ) == area(P)\r\n\t\t\tint total_area=0;\r\n\t\t\tfor (Polyomino q: polyominos_list) total_area+=q.area;\r\n\t\t\tif (!(total_area==P.area)) return tilings;\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t//index squares of P\r\n\t\tfor (int i=0; i<P.vertices.size();i++) {\r\n\t\t\thmap_P.put(i+1,P.vertices.get(i));\r\n\t\t\tX.add(i+1);\r\n\t\t}\r\n\t\tif (use_all_once) {//we add extra elements to the ground set to ensure each polyomino is used exactly once\r\n\t\t\tfor (int j=0;j<polyominos_list.size();j++) {\r\n\t\t\t\tX.add(P.vertices.size()+j+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t//we now define C\r\n\t\t//if A= set of (fixed/one-sided/free) polyominos of area n\r\n\t\t//C= union over Q in A of union of S subset of X corresponding to indices of squares of P covered by some translate of Q\r\n\t\t//to generate C, we iterate over the polyominos Q in A and we see, for each possible translation of Q,\r\n\t\t//if Q fits in P, in which case we record the indices of the squares of P it covers\r\n\t\t\r\n\t\tfor (int k=0; k<polyominos_list.size();k++) {\r\n\t\t\tPolyomino tile=polyominos_list.get(k);\r\n\t\t\t\r\n\t\t\tArrayList<Polyomino> orientations_of_tile=new ArrayList<Polyomino>();\r\n\t\t\tif (rotations && reflections) orientations_of_tile=tile.distinct_symmetries();\r\n\t\t\telse if (rotations) orientations_of_tile=tile.rotations();\r\n\t\t\telse if (reflections) orientations_of_tile=tile.reflections();\r\n\t\t\telse orientations_of_tile.add(tile);//if no rotations, the only possible orientation is the tile as it was given\r\n\t\t\r\n\t\t\tfor (Polyomino Q: orientations_of_tile) {\r\n\t\t\t\t//for each VALID translation of Q, we calculate the indices of squares of P which Q occupies, and add this to C\r\n\t\t\t\t//we choose some square of Q, which we will \"nail\" to the squares of P and see if Q fits in in P in that position\r\n\t\t\t\tSquare nail = Q.vertices.get(0);\r\n\t\t\t\tfor (Square s: P.vertices) {\r\n\t\t\t\t Set<Integer> indices_Q_translated= new HashSet<Integer>();\r\n\t\t\t\t boolean Q_fits_inP=true;\r\n\t\t\t\t\tfor (Square q: Q.vertices) {//lets check if this translation of Q fits in P\r\n\t\t\t\t\t\tSquare translated_q=new Square (q.x+s\r\n\t\t\t\t\t\t\t\t.x-nail.x,q.y+s.y-nail.y);\r\n\t\t\t\t\t\tif (!P.contains(translated_q)) {//check if square translated_q fits is in P\r\n\t\t\t\t\t\t\tQ_fits_inP=false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thmap_P.forEach((key, value) -> {//get index of square translated_q\r\n\t\t\t\t\t\t if (value.equals(translated_q)) {\r\n\t\t\t\t\t\t \tindices_Q_translated.add(key);\r\n\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (Q_fits_inP) {\r\n\t\t\t\t\t\t//we add an element which corresponds to putting a one in a dummy column in the exact cover matrix\r\n\t\t\t\t\t\tif (use_all_once) indices_Q_translated.add(k+P.vertices.size()+1); \r\n\t\t\t\t\t\tC.add(indices_Q_translated);\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//Initialization step complete, with complexity at least |polyominos_list|*4*area(P)*area(Q)*area(P)\r\n\t\t\r\n\t\tif(!(C.size()==0)) {\r\n\t\t\t\r\n\t\t\tint[][] M=Exact_cover.sets_to_matrix(X,C);\r\n\t\t\r\n\t\t\t//we add n columns (initialized to all zeros) to M where n=polyominos_list.size().\r\n\t\t\t//Each row of M corresponds to some translation of a polyomino Pk in polyominos_list-{P1,...,Pn}\r\n\t\t\t//in a such a row we place a 1 in the column k\r\n\t\t\t//any exact cover of M must then use each Pk exactly once \r\n\r\n\t\t\tDancingLinks dl = new DancingLinks(M);\r\n\t\t\tSet<Set<data_object>> exact_covers_data_objects=dl.exactCover(dl.master_header);\r\n\t\t\t\r\n\t\t\tfor (Set<data_object> cover_data_objects: exact_covers_data_objects) {\r\n\t\t\t\t\r\n\t\t\t\tSet<Set<Integer>> cover_sets=new HashSet<Set<Integer>>();\r\n\t\t\t\tfor (data_object t: cover_data_objects) cover_sets.add(dl.set_of_row.get(t.row_id));\r\n\t\t\t\t\r\n\t\t\t\tSet<Polyomino> T = new HashSet<Polyomino>();//a tiling, i.e a set of polyominos\r\n\t\t\t\t\r\n\t\t\t\tfor (Set<Integer> indices: cover_sets) {\r\n\t\t\t\t\tArrayList<Square> vertices= new ArrayList<Square>();\r\n\t\t\t\t\t//convert indices to corresponding squares of P, \r\n\t\t\t\t\t//and add the corresponding Polyomino R to T\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int index: indices) {\r\n\t\t\t\t\t\tif (index<P.vertices.size()+1) {//if not a dummy index (in the case of use_all_once polyominos)\r\n\t\t\t\t\t\t\tvertices.add(hmap_P.get(index));\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\tT.add(new Polyomino(vertices,\"R\"));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ttilings.add(T);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tilings;\r\n\t}", "public abstract Vector4fc set(int component, float value);", "public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }", "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: */ }", "public double getPerimiter(){return (2*height +2*width);}", "private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }", "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\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 //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\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 fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\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 \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public interface DefaultFractalModel extends RenderingModel {\n\n void setPlaneSegmentFromCenter(double centerX, double centerY, double zoom);\n\n void setFractalCustomParams(String text);\n\n String getFractalCustomParams();\n}", "public void zoomIn(){\n\t\t zoomed = modifyDimensions(picture.getWidth(),getHeight()); //in primul pas se maresc dimensiunile pozei\n\t\t for(int i = 0; i < zoomed.getHeight(); i += 2) {\n\t for(int j = 0; j < zoomed.getWidth(); j += 2) {\n\t zoomed.setRGB(j, i, picture.getRGB(j / 2,i / 2));\n\n\t if (j + 1 < zoomed.getWidth()) {\n\t zoomed.setRGB(j + 1, i, mediePixeli(picture.getRGB(j / 2, i / 2), picture.getRGB((j + 2) / 2, i / 2))); // intre doua coloane se adauga media pixelilor din acestea\n\t }\n\t }\n\t }\n\n\n\t for(int i = 1; i < zoomed.getHeight(); i += 2){\n\t \tfor(int j = 0; j < zoomed.getWidth(); j++ ){\n\t zoomed.setRGB(j, i, mediePixeli(picture.getRGB((j - 1) / 2, i / 2), picture.getRGB((j + 1) / 2, (i / 2))));\n\t }\n\t }\n\t \n\t }", "MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }", "public static void main(String[] args)\n {\n\n SuperMuli m=new SubMuli();\n System.out.println(m.muliplyExtra(1, 2));\n /*\n SuperMuli m = new SubMuli();\n m.printTypeName();\n System.out.println(\",\" + m.index);\n */ \n\n //byte arr[]=new byte[]{2,3,4,5};\n //for (final int i:getCharArray(arr)) \n //System.out.print(i+\" \");\n\n //int a[5]=new int[]{2,3,4,5,6};\n\n //int [][]a5=new int[5]{2,3,4,5,6};\n //int[][] a3=new int[5][];\n //int a4[][][] a3={{{1,2}},{{3,4}},{5,6}};\n //int[,] a2=new int[5,5];\n /*int j=0;\n int a[]={2,4};\n do for(int i:a)\n System.out.print(i+\" \");\n while(j++ <1);\n */\n\n System.out.println(\"\\nEnded...\");\n\n\n }", "public int getFactor() { return this.factor; }", "private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "@Override\npublic void mul(int a, int b) {\n\t\n}" ]
[ "0.62266576", "0.5702022", "0.56328607", "0.5504933", "0.5471488", "0.54010314", "0.53891706", "0.53386676", "0.53314817", "0.5307449", "0.5270106", "0.5261657", "0.5237855", "0.51716083", "0.51437235", "0.51230574", "0.51111096", "0.5103118", "0.5094893", "0.50904465", "0.50879884", "0.5064213", "0.5046457", "0.50303924", "0.5020478", "0.50152916", "0.5001243", "0.49739024", "0.49729297", "0.49515557", "0.494794", "0.49479133", "0.49376366", "0.49090388", "0.49032462", "0.48997313", "0.4893731", "0.48886317", "0.48866248", "0.48732966", "0.48610365", "0.485517", "0.48545128", "0.4850692", "0.48497358", "0.48420364", "0.48332703", "0.48236156", "0.481914", "0.48188448", "0.4814286", "0.47946337", "0.4794402", "0.47906867", "0.47814065", "0.47791559", "0.47776565", "0.477646", "0.47763425", "0.4773737", "0.47732824", "0.47694287", "0.47683832", "0.47613218", "0.47598448", "0.4752971", "0.4751856", "0.47511622", "0.47410494", "0.47397906", "0.47373545", "0.47332627", "0.47303295", "0.47218275", "0.47194737", "0.4715451", "0.47153372", "0.47098088", "0.47050583", "0.47039387", "0.4702269", "0.4701867", "0.4690815", "0.46863538", "0.46847653", "0.46834958", "0.46766102", "0.46741405", "0.46682933", "0.4668164", "0.4667986", "0.46668825", "0.4666774", "0.46587375", "0.46563303", "0.46553117", "0.46472615", "0.46457574", "0.4639095", "0.46381706" ]
0.7022388
0
seekBarValue.setText(String.valueOf(progress)); seekBarNum = progress;
public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar1.setMax(10);\n txt1.setText(String.valueOf(progress));\n yemekAdet = progress; \n \n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_volume = inf.findViewById(R.id.textView9);\n txtV_volume.setText(\"\"+progress+\" ml\");\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n progressValue = progress;\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n //Toast.makeText(MainActivity.this, \"Changing max value!\", Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n mTextView.setText(\"\"+i);\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar2.setMax(10);\n txt2.setText(String.valueOf(progress));\n icecekAdet = progress;\n \n \n \n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar3.setMax(10);\n txt3.setText(String.valueOf(progress));\n salataAdet = progress;\n \n \n }", "void updateSeekbar(int position, int duration);", "public void setProgress(SeekBar seekBar, int progress, boolean isPressed) {\n if (isPressed) {\n int id = seekBar.getId();\n this.ampDsp.bf = 0;\n this.ampDsp.as = 0;\n switch (id) {\n case R.id.sound_progress1:\n this.ampDsp.tvSoundProgress[0].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress2:\n this.ampDsp.tvSoundProgress[1].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress3:\n this.ampDsp.tvSoundProgress[2].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress4:\n this.ampDsp.tvSoundProgress[3].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress5:\n this.ampDsp.tvSoundProgress[4].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress6:\n this.ampDsp.tvSoundProgress[5].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress7:\n this.ampDsp.tvSoundProgress[6].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress8:\n this.ampDsp.tvSoundProgress[7].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress9:\n this.ampDsp.tvSoundProgress[8].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress10:\n this.ampDsp.tvSoundProgress[9].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress11:\n this.ampDsp.tvSoundProgress[10].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress12:\n this.ampDsp.tvSoundProgress[11].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress13:\n this.ampDsp.tvSoundProgress[12].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress14:\n this.ampDsp.tvSoundProgress[13].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress15:\n this.ampDsp.tvSoundProgress[14].setText(\"\" + (progress - 10));\n break;\n }\n if (this.ampDsp.vsbSoundProgress[0] != null) {\n this.ampDsp.putSystemString(\"KeyCustomEQ\", \"\" + this.ampDsp.vsbSoundProgress[0].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[1].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[2].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[3].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[4].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[5].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[6].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[7].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[8].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[9].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[10].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[11].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[12].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[13].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[14].getProgress());\n }\n this.ampDsp.bttnEqCustom1.setSelected(false);\n this.ampDsp.bttnEqCustom2.setSelected(false);\n this.ampDsp.bttnEqCustom3.setSelected(false);\n this.ampDsp.putSystemInt(\"KeyCTmode\", this.ampDsp.as);\n this.ampDsp.bg.removeMessages(1);\n this.ampDsp.bg.sendEmptyMessageDelayed(1, 50);\n }\n }", "public void seekBarListener() {\n seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n int progressChangedValue = 0;\n\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n progressChangedValue = progress;\n }\n\n public void onStartTrackingTouch(SeekBar seekBar) {\n // TODO Auto-generated method stub\n }\n\n public void onStopTrackingTouch(SeekBar seekBar) {\n progressTextView.setText(\"Your current progress is \" + progressChangedValue);\n Toast.makeText(MainActivity.this, \"Seek bar progress is :\" + progressChangedValue,\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_graduacao = inf.findViewById(R.id.textView11);\n txtV_graduacao.setText(\"\"+progress+\" %\");\n }", "public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mSeekbarValue.setText(String.valueOf(progress));\n }", "private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta1 = (TextView) findViewById(R.id.tvDeSeekBarPregunta1);\n tvDeSeekBarPregunta1.setText(String.valueOf(progress));\n Shared200.setP212_41(String.valueOf(progress));\n }", "private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}", "@Override\n \tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)\n \t{\n \t\tradiusTextField.setText(\"\" + progress);\n \t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta3 = (TextView) findViewById(R.id.tvDeSeekBarPregunta3);\n tvDeSeekBarPregunta3.setText(String.valueOf(progress));\n Shared200.setP212_43(String.valueOf(progress));\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n pitch1Change = progress;\n pitchSeek1Value.setText(String.valueOf(pitch1Change));\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n distanceValue.setText(getString(R.string.fullscreen_dialog__value_in_meter,progress));\n }", "@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv3.setText(String.format(\"%.0f\", 200*progress-1000.));\r\n\t\t\t}", "@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta2 = (TextView) findViewById(R.id.tvDeSeekBarPregunta2);\n tvDeSeekBarPregunta2.setText(String.valueOf(progress));\n Shared200.setP212_42(String.valueOf(progress));\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //shou lian\r\n mImgView.setImageBitmap(mFaceEditor.BFFaceLift(seekBar.getProgress()/10,0,0,0));//));//change to 0-100\r\n\r\n }", "@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv2.setText(String.format(\"%.1f\", 0.4*progress-100));\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\t\tp1=progress;\n\t\t\t\tp=p1.toString();\n\t\t\t\tx=p1.toString();\n\t\t\t\twithin.setText( x+=\" Kms\");\t\t\t\t\n\t\t\t\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //high nose\r\n mImgView.setImageBitmap(mFaceEditor.BFHighnose(seekBar.getProgress()/10));//));//change to 0-100\r\n\r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n seekAttemptsCount.setText(Integer.toString(progress + 1));\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n pitch2Change = progress;\n pitchSeek2Value.setText(String.valueOf(pitch2Change));\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //skin white\r\n mImgView.setImageBitmap(mFaceEditor.BFSoftskin(GlobalDefinitions.softRatio, Math.abs(seekBar.getProgress()/10)));//));//change to 0-100\r\n\r\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //eye bag remove\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeBagRemoval(seekBar.getProgress()/10));//));//change to 0-100\r\n }", "@Override \n\t public void onProgressChanged(SeekBar Bar, int progress, boolean fromUser) {\n\t \n\t \t// Adapt value TextView Rate to the new value of SeekBar Bar\n\t \tif(fromUser) { \n\t \t\tint value = progress; \n\t \t\tRate.setText(String.format(\"%d\", value));\n\t \t} \n\t }", "@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }", "public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n textStart.setText(String.valueOf(arg1));\n count = arg1;\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //light eye\r\n mImgView.setImageBitmap(mFaceEditor.BFLightEye(seekBar.getProgress()/10));//));//change to 0-100\r\n }", "public void setProgress(int value);", "public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n textViewDelay.setText(\"Delay: \" + progress + \" seconds\"); //update \"progress\" value and pass it to textview\n }", "private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n if(progress<=100 && progress>=0){\n // change display temp based on seekbar progress and update the view\n display_temp = Tools.roundToHalf((32-9)*progress/100.0+9);\n Log.v(TAG, \"onProgressChanged: temp:\"+display_temp+\"seekbar progress=\"+progress);\n updateControlView();\n // update the mercury of the thermometer\n ClipDrawable mMercuryClip = (ClipDrawable) mMercuryImg.getDrawable();\n mMercuryClip.setLevel(progress*100);\n }\n }\n });\n }", "void setProgress(float progress);", "public void setResults(SeekBar sb, TextView tv, int progress) {\r\n\t\tsb.setProgress(progress);\r\n\t\ttv.setText(String.valueOf(progress));\r\n\t}", "@Override\n public void onProgressChanged(\n SeekBar seekbar, int value, boolean fromUser) {\n mValue = toDoubleExpression(value) + mRange.getLowerBound();\n\n final String fmt = \"%\" + mNumberOfIntegralDigits + \".\" +\n mNumberOfDecimalDigits + \"f\";\n\n // use the proper unit based on the value\n mTextView.setText(Unit.getUnitString(mContext, mUnit, fmt, mValue));\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "void setProgress(int progress);", "void setProgress(int progress);", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n int temp = seekBar.getProgress();\n\n switch (temp){\n case 0:\n sendValue = S1;\n break;\n case 1:\n sendValue = S2;\n break;\n case 2:\n sendValue = S3;\n break;\n case 3:\n sendValue = S4;\n break;\n }\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n //big eye\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeWarp(15,seekBar.getProgress()/10));//change to 0-100\r\n// int val = seekBar.getProgress();\r\n// Log.e(\"eyewarp\", \"eyewarp: \"+val);\r\n }", "private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\t\tfloat percent=((float)progress*2)/10.0f;\n\t\tvol_cur_percent=MIN_VOL+percent;\n\t\ttv_vol_pro.setText(CUR_VOL+(int)(vol_cur_percent*100)+\"%\");\n\t\t\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser){\n\t\t\t\tprogress = progressValue;\n\t\t\t\ttextView.setText(\"Skill Level: \" + progress + \"/\" + seekBar.getMax());\n\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (!fromUser)\n return;\n String tag = (String) seekBar.getTag();\n switch (tag) {\n case \"frames\":\n //Log.v(\"RenderSettings\", \"frames seekbar changed\");\n setFrames(seekBar.getProgress() + 2);\n break;\n case \"a\":\n //Log.v(\"RenderSettings\", \"'a' seekbar changed\");\n setA((seekBar.getProgress() + 1) / 1000.0f);\n break;\n case \"b\":\n //Log.v(\"RenderSettings\", \"'b' seekbar changed\");\n setB(seekBar.getProgress() / 100.0f + 1.0f);\n break;\n case \"P\":\n //Log.v(\"RenderSettings\", \"'P' seekbar changed\");\n setP(seekBar.getProgress() / 100.0f);\n break;\n default:\n Log.v(\"RenderSettings\", \"unknown seekbar changed.\");\n break;\n }\n }", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n if (arg0 == _seekBarSpeed) {\n double inc = ((double)arg1*2)/100;\n NotifyTimeDeltaChanged(inc);\n _textSpeed.setText(String.format(\"%.2f\", inc));\n } else {\n if (arg0 == _seekBarArgs[0]) {\n NotifyParameterChanged(0, arg1);\n _textArgs[0].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[1]) {\n NotifyParameterChanged(1, arg1);\n _textArgs[1].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[2]) {\n NotifyParameterChanged(2, arg1);\n _textArgs[2].setText(String.format(\"%d\", arg1));\n }\n }\n }", "private void setSeekBarListener() {\n\t\tseekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener(){\n\t\t\tint progress = 0;\n\n\t\t\t/**\n\t\t\t * When the SeekBar's progress changes, log it and print a Toast saying that the progress changed.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser){\n\t\t\t\tprogress = progressValue;\n\t\t\t\ttextView.setText(\"Skill Level: \" + progress + \"/\" + seekBar.getMax());\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * When the user touches the SeekBar, print a Toast.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar){\n\t\t\t\t// do nothing\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * When the user stops touching the SeekBar, change the text above it to show the selected value.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar){\n\t\t\t\tLog.v(LOG_TAG, \"Selected skill level \" + progress);\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n textGoalStart.setText(String.valueOf(arg1)+\"%\");\n\n }", "private void seekChange(View v){\n \t//if(mediaPlayer.isPlaying()){\n\t \tSeekBar sb = (SeekBar)v;\n\t\t\tmediaPlayer.seekTo(sb.getProgress());\n\t\t//}\n }", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "private void setCurrentTrack() {\n runOnUiThread(new Runnable() {\n public void run() {\n setText(controller.getCurrentTrack());\n }\n });\n\t}", "public void setseekbars()\n {\n red.setProgress(SV.getRed(selected));\n blue.setProgress(SV.getBlue(selected));\n green.setProgress(SV.getGreen(selected));\n }", "private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }", "public void increment() { this.progressBar.setValue(++this.progressValue); }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar skb, int prog, boolean fromUser) {\n\t\t\t\tMySurfaceView.redVal = prog;\n\t\t\t}", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tfloat set = (float) progress/100;\n\t\t\t\tLog.v(\"set\", set+\"\");\n\t\t\t\tmMediaPlayer[0].setVolume(set,set);\n\t\t\t}", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "private void updateRunnable() {\n updateSeekBar = new Runnable() {\n @Override\n public void run() {\n playerSeekBar.setProgress(mediaPlayer.getCurrentPosition());\n seekBarHandler.postDelayed(this, 500);\n }\n };\n }", "@Override\n public void onProgressChanged(SeekBar bar, int progress, boolean fromuser) {\n mProgress = progress;\n mSeekBarFromUser = fromuser;\n }", "@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {\n mXiayulv.setText(mProgressValue + \"%\");\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n AlertDialog.Builder b = new AlertDialog.Builder(MainOfflineActivity.this);\n b.setTitle(\"Set your own color\");\n b.setIcon(imgpen.getDrawable());\n View seekBarView = getLayoutInflater().inflate(R.layout.color_seekbar, null);\n b.setView(seekBarView);\n\n final TextView colorBlock = seekBarView.findViewById(R.id.color_block);\n SeekBar seekRed = seekBarView.findViewById(R.id.seekbar_red);\n SeekBar seekGreen = seekBarView.findViewById(R.id.seekbar_green);\n SeekBar seekBlue = seekBarView.findViewById(R.id.seekbar_blue);\n SeekBar seekAlpha = seekBarView.findViewById(R.id.seekbar_alpha);\n\n seekRed.setMax(255);\n seekRed.setProgress(RED);\n seekGreen.setMax(255);\n seekGreen.setProgress(GREEN);\n seekBlue.setMax(255);\n seekBlue.setProgress(BLUE);\n seekAlpha.setMax(255);\n seekAlpha.setProgress(ALPHA);\n\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n\n seekRed.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n RED = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekGreen.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n GREEN = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekBlue.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n BLUE = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekAlpha.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n ALPHA = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n b.setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n b.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n b.setNeutralButton(\"Default\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ALPHA = 255;\n RED = 39;\n GREEN = 41;\n BLUE = 41;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n\n AlertDialog d = b.create();\n d.show();\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }", "private void updateSplitValue() {\n\t\tsplitValue = peopleSeekBar.getProgress();\t\n\t\tif ( splitValue < 1 ) {\n\t\t\tsplitValue = 1;\n\t\t}\n\t}", "public void onTick(long millisUntilFinished) {\n timer++;\n if (timer < 10) {\n tvStartTime.setText(\"0:0\" + timer);\n } else {\n tvStartTime.setText(\"0:\" + timer);\n }\n musicSeekBar.setProgress(0);\n musicSeekBar.setMax((int) (30));\n musicSeekBar.setProgress((int) (timer));\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "void setProgress(@FloatRange(from = 0, to = 1) float progress);", "public void setBar(JProgressBar bar){\n prog = bar;\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n protected void onProgressUpdate(Integer... values) {\n\n //Le pasamos el parametro, es un array y esta en la posicion 0\n progressBar1.setProgress(values[0]);\n //Le sumamos 1 pork y 1mpieza en 0\n textView.setText(values[0]+1 + \" %\");\n }", "public void run() {\n\t\t\t\t\tmHandler.post(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tprogressbar.setProgress(Integer\r\n\t\t\t\t\t\t\t\t\t.parseInt(tvsp.progress));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}", "@Override\n public void onProgressUpdate(Integer... progress)\n {\n _dialog.setProgress(progress[0]);\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n schermataRicercaFragment.distanzaProgresso.setText(\"Distanza : \" + progressoAggiornato);\n }", "@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }", "@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n seekBarProgress.setSecondaryProgress(percent);\n }", "@Override\n public void setAudioVolumeInsideVolumeSeekBar(int i) {\n float currentVolume = 1.0f;\n if (i < PlayerConstants.MaxProgress) {\n currentVolume = (float)(1.0f - (Math.log(PlayerConstants.MaxProgress - i) / Math.log(PlayerConstants.MaxProgress)));\n }\n setAudioVolume(currentVolume);\n //\n }", "public void onProgressUpdate(Integer ... value){\n pb.setVisibility(View.VISIBLE);\n pb.setProgress(value[0]);\n }", "@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\tseekBarProgress.setSecondaryProgress(percent);\n\t}", "private void updateProgress(final int value) {\n \t\t// update progress bar\n \t\tprogressBar.setValue(value);\n \t\tfinal int previous = 100 * (value - 1) / progressBar.getMaximum();\n \t\tfinal int current = 100 * value / progressBar.getMaximum();\n \t\tif (previous != current) progressBar.setString(\"\" + current + \"%\");\n \n \t\t// redraw calendar graphic\n \t\tprogressFrame.repaint();\n \t}", "public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n DataController.setCurrentDivisionForReading(progress);\r\n\r\n //set the value in the current value field:\r\n percentageSlid = (progress / (float) DIVISIONS_OF_VALUE_SLIDER);\r\n currentValueNumeric = minValueNumeric + (percentageSlid * deltaValueNumeric);\r\n dataController.setValueAsFloat(currentSliderKey, currentValueNumeric);\r\n GraphActivityFunctions.displayValue(currentValueEditText, currentValueNumeric, currentSliderKey);\r\n\r\n GraphActivityFunctions.invalidateGraphs(GraphActivity.this);\r\n\r\n Integer currentYearSelected = getCurrentYearSelected();\r\n setDataTableItems(dataTableItems, currentYearSelected);\r\n\r\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n int_seekbar_progress = progress;\n if(progress==0) {\n sw_state_brights = false;\n sw_brights.setChecked(false);\n }else {\n sw_state_brights = true;\n sw_brights.setChecked(true);\n }\n tv_brights_power.setText(progress + \"단계\");\n }" ]
[ "0.7558833", "0.75309366", "0.7473332", "0.74566984", "0.74337894", "0.7395942", "0.73752403", "0.7328539", "0.7322279", "0.7303404", "0.72760206", "0.7233457", "0.71933854", "0.7182855", "0.7139775", "0.71220225", "0.70999396", "0.70737374", "0.706699", "0.70408815", "0.70378804", "0.69968325", "0.6994106", "0.6978882", "0.6964562", "0.6962648", "0.69596916", "0.6895891", "0.68345374", "0.6829117", "0.6822465", "0.68112755", "0.6803208", "0.67847264", "0.6744934", "0.67417943", "0.66883004", "0.6666976", "0.66606635", "0.6640076", "0.6638076", "0.66338414", "0.66179055", "0.6617631", "0.6606166", "0.660477", "0.66021156", "0.66021156", "0.6591472", "0.6568677", "0.65629625", "0.65521675", "0.6548079", "0.65317893", "0.65145177", "0.65087414", "0.6503448", "0.64569944", "0.64534813", "0.6448734", "0.64459413", "0.6429336", "0.6422636", "0.6421893", "0.6387568", "0.6371159", "0.63201785", "0.6315775", "0.63116187", "0.6299418", "0.628444", "0.6268616", "0.62667555", "0.62651867", "0.6250381", "0.6240909", "0.62288254", "0.62288254", "0.6223752", "0.6212235", "0.62093043", "0.6207882", "0.6207882", "0.6205845", "0.6196017", "0.61956584", "0.61901456", "0.61766094", "0.6176258", "0.6174331", "0.6170458", "0.6168572", "0.6156304", "0.61364126", "0.6133128", "0.61262673", "0.61172765", "0.6103545", "0.6103208", "0.61004037" ]
0.6566965
50
Create a new HttpClient and Post Header
public void postData() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n String key = MessageFormat.format(\"{0}#{1}\", UserUtil.getUserUuid(), UserUtil.getUserId());\n\n //postDefaultHeaders.put(\"X-CLIENT-KEY\", key);\n defaultHeaders.put(\"X-CLIENT-KEY\", key);\n client.setTimeout(3000);\n }", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "private static HttpClient getNewHttpClient(){\n HttpParams params = new BasicHttpParams();\n return new DefaultHttpClient(params);\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }", "private HttpClient prepareHttpClient() {\n\t\tHttpClientParams htcParams = new HttpClientParams();\n\t\tmHttpClient = new HttpClient();\n\t\thtcParams.setConnectionManagerTimeout(300000);\n\t\thtcParams.setSoTimeout(300000);\n\t\tmHttpClient.setParams(htcParams);\n\t\treturn mHttpClient;\n\t}", "@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }", "private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "HttpClientRequest addHeader(CharSequence name, CharSequence value);", "public interface HttpClientInterface {\n byte[] post(String url, byte[] body);\n}", "public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}", "public HttpEntity openHttpEntityViaPost(URL url, List<NameValuePair> nvps) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n \r\n httpclient.setRedirectStrategy(new LaxRedirectStrategy());\r\n\r\n httpclient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);\r\n CookieStore store = new BasicCookieStore();\r\n for (Cookie cookie : cookies) {\r\n store.addCookie(cookie);\r\n }\r\n httpclient.setCookieStore(store);\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpPost post = new HttpPost(url.getFile());\r\n \r\n post.setEntity(new UrlEncodedFormEntity(nvps, Charset.forName(\"UTF-8\")));\r\n\r\n HttpResponse httpResponse = httpclient.execute(target, post, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Before\n public void buildClient() {\n BasicCookieStore cookieStore = new BasicCookieStore();\n\n // Build Apache Http Client to execute requests\n this.httpClient = HttpClientBuilder.create()\n .setDefaultCookieStore(cookieStore)\n .setRedirectStrategy(new LaxRedirectStrategy())\n .build();\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public PostBuilder() {\n httpClient = HttpClients.createDefault();\n httpPost = new HttpPost(localTesting ? \"http://localhost:8080\" : \"https://netflixstatistixserver.herokuapp.com\");\n attributes = new ArrayList<>();\n }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "HttpClientRequest addCookie(Cookie cookie);", "private HttpClient() {\n\t}", "HttpClientRequest header(CharSequence name, CharSequence value);", "HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;", "private static void sendPosts(HttpClient httpClient) {\n HttpTextResponse httpResponse = httpClient.post(\"/hello/mom\");\n puts(httpResponse);\n\n\n /* Send one param post. */\n httpResponse = httpClient.postWith1Param(\"/hello/singleParam\", \"hi\", \"mom\");\n puts(\"single param\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith2Params(\"/hello/twoParams\",\n \"hi\", \"mom\", \"hello\", \"dad\");\n puts(\"two params\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith3Params(\"/hello/3params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\");\n puts(\"three params\", httpResponse);\n\n\n /* Send four param post. */\n httpResponse = httpClient.postWith4Params(\"/hello/4params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\");\n puts(\"4 params\", httpResponse);\n\n /* Send five param post. */\n httpResponse = httpClient.postWith5Params(\"/hello/5params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\",\n \"hola\", \"neighbors\");\n puts(\"5 params\", httpResponse);\n\n\n /* Send six params with post. */\n\n final HttpRequest httpRequest = httpRequestBuilder()\n .setUri(\"/sixPost\")\n .setMethod(\"POST\")\n .addParam(\"hi\", \"mom\")\n .addParam(\"hello\", \"dad\")\n .addParam(\"greetings\", \"kids\")\n .addParam(\"yo\", \"pets\")\n .addParam(\"hola\", \"pets\")\n .addParam(\"salutations\", \"all\").build();\n\n\n httpResponse = httpClient.sendRequestAndWait(httpRequest);\n puts(\"6 params\", httpResponse);\n\n\n //////////////////\n //////////////////\n\n\n /* Using Async support with lambda. */\n httpClient.postAsync(\"/hi/async\", (code, contentType, body) -> puts(\"Async text with lambda\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith1Param(\"/hi/async\", \"hi\", \"mom\", (code, contentType, body) -> puts(\"Async text with lambda 1 param\\n\", body));\n\n Sys.sleep(100);\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith2Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n (code, contentType, body) -> puts(\"Async text with lambda 2 params\\n\", body));\n\n Sys.sleep(100);\n\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith3Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n (code, contentType, body) -> puts(\"Async text with lambda 3 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith4Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n (code, contentType, body) -> puts(\"Async text with lambda 4 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith5Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n \"p5\", \"v5\",\n (code, contentType, body) -> puts(\"Async text with lambda 5 params\\n\", body));\n\n Sys.sleep(100);\n\n\n }", "public HttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn new ApacheHttpClient(this.configuration, httpClient);\n\t}", "public static final DefaultHttpClient createHttpClient(int retryCount) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 15 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public HttpComponentsClientHttpRequest(HttpClient httpClient, HttpUriRequest httpRequest)\r\n/* 25: */ {\r\n/* 26:54 */ this.httpClient = httpClient;\r\n/* 27:55 */ this.httpRequest = httpRequest;\r\n/* 28: */ }", "public HttpAction<HttpPost> post(HttpClient client, String path, HttpEntity entity, Header... headers)\n throws Exception\n {\n HttpPost request = new HttpPost(getBaseURL() + getContextPath() + path);\n if (headers != null && headers.length > 0)\n {\n request.setHeaders(headers);\n }\n if (entity != null)\n {\n request.setEntity(entity);\n }\n request.setEntity(null);\n HttpContext context = new BasicHttpContext();\n HttpResponse response = client.execute(request, context);\n\n return new HttpAction<HttpPost>(client, context, request, response, getBaseURL(), getContextPath());\n }", "public interface HttpPoster {\n\n /**\n * Post data to the provided URL.\n *\n * @param url http url to be reached\n * @param headers headers to be sent\n * @param body body to be sent\n * @param mediaType media type definition\n * @return http response from the POST request\n * @throws IOException in case of http request error\n */\n HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;\n}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public TestState httpClient(HttpClient httpClient) {\n this.httpClient = httpClient;\n return this;\n }", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "Header createHeader();", "HttpResponse httpPost(URI uri);", "private DefaultHttpClient createHttpsClient() throws HttpException {\n DefaultHttpClient client = new DefaultHttpClient();\n SSLContext ctx = null;\n X509TrustManager tm = new TrustAnyTrustManager();\n try {\n ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(null, new TrustManager[] { tm }, null);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new HttpException(\"Can't create a Trust Manager.\", e);\n }\n SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"https\", 443, ssf));\n return client;\n }", "public void setHttpClient( HttpClient req ) {\r\n\tclient=req;\r\n }", "public void postData(String autho, String iVector) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httppost = new HttpGet(url);\n\n try {\n // Add your data\n// List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n// nameValuePairs.add(new BasicNameValuePair(\"username\", uName));\n// nameValuePairs.add(new BasicNameValuePair(\"password\", pWord));\n// nameValuePairs.add(new BasicNameValuePair(\"ivector\", iVector));\n\n// httppost.addHeader(\"username\", uName);\n// httppost.addHeader(\"password\", pWord);\n httppost.addHeader(\"Authorization\", autho);\n httppost.addHeader(\"ivector\", iVector);\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n String responseStr = EntityUtils.toString(response.getEntity());\n\n httppost.releaseConnection();\n httpclient.getConnectionManager().shutdown();\n\n\n handleResponse(responseStr);\n\n\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n //doNotification();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n //doNotification();\n }\n catch (RuntimeException e)\n {\n //doNotification();\n// text = \"Incorrect Username and/or Password\";\n// toast = Toast.makeText(context,text, duration);\n// toast.show();\n }\n }", "@Bean\n public HttpClient httpClient() {\n return new HttpClient(multiThreadedHttpConnectionManager());\n }", "@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "RequestHeaders headers();", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private static HttpClient getHttpClient() {\n if (mHttpClient == null) {\n mHttpClient = new DefaultHttpClient();\n final HttpParams params = mHttpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params, HTTP_TIMEOUT);\n HttpConnectionParams.setSoTimeout(params, HTTP_TIMEOUT);\n ConnManagerParams.setTimeout(params, HTTP_TIMEOUT);\n }\n return mHttpClient;\n }", "public static HttpClient getHttpClient() {\n HttpClient httpClient = new DefaultHttpClient();\n final HttpParams params = httpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params,\n HTTP_REQUEST_TIMEOUT_MS);\n HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n return httpClient;\n }", "ApacheHttpClientBuilder getApacheHttpClientBuilder();", "public interface HttpClient {\n\n\torg.apache.http.client.HttpClient getClient();\n\n\tString fetch(URI uri) throws IOException;\n\n\tvoid init() throws KeyManagementException, NoSuchAlgorithmException;\n}", "@Test\n public void getEndpoint() throws IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n //Creating a HttpGet object\n HttpPost httppost = new HttpPost(\"https://api.github.com/user/repos\");\n String auth=Credentials.getEmail()+\":\"+Credentials.getPassWard();\n byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName(\"ISO-8859-1\")));\n String authHeader=\"Basic \"+new String(encodedAuth);\n httppost.setHeader(HttpHeaders.AUTHORIZATION,authHeader);\n String json=\"{\\\"name\\\": \\\"ploiko\\\"}\";\n httppost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n HttpResponse httpresponse = httpclient.execute(httppost);\n System.out.println(httpresponse.getStatusLine());\n int actual=httpresponse.getStatusLine().getStatusCode();\n Assert.assertEquals(actual,201);\n //System.out.println(getHeaders(httpresponse,\"Access-Control-Allow-Methods\"));\n //System.out.println(httpresponse.getAllHeaders().toString());\n\n }", "public HttpClient(String host, int port)\n\t{\n\t\tsuper(host, port);\n\t\tclient = new org.apache.commons.httpclient.HttpClient();\n\t}", "public static Object httpClient() {\n return new Object();\n// return HttpClient.newBuilder()\n// .version(HttpClient.Version.HTTP_1_1)\n// .followRedirects(HttpClient.Redirect.NORMAL)\n// .connectTimeout(Duration.ofSeconds(300))\n// .build();\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "public CloseableHttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn httpClient;\n\t}", "public WeChatPayHttpComponentsClient(final HttpClient httpClient) {\n checkNotNull(httpClient, \"httpClient\");\n\n this.basePath = WeChatPayClient.BASE_PATH;\n this.httpClient = httpClient;\n }", "public static final DefaultHttpClient createHttpClient(int retryCount,\n\t\t\tint timeout) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, timeout);\n\t\tHttpConnectionParams.setSoTimeout(params, timeout);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, timeout);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\t// httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\t// httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "private HttpResponse executeHttpPost(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpPost httprequest = new HttpPost(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }", "private CloseableHttpClient getHttpClient() {\n return HttpClients.custom()\n .setConnectionManager(httpClientConnectionManager)\n .setConnectionManagerShared(true)\n .build();\n }", "@Bean\n\tpublic HttpClient httpClient() {\n\t\treturn new HttpClient(this.multiThreadedHttpConnectionManager);\n\t}", "public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "public HttpEntity openHttpEntity(URL url) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n\r\n for (Cookie cookie : cookies) {\r\n httpclient.getCookieStore().addCookie(cookie);\r\n }\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpGet httpGet = new HttpGet(url.getFile());\r\n HttpResponse httpResponse = httpclient.execute(target, httpGet, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "private static HttpRequest buildRequest(final URI uri, final String host) {\n FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n getHttpMethod(), uri.getRawPath());\n request.headers().set(HttpHeaderNames.HOST, host);\n request.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n request.headers().set(HttpHeaderNames.ACCEPT_ENCODING,\n HttpHeaderValues.GZIP);\n request.headers().set(HttpHeaderNames.CONTENT_TYPE,\n \"application/json; charset=UTF-8\");\n\n // Set some example cookies.\n request.headers().set(HttpHeaderNames.COOKIE,\n ClientCookieEncoder.STRICT.encode(\n new DefaultCookie(\"my-cookie\", \"foo\"),\n new DefaultCookie(\"another-cookie\", \"bar\")));\n\n // set content\n final ByteBuf buffer = request.content().clear();\n final String json = \"hello, json\";\n int p0 = buffer.writerIndex();\n buffer.writeBytes(json.getBytes(CharsetUtil.UTF_8));\n int p1 = buffer.writerIndex();\n request.headers().set(HttpHeaderNames.CONTENT_LENGTH,\n Integer.toString(p1 - p0));\n\n return request;\n }", "public static HttpURLConnection makePost(URL baseUrl, String path, String params)\n throws IOException {\n URL url = new URL(String.format(\"%s/%s\", baseUrl.toString(), path));\n Log.d(TAG, \"POST \" + url.toString() + \" \" + params);\n\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n connection.setRequestProperty(\"Content-Length\", Integer.toString(params.getBytes().length));\n\n // FIXME: Investigate proper usage of Content-Language\n connection.setRequestProperty(\"Content-Language\", \"en-US\");\n setAcceptLanguage(connection);\n\n connection.setUseCaches(false);\n connection.setDoInput(true);\n connection.setDoOutput(true);\n\n // Send the request\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(params);\n wr.flush();\n wr.close();\n return connection;\n }", "public CurlRequest newRequest(final String action, final String body) {\n\t\tfinal var builder = AWS4SignatureQuery.builder().service(\"cognito-idp\").body(\"&Version=2016-04-18\");\n\t\tfinal var headers = new HashMap<String, String>();\n\t\theaders.put(\"x-amz-target\", \"AWSCognitoIdentityProviderService.\" + action);\n\t\theaders.put(\"Content-Type\", \"application/x-amz-json-1.1\");\n\t\tfinal var query = builder.accessKey(accessKey).secretKey(secretKey).region(region).path(\"/\").headers(headers)\n\t\t\t\t.body(body).host(URI.create(url).getHost()).build();\n\t\tfinal var authorization = signer.computeSignature(query);\n\t\tfinal var request = new CurlRequest(query.getMethod(), url, query.getBody());\n\t\trequest.getHeaders().putAll(query.getHeaders());\n\t\trequest.getHeaders().put(\"Authorization\", authorization);\n\t\trequest.setSaveResponse(true);\n\t\treturn request;\n\t}", "public static String post(String url, String s,Map<String, String> headers) {\n AsyncHttpClient.BoundRequestBuilder builder = asyncHttpClient.preparePost(url);\n builder.setBodyEncoding(DEFAULT_CHARSET);\n builder.setBody(s);\n useCookie(builder);\n builder.setHeader(\"Content-Type\", DEFAULT_CONTENT_TYPE);\n if (headers != null && !headers.isEmpty()) {\n Set<String> keys = headers.keySet();\n for (String key : keys) {\n builder.addHeader(key, headers.get(key));\n }\n }\n Future<Response> f = builder.execute();\n String body = null;\n try {\n body = f.get().getResponseBody(DEFAULT_CHARSET);\n addCookie(f.get().getCookies());\n } catch (Exception e) {\n logger.error(LogUtil.builder().method(\"Post Request(the result is String,the param is a string in request body)\").msg(\"error,url={}\").build(), url, e);\n }\n return body;\n }", "@Override\n\tprotected HttpRequest createHttpRequest() {\n HttpGet httpGet = new HttpGet(getHost() + \"/repos/\" + owner + \"/\" + repo + \"/pulls?state=\" + state);\n httpGet.setHeader(\"Accept\", GITHUB_ACCEPT_HEADER);\n if (username != null && password != null) {\n \thttpGet.setHeader(\"Authentication\", AuthenticationUtils.getBasicAuthentication(username, password));\n }\n return httpGet;\n }", "private void CreateConnection()\n throws IOException {\n URL url = new URL(requestURL);\n //creates connection\n httpConn = (HttpURLConnection) url.openConnection();\n //sets headers\n Set<Map.Entry<String, String>> set = headers.entrySet();\n for (Map.Entry<String, String> me : set) {\n httpConn.setRequestProperty(me.getKey(), me.getValue());\n }\n //sets method\n httpConn.setRequestMethod(method);\n httpConn.setUseCaches(false);\n if (method == \"POST\") {\n httpConn.setDoOutput(true);\n httpConn.setDoInput(true);\n }\n\n }", "public static void main(String[] args) {\n\t\tHttpClient client = new HttpClient();\n\t\tPostMethod myPost = new PostMethod(string );\n\t\ttry{\n\t\t\t//��������ͷ������ \n\t\t\tmyPost.setRequestHeader(\"Content-Type\", \"text/xml\");\n\t\t\tmyPost.setRequestHeader(\"charset\", \"utf-8\");\n\t\t\tmyPost.setRequestHeader(\"x-app-key\", \"c85d54f1\");\n\t\t\tmyPost.setRequestHeader(\"x-sdk-version\", \"3.1\");\n\n\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n\t\t\tmyPost.setRequestHeader(\"x-request-date\", date);\n\t\t\tString x_task_config = \"capkey=hwr.cloud.letter\";\n\t\t\tmyPost.setRequestHeader(\"x-task-config\", x_task_config);\n//\t\t\tString b = new String(g_sShortData);\n\t\t\tString str = \"712ddd892cf9163e6383aa169e0454e3\" + date + x_task_config ;\n//\t\t\tSystem.out.println(str);\n\t\t\tmyPost.setRequestHeader(\"x-auth\", MD5.getMD5((str + g_sShortData.toString()).getBytes()));\n//\t\t\tmyPost.setRequestHeader(\"x-udid\", \"101:123456789\");\n\t\t\tSystem.out.println(g_sShortData.length);\n\t\t\tbyte[] b = new byte[g_sShortData.length];\n\t\t\tfor(int i=0; i<g_sShortData.length; i++){\n\t\t\t\tb[i] = (byte) g_sShortData[i];\n\t\t\t}\n\t\t\t\n\t\t\tRequestEntity entity = new StringRequestEntity(new String(b, \"iso-8859-1\"), \"application/octet-stream\", \"iso-8859-1\");\n\t\t\tmyPost.setRequestEntity(entity);\n\t\t\tint statusCode = client.executeMethod(myPost);\n\t\t\tString.format(\"%d\", statusCode);\n\t\t\tSystem.out.println(statusCode);\n\t\t\t\n\t\t\tif (statusCode == HttpStatus.SC_OK) {\n\t\t\t\tInputStream txtis = myPost.getResponseBodyAsStream(); \n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(txtis, \"utf-8\"));\n\t\t\t\t\n\t\t\t\tString tempbf;\n\t\t\t\tStringBuffer html = new StringBuffer(256);\n\t\t\t\twhile((tempbf = br.readLine()) != null){\n\t\t\t\t\thtml.append(tempbf);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(html.toString());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public HttpClient post(final Env env, StringValue uri, final Callback handler) {\n client.post(uri.toString(), createResponseHandler(env, handler));\n return this;\n }", "HttpHeaderType createHttpHeaderType();", "private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n .setResponseTimeout(Timeout.ofMilliseconds(DEFAULT_RESPONSE_TIMEOUT_MILLIS));\n if (requestConfigCallback != null) {\n requestConfigBuilder = requestConfigCallback.customizeRequestConfig(requestConfigBuilder);\n }\n\n try {\n final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create()\n .setSslContext(SSLContext.getDefault())\n // See https://issues.apache.org/jira/browse/HTTPCLIENT-2219\n .setTlsDetailsFactory(new Factory<SSLEngine, TlsDetails>() {\n @Override\n public TlsDetails create(final SSLEngine sslEngine) {\n return new TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol());\n }\n })\n .build();\n\n final PoolingAsyncClientConnectionManager connectionManager = PoolingAsyncClientConnectionManagerBuilder.create()\n .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)\n .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)\n .setTlsStrategy(tlsStrategy)\n .build();\n\n HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClientBuilder.create()\n .setDefaultRequestConfig(requestConfigBuilder.build())\n .setConnectionManager(connectionManager)\n .setTargetAuthenticationStrategy(DefaultAuthenticationStrategy.INSTANCE)\n .disableAutomaticRetries();\n if (httpClientConfigCallback != null) {\n httpClientBuilder = httpClientConfigCallback.customizeHttpClient(httpClientBuilder);\n }\n\n final HttpAsyncClientBuilder finalBuilder = httpClientBuilder;\n return AccessController.doPrivileged((PrivilegedAction<CloseableHttpAsyncClient>) finalBuilder::build);\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateException(\"could not create the default ssl context\", e);\n }\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public DefaultHttpClientImpl() {\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n schemeRegistry.register(new Scheme(\n \"http\", PlainSocketFactory.getSocketFactory(), 80));\n\n schemeRegistry.register(new Scheme(\n \"https\", SSLSocketFactory.getSocketFactory(), 443));\n conman = new ThreadSafeClientConnManager(params, schemeRegistry);\n }", "public DefaultHttpRequestBuilder (final DefaultHttpClient client) {\r\n\t\tif (client == null) {\r\n\t\t\tthrow new NullPointerException (\"client cannot be null\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.client = client;\r\n\t}", "public static HttpCarbonMessage createHttpCarbonMessage() {\n HttpCarbonMessage httpCarbonMessage;\n httpCarbonMessage = new HttpCarbonMessage(\n new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK));\n return httpCarbonMessage;\n }", "public void enablePOST() {\n\t\thttpPost = new HttpPost(\"http://23.21.229.136/message.php\");\n\t\thttpPostLog = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/LogModuleEventServlet\");\n\t\thttpPostScheduledEvent = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/ScheduleEvent\");\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\t\t// Set the timeout in milliseconds until a connection is established.\n\t\tint timeoutConnection = 3000;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters,\n\t\t\t\ttimeoutConnection);\n\t\t// Set the default socket timeout (SO_TIMEOUT)\n\t\t// in milliseconds which is the timeout for waiting for data.\n\t\tint timeoutSocket = 3000;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n\t\thttpClient = new DefaultHttpClient(httpParameters);\n\t}", "public void post(Controller controller) {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n executorService.execute(() -> {\n String responseString = null;\n try {\n httpPost.setEntity(new UrlEncodedFormEntity(attributes, \"UTF-8\"));\n HttpResponse response = httpClient.execute(httpPost);\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n responseString = EntityUtils.toString(entity);\n }\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n controller.handleResponse(responseString);\n });\n }", "public HTTPResponse( Transaction t, Content ct, Headers hd ){\n super();\n\n Pia.debug(this, \"Constructor-- [ transaction t, content ct, headers hd ] on duty...\");\n\n contentObj = ct;\n headersObj = hd; // maybe generate?\n\n if( contentObj != null )\n contentObj.setHeaders( headersObj );\n \n requestTran = t;\n fromMachine( t.toMachine() );\n toMachine( t.fromMachine() );\n\n startThread();\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "@SuppressWarnings(\"deprecation\")\n\tprotected static HttpUriRequest createHttpRequest(Request<?> request, Map<String, String> additionalHeaders) throws AuthFailureError {\n\t\tswitch (request.getMethod()) {\n\t\tcase Method.DEPRECATED_GET_OR_POST: {\n\t\t\t// This is the deprecated way that needs to be handled for backwards compatibility.\n\t\t\t// If the request's post body is null, then the assumption is that the request is\n\t\t\t// GET. Otherwise, it is assumed that the request is a POST.\n\t\t\tbyte[] postBody = request.getPostBody();\n\t\t\tif (postBody != null) {\n\t\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getPostBodyContentType());\n\t\t\t\tHttpEntity entity;\n\t\t\t\tentity = new ByteArrayEntity(postBody);\n\t\t\t\tpostRequest.setEntity(entity);\n\t\t\t\treturn postRequest;\n\t\t\t} else {\n\t\t\t\treturn new HttpGet(request.getUrl());\n\t\t\t}\n\t\t}\n\t\tcase Method.GET:\n\t\t\treturn new HttpGet(request.getUrl());\n\t\tcase Method.DELETE:\n\t\t\treturn new HttpDelete(request.getUrl());\n\t\tcase Method.POST: {\n\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(postRequest, request);\n\t\t\treturn postRequest;\n\t\t}\n\t\tcase Method.PUT: {\n\t\t\tHttpPut putRequest = new HttpPut(request.getUrl());\n\t\t\tputRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(putRequest, request);\n\t\t\treturn putRequest;\n\t\t}\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Unknown request method.\");\n\t\t}\n\t}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public <T> T create(String baseUrl, Class<T> clz) {\n String service_url = \"\";\n try {\n Field field1 = clz.getField(\"BASE_URL\");\n service_url = (String) field1.get(clz);\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.getMessage();\n e.printStackTrace();\n }\n return createApiClient(\n TextUtils.isEmpty(service_url) ? baseUrl : service_url).create(clz);\n }", "public interface HttpClientable {\n\n void get(String url);\n\n void get(String url, ParamStore params);\n\n void get(String url, ParamStore params, String tag);\n\n void post(String url, SparseArray<String> params);\n\n void post(String url, SparseArray<String> params, String tag);\n\n void upload(String url, HashMap<String, Object> params);\n\n void upload(String url, HashMap<String, Object> params, String tag);\n\n void download(String url);\n\n void download(String url, String tag);\n\n void cancelAll();\n\n void cancel(String tag);\n\n}", "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "void addHttpContent(HttpContent httpContent);", "public void postAny(String postUrl, StringEntity postingString) {\r\n try {\r\n HttpPost post = new HttpPost(postUrl);\r\n TrustStrategy acceptingTrustStrategy = new TrustSelfSignedStrategy();\r\n SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy)\r\n .build();\r\n SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);\r\n HttpClient httpClient = HttpClients.custom().setSSLSocketFactory(scsf).build();\r\n post.addHeader(\"accept\", \"application/json\");\r\n post.setHeader(\"Content-type\", \"application/json\");\r\n post.setEntity(postingString);\r\n HttpResponse response = httpClient.execute(post);\r\n\r\n System.out.println(\"Response is \" + response.toString());\r\n } catch (Exception e) {\r\n System.out.println(\"Exception \" + e);\r\n }\r\n }", "public static final DefaultHttpClient createHttpClient(String proxyUri,\n\t\t\tint port) {\n\t\t// Shamelessly cribbed from AndroidHttpClient\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpHost host = new HttpHost(proxyUri, port);\n\t\tparams.setParameter(ConnRouteParams.DEFAULT_PROXY, host);\n\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 10 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\t3, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "public MockHttpServletRequest newPost(String url) {\n return new MockHttpServletRequest(\"POST\", url);\n }", "private <T> HttpEntity createHttpEntityForJson(T body) {\r\n\t\tString dataForEntity;\r\n\t\tif (!(body instanceof String)) {\r\n\t\t\tdataForEntity = gson.toJson(body);\r\n\t\t} else {\r\n\t\t\tdataForEntity = (String) body;\r\n\t\t}\r\n\t\t// try {\r\n\t\treturn new StringEntity(dataForEntity, Charset.forName(\"utf-8\"));\r\n\t\t// } catch (UnsupportedEncodingException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// return null;\r\n\t}", "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "@Provides\n @Singleton\n Client provideHttpClient(Environment environment, PermissionsAppConfig config) {\n HttpClientConfiguration httpClientConfiguration = new HttpClientConfiguration();\n httpClientConfiguration.setTimeout(Duration.milliseconds(7000));\n\n HttpClientBuilder clientBuilder = new HttpClientBuilder(environment);\n clientBuilder.using(httpClientConfiguration);\n\n JerseyClientBuilder builder = new JerseyClientBuilder(environment);\n builder.setApacheHttpClientBuilder(clientBuilder);\n\n Client client = builder.build(\"jerseyClient\");\n client.register(ClientCorrelationIdFilter.class, 1);\n client.register(JerseyLoggingFilter.class, 2);\n return client;\n }", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "protected WebTestArtifact makeHttpRequest(String resource, String httpMethod)\r\n {\r\n return new WebTestArtifact(resource, httpMethod);\r\n }", "public BitbucketServiceFactory() {\n this.httpClient = HttpClient::create;\n }", "public AsyncHttpResponse(String url, HttpResponseHeaders headers, byte[] payload) {\n mUrl = url;\n mHeaders = headers;\n mPayload = payload;\n mException = null;\n }", "private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor);\n\n return clientBuilder.build();\n }", "CompletableFuture<PostResponse> createNewPost(Post post);", "public HttpEntity openHttpEntityViaPost(URL url, Map<String, String> params) throws IOException {\r\n List<NameValuePair> nvps = new ArrayList<NameValuePair>();\r\n for (String pName : params.keySet()) {\r\n nvps.add(new BasicNameValuePair(pName, params.get(pName)));\r\n }\r\n return openHttpEntityViaPost(url, nvps);\r\n }", "public Builder httpClientInstance(okhttp3.OkHttpClient httpClientInstance) {\r\n configurationBuilder.httpClientInstance(httpClientInstance);\r\n return this;\r\n }", "String addclient(ContentValues client);", "ResponseHandler createResponseHandler();" ]
[ "0.6946483", "0.6791638", "0.6690835", "0.64410734", "0.62591386", "0.6240455", "0.6178956", "0.6175448", "0.61484545", "0.6023752", "0.5957844", "0.59496754", "0.5921056", "0.59040177", "0.59015733", "0.5873391", "0.5845826", "0.58342654", "0.58114904", "0.5791647", "0.5717884", "0.56985545", "0.569217", "0.5644128", "0.56242037", "0.56102854", "0.5597314", "0.55541474", "0.55323434", "0.5526996", "0.5520274", "0.55161846", "0.54995114", "0.5497852", "0.54958993", "0.5477244", "0.54433244", "0.5438142", "0.54338247", "0.54281527", "0.5414742", "0.54139376", "0.53647244", "0.53617865", "0.5339481", "0.53380865", "0.53364104", "0.5334233", "0.5329836", "0.53268313", "0.53247386", "0.5323812", "0.5317347", "0.5308425", "0.52751386", "0.5274291", "0.5265499", "0.52582216", "0.5252781", "0.5249137", "0.5244037", "0.5211955", "0.52056456", "0.5201673", "0.5200589", "0.5200061", "0.51961195", "0.51808876", "0.51779777", "0.5166962", "0.5153572", "0.51530576", "0.5147452", "0.513328", "0.51292074", "0.5104871", "0.51039267", "0.50986284", "0.5091155", "0.5090944", "0.50671417", "0.5056048", "0.5045958", "0.5044684", "0.50350004", "0.50224197", "0.5014609", "0.4993788", "0.4986222", "0.49804986", "0.49729627", "0.49706396", "0.49675897", "0.4950506", "0.4947168", "0.4942878", "0.49418905", "0.4939811", "0.4936247", "0.4921142", "0.4908117" ]
0.0
-1
/ restricciones de gps 1) checar que este en el campus 2) despues de media hora de clase y hasta la hora
@Override public void onClick(View arg0) { String CadenaTemp = (child.get(childPosition)); String largoCadena = String.valueOf(CadenaTemp.length()); final String grupo = String.valueOf(groupPosition); Integer largoc = Integer.parseInt(largoCadena); Integer ngrupo = Integer.parseInt(grupo); List <String> miListaDePalabras = new ArrayList <String> (); if ((largoc > 70) && (ngrupo != 0)) { //Toast.makeText(context, child.get(childPosition), Toast.LENGTH_LONG).show(); // Log.d("cadena1",CadenaTemp); // Log.d("cadena2",largoCadena); // Log.d("cadena3",largoc.toString()); //Log.d("cadena4",ngrupo.toString()); ///String str = CadenaTemp; //str = str.replaceAll("[^-?0-9]+", " "); //String newName = CadenaTemp.replaceAll(":", " "); // System.out.println(Arrays.asList(str.trim().split(" "))); //System.out.println(Arrays.asList(newName.trim().split(" "))); // miListaDePalabras=Arrays.asList(newName.trim().split(" ")); //Log.d("Cadena 5", miListaDePalabras.get(2)); String lines[]=CadenaTemp.split("\\r?\\n"); Log.d("Cadena 6 ",lines[0]); final String linea0[]=lines[0].split(":",2); Log.d("materia",linea0[1]); final String linea1[]=lines[1].split(":",2); Log.d("Horario",linea1[1]); final String linea2[]=lines[2].split(":",2); Log.d("Edificio",linea2[1]); final String linea3[]=lines[3].split(":",2); Log.d("Aula",linea3[1]); final String linea4[]=lines[4].split(":",2); Log.d("profesor",linea4[1]); AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle(R.string.tutorDialogTitle) .setMessage(R.string.tutorDialogMessage) .setCancelable(true) .setPositiveButton(R.string.tutorDialogAccept, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); String url = "http://dcc.netai.net/insertaDatosDedocucei.php"; String aux = ""; if(isValidTime(linea1[1],grupo) && isValidLocation()) { try { DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); // HttpPost httpPost = new // HttpPost("http://localhost/siiau1/profesores.php"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("hora", linea1[1])); nameValuePairs.add(new BasicNameValuePair("modulo", linea2[1] + "," + linea3[1])); nameValuePairs.add(new BasicNameValuePair("materia", linea0[1])); nameValuePairs.add(new BasicNameValuePair("maestro", linea4[1])); httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); httpResponse.getStatusLine(); if (httpEntity != null) { aux = EntityUtils.toString(httpEntity); } else { aux = "Error"; } Log.d("Servidor", aux); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (ClientProtocolException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } }else{ showNotValidRequestDialog(); } dialog.cancel(); } }) .setNegativeButton(R.string.tutorDialogCancel, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }) ; AlertDialog alert = builder.create(); alert.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n SubPlanListDTO llh = (SubPlanListDTO)v.getTag();\n //Toast.makeText(getApplicationContext(),\"위치 x=\"+llh.getLlh_x()+\"y=\"+llh.getLlh_y(),Toast.LENGTH_SHORT).show();\n ////여기수정하면됨......\n Date date = new Date();\n SimpleDateFormat transFormat = new SimpleDateFormat(\"HH:mm\");\n String to = transFormat.format(date);\n System.out.println(to);\n\n String tos[] = to.split(\":\");\n String times[] = llh.getTime().split(\"~\");\n String start_times[] = times[0].split(\":\");\n String end_times[] = times[1].split(\":\");\n\n lat2 = Double.parseDouble(llh.getLlh_x());\n lon2 = Double.parseDouble(llh.getLlh_y());\n gps = new GpsInfo(ToDayListSubplan.this);\n\n if(Integer.parseInt(tos[0]) == Integer.parseInt(start_times[0])){\n if(Integer.parseInt(tos[1])>=Integer.parseInt(start_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치1 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치에서 500m 사이 거리가 아닙니다.\",\n Toast.LENGTH_LONG).show();\n }\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n } else if(Integer.parseInt(tos[0]) == Integer.parseInt(end_times[0])){\n if(Integer.parseInt(tos[1])<=Integer.parseInt(end_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치2 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n }\n\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n }\n\n\n }", "private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }", "private void comenzarLocalizacionPorGPS() {\n\t\tmLocManagerGPS = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n//\t\tLog.i(LOGTAG, \"mLocManagerGPS: \" + mLocManagerGPS);\n\t\t\n\t\t//Nos registramos para recibir actualizaciones de la posicion\n\t\tmLocListenerGPS = new LocationListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n//\t\t\t\tLog.i(LOGTAG, \"Cambio en estatus GPS: \" + provider + \" status: \" + status);\n//\t\t\t\tToast.makeText(getApplicationContext(), \"Cambio en estatus GPS: \" + provider + \" status: \" + status, Toast.LENGTH_SHORT).show();\n//\t\t\t\tif (status != 1) {\n//\t\t\t\t\tToast.makeText(getApplicationContext(), \"GPS NA, Iniciar geo por datos\", Toast.LENGTH_SHORT).show();\n//\t\t\t\t} else {\n//\t\t\t\t\tToast.makeText(getApplicationContext(), \"Se geolocalizo por GPS, no lanzar geo por datos\", Toast.LENGTH_SHORT).show();\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"GPS Encendido\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttimeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).format(new Date());\n//\t\t\t\tString numeroTelefonico = obtenerLineaTelefonica();\n\t\t\t\tString imeiTelefono = obtenerIMEI();\n\t\t\t\tString icono = \"icons/gpsEncendido.png\";\n\t\t\t\tdatasource.guardoGeolocalizacionInvisible(imeiTelefono, icono, timeStamp);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"GPS Apagado por favor revise\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttimeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).format(new Date());\n//\t\t\t\tString numeroTelefonico = obtenerLineaTelefonica();\n\t\t\t\tString imeiTelefono = obtenerIMEI();\n\t\t\t\tString icono = \"icons/gpsApagado.png\";\n\t\t\t\tdatasource.guardoGeolocalizacionInvisible(imeiTelefono, icono, timeStamp);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tguardarPosicion(location);\n\t\t\t}\n\t\t};\n//\t\tLog.i(LOGTAG, \"mLocListenerGPS: \" + mLocListenerGPS);\n\t\tmLocManagerGPS.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, mLocListenerGPS);\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n currentLocation = new float[]{(float)location.getLatitude(),(float)location.getLongitude()};\n\n Task<String> timeTask = getExtraTime(p.latOfPerson,p.lonOfPerson);\n if(timeTask!=null){\n timeTask.addOnCompleteListener(new OnCompleteListener<String>() {\n @Override\n public void onComplete(@NonNull Task<String> task) {\n if(task.isSuccessful()){\n String[] s = task.getResult().split(\",\");\n extraTime.setText(\"\"+((-Integer.parseInt(s[1])+Integer.parseInt(s[0])+Integer.parseInt(s[3]))/60)+\" Minutes Extra\");\n }\n }\n });\n }\n }\n }", "@Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }", "@Override\n\tpublic Map getStartandStopByGPS(String terminalId, String start_time,\n\t\t\tString stop_time) {\n\t\tMap map = new HashMap();\n\t\ttry {\n\t\t\tif(start_time.length()==12&&stop_time.length()==12){\n\t\t\t\tString start_time_in_format = start_time.substring(0,2) + \"-\" + start_time.substring(2,4) + \"-\" + start_time.substring(4,6) + \" \" + start_time.substring(6,8) + \":\" + start_time.substring(8,10) + \":\" + start_time.substring(10,12);\n\t\t\t\tString stop_time_in_format = stop_time.substring(0,2) + \"-\" + stop_time.substring(2,4) + \"-\" + stop_time.substring(4,6) + \" \" + stop_time.substring(6,8) + \":\" + stop_time.substring(8,10) + \":\" + stop_time.substring(10,12);\n\t\t\t\tmap.put(\"start_time_in_format\", start_time_in_format);\n\t\t\t\tmap.put(\"stop_time_in_format\", stop_time_in_format);\n\t\t\t\tList<PositionData> position_between = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' and date>'\" + start_time_in_format + \"' and date<'\" + stop_time_in_format + \"' order by date desc\");\n\t\t\t\tfor(int i=0;i<position_between.size();i++){\n\t\t\t\t\tif(position_between.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\t\tposition_between.remove(i);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString start_point = \"Nil\";\n\t\t\t\tString stop_point = \"Nil\";\n\t\t\t\tif(position_between.size()>0){\n\t\t\t\t\tString stop_point_latitude = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.substring(0,stop_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.split(\":\")[1];\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart = stop_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart = \"0.\" + tempStrPart;\n\t\t\t\t\tdouble tempD = Double.parseDouble(tempStrPart)/60*100;\n\t\t\t\t\tstop_point_latitude = Integer.parseInt(stop_point_latitude.split(\"\\\\.\")[0]) + tempD + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString stop_point_longitute = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.substring(0,stop_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.split(\":\")[1];\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart = \"0.\" + stop_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD = Double.parseDouble(_tempStrPart)/60*100;\n\t\t\t\t\tstop_point_longitute = Integer.parseInt(stop_point_longitute.split(\"\\\\.\")[0]) + _tempD + \"\";\n\t\t\t\t\tstop_point = stop_point_longitute + \",\" + stop_point_latitude;\n\t\t\t\t\t\n\t\t\t\t\tString start_point_latitude = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.substring(0,start_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.split(\":\")[1];\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart1 = start_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_latitude = Integer.parseInt(start_point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString start_point_longitute = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.substring(0,start_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.split(\":\")[1];\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart1 = \"0.\" + start_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD1 = Double.parseDouble(_tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_longitute = Integer.parseInt(start_point_longitute.split(\"\\\\.\")[0]) + _tempD1 + \"\";\n\t\t\t\t\tstart_point = start_point_longitute + \",\" + start_point_latitude;\n//\t\t\t\t\tSystem.out.println(start_point + \"-->\" + stop_point);\n//\t\t\t\t\tmap.put(\"start_point\",start_point);\n//\t\t\t\t\tmap.put(\"stop_point\", stop_point);\n\t\t\t\t}\n\t\t\t\treturn map;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private String buildGPRMC(String time, String date, String lattitude, String lon) {\n\t\tStringBuilder sb = new StringBuilder(\"$GPRMC,\");\n\n\t\tsb.append(time);// 1\n\t\tsb.append(\",A,\");//2\n\t\tsb.append(lattitude);// 2,3\n\t\tsb.append(',');\n\t\tsb.append(lon);// 4,5\n\t\tsb.append(',');\n\t\tdouble knots = getSpeed()/1.852;\n\t\tsb.append(KNOTS_FORMAT.format(knots));// 022.4 Speed over the ground in knots \n\t\tsb.append(',');\n\t\tdouble track = getHeading();\n\t\tsb.append(TRACK_FORMAT.format(track));//084.4 Track angle in degrees True \n\t\tsb.append(',');\n\t\tsb.append(date);// 230394 Date - 23rd of March 1994\n\t\tsb.append(',');\n\t\tsb.append(\"003.1,W\");// 003.1,W Magnetic Variation \n\t\tsb.append('*');\n\t\tString check = getChecksum(sb.toString());\n\t\tsb.append(check);\n\t\tsb.append(\"\\r\\n\");\n\t\treturn sb.toString();\n\t}", "private void readGPS() {\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n float zoomLevel = 7.0f;\n\n // Add a markers of every destination and move the camera\n Bundle b = this.getIntent().getExtras();\n String[] records = b.getStringArray(\"Records\");\n\n double lat;\n double lon;\n\n int index = 1;\n\n for(int r = 0; r < records.length; r++){\n\n if(index == records.length - 7){\n lat = Double.parseDouble(records[records.length - 4]);\n lon = Double.parseDouble(records[records.length - 3]);\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n break;\n }\n\n lat = Double.parseDouble(records[index+3]);\n lon = Double.parseDouble(records[index+4]);\n\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n index+=8;\n }\n\n\n /*\n // Царевец\n LatLng carevec = new LatLng(43.084030f, 25.652586f);\n mMap.addMarker(new MarkerOptions().position(carevec).title(\"Царевец\")).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carevec, zoomLevel));\n\n // Чудни мостове\n LatLng chydniMostove = new LatLng(41.819929f, 24.581748f);\n mMap.addMarker(new MarkerOptions().position(chydniMostove).title(\"„Чудните Мостове“\")).showInfoWindow();\n\n // Ягодинска Пещера\n LatLng yagodinskaPeshtera = new LatLng(41.628984f, 24.329589f);\n mMap.addMarker(new MarkerOptions().position(yagodinskaPeshtera).title(\"Ягодинска Пещера\")).showInfoWindow();\n\n // Връх Снежанка\n LatLng vruhSnejanka = new LatLng(41.638506f, 24.675594f);\n mMap.addMarker(new MarkerOptions().position(vruhSnejanka).title(\"Връх Снежанка\")).showInfoWindow();\n\n // Белоградчишки скали\n LatLng belogradchiskiSkali = new LatLng(43.623361f, 22.677964f);\n mMap.addMarker(new MarkerOptions().position(belogradchiskiSkali).title(\"Белоградчишки Скали\")).showInfoWindow();\n\n // Пещера „Леденика“\n LatLng peshteraLedenika = new LatLng(43.204703f, 23.493687f);\n mMap.addMarker(new MarkerOptions().position(peshteraLedenika).title(\"Пещера „Леденика“\")).showInfoWindow();\n\n // Паметник На Христо Ботев И Неговата Чета\n LatLng pametneikHristoBotev = new LatLng(43.798045f, 23.677926f);\n mMap.addMarker(new MarkerOptions().position(pametneikHristoBotev).title(\"Паметник На Христо Ботев И Неговата Чета\")).showInfoWindow();\n\n // Национален Музей \"Параход Радецки\"\n LatLng myzeiParahodRadecki = new LatLng(43.799125f, 23.676921f);\n mMap.addMarker(new MarkerOptions().position(myzeiParahodRadecki).title(\"Национален Музей 'Параход Радецки'\")).showInfoWindow();\n\n // Археологически Резерват „Калиакра”\n LatLng rezervatKaliakra = new LatLng(43.361190f, 28.465788f);\n mMap.addMarker(new MarkerOptions().position(rezervatKaliakra).title(\"Археологически Резерват „Калиакра”\")).showInfoWindow();\n\n // Перперикон\n LatLng perperikon = new LatLng(41.718126f, 25.468954f);\n mMap.addMarker(new MarkerOptions().position(perperikon).title(\"Перперикон\")).showInfoWindow();\n\n // Вр. Мусала (2925 М.) - Рила\n LatLng vruhMysala = new LatLng(42.180021f, 23.585167f);\n mMap.addMarker(new MarkerOptions().position(vruhMysala).title(\"Вр. Мусала (2925 М.) - Рила\")).showInfoWindow();\n\n // Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\n LatLng vruhShipka = new LatLng(42.748281f, 25.321387f);\n mMap.addMarker(new MarkerOptions().position(vruhShipka).title(\"Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\")).showInfoWindow();\n\n // Пещера – Пещера „Снежанка“ (Дължина: 145 М)\n LatLng peshteraSnejanka = new LatLng(42.004459f, 24.278645f);\n mMap.addMarker(new MarkerOptions().position(peshteraSnejanka).title(\"Пещера – Пещера „Снежанка“ (Дължина: 145 М)\")).showInfoWindow();\n\n // Античен Театър\n LatLng antichenTeatur = new LatLng(42.147109f, 24.751005f);\n mMap.addMarker(new MarkerOptions().position(antichenTeatur).title(\"Античен Театър\")).showInfoWindow();\n\n // Асенова Крепост\n LatLng asenovaKrepost = new LatLng(41.987020f, 24.873552f);\n mMap.addMarker(new MarkerOptions().position(asenovaKrepost).title(\"Асенова Крепост\")).showInfoWindow();\n\n // Бачковски Манастир\n LatLng bachkovskiManastir = new LatLng(41.942380f, 24.849340f);\n mMap.addMarker(new MarkerOptions().position(bachkovskiManastir).title(\"Бачковски Манастир\")).showInfoWindow();\n\n // Резерват „Сребърна“\n LatLng rezervatSreburna = new LatLng(44.115654f, 27.071807f);\n mMap.addMarker(new MarkerOptions().position(rezervatSreburna).title(\"Резерват „Сребърна“\")).showInfoWindow();\n\n // Мадарски Конник\n LatLng madarskiKonnik = new LatLng(43.277708f, 27.118949f);\n mMap.addMarker(new MarkerOptions().position(madarskiKonnik).title(\"Мадарски Конник\")).showInfoWindow();\n\n // Седемте Рилски езера\n LatLng sedemteRilskiEzera = new LatLng(42.203413f, 23.319871f);\n mMap.addMarker(new MarkerOptions().position(sedemteRilskiEzera).title(\"Седемте Рилски езера\")).showInfoWindow();\n\n //Храм-Паметник „Александър Невски“\n LatLng aleksandurNevski = new LatLng(42.696000f, 23.332879f);\n mMap.addMarker(new MarkerOptions().position(aleksandurNevski).title(\"Храм-Паметник „Александър Невски“\")).showInfoWindow();\n */\n\n }", "private void comenzarLocalizacionPorRedDeDatos() {\n\t\tmLocManagerNetwork = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n//\t\tLog.i(LOGTAG, \"mLocManagerNetwork: \" + mLocManagerNetwork);\n\t\t\n\t\t//Nos registramos para recibir actualizaciones de la posicion\n\t\tmLocListenerNetwork = new LocationListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n//\t\t\t\tLog.i(LOGTAG, \"Cambio en estatus RED DE DATOS\");\n//\t\t\t\tToast.makeText(getApplicationContext(), \"Cambio en estatus RED DE DATOS\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Red de Datos Encendida\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Red de Datos Apagada por favor revise\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tguardarPosicion(location);\n\t\t\t}\n\t\t};\n//\t\tLog.i(LOGTAG, \"mLocListenerNetwork: \" + mLocListenerNetwork);\n\t\tmLocManagerNetwork.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, mLocListenerNetwork);\n\t}", "public void CobaHitung()\n {\n\n\n PrayTimeCounter prayers = new PrayTimeCounter();\n\n prayers.setTimeFormat(prayers.getTime24());\n prayers.setCalcMethod(prayers.getMWL());\n prayers.setAsrJuristic(prayers.getShafii());\n prayers.setAdjustHighLats(prayers.getAngleBased());\n int[] offsets = {0, 0, 0, 0, 0, 0, 0}; // {Fajr,Sunrise,Dhuhr,Asr,Sunset,Maghrib,Isha}\n prayers.tune(offsets);\n\n Date now = new Date();\n Calendar cal = Calendar.getInstance();\n cal.setTime(now);\n\n ArrayList<String> prayerTimes = prayers.getPrayerTimes(cal,\n Anshitu.getApp().getLatitude(), Anshitu.getApp().getLongitude(), Anshitu.getApp().getTimezone());\n subuh.setText(prayerTimes.get(0));\n terbit.setText(prayerTimes.get(1));\n duhur.setText(prayerTimes.get(2));\n ashar.setText(prayerTimes.get(3));\n maghrib.setText(prayerTimes.get(4));\n isya.setText(prayerTimes.get(prayerTimes.size()-1));\n /*ArrayList<String> prayerNames = prayers.getTimeNames();\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,prayerNames);\n jeda.setAdapter(adapter);\n ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,prayerTimes);\n durasi.setAdapter(adapter1);*/\n }", "public void buscarLugar(){\n String lugar= tv_lugar.getText().toString().trim();\n ubicacionEncontrada=false;\n this.geocoder= new Geocoder(getActivity());\n this.lista = new ArrayList<>();\n\n try {\n lista =geocoder.getFromLocationName(lugar,1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(lista.size()>0){\n this.localizacion= lista.get(0);\n\n // Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n ubicacionEncontrada=true;\n Log.i(\"UBICACION A BUSCAR\", localizacion.toString());\n this.latLng = new LatLng(localizacion.getLatitude(), localizacion.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12f));\n this.markerOptions = new MarkerOptions().position(latLng).title(localizacion.getAddressLine(0));\n\n mMap.addMarker(markerOptions);\n\n\n }\n\n }", "private void setTime(String lat, String lon) {\n mDisposable = mRestRepo\n .getSunriseSunsetApi(lat, lon)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(place -> {\n mTvConnectionError.setText(\"\");\n mTvSunriseTime.setText(place.getSunrise());\n mTvSunsetTime.setText(place.getSunset());\n Log.i(TAG, place.getSunrise() + \" \" + place.getSunset());\n }, throwable -> mTvConnectionError.setText(R.string.error_internet_connection));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n coordList = getIntent().getParcelableArrayListExtra(\"coordlist\");\n Menit = getIntent().getIntExtra(\"minute\",0);\n Detik = getIntent().getIntExtra(\"second\",0);\n totalDistance = getIntent().getDoubleExtra(\"jarak\",0);\n kecepatan = getIntent().getDoubleExtra(\"speed\",0);\n kalori = getIntent().getDoubleExtra(\"kalori\",0);\n //strLat = getIntent().getStringExtra(\"strLat\");\n //strLong = getIntent().getStringExtra(\"strLong\");\n\n\n\n\n\n txtSpeed.setText(String.valueOf(Math.round(kecepatan))+\"Km/h\");\n\n txtJarak.setText(String.valueOf(numberFormat.format(totalDistance/1000)));\n\n txtJumlahCalorie.setText(String.valueOf(numberFormat.format(kalori)));\n\n //txtMenit = (TextView)findViewById(R.id.menit);\n //txtDetik = (TextView)findViewById(R.id.detik);\n\n txtTime.setText(String.format(\"%02d\", Menit)+\":\"\n + String.format(\"%02d\", Detik)+\"hr\");\n //txtDetik.setText(String.valueOf(Detik));\n\n if(coordList.size() <= 1){\n //Toast.makeText(MyRouteMaps.this, \"ANDA BELUM BERAKTIFITAS\", Toast.LENGTH_SHORT).show();\n drawMap();\n }else{\n drawMap();\n }\n\n Log.d(\"ISI DALAM COORDLIST MAP : \",String.valueOf(coordList.size()));\n\n\n if(totalDistance < 500) {\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n }else{\n mMap.animateCamera(CameraUpdateFactory.zoomTo(15.5f));\n }\n\n // Add a marker in Sydney and move the camera\n //LatLng sydney = new LatLng(-34, 151);\n\n }", "@Override\n public void calculateTimeAndDist(String result) {\n //Create a calendar instance.\n Calendar date = Calendar.getInstance();\n long t = date.getTimeInMillis();\n\n String pattern = \"HH:mm\";\n\n // Create an instance of SimpleDateFormat used for formatting\n // the string representation of date according to the chosen pattern\n DateFormat df = new SimpleDateFormat(pattern);\n\n //Split the result returned by the Geotask.\n String res[] = result.split(\",\");\n// Double min = Double.parseDouble(res[0]) / 60;\n\n //Get the distance.\n Double dist = Double.parseDouble(res[1]) / 1000;\n\n\n //Get time to dest based on user's speed.\n Double d = Double.valueOf(dist);\n Double s = Double.valueOf(getAverageSpeed());\n int timeToDest = (int) ((d / s) * 60);\n\n //Add timeToDest to current time\n Date afterAddingTimeToDest = new Date(t + (timeToDest * ONE_MINUTE_IN_MILLIS));\n String todayAsString = df.format(afterAddingTimeToDest.getTime());\n\n //Set arrival txt to estimate arrival time.\n arrivalTxt.setText(todayAsString);\n\n }", "private void m6903a() {\n SharedPreferences sharedPreferences = getSharedPreferences(C1848b.a().getClass().getName(), 0);\n this.f5647p = (double) Float.parseFloat(sharedPreferences.getString(\"beast.location.manager.lat\", \"0\"));\n this.f5648q = (double) Float.parseFloat(sharedPreferences.getString(\"beast.location.manager.lon\", \"0\"));\n if (this.f5647p == 0.0d && this.f5648q == 0.0d) {\n this.f5645n.a(getResources().getString(C1373R.string.str_locating_failed));\n return;\n }\n this.f5646o = new C2219a(this);\n this.f5640i.clear();\n m6904a(this.f5648q, this.f5647p, 300.0f, this.f5650s, this.f5651t, this.f5652u, this.f5653v, \"\");\n }", "public void parseGPSData(){\n List<String> coordData = new ArrayList<String>();\n for (int i = 6; i < currentMessage.size(); i++){\n // Convert to int to rid ourselves of preceding zeros. Yes, this is bad.\n coordData.add(\n String.valueOf(\n Integer.parseInt(\n bcdToStr(currentMessage.get(i))\n )\n )\n );\n }\n\n String latitudeNorthSouth = (\n bcdToIntString(coordData.get(3)).charAt(1) == '0'\n ) ? \"N\" : \"S\";\n \n String longitudeEastWest = (\n bcdToIntString(coordData.get(8)).charAt(1) == '0'\n ) ? \"E\" : \"W\";\n \n triggerCallback(\"onUpdateGPSCoordinates\",\n String.format(\n \"%.4f%s%s %.4f%s%s\", \n //Latitude\n decimalMinsToDecimalDeg(\n coordData.get(0), coordData.get(1), coordData.get(2)\n ),\n (char) 0x00B0,\n latitudeNorthSouth,\n //Longitude\n decimalMinsToDecimalDeg(\n coordData.get(4) + coordData.get(5),\n coordData.get(6),\n coordData.get(7)\n ),\n (char) 0x00B0,\n longitudeEastWest\n )\n );\n \n // Parse out altitude data which is in meters and is stored as a byte coded decimal\n int altitude = Integer.parseInt(\n bcdToStr(currentMessage.get(15)) + bcdToStr(currentMessage.get(16))\n );\n\n triggerCallback(\"onUpdateGPSAltitude\", altitude);\n \n // Parse out time data which is in UTC\n String gpsUTCTime = String.format(\n \"%s:%s\",\n bcdToIntString(bcdToStr(currentMessage.get(18))),\n bcdToIntString(bcdToStr(currentMessage.get(19)))\n );\n \n triggerCallback(\"onUpdateGPSTime\", gpsUTCTime);\n }", "@Override\n public void onLocationChanged(Location location) {\n LatLng posicio = new LatLng(location.getLatitude(),location.getLongitude());\n //Afegir la camera amb el punt generat abans i un nivell de zoom\n CameraUpdate camera = CameraUpdateFactory.newLatLngZoom(posicio,13);\n //Desplacem la camera al nou punt\n mMap.moveCamera(camera);\n posicioActual = posicio;\n\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void miUbicacion() { //Funcion que recupera la ubicacion\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //Se accede al sistema para el servicio de locatizacion\n Location location = locationManager.getLastKnownLocation(GPS_PROVIDER); //Se recupera la ultima localizacion conocida\n if(location != null) {\n new DownloadWebPageTask(location).execute(\"http://api.openweathermap.org/data/2.5/weather?lat=\" + location.getLatitude() + \"&lon=\" + location.getLongitude() +\n \"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f\");\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 20000,0,locListenner); //Esto se hace cada 10s\n }", "private void reqquestGps() {\n builder = new LocationSettingsRequest.Builder();//mang di request\n builder.addLocationRequest(locationRequest);\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);//dang tao 1 requet vao may va lasy ra thong so\n\n Task<LocationSettingsResponse> task = settingsClient.checkLocationSettings(builder.build());//day la lenh cua thu vien\n\n task.addOnFailureListener(new OnFailureListener() {//lang nghe su kien bi fai kho k lay dc gps,boi nnhieu nhie nghuyen nhan 1 co the la chua bat,\n @Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }\n });\n }", "@Override\n public void onLocationChanged(Location location) {\n if (ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // Bat gps thi di chuyen camera den vi tri cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if(tourTimesheetAdapter != null){\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }\n }", "public void getCurrentLoaction() {\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n latitude = \"\" + location.getLatitude();\n TextView txtLatitude = (TextView) findViewById(R.id.txtLatitude);\n txtLatitude.setText(\"Latitud: \" + latitude);\n longitude = \"\" + location.getLongitude();\n TextView txtLongitude = (TextView) findViewById(R.id.txtLongitude);\n txtLongitude.setText(\"Longitud: \" + longitude);\n\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n if (addresses.size() > 0) {\n cityName = addresses.get(0).getLocality();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n\n }\n\n @Override\n public void onProviderEnabled(String s) {\n\n }\n\n @Override\n public void onProviderDisabled(String s) {\n Toast.makeText(pantallaIdentificacion.this, \"Por favor, habilite el GPS para continuar\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n };\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(\"network\", 1000, 0, locationListener);\n }", "@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t\n \t\t\t\t\t}", "private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n if (!multi) {\n LatLng localEntrega = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(localEntrega).title(\"Local de Entrega\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(localEntrega, 14));\n } else {\n myapp = (EntregasApp)getApplicationContext();\n manager = new Manager(myapp);\n LatLng primeiraEntrega;\n\n primeiraEntrega = new LatLng(0,0);\n\n int i = 0;\n List<Documento> documentos = manager.findDocumentoByDataRomaneio(myapp.getDate());\n\n for (Documento documento : documentos ){\n LatLng localEntrega;\n if (documento.getDestinatario().getLatitude()!=null){\n i = i + 1;\n latitude = Double.valueOf(documento.getDestinatario().getLatitude());\n longitude = Double.valueOf(documento.getDestinatario().getLongitude());\n\n localEntrega = new LatLng(latitude, longitude);\n\n if(i==1){\n primeiraEntrega = new LatLng(latitude,longitude);\n }\n\n mMap.addMarker(new MarkerOptions().position(localEntrega)\n .title(documento.getDestinatario().getNome()));\n }\n }\n\n mMap.setMyLocationEnabled(true);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(primeiraEntrega, 10));\n\n // Check if we were successful in obtaining the map.\n /*\n if (mMap != null) {\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location arg0) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.truck);\n mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"Minha Localização\").icon(icon));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(arg0.getLatitude(), arg0.getLongitude()), 6));\n }\n });\n\n\n }\n\n */\n\n }\n\n }", "@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t}", "private void updateEstArrivalTimeCharacteristic() {\n String editTextValue = ((EditText) view.findViewById(R.id.estArrivalTimeEditText)).getText().toString();\n byte[] estArrivalTime = editTextValue.getBytes();\n\n //Check if the entered distance is too long or too short -> modify it\n if (estArrivalTime.length > 8) {\n estArrivalTime = Arrays.copyOfRange(estArrivalTime, 0, 7);\n }\n if (estArrivalTime.length < 8) {\n byte[] estArrivalTime_new = new byte[8];\n\n for (int i = 0; i < estArrivalTime.length; i++) {\n estArrivalTime_new[i] = estArrivalTime[i];\n }\n\n for (int i = estArrivalTime.length; i < 8; i++) {\n estArrivalTime_new[i] = 0;\n }\n\n estArrivalTime = estArrivalTime_new;\n }\n\n //Fill the characteristic array with the 8 bytes (from 17 to 24)\n int i1 = 0;\n for (int i2 = 17; i2 <= 24; i2++) {\n estArrivalTimeCharacteristic_value[i2] = estArrivalTime[i1];\n i1++;\n }\n\n //Set the visibility (byte 17) and set the value\n estArrivalTimeCharacteristic_value[16] = visibility;\n estArrivalTimeCharacteristic.setValue(estArrivalTimeCharacteristic_value);\n }", "@Override\n\t\t\t\tpublic void onLocationChanged(Location loc) {\n\n\t\t\t\t\t//If Wifi\n\t\t\t\t\tif (monitor.isNetworkConnected()\n\t\t\t\t\t\t\t&& monitor.networkType == ConnectivityManager.TYPE_WIFI) {\n\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tString locationProviders = Settings.Secure.getString(\n\t\t\t\t\t\t\t\tcont.getContentResolver(),\n\t\t\t\t\t\t\t\tSettings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\t\t\t\t\t\tif (locationProviders != null\n\t\t\t\t\t\t\t\t&& !locationProviders.equals(\"\")) {\n\t\t\t\t\t\t\t//Lock our location.\n\t\t\t\t\t\t\tmonitor.locationLocked = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//If we have had a steady lock\n\t\t\t\t\tif (monitor.locationLocked && (counter >= 2 || first)) {\n\n\t\t\t\t\t\t//Swap \n\t\t\t\t\t\tDouble oldLat = self.member.lat;\n\t\t\t\t\t\tDouble oldLong = self.member.lon;\n\n\t\t\t\t\t\tself.member.lat = loc.getLatitude();\n\t\t\t\t\t\tself.member.lon = loc.getLongitude();\n\n\t\t\t\t\t\tif (self.member.pic == null) {\n\t\t\t\t\t\t\tself.member.pic = Images\n\t\t\t\t\t\t\t\t\t.paintMarkerBitmap(self.member);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tplaceMarker(self.member);\n\n\t\t\t\t\t\tLog.i(\"Position\", self.member.lat.toString() + \", \"\n\t\t\t\t\t\t\t\t+ self.member.lon.toString());\n\n\t\t\t\t\t\tGCMMessage.sendLocation(self.member.lat,\n\t\t\t\t\t\t\t\tself.member.lon);\n\n\t\t\t\t\t\tMembersFragment.stopSpinning();\n\n\t\t\t\t\t\t// gcmMessage.sendLocation(self.lat, self.lon);\n\n\t\t\t\t\t\tfloat[] results = new float[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLocation.distanceBetween(oldLat, oldLong,\n\t\t\t\t\t\t\t\t\tself.member.lat, self.member.lon, results);\n\n\t\t\t\t\t\t\tif (results[0] > 35 && wobble > -interval / 2) {\n\n\t\t\t\t\t\t\t} else if (results[0] <= 35\n\t\t\t\t\t\t\t\t\t&& wobble < interval / 2) {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (NullPointerException npe) {\n\t\t\t\t\t\t\tLog.i(\"Locater\", \"Got first location\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tgpsTimer.removeCallbacks(r);\n\n\t\t\t\t\t\tlocationClient.disconnect();\n\n\t\t\t\t\t\tmonitor.locationLocked = false;\n\n\t\t\t\t\t\tcounter = 0;\n\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcounter++;\n\t\t\t\t}", "private void getCurrentLocation() {\n progressBar.setVisibility(View.VISIBLE);\n LocationRequest locationRequest = new LocationRequest();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(3000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).requestLocationUpdates(locationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).removeLocationUpdates(this);\n if (locationResult != null && locationResult.getLocations().size() > 0) {\n int latestLocationIndex = locationResult.getLocations().size() - 1;\n double LatOrg = locationResult.getLocations().get(latestLocationIndex).getLatitude();\n double LonOrg = locationResult.getLocations().get(latestLocationIndex).getLongitude();\n\n LatitudeTruePref = Double.toString(LatOrg);\n LongitudeTruePref = Double.toString(LonOrg);\n\n LocationReal = new LatLng(LatOrg, LonOrg);\n tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatitudeTruePref, LongitudeTruePref));\n //tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatOrg, LonOrg));\n }\n FalseLocationSignal = false;//*Desactivar FalseLocation para SharedPreferens*//\n TrueLocationSignal = true;\n progressBar.setVisibility(View.GONE);\n btnNext.setEnabled(true);\n }\n }, Looper.getMainLooper());\n\n }", "private void dispositivoGPS(String nameDisp){\n DatabaseReference db_dispositivo = db_reference.child(\"Registros\");\n\n db_dispositivo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Boolean existe = false;\n HashMap<String, String> info_disp = null;\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n if (snapshot!=null && snapshot.getKey().equals(edtDispositivo.getText().toString())){\n System.out.println(nameDisp+\"hola\");\n info_disp =(HashMap<String, String>) snapshot.getValue();\n existe = true;\n break;\n }\n }\n if (existe && info_disp!=null) {\n System.out.println(existe);\n DatabaseReference db_dispo = db_dispositivo.child(nameDisp);\n db_dispo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info_dps = null;\n String key = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n info_dps =(HashMap<String, String>) dataSnapshot.getValue();\n key=snapshot.getKey();\n break;\n }\n if (info_dps!=null && key!=null) {\n\n DatabaseReference base = db_dispo.child(key);\n base.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info =null;\n HashMap<String, String> punto =null;\n Boolean nulidad = false;\n String keydato = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()){\n info = (HashMap<String, String>) dataSnapshot.getValue();\n if (info!=null) {\n if (!info.get(\"lat\").equals(\"0\")) {\n punto = (HashMap<String, String>) dataSnapshot.getValue();\n nulidad = true;\n keydato = dataSnapshot.getKey();\n System.out.println(keydato);\n break;\n }\n System.out.println(\"no existe\");\n }\n }\n if (punto!=null && nulidad && keydato!=null){\n System.out.println(info);\n System.out.println(\"aki\");\n if (numDispositivo == 1) {\n disp_Lat1 = punto.get(\"lat\");\n disp_Long1 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n if (numDispositivo == 2) {\n disp_Lat2 = punto.get(\"lat\");\n disp_Long2 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n Guardar();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n System.out.println(\"falla disp\");\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n Toast.makeText(FormularioCurso.this, \"El codigo o nombre del dispositivo ingresado no existe.\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n }", "@Override\n public void onLocationChanged(Location location) {\n Geocoder geocoder = new Geocoder(getApplicationContext(),Locale.getDefault());\n try {\n List<Address> direc = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(),1);\n Coordenadas.setText(direc.get(0).getAddressLine(0) );\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onLocationChanged(Location location) {\n currentLat = location.getLatitude();\n currentLong = location.getLongitude();\n\n if (location != null) {\n CLocation myLocation = new CLocation(location, true);\n this.updateSpeed(myLocation);\n }\n\n// String originUpdate = getAddressFromLatLng(currentLat, currentLong);\n// //Use Geocoder class to calculate minutes walking from current location.\n// String url = \"https://maps.googleapis.com/maps/api/distancematrix/json?origins=\" + originUpdate + \"&destinations=\" + destinationPassed + \"&mode=walking&language=fr-FR&avoid=tolls&key=AIzaSyBCv-Rz8niwSqwicymjqs_iKinNNsVBAdQ\";\n// Log.d(\"url string\", url);\n// geoTask.execute(url);\n }", "public void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tif (location != null) {\n\t\t\t\t\n\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\tif (location.hasSpeed()) {\n\t\t\t\t\t\n\t\t\t\t\tlokasi = location;\n\t\t\t\t\t//jalankan task hitung kecepatan\n\t\t\t\t\tcepatTask = new CepatTask();\n\t\t\t\t\tcepatTask.execute();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//setel kecepatan 0\n\t\t\t\t\ttekskmh.setText(\"0.0\");\n\t\t\t\t\tcepatkmh = 0;\n\t\t\t\t\tcekKecepatanBatas(bataskecepatan, cepatkmh);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//setel kecepatan 0\n\t\t\t\ttekskmh.setText(\"0.0\");\n\t\t\t}\n\t\t\t\n\t\t}", "public void displayCoursFromCalendar(){\n\n getAllData(new ListPlanningCallback() {\n @Override\n public void onCallback(List<Planning> listPlanning) {\n Collections.sort(listPlanning, new SortHdebut() );\n\n int indexCalendar = getIntent().getIntExtra(\"indiceCalendar\", 0);\n\n for (int i = 0; i < listPlanning.size(); i++) {\n\n Double calendarLatitude = Double.parseDouble(listPlanning.get(indexCalendar).getLatitude());\n Double calendarLongitude = Double.parseDouble(listPlanning.get(indexCalendar).getLongitude());\n\n String nomCalendar = listPlanning.get(indexCalendar).getNom();\n String enseignantCalendar = listPlanning.get(indexCalendar).getEnseignant();\n String salleCalendar = listPlanning.get(indexCalendar).getSalle();\n String hDebutCalendar = listPlanning.get(indexCalendar).getHdebut();\n String hFinCalendar = listPlanning.get(indexCalendar).getHfin();\n String mDebutCalendar = listPlanning.get(indexCalendar).getMdebut();\n String mFinCalendar = listPlanning.get(indexCalendar).getMfin();\n String horaireCalendar = hDebutCalendar + \"h\" + mDebutCalendar + \" - \" + hFinCalendar + \"h\" + mFinCalendar;\n\n LatLng latLngCalendar = new LatLng(calendarLatitude, calendarLongitude);\n\n CameraPosition position = new CameraPosition.Builder()\n .target(latLngCalendar)\n .zoom(18)\n .tilt(0) // inclinaison de la camera max:60\n .build();\n\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position), 500);\n\n markerView = annotations(nomCalendar, enseignantCalendar, salleCalendar, horaireCalendar, calendarLatitude, calendarLongitude);\n markerViewManager.addMarker(markerView);\n }\n }\n });\n\n\n }", "public void onLocationChanged(Location location) {\n\n if (net_connection_check()) {\n\n String message = String.format(\n\n \"New Location \\n Longitude: %1$s \\n Latitude: %2$s\",\n\n location.getLongitude(), location.getLatitude());\n\n // *************************** GPS LOCATION ***************************\n\n\n driveruserid = User_id;\n driverlat = location.getLatitude();\n driverlong = location.getLongitude();\n\n\n Location driverLocation = new Location(\"user location\");\n driverLocation.setLatitude(driverlat);\n driverLocation.setLongitude(driverlong);\n\n aController.setDriverLocation(driverLocation);\n\n String drivercurrentaddress = lattoaddress(driverlat, driverlong);\n\n\n if (!checktripend && mGoogleMap != null) {\n // mGoogleMap.clear();\n\n\n }\n LatLng mark1 = new LatLng(driverlat, driverlong);\n\n if (logoutcheck) {\n//\t\t\tDriverdetails();\n }\n\n LatLng target = new LatLng(driverlat, driverlong);\n\n String check = fullbutton.getText().toString();\n if (acc.equals(\"yes\") || check.equals(\"End Trip\")) {\n if (check.equals(\"End Trip\")) {\n // mGoogleMap.clear();\n // mGoogleMap.setTrafficEnabled(true);\n }\n origin = new LatLng(driverlat, driverlong);\n /* try{\n String url = getDirectionsUrl(origin, dest);\n drawMarker(dest);\n DownloadTask downloadTask = new DownloadTask();\n //Start downloading json data from Google Directions API\n downloadTask.execute(url);\n }catch (Exception e){\n\n }*/\n\n// checkOffRouteAndRedrwaRoute(location);\n\n }\n\n checkOffRouteAndRedrwaRoute(location);\n if (location.hasBearing() && mGoogleMap != null) {\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(target) // Sets the center of the map to current location\n .zoom(16)\n .bearing(location.getBearing()) // Sets the orientation of the camera to east\n .tilt(0) // Sets the tilt of the camera to 0 degrees\n .build(); // Creates a CameraPosition from the builder\n mGoogleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }\n }\n }", "String getArrivalLocation();", "public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }", "public static void main(String[] args) {\r\n\t\tPosition p2 = new Position(47.984393, 0.236012);\r\n\t\t/*graine*/\r\n\t\tPosition p1 = new Position(47.987444,0.253475);\r\n\t\t\r\n\t\tFourmi fourmi = new Fourmi();\r\n\t\tChemin trackAllerGraine1;\r\n\t\tChemin trackRetourGraine1;\r\n\t\t\r\n\t\tChemin c = new Chemin();\r\n\t\tChemin c1 = new Chemin();\r\n\t\ttry {\r\n\t\t\tc.calculItineraire(p2,p1);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tc.add(p1);\r\n\t\ttrackAllerGraine1 = fourmi.creerTrack(c);\r\n\t\r\n\t\t\r\n\r\n\t\tfor(int i=0;i<trackAllerGraine1.size()-1;i++) {\r\n\t\t\tSystem.out.println(\"\\np\"+i+\" : \"+trackAllerGraine1.get(i).lat+\",\"+trackAllerGraine1.get(i).lon);\r\n\t\t\tSystem.out.println(trackAllerGraine1.get(i).getTimestamp());\r\n\t\t\tSystem.out.println(\"La distance entre ces deux points est de \"+p1.longueurEnM(trackAllerGraine1.get(i),trackAllerGraine1.get(i+1))+\"m\");\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"p\"+(trackAllerGraine1.size()-1)+\" : \"+trackAllerGraine1.get(trackAllerGraine1.size()-1).lat+\",\"+trackAllerGraine1.get(trackAllerGraine1.size()-1).lon);\r\n\t\tSystem.out.println(trackAllerGraine1.get(trackAllerGraine1.size()-1).getTimestamp());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tc1.calculItineraire(p1, p2);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tc1.add(p2);\r\n\t\ttrackRetourGraine1=fourmi.creerTrack(c1);\r\n\t\t\r\n\t\tfor(int i=0;i<trackRetourGraine1.size()-1;i++) {\r\n\t\t\tSystem.out.println(\"\\np\"+i+\" : \"+trackRetourGraine1.get(i).lat+\",\"+trackRetourGraine1.get(i).lon);\r\n\t\t\tSystem.out.println(trackRetourGraine1.get(i).getTimestamp());\r\n\t\t\tSystem.out.println(\"La distance entre ces deux points est de \"+p1.longueurEnM(trackRetourGraine1.get(i),trackRetourGraine1.get(i+1))+\"m\");\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"p\"+(trackRetourGraine1.size()-1)+\" : \"+trackRetourGraine1.get(trackRetourGraine1.size()-1).lat+\",\"+trackRetourGraine1.get(trackRetourGraine1.size()-1).lon);\r\n\t\tSystem.out.println(trackRetourGraine1.get(trackRetourGraine1.size()-1).getTimestamp());\r\n\t}", "public void handleGPS()\n {\n\t\t\n\t\tRunnable r2 = new Runnable() {\n\n public void run() {\n \ttry {\n BlackBerryCriteria criteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_AUTONOMOUS);\n\n try\n {\n BlackBerryLocationProvider myProvider =\n (BlackBerryLocationProvider)\n LocationProvider.getInstance(criteria);\n\n try\n {\n BlackBerryLocation myLocation = (BlackBerryLocation)myProvider.getLocation(300);\n\n int satCount = myLocation.getSatelliteCount();\n \n setLat(myLocation.getQualifiedCoordinates().getLatitude());\n setLongt(myLocation.getQualifiedCoordinates().getLongitude());\n \n //data.setVisibleNone();\n \t\tMapLocation test = new MapLocation(myLocation.getQualifiedCoordinates().getLatitude(), myLocation.getQualifiedCoordinates().getLongitude(), \"test\", null);\n \t\tint testId = data.add((Mappable) test, \"test\");\n \t\tdata.tag(testId, \"test\");\n \t\tdata.setVisibleNone();\n \t\tdata.setVisible( \"test\");\n// \t\tMapAction action = map.getAction();\n// \t\taction.setCentreAndZoom(new MapPoint(43.47462, -80.53820), 2);\n \t\tmap.getMapField().update(true);\n \n \n \n \n int signalQuality = myLocation.getAverageSatelliteSignalQuality();\n int dataSource = myLocation.getDataSource();\n int gpsMode = myLocation.getGPSMode();\n\n SatelliteInfo si;\n StringBuffer sb = new StringBuffer(\"[Id:SQ:E:A]\\n\");\n String separator = \":\";\n\n for (Enumeration e = myLocation.getSatelliteInfo();\n e!=null && e.hasMoreElements(); )\n {\n si = (SatelliteInfo)e.nextElement();\n sb.append(si.getId() + separator);\n sb.append(si.getSignalQuality() + separator);\n sb.append(si.getElevation() + separator);\n sb.append(si.getAzimuth());\n sb.append('\\n');\n System.out.println(sb);\n }\n }\n catch ( InterruptedException iex )\n {\n Logger.log(iex.toString());\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( UnsupportedOperationException uoex )\n {\n \tLogger.log(uoex.toString());\n }\n\n// return;\n }\n\t\t};\n\t\tcontroller.invokeLater(r2);\n }", "private void calculateDirections(){\n \t\n \tAddress start = parseAddress(jTextFieldStart);\n \tAddress end = parseAddress(jTextFieldEnd);\n \tif(DEBUG_SETDB){ start = DEBUG_START; end = DEBUG_END; }\n \t\n \t\n \tif(textFieldDefaults.get(jTextFieldStart).equals(jTextFieldStart.getText()) ||\n \t\t\ttextFieldDefaults.get(jTextFieldEnd).equals(jTextFieldEnd.getText())){\n \t\toutputResults(addressError(null, -5));\n \t\t\n \t}else if(start == null || end == null){\n \t\toutputResults(addressError(null, -4));\n \t\t\n \t}else{\n\t\t\ttry{\n\t\t\t\tif(!checkAddrInputFields()){\n\t\t\t\t\tRouteFormatter format = getTravelFormat();\n\t\t EnvironmentVariables.OPTIMIZE_FOR_PERFORMANCE_ON = jCheckBoxQuickSearch.isSelected();\n\t\t\t\t\t\n\t\t\t\t\tcurrDirections = virtualGPS.getDirections(start, end, format);\n\t\t\t\t\t// prepare the map view\n\t\t\t\t\tif(!jFrameMap.isShowing()){\n\t\t\t\t jFrameMap.setVisible(true);\n\t\t\t\t jFrameMap.setBounds(this.getX()+this.getWidth(), this.getY(), \n\t\t\t\t \t\tjFrameMap.getPreferredSize().width,\n\t\t\t\t \t\tjFrameMap.getPreferredSize().height);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\toutputResults(formatDirections(format));\n\t\t\t\t\t\n\t\t\t\t\tsetAddrInputFields();\n\t\t\t\t\tcheckAddrInputFields();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tmapPanel.requestFocus();\n\t\t\t\t}\n\t\t\t\t\n\t\t generateMap();\n\t\t \n\t\t \n\t\t\t}catch(InvalidAddressException ex){\n\t\t\t\t\n\t\t \tint error = virtualGPS.checkAddress(start);\n\t\t \tif(error != DirectionsFinder.ADDRESS_VALID){ // if start address is bad\n\t\t \t\toutputResults(addressError(start, error));\n\t\t \t\n\t\t \t}else{\n\t\t\t \terror = virtualGPS.checkAddress(end);\n\t\t \t\toutputResults(addressError(end, error));\n\t\t \t}\n\t\t \t\n\t\t\t}catch(NoPathException ex){\n\t\t\t\t\n\t\t\t\toutputResults(\"No path found:\\nFrom \"+start+\"\\nTo \"+end+\"\\n\");\n\t\t\t}\n \t}\n \n }", "private void loadData() {\n gps = new GPSTracker(LocationActivity.this);\n if (from.equals(\"home\")) {\n if (lat == 0 && lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n lat = gps.getLatitude();\n lon = gps.getLongitude();\n Log.v(\"lati\", \"lat\" + lat);\n Log.v(\"longi\", \"longi\" + lon);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n } else if (from.equals(\"add\")) {\n if (AddProductDetail.lat == 0 && AddProductDetail.lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n Log.v(\"lati\", \"lat\" + AddProductDetail.lat);\n Log.v(\"longi\", \"longi\" + AddProductDetail.lat);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n }\n\n }", "public void setFields(Viaje travel) {\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n if (travel.getFecha() != null) {\n getDateTxt().setText(df.format(travel.getFecha()));\n getProvidedHourTxt().setText(getUtils().gethhmm(travel.getFecha()));\n }\n if (travel.getIngreso() != null) {\n getTravelValueTxt().setText(travel.getIngreso().toString());\n }\n if (travel.getPagoACamionero() != null) {\n getMoneyforDriverTxt().setText(travel.getPagoACamionero().toString());\n }\n getDistanceTxt().setText(travel.getKms());\n getContainerTxt().setText(travel.getNumeroContenedor());\n getSealTxt().setText(travel.getPrecinto());\n getContainerTypeTxt().setText(travel.getTipoContenedor());\n if (travel.getReferencia() != null) {\n getReferenceTxt().setText(travel.getReferencia());\n }\n if (travel.getBultos() != null) {\n getPackageTxt().setText(travel.getBultos().toString());\n }\n if (travel.getEstadoContenedor() != null && travel.getEstadoContenedor().equals(\"lleno\")) {\n getContainerStateCkb().setSelected(true);\n } else {\n getContainerStateCkb().setSelected(false);\n }\n getCommodityTxt().setText(travel.getMercancia());\n if (travel.getPeso() != null) {\n getWeightTxt().setText(travel.getPeso().toString());\n }\n if (travel.getOrigen() != null) {\n getOriginTxt().setText(travel.getOrigen());\n }\n if (travel.getDestino() != null) {\n getDestinationTxt().setText(travel.getDestino());\n }\n getCollectionPlaceTxt().setText(travel.getLugarRecogida());\n getLoadPlaceTxt().setText(travel.getLugarCarga());\n getCarrierTxt().setText(travel.getCargador());\n SimpleDateFormat hhmmDf = new SimpleDateFormat(\"hh:mm\");\n if (travel.getHoraLlegada() != null) {\n getArriveHourTxt().setText(getUtils().gethhmm(travel.getHoraLlegada()));\n }\n if (travel.getHoraSalida() != null) {\n getExitHourTxt().setText(getUtils().gethhmm(travel.getHoraSalida()));\n }\n getDeliveryPlaceTxt().setText(travel.getLugarEntrega());\n if (travel.getTipoPago() != null) {\n getPaymentTypeTxt().setText(travel.getTipoPago().toString());\n }\n\n getShippingExpensesTxt().setText(travel.getGastosNaviera());\n getCustomsTxt().setText(travel.getAduana());\n getOthersDescriptionTFld().setText(travel.getOtrosGastos());\n getOtherExpensesTxt().setText(travel.getCantidadOtros());\n getShippingTxt().setText(travel.getNaviera());\n getBoatTxt().setText(travel.getBuque());\n getObservationsTxt().setText(travel.getObservaciones());\n\n Transportista driver = travel.getTransportista();\n if (travel.getIva() != null) {\n ObservableList ivaItems = getIvaCb().getItems();\n String iva = \"\";\n if (travel.getIva().equals(\"S\")) {\n iva = \"Abonado por cliente\";\n } else if (travel.getIva().equals(\"N\")) {\n iva = \"No abonado por cliente\";\n }\n for (int i = 0; i < ivaItems.size(); i++) {\n if (iva.equals(ivaItems.get(i))) {\n getIvaCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoCliente() != null) {\n ObservableList clientPaymentItems = getClientPaymentCb().getItems();\n for (int i = 0; i < clientPaymentItems.size(); i++) {\n if (travel.getEstadoCliente().equals(clientPaymentItems.get(i))) {\n getClientPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoTransportista() != null) {\n ObservableList driverPaymentItemsList = getDriverPaymentCb().getItems();\n for (int i = 0; i < driverPaymentItemsList.size(); i++) {\n if (travel.getEstadoTransportista().equals(driverPaymentItemsList.get(i))) {\n getDriverPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getCliente() != null) {\n ObservableList clientItems = getClientCb().getItems();\n for (int i = 0; i < clientItems.size(); i++) {\n if (travel.getCliente().getNombre().equals(clientItems.get(i))) {\n getClientCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getTransportista() != null) {\n ObservableList driverItems = getDriverCb().getItems();\n String fullDriverName = travel.getTransportista().getNombre().trim() + \" \" + travel.getTransportista().getApellido1().trim() + \" \" + travel.getTransportista().getApellido2().trim();\n for (int i = 0; i < driverItems.size(); i++) {\n if (fullDriverName.equals(driverItems.get(i))) {\n getDriverCb().getSelectionModel().select(i);\n }\n }\n }\n String travelType = travel.getTipoViaje();\n if (travelType != null) {\n ObservableList travelsTypeItems = getTravelTypeCb().getItems();\n if (travelType.equals(\"T\")) {\n travelType = \"Terrestre\";\n } else if (travel.getTipoViaje().equals(\"EX\")) {\n travelType = \"Exportación\";\n }\n for (int i = 0; i < travelsTypeItems.size(); i++) {\n if (travelType.equals(travelsTypeItems.get(i))) {\n getTravelTypeCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoHacienda() != null) {\n ObservableList treasuryStateItems = getTreasuryStateCb().getItems();\n for (int i = 0; i < treasuryStateItems.size(); i++) {\n if (travel.getEstadoHacienda().equals(treasuryStateItems.get(i))) {\n getTreasuryStateCb().getSelectionModel().select(i);\n }\n }\n if (!travel.getEstadoHacienda().equals(\"Ninguno\")) {\n getTreasuryStateCb().setVisible(true);\n }\n }\n ObservableList dispatcherItems = getDispatcherCb().getItems();\n for (int i = 0; i < dispatcherItems.size(); i++) {\n if (travel.getDespachante() != null && travel.getDespachante().equals(dispatcherItems.get(i))) {\n getDispatcherCb().getSelectionModel().select(i);\n }\n }\n }", "private void startCurrentLocationUpdates() {\n LocationRequest locationRequest = LocationRequest.create();\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n locationRequest.setInterval(3000);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n return;\n }\n }\n //Untuk data internet\n String status = null;\n ConnectivityManager cm = (ConnectivityManager) MapsActivity.this.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n if (activeNetwork == null) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Kamu Tidak Memiliki Koneksi Internet, Harap Nyalakan Data Seluler atau Wi-Fi\")\n .setTitle(\"Tidak Ada Koneksi\")\n .setCancelable(false)\n .setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);\n }\n }\n )\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startCurrentLocationUpdates();\n }\n }\n );\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n //untuk cek apakah gps on/off\n final LocationManager locationM = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n if (!locationM.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Harap Nyalakan GPS Terlebih Dahulu\")\n .setTitle(\"Tidak Dapat Menemukan Lokasi\")\n .setCancelable(false)\n .setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent openLocationSettings = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n MapsActivity.this.startActivity(openLocationSettings);\n }\n }\n )\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startCurrentLocationUpdates();\n }\n }\n );\n AlertDialog alert = builder.create();\n alert.show();\n }\n fusedLocationProviderClient.requestLocationUpdates(locationRequest, mLocationCallback, Looper.myLooper());\n }", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "private void drawRoutes () {\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, khong ve gi ca\n } else if (dateEqual == 1) {\n // Tour chua dien ra, khong ve gi ca\n } else {\n // Tour dang dien ra thi kiem tra gio\n /* Chang sap toi mau do, today nam trong khoang src start va src end\n Chang dang di chuyen mau xanh, today nam trong khoang src end va dst start\n Chang vua di qua mau xam, today nam trong khoang dst start va dst end */\n ArrayList<TourTimesheet> timesheets = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet();\n // Danh dau chang dang di qua\n int changDangDiQuaOrder = -1;\n // Danh dau chang sap di qua\n int changSapDiQuaOrder = -1;\n if(Tour.afterCurrentHour(timesheets.get(0).getmStartTime()) == 1){\n // Chang sap di qua mau do\n // Neu chua ve chang sap di, ve duong mau do\n if (timesheets.size() >= 2) {\n drawRoute(Color.RED, timesheets.get(0).getmBuildingLocation(), timesheets.get(1).getmBuildingLocation());\n }\n } else {\n for (int i = 0; i < timesheets.size() - 1; i++) {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheets.get(i).getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheets.get(i).getmEndTime());\n int dstStartEqual = Tour.afterCurrentHour(timesheets.get(i + 1).getmStartTime());\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(i).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(i + 1).getmBuildingLocation();\n if (srcStartEqual == -1 && srcEndEqual == 1) {\n // Chang dang di qua mau xanh\n // Neu chua ve chang dang di, ve duong mau xanh\n drawRoute(Color.BLUE, srcLocation, dstLocation);\n // Danh dau chang dang di qua\n changDangDiQuaOrder = i;\n // Thoat khoi vong lap\n break;\n } else if (srcEndEqual == -1 && dstStartEqual == 1) {\n // Chang sap toi mau do\n // Neu chua ve chang sap toi, ve duong mau do\n drawRoute(Color.RED, srcLocation, dstLocation);\n // Danh dau chang sap di qua\n changSapDiQuaOrder = i;\n // Thoat khoi vong lap\n break;\n }\n }\n }\n // Kiem tra xem da ve duoc nhung duong nao roi\n if (changDangDiQuaOrder != - 1) {\n // Neu ve duoc chang dang di qua roi thi ve tiep 2 chang con lai\n if (changDangDiQuaOrder < timesheets.size() - 2) {\n // Neu khong phai chang ket thuc thi ve tiep chang sap di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changDangDiQuaOrder + 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changDangDiQuaOrder + 2).getmBuildingLocation();\n drawRoute(Color.RED, srcLocation, dstLocation);\n }\n if (changDangDiQuaOrder > 0) {\n // Neu khong phai chang bat dau thi ve tiep chang da di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changDangDiQuaOrder - 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changDangDiQuaOrder).getmBuildingLocation();\n drawRoute(Color.GRAY, srcLocation, dstLocation);\n }\n }\n if (changSapDiQuaOrder != - 1) {\n // Neu ve duoc chang sap di qua roi thi ve tiep 2 chang con lai\n if (changSapDiQuaOrder > 0) {\n // Neu khong phai chang bat dau thi ve tiep chang dang di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changSapDiQuaOrder - 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changSapDiQuaOrder).getmBuildingLocation();\n drawRoute(Color.BLUE, srcLocation, dstLocation);\n }\n if (changSapDiQuaOrder > 1) {\n // Neu khong phai chang bat dau thi ve tiep chang da di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changSapDiQuaOrder - 2).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changSapDiQuaOrder - 1).getmBuildingLocation();\n drawRoute(Color.GRAY, srcLocation, dstLocation);\n }\n }\n }\n }", "@Override\n public void onResponse(String response) {\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n\n //obtengo la respuesta del servidor relacionada al contacto, si existe o no\n String Latitud = jObj.getString(\"Latitud\");\n String Longitud = jObj.getString(\"Longitud\");\n String Fecha = jObj.getString(\"Fecha\");\n\n //parseo los datos\n double x_lat = Double.parseDouble(Latitud.toString());\n double x_long = Double.parseDouble(Longitud.toString());\n\n //obtengo los datos de mi ubicacion\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n try {\n List<Address> addresses = geoCoder.getFromLocation(x_lat, x_long, 1);\n\n\n if (addresses.size() > 0){\n for (int i=0; i<addresses.get(0).getMaxAddressLineIndex();i++) {\n direccionCompleta += addresses.get(0).getAddressLine(i) + \" \";\n }\n }\n\n }catch (Exception e1) {\n e1.printStackTrace();\n }\n\n //\n CENTER = new LatLng(x_lat, x_long);\n\n //mapa\n map = mapView.getMap();\n if (map == null) {\n Toast.makeText(getActivity(), \"Map Fragment Not Found or no Map in it\", Toast.LENGTH_SHORT).show();\n }\n\n //muestro la ubiccion\n map.clear();\n\n final LatLng MELBOURNE = new LatLng(x_lat, x_long);\n Marker melbourne = map.addMarker(new MarkerOptions()\n .position(MELBOURNE)\n .title(\"Ultima Ubicacion Conocida\")\n .snippet(direccionCompleta)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker_icon_2)));\n\n melbourne.showInfoWindow();\n\n txtFecha.setText(\"Ultima actualizacion el \"+Fecha);\n\n map.moveCamera(CameraUpdateFactory.zoomTo(16));\n if (CENTER != null) {\n map.animateCamera(CameraUpdateFactory.newLatLng(CENTER), 1750, null);\n }\n\n\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n map.getUiSettings().setZoomControlsEnabled(true);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getActivity(), errorMsg, Toast.LENGTH_LONG).show();\n //logerror = errorMsg;\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getActivity(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }", "public static void query() {\n\n GPS = \"24.9684297,121.1959266\";\n\n SimpleDateFormat sdFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date nowDate = new Date();\n\n String startDayStr = \"2017-01-09\";\n Calendar cal = Calendar.getInstance();\n cal.setTime(nowDate);\n // cal.add(Calendar.MONTH, 3);\n cal.add(Calendar.MONTH, 1);\n String endDayStr = sdFormat.format(cal.getTime());\n\n String query = String.format(\"▽活動搜尋▼▽start_day▼%s▽end_day▼%s\", startDayStr, endDayStr);\n\n System.out.println(\"伺服器狀態測試查詢... \" + query + \" \" + GPS + \" \" + radius);\n Socket client = new Socket();\n InetSocketAddress isa = new InetSocketAddress(address, port);\n try {\n client.connect(isa, 10000);\n\n DataOutputStream out = new DataOutputStream(client.getOutputStream());\n out.writeUTF(query + \" \" + GPS + \" \" + radius + \" \" + whichFucntion + \" \" + \"test \" + quantity);\n client.shutdownOutput();\n ObjectInputStream in = new ObjectInputStream(client.getInputStream());\n Object obj = in.readObject();\n\n//\t\t\tSystem.out.println(obj.toString());\n SearchResultShopData searchResultShopData = (SearchResultShopData) obj;\n ArrayList<ShopData> a = (ArrayList<ShopData>) searchResultShopData.getShopDataList();\n//\t\t\tSystem.out.println(\"searchResultShopData.getStaut() : \" + searchResultShopData.getStaut());\n if (searchResultShopData.getStaut() == 1) {\n for (int i = 0; i < a.size(); i++) {\n if (a.get(i).getSearchEngine().equals(ShopData.SEARCH_ENGINE_ATTRIBUTE_FB_ACTIVITY_SOLR)) {\n FBShopActivityDescription fbShopActivityDescription = (FBShopActivityDescription) a.get(i);\n System.out.println(\"/////////////////////////start////////////////////////\");\n System.out.println(\"活動名稱:\" + fbShopActivityDescription.getTitle());\n System.out.println(\"活動發文連結:\" + fbShopActivityDescription.getHttp());\n System.out.println(\"GPS:\" + fbShopActivityDescription.getLatitude() + \",\" + fbShopActivityDescription.getLongitude());\n System.out.println();\n System.out.println(\"*******************活動摘要資訊********************\");\n System.out.println(\"活動開始時間:\" + fbShopActivityDescription.getStartDate());\n System.out.println(\"活動結束時間:\" + fbShopActivityDescription.getEndDate());\n System.out.println(\"活動地點:\" + fbShopActivityDescription.getAddress());\n System.out.println(\"~~~~~~~~~~~~~~~~~~HighlightFBPost~~~~~~~~~~~~~~~~~~~~\");\n System.out.println(fbShopActivityDescription.getDescription());\n System.out.println(\"////////////////////////end/////////////////////////\");\n System.out.println();\n }\n }\n }\n out.flush();\n out.close();\n out = null;\n in.close();\n in = null;\n client.close();\n client = null;\n } catch (java.io.IOException e) {\n System.err.println(\"SocketClient 連線有問題 !\");\n System.err.println(\"IOException :\" + e.toString());\n } catch (ClassNotFoundException e) {\n System.err.println(\"ClassNotFoundException :\" + e.toString());\n } catch (Exception e) {\n System.err.println(\"Exception :\" + e.toString());\n }\n\n }", "private void refreshTime(@Nullable Location location) {\n String provider = location == null ? \"\" : location.getProvider();\n String lat = location == null ? \"\" : formatCoordinate(location.getLatitude());\n String lon = location == null ? \"\" : formatCoordinate(location.getLongitude() * -1);\n\n Log.i(TAG, provider + \" \" + lat + \" \" + lon);\n setTime(lat, lon);\n }", "public static void queryLyftTaskAndStore(LocationAndTime locationAndTime,LyftClientUtil lyftClient){\n Map requestMap=new HashMap<>();\n requestMap.put(\"startLatitude\",locationAndTime.getStartLatitude());\n requestMap.put(\"startLongitude\",locationAndTime.getStartLongitude());\n requestMap.put(\"endLatitude\",locationAndTime.getEndLatitude());\n requestMap.put(\"endLongitude\",locationAndTime.getEndLongitude());\n List<CostEstimate> costEstimates=lyftClient.getCostEstimate(requestMap).getCostEstimates();\n LocalDateTime localDateTime=Instant.ofEpochMilli(locationAndTime.getJourneyStartTime().getTime()).atZone( ZoneId.systemDefault()).toLocalDateTime();\n LocalDateTime now=LocalDateTime.now();\n LocalDateTime toDateTime=LocalDateTime.of( now.getYear(),now.getMonthValue(),now.getDayOfMonth() , localDateTime.getHour(), localDateTime.getMinute(), localDateTime.getSecond());\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n if(costEstimates!=null){\n for(CostEstimate estimate:costEstimates){\n estimate.setCurrentDate(formatter.format(toDateTime.atZone(ZoneId.systemDefault()).toInstant()));\n csvUtilLyft.writeRecordToFile(estimate);\n }\n }\n\n\n }", "public void onPositionChanged() {\n\n latPeriodic = location.getLatitude();\n lonperiodic = location.getLongitude();\n\n }", "void iniciaDesenho(){\r\n \r\n \r\n GPSplt.setStroke(new BasicStroke(5f, BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER));\r\n GPSplt.setLineColor(new Color(0,28,28));\r\n //GPSplt.setSize(935,555);\r\n GPSplt.setSize(983,465);\r\n GPSplt.setBackground(new Color(255,255,51));\r\n GPSplt.setLocation(10,34);\r\n //jPanel1.add(GPSplt); \r\n //jPanel1.setSize(600,500);\r\n getContentPane().add(GPSplt);\r\n GPSplt.paintAll(GPSplt.getGraphics());\r\n GPSGoogle.setVisible(false);\r\n \r\n \r\n // Mostrar Figura de Fundo ...\r\n if (CbMapa.isSelected()==true) {\r\n Mostra.setText(Mostra.getText()+\"\\n\"+\"MapaAtivo\");\r\n Mostra.setCaretPosition(Mostra.getText().length() );\r\n \r\n }\r\n \r\n repaint();\r\n \r\n }", "void getReverInfo(int longitude,int latitude);", "private void Guardar(){\n btn_Guardar.setOnClickListener(v -> {\n if ( Conectividad()) {\n\n if (disp_Lat1 != null && disp_Long1 != null && disp_Lat2 != null && disp_Long2 != null) {\n if (etNombreCurso.getText() != null && etFecha.getText() != null && etHoraInicio.getText() != null) {\n if (!eventos.containsValue(etNombreCurso.getText().toString())) {\n if (box_Retraso.isChecked() && etTimeRetraso.getText() != null) {\n subirFormularioCurso(etNombreCurso.getText().toString(), tutorID, etDescripcion.getText().toString(), etFecha.getText().toString(),\n etHoraInicio.getText().toString(), etHoraFin.getText().toString(), etTimeRetraso.getText().toString(), box_Retraso.isChecked(), box_CheckOut.isChecked());\n\n subirDispositivo();\n subirLista();\n finish();\n } else if (box_Retraso.isChecked() && etTimeRetraso == null) {\n Toast.makeText(getApplicationContext(), \" Ingrese tiempo de atraso, para continuar.\", Toast.LENGTH_SHORT).show();\n } else {\n subirFormularioCurso(etNombreCurso.getText().toString(), tutorID, etDescripcion.getText().toString(), etFecha.getText().toString(),\n etHoraInicio.getText().toString(), etHoraFin.getText().toString(), \"0\", box_Retraso.isChecked(), box_CheckOut.isChecked());\n\n subirDispositivo();\n subirLista();\n finish();\n }\n }else{\n Toast.makeText(getApplicationContext(), \"Nombre de evento ya existe, ingrese otro nombre de evento.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getApplicationContext(), \" Porfavor ingrese todos los campos obligatorios (*).\", Toast.LENGTH_SHORT).show();\n }\n\n\n } else {\n Toast.makeText(FormularioCurso.this, \"No se pudo marcar la zona de asistencia. Revise su conexion a internet y marcar de nuevo la zona.\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(FormularioCurso.this, \"No dispone de conexion a internet.\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.inserirnota2);\n\n /* INICIO: GPS NOVO*/\n latitudeo1 = (TextView) findViewById(R.id.latitudeo);\n longitudeo1 = (TextView) findViewById(R.id.longitudeo);\n // Get the location manager\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n // Define the criteria how to select the location provider\n criteria = new Criteria();\n //criteria.setAccuracy(Criteria.ACCURACY_COARSE);\t//default\n criteria.setAccuracy(Criteria.ACCURACY_FINE);\n criteria.setCostAllowed(false);\n // get the best provider depending on the criteria\n provider = locationManager.getBestProvider(criteria, false);\n // the last known location of this provider\n Location location = locationManager.getLastKnownLocation(provider);\n mylistener = new MyLocationListener();\n\n if (location != null) {\n mylistener.onLocationChanged(location);\n } else {\n // leads to the settings because there is no last known location\n Toast.makeText(InserirNotaActivity.this, \"Localizacao Desligado \",Toast.LENGTH_SHORT).show();\n //Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n //startActivity(intent);\n /* quando o localizador está desabilitado as coordenadas recebem 00.00000 e segue em frente*/\n\n }\n // location updates: at least 1 meter and 200millsecs change\n locationManager.requestLocationUpdates(provider, 200, 1, mylistener);\n\n /* FIM: GPS NOVO*/\n\n codigoslist.clear();\n\n // VERIFICA SE O ARRAYLIST EST� VAZIO OU J� EXISTE\n if (rowAdapter == null) {\n rowAdapter = new CodigoBarrasAdapter(getApplicationContext(),codigoslist);\n lstView = (ListView) findViewById(R.id.listView1);\n lstView.setAdapter(rowAdapter);\n } else {\n rowAdapter.notifyDataSetChanged();\n }\n\n chave = VariaveisGlobais.getChave();\n detectainternet = new DetectorInternet(getApplicationContext());\n edtcodigobarras = (EditText) findViewById(R.id.edtnumcodigobarras);\n // AQUI ESTA MONITORANDO O EDITTEXT SE EXISTIR UM ENTER NO TECLADO , ELE IR� EXECUTAR ALGO\n edtcodigobarras.setOnKeyListener(new View.OnKeyListener() {\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (event.getAction() == KeyEvent.ACTION_DOWN) {\n switch (keyCode) {\n case KeyEvent.KEYCODE_ENTER:\n String codigo_lido = edtcodigobarras.getText()\n .toString();\n String[] list_itens = new String[]{codigo_lido};\n new UploadFileAsync().execute(list_itens);\n edtcodigobarras.setText(\"\");\n return true;\n default:\n break;\n }\n }\n return false;\n }\n });\n\n }", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "public void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tif (location != null) {\n\t\t\t\t\n\t\t\t\tlokasimanager.removeUpdates(locListNetwork);\n\t\t\t\t\n\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\tif (location.hasSpeed()) {\n\t\t\t\t\t\n\t\t\t\t\tlokasi = location;\n\t\t\t\t\t//jalankan task hitung kecepatan\n\t\t\t\t\tcepatTask = new CepatTask();\n\t\t\t\t\tcepatTask.execute();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//setel kecepatan 0\n\t\t\t\t\ttekskmh.setText(\"0.0\");\n\t\t\t\t\tcepatkmh = 0;\n\t\t\t\t\tcekKecepatanBatas(bataskecepatan, cepatkmh);\n\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttekskmh.setText(\"0.0\");\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public void onLocationChanged(Location location) {\n\n if(!locationFound){\n while(mlongitude == 0.0 && mlatitude == 0.0) {\n\n mlatitude = location.getLatitude();\n mlongitude = location.getLongitude();\n }\n\n locationFound = true;\n }\n\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "@Override\n public void onLocationChanged(Location location) {\n LatLng miUbicacion = new LatLng(location.getLatitude(), location.getLongitude());\n\n //Marcador de la ub. actual\n mMap.addMarker(new MarkerOptions().position(miUbicacion).title(\"Ubicación actual\").icon(BitmapDescriptorFactory.fromResource(R.drawable.marca3)));\n\n //Foco de la camara según la ubicación\n mMap.moveCamera(CameraUpdateFactory.newLatLng(miUbicacion));\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(miUbicacion)\n .zoom(14)\n .bearing(90)\n .tilt(45)\n .build();\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "public String getGPS();", "public void scanFrame() {\n\n //Scanner inaktiv, så scanTimeren kan blive angivet i millisekunder.\n if (scannerInactive) {\n scanTimer = millis();\n }\n\n //Scanner bliver sat til aktiv, når timeren har nået den værdi angivet i timeBetweenScan.\n if (!scannerInactive) {\n /*\n if (scanTimer % timeBetweenScan > timeBetweenScan-100 && millis() > 10000) {\n scanTimer = timeBetweenScan-99;\n scannerInactive = false;*/\n \n //Minx og maxX biver sat alt efter hvilken zone der skal scannes, baseret på et timeslot.\n minX = scanAreaW/4*time.getCurrentTimeSlotInt()+scanAreaX+1;\n maxX = scanAreaW/4*(time.getCurrentTimeSlotInt()+1)+scanAreaX-2;\n\n //Checker først om scanneren har ikke overskredet både X og Y-grænsen.\n //En pille blev\n if (y >= maxY && x >= maxX) {\n //Ingen piller blev i scanningsloopet.\n //Her resettes scannerens X og Y til standard, og vi sender en OSC-besked til enheden, at der ingen piller er.\n x = minX;\n y = minY;\n \n timeslotBools[time.getCurrentTimeSlotInt()] = true;\n\n //oscBesked\n msg = new OscMessage(\"/pill\");\n msg.add(false);\n oscP5.send(msg, unitAddress);\n\n } else { //Ingen af koordinaterne har ramt deres max.\n\n if (y >= maxY) {\n //Hvis Y-koordinaten har ramt kanten af boksen, resetter vi dens værdi, og begynde på næste række, X.\n x += 5;\n y = minY;\n } else {\n //Ingen af checks'ne var succesfulde, så det antages at ingen maks-grænse er noget, og den næste Y-koordinat kan læses.\n y += 5;\n }\n\n }\n \n //Pixels'ne indenfor scannings-regionen bliver tjekket imod pillerne i XML-filen.\n loadPixels();\n println(\"currentscan @frame: \" + x + \" \" + y + \" : currentcolor: \" + pixels[y*width+x]);\n for (int i = 0; i < xmlHandler.children.length-1; ++i) {\n xmlHandler.load(i+1);\n if(pixels[y*width+x] > xmlHandler.outputMinRange && pixels[y*width+x] < xmlHandler.outputMaxRange) {\n //Pille er blevet genkendet.\n //uielement.informationDialog(\"pille ramt: \" + pillTimeSlot(x));\n timeslotBools[time.getCurrentTimeSlotInt()] = false;\n x = minX;\n y = minY;\n //oscBesked\n msg = new OscMessage(\"/pill\");\n msg.add(true);\n oscP5.send(msg, unitAddress);\n }\n }\n\n //Tegner en boks om den pixel der bliver scannet.\n rectMode(RADIUS);\n noFill();\n stroke(scannerColor);\n rect(x, y, 10, 10);\n \n }\n\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage m;\n\t\t\t\t\tm = hr.obtainMessage(2, \"获取定位信息..\");\n\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\tif (lng == null || lng == 4.9E-324 || lat == null) {\n\t\t\t\t\t\tm = hr.obtainMessage(501, \"定位失败!请开启GPS和无线网络后重试\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n double dv = 0;\n if (bsLongitude.equals(\"\") || bsLatitude.equals(\"\")){\n dv = BDGeoLocation.getShortDistance(lng, lat,\n Double.valueOf(lng),\n Double.valueOf(lat));\n } else {\n dv = BDGeoLocation.getShortDistance(lng, lat,\n Double.valueOf(bsLongitude),\n Double.valueOf(bsLatitude));\n }\n\t\t\t\t\tBigDecimal bdl = new BigDecimal(dv);\n\t\t\t\t\tdv = bdl.setScale(2, BigDecimal.ROUND_HALF_UP)\n\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\t\tWGSTOGCJ02 wg = new WGSTOGCJ02();\n\t\t\t\t\tMap<String, Double> wgloc = wg.transform(lng, lat);\n\t\t\t\t\tSharedPreferences share = context.getSharedPreferences(\n\t\t\t\t\t\t\tApp.SHARE_TAG, 0);\n\t\t\t\t\tString userid = share.getString(\n\t\t\t\t\t\t\tAppCheckLogin.SHARE_USER_ID, \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjson.put(\"userid\", userid);\n\t\t\t\t\t\tjson.put(\"longitude\", String.valueOf(wgloc.get(\"lon\")));\n\t\t\t\t\t\tjson.put(\"latitude\", String.valueOf(wgloc.get(\"lat\")));\n\t\t\t\t\t\tjson.put(\"range\", String.valueOf(dv));\n\t\t\t\t\t\tm = hr.obtainMessage(3, \"定位成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(4, \"上传数据中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString subRes = submitToServer(json);\n\t\t\t\t\t\tif (subRes.equals(AppHttpClient.RESULT_FAIL)) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, \"上传数据失败!请检查手机网络是否有效\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tJSONObject jr = new JSONObject(subRes);\n\t\t\t\t\t\tif ((\"-1\").equals(jr.getString(\"result\"))) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, jr.getString(\"msg\"));\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tm = hr.obtainMessage(5, \"上传成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(6, \"上传图片中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString infoid = jr.getString(\"infoid\");\n\t\t\t\t\t\tif (imgPaths == null) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tFuncUploadFile ff = new FuncUploadFile(context);\n\t\t\t\t\t\tfor (int i = 0; i < imgPaths.length; i++) {\n\t\t\t\t\t\t\tif (imgPaths[i] != null) {\n\t\t\t\t\t\t\t\tString res = ff.uploadFileToServer(imgPaths[i],\n\t\t\t\t\t\t\t\t\t\t\"1\", \"巡检-\" + bsName, DATA_TYPE, \"\",\n\t\t\t\t\t\t\t\t\t\tinfoid, DataSiteStart.HTTP_SERVER_URL,\n\t\t\t\t\t\t\t\t\t\tDataSiteStart.HTTP_KEYSTORE);\n\t\t\t\t\t\t\t\tif (res.equals(AppHttpConnection.RESULT_FAIL)) {\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201, \"上传图片:\"\n\t\t\t\t\t\t\t\t\t\t\t+ imgPaths[i] + \"--失败\");\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJSONObject imgjr = new JSONObject(res);\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201,\n\t\t\t\t\t\t\t\t\t\t\t\"上传图片:\" + imgPaths[i] + \"--\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ imgjr.getString(\"msg\"));\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t\tString resCode = imgjr.getString(\"result\");\n\t\t\t\t\t\t\t\t\tif (resCode.equals(\"1\")\n\t\t\t\t\t\t\t\t\t\t\t&& imgPaths[i] != null) {\n\t\t\t\t\t\t\t\t\t\tFile file = new File(imgPaths[i]);\n\t\t\t\t\t\t\t\t\t\tfile.delete();// 删除临时文件\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t} catch (JSONException 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}", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }", "long getTimeUntilNextSet(Coordinates coord, double horizon, long time) throws AstrometryException;", "@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }", "@Override\n protected Void doInBackground(Void... params) {\n\n try {\n while(mLastLocation==null)\n {\n try {\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(\n googleApiClient);\n Thread.sleep(1000);\n }catch (SecurityException e){\n e.printStackTrace();\n }\n }\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }", "public String updateGpsStatus(int event, GpsStatus status) {\n StringBuilder sb2 = new StringBuilder(\"\");\n if (status == null) {\n sb2.append(\"0\");\n } else if (event == 4) {\n int maxSatellites = status.getMaxSatellites();\n Iterator<GpsSatellite> it = status.getSatellites().iterator();\n this.numSatelliteList.clear();\n int count = 0;\n int calibration = 0;\n while (it.hasNext() && count <= maxSatellites) {\n GpsSatellite s = (GpsSatellite) it.next();\n if (s.getSnr() != 0.0f) {\n Log.e(\"getSnr\", \" 信噪比\" + s.getSnr());\n this.numSatelliteList.add(s);\n count++;\n if (s.getSnr() > 35.0f) {\n calibration++;\n }\n }\n }\n sb2.append(this.numSatelliteList.size());\n }\n if (this.numSatelliteList.size() > 3) {\n if (isAdded()) {\n this.iv_gps.setBackground(getResources().getDrawable(R.drawable.gps_on));\n this.gps_count.setTextColor(getResources().getColor(android.R.color.white));\n }\n } else if (isAdded()) {\n this.iv_gps.setBackground(getResources().getDrawable(R.drawable.gps_off));\n this.gps_count.setTextColor(getResources().getColor(android.R.color.holo_red_dark));\n }\n this.gps_count.setText(this.numSatelliteList.size() + \"\");\n return sb2.toString();\n }", "public void enviarDatos(View view){\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState() == NetworkInfo.State.CONNECTED ||\n connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState() == NetworkInfo.State.CONNECTED) {\n connected = true;\n } else {\n connected = false;\n }\n\n if(connected == true){\n String temperaturaTV =fuego.getText().toString();\n String fuegoTV = fuego.getText().toString();\n String humedadTV = humedad.getText().toString();\n String humoTV = humo.getText().toString();\n if(temperaturaTV.equals(\"El sensor no tiene datos para mostrar\")\n && fuegoTV.equals(\"El sensor no tiene datos para mostrar\")\n && humedadTV.equals(\"El sensor no tiene datos para mostrar\")\n && humoTV.equals(\"El sensor no tiene datos para mostrar\")){\n Toast toast = Toast.makeText(getApplicationContext(), \"El sensor no tiene datos que guardar\", Toast.LENGTH_SHORT);\n toast.show();\n }else{\n Map<String, Object> datos = new HashMap<>();\n datos.put(\"idSensor\", id);\n\n if(temperaturaTV.equals(\"El sensor no tiene datos para mostrar\")){\n datos.put(\"fuego\", \"no\");\n }else{\n datos.put(\"fuego\", fuego.getText().toString());\n }\n\n if(temperaturaTV.equals(\"El sensor no tiene datos para mostrar\")){\n datos.put(\"temperatura\", 0);\n }else{\n datos.put(\"temperatura\", Float.parseFloat(temperatura.getText().toString().replace(\" °C\",\"\")));\n }\n\n if(temperaturaTV.equals(\"El sensor no tiene datos para mostrar\")){\n datos.put(\"humo\", 0);\n }else{\n datos.put(\"humo\", Float.parseFloat(humo.getText().toString().replace(\" ppm\",\"\")));\n }\n\n if(temperaturaTV.equals(\"El sensor no tiene datos para mostrar\")){\n datos.put(\"humedad\", 0);\n }else{\n datos.put(\"humedad\", Float.parseFloat(humedad.getText().toString().replace(\" %\",\"\")));\n }\n\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"parametros\").add(datos);\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Datos Cargados Exitosamente\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }else{\n InicioSesion.FireMissilesDialogFragment prueba = new InicioSesion.FireMissilesDialogFragment();\n prueba.showNow(getSupportFragmentManager(), \"mensaje\");\n }\n }", "public void colocarMarcadores(){\n\n if(seeOnMap != 0){\n\n for (int n=0; n<c.getCount(); n++) {\n c.moveToPosition(n);\n Double lat = c.getDouble(c.getColumnIndex(\"lat\"));\n Double lng = c.getDouble(c.getColumnIndex(\"lon\"));\n String name = c.getString(c.getColumnIndex(\"title\"));\n\n map.addMarker(new MarkerOptions().position(new LatLng(lat, lng))\n .title(name));\n }\n }\n }", "private void jadwalKedua(){\n jadwalKeduaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKeduaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[1][0] = hourOfDay;\n jadwal[1][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }", "@Override\n public void onPositionUpdated(GeoPosition loc) {\n loc.getCoordinate();\n loc.getHeading();\n loc.getSpeed();\n //double time=navigationManager.getTta(Route.TrafficPenaltyMode.DISABLED,true);\n //getEta(loc.getCoordinate());\n // also remaining time and distance can be\n // fetched from navigation manager\n navigationManager.getTta(Route.TrafficPenaltyMode.DISABLED, true);\n navigationManager.getDestinationDistance();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // Recherche de la derniere localisation\n Criteria criteria = new Criteria();\n String provider = locationManager.getBestProvider(criteria, false);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n float lat = (float) (location.getLatitude());\n float lng = (float) (location.getLongitude());\n\n currentPosition = new Point(location.getLongitude(), location.getLatitude());\n\n // Add a marker at our position and move the camera\n LatLng lastCoord = new LatLng(lat, lng);\n mMap.addMarker(new MarkerOptions().position(lastCoord).title(\"Last time we were here\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(lastCoord));\n\n lblPosition.setText(\"Last Position: \"+location.getLatitude()+\", \"+location.getLongitude());\n\n Log.i(this.getClass().getName(), String.valueOf(lat));\n Log.i(this.getClass().getName(), String.valueOf(lng));\n } else {\n Log.w(this.getClass().getName(), \"Provider not available\");\n }\n\n // dessine points intérets et sector de la database\n loadPOI();\n loadSector();\n\n // attache le callback\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 1, this);\n }", "public void setDEPARTURE_FROM_LOC_TIME(java.sql.Time value)\n {\n if ((__DEPARTURE_FROM_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__DEPARTURE_FROM_LOC_TIME)))\n {\n _isDirty = true;\n }\n __DEPARTURE_FROM_LOC_TIME = value;\n }", "private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttime[0]=((EditText)findViewById(R.id.get_time_range_from_two_space_firsttime)).getText().toString();\r\n\t\t\t\ttime[1]=((EditText)findViewById(R.id.get_time_range_from_two_space_lasttime)).getText().toString();\r\n\t\t\t\tfirstPlace[0]=((EditText)findViewById(R.id.get_time_range_from_two_space_first_place_firstlatitude)).getText().toString();\r\n\t\t\t\tfirstPlace[1]=((EditText)findViewById(R.id.get_time_range_from_two_space_first_place_secondlatitude)).getText().toString();\r\n\t\t\t\tfirstPlace[2]=((EditText)findViewById(R.id.get_time_range_from_two_space_first_place_firstlongitude)).getText().toString();\r\n\t\t\t\tfirstPlace[3]=((EditText)findViewById(R.id.get_time_range_from_two_space_first_place_secondlongitude)).getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tsecondPlace[0]=((EditText)findViewById(R.id.get_time_range_from_two_space_second_place_firstlatitude)).getText().toString();\r\n\t\t\t\tsecondPlace[1]=((EditText)findViewById(R.id.get_time_range_from_two_space_second_place_secondlatitude)).getText().toString();\r\n\t\t\t\tsecondPlace[2]=((EditText)findViewById(R.id.get_time_range_from_two_space_second_place_firstlongitude)).getText().toString();\r\n\t\t\t\tsecondPlace[3]=((EditText)findViewById(R.id.get_time_range_from_two_space_second_place_secondlongitude)).getText().toString();\r\n\t\t\t\tIntent intent=GetTimeRangeFromTwoSpaceAty.this.getIntent();\r\n\t\t\t\tBundle bundle=new Bundle();\r\n\t\t\t\tbundle.putString(Arguments.firstTime,time[0]);\r\n\t\t\t\tbundle.putString(Arguments.secondTime,time[1]);\r\n\t\t\t\t\r\n\t\t\t\tbundle.putString(Arguments.firstPlaceFirstLatitude,firstPlace[0] );\r\n\t\t\t\tbundle.putString(Arguments.firstPlaceSceondLatitude, firstPlace[1]);\r\n\t\t\t\tbundle.putString(Arguments.firstPlaceFirstLongitude, firstPlace[2]);\r\n\t\t\t\tbundle.putString(Arguments.firstPlaceSecondLongitude, firstPlace[3]);\r\n\t\t\t\t\r\n\t\t\t\tbundle.putString(Arguments.secondPlaceFirstLatitude, secondPlace[0]);\r\n\t\t\t\tbundle.putString(Arguments.secondPlaceSceondLatitude, secondPlace[1]);\r\n\t\t\t\tbundle.putString(Arguments.secondPlaceFirstLongitude, secondPlace[2]);\r\n\t\t\t\tbundle.putString(Arguments.secondPlaceSecondLongitude, secondPlace[3]);\r\n\t\t\t\t//bundle.putString(Arguments.FINISH,Arguments.FINISH);\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tsetResult(Arguments.GET_TIME_RANGE_FROM_TWO_SPACE, intent);\r\n\t\t\t\tGetTimeRangeFromTwoSpaceAty.this.finish();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onCameraIdle() {\n double CameraLat = GMap.getCameraPosition().target.latitude;\n double CameraLong = GMap.getCameraPosition().target.longitude;\n if (CameraLat <= 13.647080 || CameraLat >= 13.655056) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n if (CameraLong <= 100.490774 || CameraLong >= 100.497254) {\n GMap.animateCamera(CameraUpdateFactory.newLatLng(mapbounds.getCenter()));\n }\n\n }", "@Override\n public void onLocationChanged(Location location) {\n Intent i = new Intent(\"location_update\");\n i.putExtra(\"coordinates\", location.getLongitude() + \" \" + location.getLatitude());\n home_loc = new FileCacher<>(getApplicationContext(), \"myloc.txt\");\n\n if (home_loc.hasCache()) {\n try {\n double lat1 = location.getLatitude();\n double long1 = location.getLongitude();\n String loc = home_loc.readCache();\n String[] coors1 = {Double.toString(long1), Double.toString(lat1)};\n if (loc != null) {\n Log.i(\"loc\", loc);\n coors1 = loc.split(\" \");\n }\n\n double lat2 = Double.parseDouble(coors1[1]);\n double long2 = Double.parseDouble(coors1[0]);\n double dist = distance(lat1, lat2, long1, long2);\n Log.i(\"dist\", Double.toString(dist));\n if (dist > thresh) {\n i.putExtra(\"exceed\", \"true\");\n } else {\n i.putExtra(\"exceed\", \"false\");\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n sendBroadcast(i);\n }", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}", "private GPS readCSVFileGPS(File file)\n {\n // Delimiter used in CSV file //\n final String COMMA_DELIMITER = \";\";\n\n // Display of times //\n SimpleDateFormat sdf_yyyyMMddTHHmmssZ = new SimpleDateFormat(getString(R.string.sdf_yyyyMMddTHHmmssZ));\n sdf_yyyyMMddTHHmmssZ.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n // GPS data //\n List<DateTime> time = new ArrayList<DateTime>();\n List<LatLng> latitude_longitude = new ArrayList<LatLng>();\n List<Double> elevation = new ArrayList<Double>();\n List<Double> heart_rate = new ArrayList<Double>();\n\n try\n {\n FileInputStream fis = new FileInputStream(file);\n\n if (fis != null)\n {\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader br = new BufferedReader(isr);\n\n String line;\n br.readLine(); // Skip the first line (header) //\n while (( line = br.readLine() ) != null)\n {\n String[] data = line.split(COMMA_DELIMITER);\n if (data.length > 0)\n {\n // Time data //\n try\n {\n time.add(new DateTime(sdf_yyyyMMddTHHmmssZ.parse(data[0])));\n }\n catch (java.text.ParseException e)\n {\n Log.e(\"Exception\", \"Parse error: \" + e.toString());\n }\n\n // Latitude and Longitude data //\n latitude_longitude.add(new LatLng(Double.valueOf(data[1]),Double.valueOf(data[2])));\n\n // Elevation data //\n elevation.add(Double.valueOf(data[3]));\n\n // Heart Rate data //\n heart_rate.add(Double.valueOf(data[4]));\n }\n }\n br.close();\n }\n else\n {\n time = null;\n latitude_longitude = null;\n elevation = null;\n heart_rate = null;\n }\n }\n catch (FileNotFoundException e)\n {\n Log.e(\"Exception\", \"File not found: \" + e.toString());\n }\n catch (IOException e)\n {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n\n // Return a HeartRate object //\n GPS gps = new GPS(time, latitude_longitude, elevation, heart_rate);\n return gps;\n }", "public boolean checkMissingLonLatTime() {\n\t\ttry {\n _locationsChecked = true;\n\t\t\tDouble[] longitudes = getSampleLongitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( longitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(longitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[longitudeIndex]);\n\t\t\t\t\tString comment = \"missing longitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no longitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\ttry {\n\t\t\tDouble[] latitudes = getSampleLatitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( latitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(latitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[latitudeIndex]);\n\t\t\t\t\tString comment = \"missing latitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no latitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n//\t DashDataType<?> pressureColumn = findDataColumn(\"water_pressure\");\n//\t DashDataType<?> depthColumn = findDataColumn(\"sample_depth\");\n//\t if ( depthColumn != null ) {\n//\t\t\ttry {\n//\t\t\t\tDouble[] depths = getSampleDepths();\n//\t\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n//\t\t\t\t\tif ( depths[rowIdx] == null ) {\n//\t\t\t\t\t\tisOk = pressureColumn != null;\n//\t\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\t\tmsg.setSeverity(pressureColumn == null ? Severity.ERROR : Severity.WARNING);\n//\t\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\t\tmsg.setColIndex(sampleDepthIndex);\n//\t\t\t\t\t\tmsg.setColName(userColNames[sampleDepthIndex]);\n//\t\t\t\t\t\tString comment = \"missing sample depth\";\n//\t\t\t\t\t\tmsg.setGeneralComment(comment);\n//\t\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\t\tstdMsgList.add(msg);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t} catch ( Exception ex ) {\n//\t\t\t ex.printStackTrace();\n//\t\t\t}\n//\t\t} else if ( pressureColumn == null ) {\n//\t\t\tisOk = false;\n//\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\tString comment = \"no sample depth column\";\n//\t\t\tmsg.setGeneralComment(comment);\n//\t\t\tmsg.setDetailedComment(comment);\n//\t\t\tstdMsgList.add(msg);\n//\t\t}\n\n\t\tDouble[] times = null;\n\t\ttry {\n _timesChecked = true;\n\t\t\ttimes = getSampleTimes();\n\t\t\tfor (int rowIdx = 0; _timesOk && rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( times[rowIdx] == null ) {\n\t\t\t\t\t_timesOk = false;\n // XXX Messages are now added during the data standarization phase\n\t\t\t\t\t// in the StdUserDataArray constructor.\n//\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\tString comment = \"incomplete sample date/time specification\";\n//\t\t\t\t\tmsg.setGeneralComment(\"Bad date/time value\");\n//\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_timesOk = false;\n\t\t\tex.printStackTrace();\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"incomplete columns specifying sample date/time\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(ex.getMessage());\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\treturn _locationsOk && _timesOk;\n\t}", "public static boolean isPassOneHour(String pass)\n {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = new Date();\n String current = dateFormat.format(date);\n\n //Extract current data time all values\n\n int current_year = Integer.parseInt(current.substring(0, 4));\n int current_month = Integer.parseInt(current.substring(5,7))-1;\n int current_day = Integer.parseInt(current.substring(8,10));\n\n int current_hour = Integer.parseInt(current.substring(11,13));\n int current_minute = Integer.parseInt(current.substring(14,16));\n int current_seconds = Integer.parseInt(current.substring(17));\n\n //String pass = \"2016-10-05 10:14:00\";\n\n //Extract last update data (pass from parameter\n\n int year = Integer.parseInt(pass.substring(0, 4));\n int month = Integer.parseInt(pass.substring(5,7))-1;\n int day = Integer.parseInt(pass.substring(8,10));\n\n int hour = Integer.parseInt(pass.substring(11,13));\n int minute = Integer.parseInt(pass.substring(14,16));\n int seconds = Integer.parseInt(pass.substring(17));\n\n\n System.out.println(\"CURRENT: \" + current_year+\"/\"+current_month+\"/\"+current_day+\" \"+current_hour+\":\"+current_minute+\":\"+current_seconds);\n\n System.out.println(\"PASS: \" + year+\"/\"+month+\"/\"+day+\" \"+hour+\":\"+minute+\":\"+seconds);\n\n if (current_year == year)\n {\n if (current_month == month)\n {\n if (current_day == day)\n {\n if (current_hour > hour)\n {\n if ((current_hour - hour > 1))\n {\n //Bi ordu gutxienez\n System.out.println(\"Bi ordu gutxienez: \" + (current_hour) + \" / \" + hour);\n return true;\n }\n else\n {\n if (((current_minute + 60) - minute ) < 60)\n {\n //Ordu barruan dago\n System.out.println(\"Ordu barruan nago ez delako 60 minutu pasa: \" + ((current_minute + 60) - minute ));\n return false;\n }\n else\n {\n //Refresh\n System.out.println(\"Eguneratu, ordu bat pasa da gutxienez: \" + ((current_minute + 60) - minute ));\n return true;\n }\n }\n\n }\n }\n }\n }\n return false;\n }", "long getTimeUntilNextTransit(Coordinates coord, long time) throws AstrometryException;", "private void gettime(){\n\t\t String depart_time = view.shpmTable.getSelection()[0].getAttribute(\"DEPART_TIME\");\n\t\t String unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n\t\t if(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t}else {\n\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t}\n\t\t /*Util.db_async.getSingleRecord(\"MAX(DEPART_TIME)\", \"V_SHIPMENT_HEADER\", \" WHERE LOAD_NO='\"+load_no+\"'\", null, new AsyncCallback<HashMap<String,String>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(HashMap<String, String> result) {\n\t\t\t\tString depart_time = result.get(\"MAX(DEPART_TIME)\");\n\t\t\t\tString unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n//\t\t\t\tboolean x =DateUtil.isAfter(unload_time, depart_time);\n\t\t\t\tif(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t\t}else {\n\t\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t}", "@Override\n protected String doInBackground(Void... params) {\n if (HelperRete.isNetworkAvailable(mMainActivity)) {\n\n String queryFormattata = mQueryGrezza.replaceAll(\" \", \"+\" + \"\");\n mQueryTitolo = mQueryGrezza.substring(0,1).toUpperCase() + mQueryGrezza.substring(1);\n\n // creazione url\n String url = \"https://maps.google.com/maps/api/geocode/json\" +\n \"?address=\" + queryFormattata + \"&key=\" + mMainActivity.getString(R.string.google_geoc_key);\n\n JSONObject response = HelperRete.volleySyncRequest(mMainActivity, url);\n\n // ottieni le coordinate dell'indirizzo tramite la risposta di GoogleApi\n try {\n if (response != null) {\n Log.i(\"jsonresp\", response.toString());\n\n double lng = ((JSONArray) response.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lng\");\n\n double lat = ((JSONArray) response.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lat\");\n\n mCoordinateCercate = new LatLng(lat, lng);\n\n return RICERCA_COMPLETATA;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n return NO_INTERNET;\n }\n\n return null;\n }", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "private void m14044a(C3372e c3372e, BDLocation bDLocation, SQLiteDatabase sQLiteDatabase) {\n if (bDLocation != null && bDLocation.getLocType() == 161) {\n if ((\"wf\".equals(bDLocation.getNetworkLocationType()) || bDLocation.getRadius() < 300.0f) && c3372e.f18275a != null) {\n int currentTimeMillis = (int) (System.currentTimeMillis() >> 28);\n System.currentTimeMillis();\n int i = 0;\n for (ScanResult scanResult : c3372e.f18275a) {\n if (scanResult.level != 0) {\n int i2 = i + 1;\n if (i2 <= 6) {\n ContentValues contentValues = new ContentValues();\n String encode2 = Jni.encode2(scanResult.BSSID.replace(Config.TRACE_TODAY_VISIT_SPLIT, \"\"));\n try {\n int i3;\n int i4;\n double d;\n Object obj;\n double d2;\n Cursor rawQuery = sQLiteDatabase.rawQuery(\"select * from wof where id = \\\"\" + encode2 + \"\\\";\", null);\n if (rawQuery == null || !rawQuery.moveToFirst()) {\n i3 = 0;\n i4 = 0;\n d = 0.0d;\n obj = null;\n d2 = 0.0d;\n } else {\n double d3 = rawQuery.getDouble(1) - 113.2349d;\n double d4 = rawQuery.getDouble(2) - 432.1238d;\n int i5 = rawQuery.getInt(4);\n i3 = rawQuery.getInt(5);\n i4 = i5;\n d = d3;\n double d5 = d4;\n obj = 1;\n d2 = d5;\n }\n if (rawQuery != null) {\n rawQuery.close();\n }\n if (obj == null) {\n contentValues.put(\"mktime\", Double.valueOf(bDLocation.getLongitude() + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(bDLocation.getLatitude() + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(1));\n contentValues.put(\"cc\", Integer.valueOf(1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n contentValues.put(\"id\", encode2);\n sQLiteDatabase.insert(\"wof\", null, contentValues);\n } else if (i3 == 0) {\n i = i2;\n } else {\n float[] fArr = new float[1];\n Location.distanceBetween(d2, d, bDLocation.getLatitude(), bDLocation.getLongitude(), fArr);\n if (fArr[0] > 1500.0f) {\n int i6 = i3 + 1;\n if (i6 <= 10 || i6 <= i4 * 3) {\n contentValues.put(\"cc\", Integer.valueOf(i6));\n } else {\n contentValues.put(\"mktime\", Double.valueOf(bDLocation.getLongitude() + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(bDLocation.getLatitude() + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(1));\n contentValues.put(\"cc\", Integer.valueOf(1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n }\n } else {\n d2 = ((d2 * ((double) i4)) + bDLocation.getLatitude()) / ((double) (i4 + 1));\n ContentValues contentValues2 = contentValues;\n contentValues2.put(\"mktime\", Double.valueOf((((d * ((double) i4)) + bDLocation.getLongitude()) / ((double) (i4 + 1))) + 113.2349d));\n contentValues.put(BaiduNaviParams.KEY_TIME, Double.valueOf(d2 + 432.1238d));\n contentValues.put(\"bc\", Integer.valueOf(i4 + 1));\n contentValues.put(\"ac\", Integer.valueOf(currentTimeMillis));\n }\n try {\n if (sQLiteDatabase.update(\"wof\", contentValues, \"id = \\\"\" + encode2 + \"\\\"\", null) <= 0) {\n }\n } catch (Exception e) {\n }\n }\n } catch (Exception e2) {\n }\n i = i2;\n } else {\n return;\n }\n }\n }\n }\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n Log.i(TAG,\"Location Listener start\");\n if(oneTime==0){\n \tgooglemap.setMyLocationEnabled(true);\n \t\tgooglemap.setMapType(GoogleMap.MAP_TYPE_HYBRID);//set map type this is sattelite map\n \t\t\n \t\n \n \tString coordinates[] = {\"\"+location.getLatitude(), \"\"+location.getLongitude()};\n \tmyLocLat = Double.parseDouble(coordinates[0]);\n \tmyLocLong = Double.parseDouble(coordinates[1]);\n \tLatLng ll=new LatLng(myLocLat, myLocLong);//create latlng object for current location\n \tgooglemap.moveCamera(CameraUpdateFactory.newLatLng(ll));//show current location in google map\n \t\t\tgooglemap.animateCamera(CameraUpdateFactory.zoomTo(15));//zoom in google map value 2-21\n \t\t\t//pos=googlemap.addMarker(new MarkerOptions().position(new LatLng(myLocLat, myLocLong)).snippet(\"latitude: \"+myLocLat+\"longitude: \"+myLocLong).title(\"youe are here\"));\n\t\t\t\t\n \t\t\t Geocoder gcd = new Geocoder(getApplicationContext(), Locale.getDefault());\n \t\t\t List<Address> addresses = null;\n\t\t\t\ttry {\n\t\t\t\t\taddresses = gcd.getFromLocation(location.getLatitude(),location.getLongitude(), 1);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\t // String text=(addresses!=null)?\"City : \"+addresses.get(0).getSubLocality()+\"\\n Country : \"+addresses.get(0).getCountryName():\"Unknown Location\";\n\t\t\t\t \n\t\t\t\tString text=(addresses!=null)? addresses.get(0).getAddressLine(2):\"Unknown Location\";\n \t\t\t \n\t\t\t\tlocationCity = text.substring(0,text.indexOf(\",\"));\n \t\t\t\n \t\t\tpos=googlemap.addMarker(new MarkerOptions().position(new LatLng(myLocLat, myLocLong)).snippet(\"latitude: \"+myLocLat+\"longitude: \"+myLocLong).title(\"My location: \"+locationCity));\n \t\t\tpos.showInfoWindow();\n\t\t\t\n \t\n \t\t\toneTime++;\n }\n \t\n\n }", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n if( event.values[0] < sensor.getMaximumRange() )\n {\n //// SI LA PANTALLA NO FUE TAPADA ANTERIORMENTE -> GUARDO EL MOMENTO DE INICIO DEL JUEGO\n if( !pantallaEstabaTapada )\n {\n tiempoDeInicio= SystemClock.uptimeMillis();\n pantallaEstabaTapada=true;\n getWindow().getDecorView().setBackgroundColor(Color.RED);\n }\n }\n else\n {\n //// SI LA PANTALLA ESTABA TAPADA Y AHORA NO LO ESTA --> CALCULO LOS SEGUNDOS TRANSCURRIDOS Y DESTRUYO EL LISTENER DEL SENSOR\n if( pantallaEstabaTapada )\n {\n segundosTranscurridos= pasarMilisegundoASegundo(SystemClock.uptimeMillis() - tiempoDeInicio);\n pantallaEstabaTapada=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n\n ServicePOST comunicacionApiRest = new ServicePOST(getApplicationContext());\n comunicacionApiRest.registrarEvento(String.valueOf(event.values[0]), \"SENSOR DE PROXIMIDAD\");\n\n sensorManag.unregisterListener(sensorListener);\n\n }\n }\n guardarInfoEnSharedPreference(event.values[0]);\n }", "public void setAvailableTime() {\n System.out.println(\"What is the free time for the playground\");\n System.out.println(\"From:\");\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n System.out.print(\"To: \");\n int y = input.nextInt();\n for (int i = x; i <= y; ++i) {\n availableTime[i] = true;\n }\n }" ]
[ "0.61185586", "0.6113051", "0.5880176", "0.57125777", "0.57060724", "0.56879747", "0.56783766", "0.5639937", "0.5600629", "0.5542511", "0.547034", "0.5417048", "0.53687084", "0.53619474", "0.5280895", "0.52747285", "0.52734125", "0.52691364", "0.5264225", "0.52619946", "0.52459973", "0.52247703", "0.52175575", "0.52170914", "0.5213131", "0.5182125", "0.51778567", "0.51716316", "0.5150989", "0.5145951", "0.5137968", "0.5127376", "0.5119127", "0.5075226", "0.5061834", "0.5046288", "0.503849", "0.50359565", "0.50322765", "0.50300866", "0.5027713", "0.5020044", "0.50167227", "0.5008404", "0.5002523", "0.50004774", "0.4998718", "0.4997556", "0.49950463", "0.49900433", "0.4987813", "0.49865776", "0.4985928", "0.49733847", "0.49729714", "0.49685964", "0.49663213", "0.4957082", "0.49486557", "0.49461237", "0.4937727", "0.493739", "0.49319315", "0.49252018", "0.49227086", "0.49204755", "0.49140784", "0.49109578", "0.49068823", "0.4905215", "0.48930162", "0.4891547", "0.48838368", "0.48820162", "0.4878143", "0.4877874", "0.48712358", "0.4863219", "0.48609853", "0.48604724", "0.48604128", "0.48571706", "0.4857048", "0.48545462", "0.48544264", "0.48521933", "0.48455542", "0.4845394", "0.4843836", "0.48424217", "0.48360482", "0.48344782", "0.48329315", "0.48326114", "0.4832258", "0.4829694", "0.48252565", "0.48228487", "0.48214525", "0.48173", "0.48155394" ]
0.0
-1
here you can add functions
public void onClick(DialogInterface dialog, int which) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "private static void addFunciones() {\n funciones = new ArrayList<GlobalSimilarityNode>();\n funciones.add(new ParticularSimilGLNode());\n funciones.add(new TemporalSimilGLNode());\n\n }", "public void parseFunctions(){\n\t\t\n\t}", "org.globus.swift.language.Function addNewFunction();", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public void visitFunction(Function function) {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void addFunction( Object obj)\r\n {\r\n functionClasses.add(obj);\r\n }", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "private void addFunctionListeners()\n\t{\n\t\tadd.addActionListener (new functionListener());\n\t\tsubtract.addActionListener (new functionListener());\n\t\tmultiply.addActionListener (new functionListener());\n\t\tdivide.addActionListener (new functionListener());\n\t\tequals.addActionListener (new functionListener());\n\t\tnegate.addActionListener (new functionListener());\n\t\tpercent.addActionListener (new functionListener());\n\t\tsquareRoot.addActionListener (new functionListener());\n\t\tC.addActionListener (new functionListener());\n\t\tcubeRoot.addActionListener (new functionListener());\n\t\txSquare.addActionListener (new functionListener());\n\t\txCube.addActionListener (new functionListener());\n\t\tdel.addActionListener (new functionListener());\n\t\treciprocal.addActionListener (new functionListener());\t\n\t\tPI.addActionListener (new functionListener());\n\t\te.addActionListener (new functionListener());\n\t\ttwoPower.addActionListener (new functionListener());\n\t\tln.addActionListener (new functionListener());\n\t\teToPower.addActionListener (new functionListener());\n\t\tdecimalPoint.addActionListener (new functionListener());\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "private void jetFunctions(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\t\n\t\t//if this is a java.lang.String.func, we don't need to declare it\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString funStr = constructFunStr(invokeExpr);\n\t\tType thisType = null;\n\t\tif(!fileGenerator.getDeclaredFunctions().contains(funStr)){\n\t\t\tif(invokeExpr instanceof StaticInvokeExpr){\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}else{\n\t\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\t\tthisType = ((InterfaceInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\t\tthisType = ((SpecialInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\t\tthisType = ((VirtualInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}\n\t\t\tfileGenerator.getDeclaredFunctions().add(funStr);\n\t\t}\n\t}", "private static void addFuncionesName() {\n\n funcionesName = new ArrayList<String>();\n if (funciones == null) {\n addFunciones();\n }\n Iterator it = funciones.iterator();\n while (it.hasNext()) {\n funcionesName.add(((GlobalSimilarityNode) it.next()).getName());\n }\n }", "Funcionario(){\n }", "public FuncionesSemanticas(){\r\n\t}", "public static void main(String[] args) {\n FunctionFactory<Integer, Integer> functionFactory = new FunctionFactory<>();\n // 1. add simple functions \"square\", \"increment\", \"decrement\", \"negative\"\n // 2. get each function by name, and apply to argument 5, print a result (should be 25, 6, 4,-5 accordingly)\n // 3. add simple function \"abs\" using method reference (use class Math)\n // 4. add try/catch block, catch InvalidFunctionNameException and print some error message to the console\n // 5. try to get function with invalid name\n\n functionFactory.addFunction(\"square\", n -> n * n);\n functionFactory.addFunction(\"abs\", Math::abs);\n\n functionFactory.getFunction(\"square\").apply(5);\n try{\n functionFactory.getFunction(\"abs\").apply(5);\n }catch (InvalidFunctionNameException e){\n System.out.println(e.getMessage());\n }\n\n\n\n\n }", "public Function getFunction();", "public interface IFunction {\r\n void setFunctions(String tag);\r\n}", "public boolean addFunction(Accessibility pPAccess, SubRoutine pExec, MoreData pMoreData);", "@Override\n public void setFunctionName(String functionName) {\n\n }", "public static void addFuncsToNewCharacter(L2Character cha)\n\t{\n\t\tif (cha instanceof L2PcInstance)\n\t\t{\n\t\t\tcha.addStatFunc(FuncMaxHpMul.getInstance());\n\t\t\tcha.addStatFunc(FuncMaxCpMul.getInstance());\n\t\t\tcha.addStatFunc(FuncMaxMpMul.getInstance());\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_HP_RATE));\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_CP_RATE));\n\t\t\t//cha.addStatFunc(FuncMultRegenResting.getInstance(Stats.REGENERATE_MP_RATE));\n\t\t\tcha.addStatFunc(FuncBowAtkRange.getInstance());\n\t\t\tcha.addStatFunc(FuncCrossBowAtkRange.getInstance());\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.PHYS_ATTACK));\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.PHYS_DEFENSE));\n\t\t\t//cha.addStatFunc(FuncMultLevelMod.getInstance(Stats.MAGIC_DEFENSE));\n\t\t\tcha.addStatFunc(FuncPAtkMod.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkMod.getInstance());\n\t\t\tcha.addStatFunc(FuncPDefMod.getInstance());\n\t\t\tcha.addStatFunc(FuncMDefMod.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkCritical.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkCritical.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncPAtkSpeed.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkSpeed.getInstance());\n\n\t\t\tcha.addStatFunc(FuncHennaSTR.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaDEX.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaINT.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaMEN.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaCON.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaWIT.getInstance());\n\n\t\t\tcha.addStatFunc(FuncHennaLUC.getInstance());\n\t\t\tcha.addStatFunc(FuncHennaCHA.getInstance());\n\t\t}\n\t\telse if (cha instanceof L2Summon)\n\t\t{\n\t\t\tcha.addStatFunc(FuncAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkAccuracy.getInstance());\n\t\t\tcha.addStatFunc(FuncAtkEvasion.getInstance());\n\t\t\tcha.addStatFunc(FuncMAtkEvasion.getInstance());\n\t\t}\n\t}", "private void addFuncEventHandlers() {\n\t\tfuncNameListBox.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tfunctionBodyAceEditor.clearAnnotations();\n\t\t\t\tfunctionBodyAceEditor.removeAllMarkers();\n\t\t\t\tfunctionBodyAceEditor.redisplay();\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = funcNameListBox.getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedFunctionId = funcNameListBox.getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedFunctionObjId = selectedFunctionId;\n\t\t\t\t\t\tif (functionMap.get(selectedFunctionId) != null) {\n\t\t\t\t\t\t\tgetFuncNameTxtArea().setText(functionMap.get(selectedFunctionId).getFunctionName());\n\t\t\t\t\t\t\tgetFunctionBodyAceEditor().setText(functionMap.get(selectedFunctionId).getFunctionLogic());\n\t\t\t\t\t\t\tif (functionMap.get(selectedFunctionId).getContext().equalsIgnoreCase(\"patient\")) {\n\t\t\t\t\t\t\t\tcontextFuncPATRadioBtn.setValue(true);\n\t\t\t\t\t\t\t\tcontextFuncPOPRadioBtn.setValue(false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcontextFuncPOPRadioBtn.setValue(true);\n\t\t\t\t\t\t\t\tcontextFuncPATRadioBtn.setValue(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgetFunctionButtonBar().getDeleteButton().setEnabled(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLFunctionss().contains(getFunctionMap().get(selectedFunctionId).getFunctionName())) {\n\t\t\t\t\t\t\t\t\t\tgetFunctionButtonBar().getDeleteButton().setEnabled(false);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\tif (currentSelectedFunctionObjId != null) {\n\t\t\t\t\t\tCQLFunctions selectedFunction = getFunctionMap().get(currentSelectedFunctionObjId);\n\t\t\t\t\t\tif (selectedFunction.getArgumentList() != null) {\n\t\t\t\t\t\t\tfunctionArgumentList.clear();\n\t\t\t\t\t\t\tfunctionArgumentList.addAll(selectedFunction.getArgumentList());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfunctionArgumentList.clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcreateAddArgumentViewForFunctions(functionArgumentList);\n\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t}\n\t\t});\n\t}", "public String getFunctions();", "@Override\n public void initFunctionDelegates() {\n\n }", "@Override\r\n\tpublic void addFunction(Function function) {\n\t\tgetHibernateTemplate().save(function);\r\n\t}", "@Override\r\n\tpublic void runFunc() {\n\r\n\t}", "Function createFunction();", "private void add() {\n\n\t}", "org.globus.swift.language.Function insertNewFunction(int i);", "public boolean addFuncDynamic(Accessibility pAccess, ExecSignature pES, MoreData pMoreData);", "void addAndReplace(FuncItem f){\n // if exist replace\n if (classMethodMap.containsKey(f.funSymbol)){\n var old_f_idx = findMethod(f.funSymbol);\n f.storeIdx = old_f_idx;\n members.set(old_f_idx, f);\n } else {\n f.storeIdx = members.size();\n members.add(f);\n }\n classMethodMap.put( f.funSymbol, f.storeIdx);\n }", "void initFunctions() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all functions\n\t\tList<BdsNode> fdecls = BdsNodeWalker.findNodes(programUnit, StatementFunctionDeclaration.class, true, true);\n\t\tfor (BdsNode n : fdecls) {\n\t\t\tFunctionDeclaration fd = (FunctionDeclaration) n;\n\t\t\tbdsvm.addFunction(fd);\n\t\t}\n\t}", "Operations operations();", "public abstract void afvuren();", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "private MatchFunctRegistry<Function> registerCustomFunctions(\n\t\t\tfinal BundleContext context) {\n\t\tcustomFunctionServiceReg = context.registerService(\n\t\t\t\tMatchFunctRegistry.class, MatchFunctRegistryImpl.getInstance(),\n\t\t\t\tnull);\n\n\t\tMatchFunctRegistryImpl.getInstance().register(\n\t\t\t\tMatchFunctRegistryImpl.getInstance().buildFunctionURI(\n\t\t\t\t\t\t\"generateLSA-id\"), GenLSAidFunctImpl.class);\n\n\t\tif (customFunctionServiceReg != null) {\n\t\t\tlog(\"Match Functions Customization REGISTERED.\");\n\t\t}\n\n\t\treturn MatchFunctRegistryImpl.getInstance();\n\t}", "@Override\n\tpublic Map<String, FREFunction> getFunctions() \n\t{\n\t\tLog.d(TAG, \"Registering Extension Functions\");\n\t\tMap<String, FREFunction> functionMap = new HashMap<String, FREFunction>();\n\t\tfunctionMap.put(\"isInstalled\", new IsInstalledFunction());\n\t\tfunctionMap.put(\"shareText\", new ShareTextFunction());\n\t\tfunctionMap.put(\"shareImage\", new ShareImageFunction());\n\t\t// add other functions here\n\t\treturn functionMap;\t\n\t}", "public void addFunction(Function function) {\n String nameInLowerCase = Ascii.toLowerCase(function.getName());\n Preconditions.checkState(!registered);\n Preconditions.checkArgument(!customFunctions.containsKey(nameInLowerCase));\n customFunctions.put(nameInLowerCase, function);\n if (!function.getOptions().getAliasName().isEmpty()\n && !function.getOptions().getAliasName().equals(function.getName())) {\n String aliasInLowerCase = Ascii.toLowerCase(function.getOptions().getAliasName());\n Preconditions.checkArgument(!customFunctions.containsKey(aliasInLowerCase));\n customFunctions.put(aliasInLowerCase, function);\n }\n addFunctionToFullNameMap(function);\n }", "public void addfuntion(String name, CinemaFunction funtion) throws CinemaPersistenceException{\n\t\tcps.addfuntion(name,funtion);\n\t}", "@Override\r\n \tpublic void addMethods(KawaWrap kawa) throws Throwable {\r\n \tkawa.eval(\"(define (sub1 n) (- n 1))\");\r\n \tkawa.eval(\"(define (add1 n) (+ n 1))\");\r\n \t}", "void addMethod(Method method);", "public abstract void add(T input, List<Method> methods);", "public final void addFunction(DepFunction function) {\n\t\tthis.functionMap.put(function.getName(), function);\n\t}", "UserFunction getUserFunctions(int index);", "final public void funcall() throws ParseException {\n int pcount =0;\n String tokenImage = \"\";\n jj_consume_token(VARIABLE);\n if(functions.get(token.image)==null) {\n {if (true) throw new ParseException(\"Bad input. Si es un llamado a funcall(), La funcion que se intenta llamar no ha sido definida.\");}\n }\n tokenImage = token.image;\n label_12:\n while (true) {\n if (jj_2_48(4)) {\n ;\n } else {\n break label_12;\n }\n jj_consume_token(NUMERO);\n pcount ++;\n }\n if(pcount != functions.get(tokenImage).size()) {\n {if (true) throw new ParseException(\"El numero de parametros ingresados no concuerda con el numero de parametros\\u005cn\"+\n \"definidos en la funcion.\");}\n }\n }", "@Override\r\n public String getCommand() {\n return \"function\";\r\n }", "public interface GeneFunctions {\n /**\n * Metoda zwraca randomowy gen\n * \n * @return randomowy gen\n */\n public int randomGene();\n\n /**\n * Metoda mutuje gen i zwraca go\n * \n * @param gene\n * gen\n * @return zmutowany gen\n */\n public int mutateGene(int gene);\n}", "public static void main(String[] args) {\n\t\tFunctionInterface<?,Integer> imp = (a,b) -> a+b;\n\t\tSystem.out.println(imp.add(3, 5));\n\t\t//使用系统提供的functional interface\n\t\t//BiFunction<Integer,String,Long> sub = (a,b) -> System.out.println(b + a);\n\t}", "public Gateway setFns(java.lang.String fns) {\n return genClient.setOther(fns, CacheKey.fns);\n }", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public TravellingSalesmanFunctions() {\n\t\tregisterFunctions(\n\t\t\t\tnew SquareRoot(),\n\t\t\t\tnew Square(),\n\t\t\t\tnew Cube(),\n\t\t\t\tnew ScaledExponential(),\n\t\t\t\tnew AbsoluteSineAB(),\n\t\t\t\tnew AbsoluteCosineAB(),\n\t\t\t\tnew AbsoluteHyperbolicTangentAB(),\n\t\t\t\tnew ScaledHypotenuse(),\n\t\t\t\tnew ScaledAddition(),\n\t\t\t\tnew SymmetricSubtraction(),\n\t\t\t\tnew Multiplication(),\n\t\t\t\tnew BoundedDivision());\n\t}", "public Functions() {\r\n Functions = new ArrayList<Function>();\r\n }", "protected abstract String getFunctionName();", "ParsedRankFunction addOrReplaceFunction(ParsedRankFunction func) {\n return functions.put(func.name(), func);\n }", "public void operacao();", "FunctionExtract createFunctionExtract();", "@FunctionalInterface // or we can call it SAM\r\n interface ShowMe{\r\n\t\r\n\t void showOk();\r\n\t \r\n\tpublic default void one()\r\n\t {\r\n\t System.out.println(\"method one \");\r\n };\r\n \r\n public static void one1()\r\n {\r\n System.out.println(\"method one 1 \");\r\n };\r\n \r\n public default void one2()\r\n \t {\r\n \t System.out.println(\"method one2 \");\r\n };\r\n \r\n }", "public void addFilterToMethods(ViewerFilter filter);", "public static void main(String[] args) {\n\n List<String> functionArgumentOfA = new ArrayList<>();\n functionArgumentOfA.add(\"Boolean\");\n functionArgumentOfA.add(\"Integer\");\n functionArgumentOfA.add(\"Integer\");\n\n Function functionA = new Function(\"A\", false, functionArgumentOfA);\n\n\n List<String> functionArgumentOfB = new ArrayList<>();\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n\n Function functionB = new Function(\"B\", false, functionArgumentOfB);\n\n List<String> functionArgumentOfC = new ArrayList<>();\n functionArgumentOfC.add(\"Integer\");\n\n Function functionC = new Function(\"C\", true, functionArgumentOfC);\n\n FunctionSearchPlugin searchPlugin = new FunctionSearchPlugin();\n\n List<Function> functions = new ArrayList<>();\n\n functions.add(functionA);\n functions.add(functionB);\n functions.add(functionC);\n\n searchPlugin.register(functions);\n //Search for functions now\n //Integer, Integer, Integer should return B and C\n\n List<String> firstSearch = new ArrayList<>();\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n\n List<Function> searchResponse = searchPlugin.searchFunctions(firstSearch);\n System.out.format(\"Query: %s\", String.join(\", \", firstSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n\n List<String> secondSearch = new ArrayList<>();\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n\n searchResponse = searchPlugin.searchFunctions(secondSearch);\n System.out.format(\"Query: %s\", String.join(\", \", secondSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n }", "@Override\r\n\tpublic ExecutedFunctionsProgramPoint addExecutedFuncsProgramPoint(\r\n\t\t\tString name, String lineNo) {\n\t\treturn null;\r\n\t}", "@Override\n public void onInterfaceNewFunctionType(int CODE_FUNCTION_ADF_ID, Object objectFunctionType) {\n ModelItemManageFunctions modelItemManageFunctions = new ModelItemManageFunctions();\n modelItemManageFunctions.link = gSelectedListaItemId;\n modelItemManageFunctions.function = CODE_FUNCTION_ADF_ID;\n\n modelItemManageFunctions.JSON = createStringFunctionJSON(CODE_FUNCTION_ADF_ID, objectFunctionType);\n\n //modelItemLists.id:? Database assigns the value to this item\n //getting value auto generated\n Long newDataBaseItemId = gDataBaseManageFunctions.addNewItem(modelItemManageFunctions);\n modelItemManageFunctions.id = newDataBaseItemId;\n //create a counter to reorder table later\n modelItemManageFunctions.order = newDataBaseItemId;\n //inserting new item\n gRecyclerManageFunctions.addItemToRecycler(modelItemManageFunctions);\n\n }", "private void addActionListeners() {\n\t\tif(this.actionListener == null)\n\t\t\t\treturn; \n\t\t\n\t\t\n\t\t/**\n\t\t\tADD ACTION LISTENERS FOR BUTTONS HERE \n\t\t*/\n\t\tclearButton.addActionListener(this.actionListener);\n\t\tsinButton.addActionListener(this.actionListener);\n\t\tcosButton.addActionListener(this.actionListener);\n\t\ttanButton.addActionListener(this.actionListener);\n\t\tnegateButton.addActionListener(this.actionListener);\n\t\tsquareButton.addActionListener(this.actionListener);\n\t\tinverseButton.addActionListener(this.actionListener);\n\t\tsqrtButton.addActionListener(this.actionListener);\n\t\tpowerButton.addActionListener(this.actionListener);\n\t\tdivideButton.addActionListener(this.actionListener);\n\t\tmultiplyButton.addActionListener(this.actionListener);\n\t\tsubtractButton.addActionListener(this.actionListener);\n\t\taddButton.addActionListener(this.actionListener);\n\t\tpercentButton.addActionListener(this.actionListener);\n\t\t\n\t\t\n\t\tfor(int i = 0 ; i < valueButtons.length ; ++i) {\n\t\t\tvalueButtons[i].addActionListener(this.actionListener);\n\t\t}\n\t\t\n\t\t\n\t}", "public void logic(){\r\n\r\n\t}", "static void feladat10() {\n\t}", "int insert(FunctionInfo record);", "public b(Function1 function1) {\n super(1);\n this.$loadMore = function1;\n }", "public static void main(String[] args){\t \n\t FunctionTest ft = ()-> System.out.println(\"Hola Mundo\");\n ft.saludar();\n\t}", "private void addListeners()\r\n {\r\n Actions act = new Actions();\r\n btnCountA.addActionListener(act);\r\n btnSearch.addActionListener(act);\r\n btnFindL.addActionListener(act);\r\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void initKnownFunctions(){\r\n DotTree.Graph g = getGraph();\r\n\r\n for (DotTree.Edge e:g.edges){\r\n Function f = new Function(e.attributes.get(\"label\"));\r\n if (knownFunctions.containsKey(f.name)) f = knownFunctions.get(f.name);\r\n else {\r\n knownFunctions.put(f.name, f);\r\n }\r\n\r\n // compute available entry states\r\n for (DotTree.NodePair p:e.getNodePairs()){\r\n f.entryStates.add(new State(p.x.id));\r\n }\r\n }\r\n for (String name:knownFunctions.keySet()){\r\n if (name.matches(getParamS(\"ignoredFunctions\")))\r\n knownFunctions.remove(name);\r\n }\r\n\r\n }", "private void createFunctionPanel()\n\t{\n\t\tGridLayout funcGrid = new GridLayout(2,5);\n\t\tfuncGrid.setHgap (5);\n\t\tfuncGrid.setVgap (5);\n\t\tfunctionPanel.setLayout(funcGrid);\n\t\tfunctionPanel.add (eToPower);\n\t\tfunctionPanel.add (ln);\n\t\tfunctionPanel.add (twoPower);\n\t\tfunctionPanel.add (xCube);\n\t\tfunctionPanel.add (xSquare);\n\t\tfunctionPanel.add (del);\n\t\tfunctionPanel.add (C);\n\t\tfunctionPanel.add (negate);\n\t\tfunctionPanel.add (cubeRoot);\t\t\n\t\tfunctionPanel.add (squareRoot);\n\t\t\n\t}", "public void miseAJour();", "public void apply();", "public void apply();", "public void apply();", "static void feladat5() {\n\t}", "@Override\n\tpublic void changeFuncAdded(ChangeFunc changeFunc) {\n\t\t// TODO Auto-generated method stub\n//\t\tChangeFuncModule module = new ChangeFuncModule(100, 300, changeFunc);\n//\t\tmodule.setInstance(changeFunc);\n//\t\t\n//\t\tmodule.setSize(module.getPreferredSize());\n//\t\tmodule.validate();\n//\t\t\n//\t\tmodule.setLocation(200, 200);\n//\t\tadd(module);\n//\t\tboxes.addAll(module.getConnectablePanels());\n//\t\t\n//\t\tmodule.setOwner(this);\n//\t\t\n//\t\tmodules.add(module);\n//\t\t\n//\t\tupdateUI();\n//\t\trepaint();\n\t}", "public void onderbreek(){\n \n }", "final public void function() throws ParseException {\n String name = \"\";\n LinkedList<String> params = new LinkedList<String>();\n jj_consume_token(TO);\n jj_consume_token(VARIABLE);\n name = token.image;\n label_8:\n while (true) {\n if (jj_2_44(4)) {\n ;\n } else {\n break label_8;\n }\n jj_consume_token(PARAM);\n params.add(token.image);\n }\n //retorna el viejo valor (si ya habia uno con esa misma key) y null si es la primera vez que se inserta.\n if(functions.put(name,params)!=null) {\n {if (true) throw new ParseException(\"La funcion: \"+ name +\" ya fue previamente definida.\");}\n }\n funparams = params;\n label_9:\n while (true) {\n if (jj_2_45(4)) {\n ;\n } else {\n break label_9;\n }\n jj_consume_token(34);\n }\n jj_consume_token(OUTPUT);\n label_10:\n while (true) {\n if (jj_2_46(4)) {\n ;\n } else {\n break label_10;\n }\n jj_consume_token(34);\n }\n command(salidaS);\n label_11:\n while (true) {\n if (jj_2_47(4)) {\n ;\n } else {\n break label_11;\n }\n jj_consume_token(34);\n }\n jj_consume_token(END);\n funparams = null;\n }", "public Function() {\r\n\r\n\t}", "public void setfunction(String function) {\n\t\t_function = function;\n\t}", "public Function add(Function f) {\r\n // A totall of 3 function objects are present in this method, the current\r\n //object called to with \"this\", the inputed function f, and the final sum of both\r\n //functions, Function sum.\r\n //this function uses addterm method to add each term from both functions by scanning\r\n //both arrays and placing values for degrees, and coefficient in Function sum arrays.\r\n //sum is then returned.\r\n Function sum = new Function();\r\n for (int i = 0; i < this.cindex; i++){\r\n sum.addTerm(this.co[i],this.degree[i]); \r\n }\r\n for (int i = 0; i < f.cindex; i++){\r\n sum.addTerm(f.co[i],f.degree[i]); \r\n }\r\n for (int i = 0; i < this.sinindex; i++){\r\n sum.addTerm(this.sinc[i],\"sin\",this.sind[i]); \r\n } \r\n for (int i = 0; i < f.sinindex; i++){\r\n sum.addTerm(f.sinc[i],\"sin\",f.sind[i]); \r\n }\r\n for (int i = 0; i < this.cosindex; i++){\r\n sum.addTerm(this.cosc[i],\"cos\",this.cosd[i]); \r\n }\r\n for (int i = 0; i < f.cosindex; i++){\r\n sum.addTerm(f.cosc[i],\"cos\",f.cosd[i]); \r\n }\r\n for (int i = 0; i < this.tanindex; i++){\r\n sum.addTerm(this.tanc[i],\"tan\",this.tand[i]); \r\n }\r\n for (int i = 0; i < f.tanindex; i++){\r\n sum.addTerm(f.tanc[i],\"tan\",f.tand[i]); \r\n }\r\n return sum; \r\n\t}", "public void defineFunction(String prefix, String function, String className, String methodName)\n/* */ throws ClassNotFoundException, NoSuchMethodException\n/* */ {\n/* 87 */ if ((prefix == null) || (function == null) || (className == null) || (methodName == null))\n/* */ {\n/* 89 */ throw new NullPointerException(Util.message(this.context, \"elProcessor.defineFunctionNullParams\", new Object[0]));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 94 */ Class<?> clazz = this.context.getImportHandler().resolveClass(className);\n/* */ \n/* 96 */ if (clazz == null) {\n/* 97 */ clazz = Class.forName(className, true, \n/* 98 */ Thread.currentThread().getContextClassLoader());\n/* */ }\n/* */ \n/* 101 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 102 */ throw new ClassNotFoundException(Util.message(this.context, \"elProcessor.defineFunctionInvalidClass\", new Object[] { className }));\n/* */ }\n/* */ \n/* */ \n/* 106 */ MethodSignature sig = new MethodSignature(this.context, methodName, className);\n/* */ \n/* */ \n/* 109 */ if (function.length() == 0) {\n/* 110 */ function = sig.getName();\n/* */ }\n/* */ \n/* 113 */ Method[] methods = clazz.getMethods();\n/* 114 */ for (Method method : methods) {\n/* 115 */ if (Modifier.isStatic(method.getModifiers()))\n/* */ {\n/* */ \n/* 118 */ if (method.getName().equals(sig.getName())) {\n/* 119 */ if (sig.getParamTypeNames() == null)\n/* */ {\n/* */ \n/* 122 */ this.manager.mapFunction(prefix, function, method);\n/* 123 */ return;\n/* */ }\n/* 125 */ if (sig.getParamTypeNames().length == method.getParameterTypes().length)\n/* */ {\n/* */ \n/* 128 */ if (sig.getParamTypeNames().length == 0) {\n/* 129 */ this.manager.mapFunction(prefix, function, method);\n/* 130 */ return;\n/* */ }\n/* 132 */ Class<?>[] types = method.getParameterTypes();\n/* 133 */ String[] typeNames = sig.getParamTypeNames();\n/* 134 */ if (types.length == typeNames.length) {\n/* 135 */ boolean match = true;\n/* 136 */ for (int i = 0; i < types.length; i++) {\n/* 137 */ if ((i == types.length - 1) && (method.isVarArgs())) {\n/* 138 */ String typeName = typeNames[i];\n/* 139 */ if (typeName.endsWith(\"...\")) {\n/* 140 */ typeName = typeName.substring(0, typeName.length() - 3);\n/* 141 */ if (!typeName.equals(types[i].getName())) {\n/* 142 */ match = false;\n/* */ }\n/* */ } else {\n/* 145 */ match = false;\n/* */ }\n/* 147 */ } else if (!types[i].getName().equals(typeNames[i])) {\n/* 148 */ match = false;\n/* 149 */ break;\n/* */ }\n/* */ }\n/* 152 */ if (match) {\n/* 153 */ this.manager.mapFunction(prefix, function, method);\n/* 154 */ return;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 161 */ throw new NoSuchMethodException(Util.message(this.context, \"elProcessor.defineFunctionNoMethod\", new Object[] { methodName, className }));\n/* */ }", "@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}", "private void addListeners() {\r\n updateMethod.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n enableFieldBasedOnUpdateMethod();\r\n }\r\n });\r\n cbUseLeakyLearning.addActionListener(this);\r\n cbUseLeakyLearning.setActionCommand(\"useLeakyLearning\");\r\n }", "public void addFunction(FunctionItem _functionItem) {\n\t\tfunctionItem.add(_functionItem);\n\t\t_functionItem.parentClass=this;\n\t}", "private void fnMeanSale() {\n }", "public abstract void add(T input, List<Method> methods, List<String> dateTypes);", "public <T> boolean addFunc(T entity) throws DataAccessException {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tmapper.addFunc((FuncVO) entity);\r\n\t\t\tflag = true;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tflag = false;\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void setFunction(Function newFunction) {\n\t\tfunction = newFunction;\n\t}", "void mo37810a();", "public void implementFunctionalInterface2() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 2**********\");\n\t\t// Functional Interface Implementations:\n\t\tMathOperation addition = (int a, int b) -> a + b;\n\t\t// without type declaration - Type is optional in lambda expression\n\t\tMathOperation subtraction = (a, b) -> a - b;\n\t\t// Curly braces are mandatory when you use the return statement\n\t\tMathOperation multiplication = (int a, int b) -> {\n\t\t\treturn a * b;\n\t\t};\n\t\tMathOperation division = (a, b) -> a / b;\n\n\t\t// Method Calls:\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t\tSystem.out.println(\"10 - 5 = \" + subtraction.operation(10, 5));\n\t\tSystem.out.println(\"10 x 5 = \" + multiplication.operation(10, 5));\n\t\tSystem.out.println(\"10 / 5 = \" + division.operation(10, 5));\n\t}", "static void feladat9() {\n\t}", "static void feladat3() {\n\t}" ]
[ "0.70194083", "0.69169265", "0.68654996", "0.6850241", "0.67241734", "0.6656873", "0.656301", "0.656301", "0.65612465", "0.64952403", "0.64216846", "0.63547844", "0.63547844", "0.6318972", "0.6291798", "0.6255117", "0.6254997", "0.6241528", "0.62272817", "0.6179397", "0.6177104", "0.6166653", "0.6159494", "0.61490506", "0.61342835", "0.6092887", "0.60867685", "0.6051819", "0.6051428", "0.60424346", "0.5965413", "0.5964273", "0.59296876", "0.5872869", "0.58664745", "0.584757", "0.580999", "0.5809766", "0.5786877", "0.57762253", "0.57709944", "0.57550246", "0.57467425", "0.5735334", "0.5703513", "0.56976", "0.56661785", "0.56520987", "0.5651735", "0.56431633", "0.56193596", "0.5613503", "0.56088036", "0.56056637", "0.5602677", "0.559722", "0.55910385", "0.5590076", "0.5587872", "0.55700403", "0.5555268", "0.5536174", "0.55237126", "0.55223596", "0.5513982", "0.5494675", "0.54936916", "0.54922616", "0.5487386", "0.54818547", "0.5455931", "0.545571", "0.5453755", "0.54508543", "0.54246783", "0.54223806", "0.54219824", "0.54194695", "0.5417071", "0.54158777", "0.54158777", "0.54158777", "0.54118127", "0.5410605", "0.54040676", "0.54037", "0.53919286", "0.53912747", "0.53912586", "0.5388378", "0.53869265", "0.5379791", "0.5379028", "0.5377194", "0.5376436", "0.5373084", "0.5372714", "0.5372156", "0.5365316", "0.53555036", "0.53541166" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frmLogisticsNegotium = new JFrame(); frmLogisticsNegotium.setTitle("Logistics Negotium"); frmLogisticsNegotium.setBounds(100, 100, 450, 300); frmLogisticsNegotium.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmLogisticsNegotium.getContentPane().setLayout(null); JButton btnAddVehicle = new JButton("Add Vehicle"); btnAddVehicle.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JAddVehicleFrame.main(); } }); btnAddVehicle.setBounds(44, 198, 134, 23); frmLogisticsNegotium.getContentPane().add(btnAddVehicle); JButton btnRequestDelivery = new JButton("Request Delivery"); btnRequestDelivery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JRequestDeliveryFrame.main(); } }); btnRequestDelivery.setBounds(258, 198, 134, 23); frmLogisticsNegotium.getContentPane().add(btnRequestDelivery); JLabel lblChooseBetweenThe = new JLabel("Choose between the options"); lblChooseBetweenThe.setBounds(143, 100, 181, 14); frmLogisticsNegotium.getContentPane().add(lblChooseBetweenThe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "public NewFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.7768924", "0.7563384", "0.74402106", "0.73670715", "0.73646426", "0.73560405", "0.7312289", "0.7306752", "0.7296544", "0.72960514", "0.72767645", "0.7270245", "0.72680706", "0.72680706", "0.72132725", "0.7179349", "0.71677345", "0.71392596", "0.7139034", "0.7125148", "0.71056455", "0.7098902", "0.7090839", "0.7080063", "0.70661104", "0.7061685", "0.7060145", "0.7057525", "0.70498586", "0.704171", "0.699382", "0.69764656", "0.69702524", "0.6954254", "0.69361186", "0.6927913", "0.69273305", "0.69230044", "0.6920561", "0.6918503", "0.6912522", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.69091177", "0.690013", "0.6889079", "0.6884748", "0.6870881", "0.686958", "0.68665093", "0.68651116", "0.6861563", "0.68577", "0.685409", "0.68524307", "0.6813908", "0.68120104", "0.6807604", "0.6797142", "0.6790369", "0.6778773", "0.6762812", "0.6745447", "0.6729559", "0.6715483", "0.6710367", "0.6703747", "0.6696647", "0.6691223", "0.6691149", "0.6687921", "0.66698027", "0.6658794", "0.66468936", "0.66404206", "0.6638633", "0.6637054", "0.66360533", "0.66342974", "0.6625141", "0.6623272", "0.6609526", "0.66061854", "0.65991133", "0.65980804", "0.6589159", "0.658592", "0.6584427", "0.6573932", "0.65725994", "0.656847", "0.6558104" ]
0.0
-1
This class was generated by Apache CXF 2.7.3 20130306T10:01:11.30406:00 Generated source version: 2.7.3
@WebService(targetNamespace = "http://schemas.bigfix.com/Relevance", name = "DashboardVariablePortType") @XmlSeeAlso({ObjectFactory.class}) public interface DashboardVariablePortType { @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable") public Response<com.bigfix.schemas.relevance.StoreSharedVariableResponse> storeSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable") public Future<?> storeSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader, @WebParam(name = "asyncHandler", targetNamespace = "") AsyncHandler<com.bigfix.schemas.relevance.StoreSharedVariableResponse> asyncHandler ); @WebResult(name = "success", targetNamespace = "http://schemas.bigfix.com/Relevance") @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable", action = "http://schemas.bigfix.com/Relevance/soapaction") public boolean storeSharedVariable( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable") public Response<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> deleteSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable") public Future<?> deleteSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader, @WebParam(name = "asyncHandler", targetNamespace = "") AsyncHandler<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> asyncHandler ); @WebResult(name = "success", targetNamespace = "http://schemas.bigfix.com/Relevance") @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable", action = "http://schemas.bigfix.com/Relevance/soapaction") public boolean deleteSharedVariable( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(targetNamespace = \"http://webservice.question.xxdai.com/\", name = \"QuestionCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface QuestionCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveUseQuestionAnswer\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswer\")\n @WebMethod\n @ResponseWrapper(localName = \"saveUseQuestionAnswerResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswerResponse\")\n public java.lang.String saveUseQuestionAnswer(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestionNaire\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaire\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionNaireResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaireResponse\")\n public java.lang.String queryQuestionNaire(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveQuestionUser\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUser\")\n @WebMethod\n @ResponseWrapper(localName = \"saveQuestionUserResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUserResponse\")\n public java.lang.String saveQuestionUser(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestion\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestion\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionResponse\")\n public java.lang.String queryQuestion(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryNaireByCode\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCode\")\n @WebMethod\n @ResponseWrapper(localName = \"queryNaireByCodeResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCodeResponse\")\n public java.lang.String queryNaireByCode(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService(targetNamespace = \"http://webservice.account.xxdai.com/\", name = \"AccountQueryCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface AccountQueryCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLog2ByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLog2ByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndTypeResponse\")\n public java.lang.String selectAccountLog2ByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecordResponse\")\n public java.lang.String selectMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndTypeResponse\")\n public java.lang.String selectAccountByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"increaseAccountUsable\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsable\")\n @WebMethod\n @ResponseWrapper(localName = \"increaseAccountUsableResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsableResponse\")\n public java.lang.String increaseAccountUsable(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"counttMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"counttMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecordResponse\")\n public java.lang.String counttMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"freezeAccount\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccount\")\n @WebMethod\n @ResponseWrapper(localName = \"freezeAccountResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccountResponse\")\n public java.lang.String freezeAccount(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"coinExchange\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchange\")\n @WebMethod\n @ResponseWrapper(localName = \"coinExchangeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchangeResponse\")\n public java.lang.String coinExchange(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectOverdueRepaymentByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectOverdueRepaymentByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserIdResponse\")\n public java.lang.String selectOverdueRepaymentByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountLogSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountLogSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSumResponse\")\n public java.lang.String getAccountLogSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectUserAccountAndCoupon\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCoupon\")\n @WebMethod\n @ResponseWrapper(localName = \"selectUserAccountAndCouponResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCouponResponse\")\n public java.lang.String selectUserAccountAndCoupon(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPageAccountMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectPageAccountMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecordResponse\")\n public java.lang.String selectPageAccountMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectSixAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectSixAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserIdResponse\")\n public java.lang.String selectSixAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryLevelLogList\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogList\")\n @WebMethod\n @ResponseWrapper(localName = \"queryLevelLogListResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogListResponse\")\n public java.lang.String queryLevelLogList(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSumResponse\")\n public java.lang.String getAccountSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveAccountLog\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLog\")\n @WebMethod\n @ResponseWrapper(localName = \"saveAccountLogResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLogResponse\")\n public java.lang.String saveAccountLog(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserIdResponse\")\n public java.lang.String selectAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectIsUserOverdue\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdue\")\n @WebMethod\n @ResponseWrapper(localName = \"selectIsUserOverdueResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdueResponse\")\n public java.lang.String selectIsUserOverdue(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}", "@WebService(targetNamespace = \"http://service.cxf.rain6.com/\", name = \"TestWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface TestWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"selectByPrimaryKey\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKey\")\n @ResponseWrapper(localName = \"selectByPrimaryKeyResponse\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKeyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public Lawyer selectByPrimaryKey(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0\n );\n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}", "@WebService(targetNamespace = \"http://demo.grails.org/\", name = \"CustomerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CustomerService {\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomer\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomer\")\n @WebMethod(operationName = \"GetCustomer\")\n @ResponseWrapper(localName = \"GetCustomerResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomerResponse\")\n public org.grails.demo.soap.customer.Customer getCustomer(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"FirstName\", targetNamespace = \"\")\n java.lang.String firstName\n );\n\n @WebResult(name = \"Customers\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomers\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomers\")\n @WebMethod(operationName = \"GetCustomers\")\n @ResponseWrapper(localName = \"GetCustomersResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomersResponse\")\n public java.util.List<org.grails.demo.soap.customer.Customer> getCustomers();\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"MakePayment\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.MakePayment\")\n @WebMethod(operationName = \"MakePayment\")\n @ResponseWrapper(localName = \"MakePaymentResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.MakePaymentResponse\")\n public org.grails.demo.soap.customer.Customer makePayment(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"PaymentDate\", targetNamespace = \"\")\n java.util.Date paymentDate,\n @WebParam(name = \"PaymentAmount\", targetNamespace = \"\")\n java.lang.Double paymentAmount\n );\n}", "@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}", "@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "@WebService(targetNamespace = \"http://ws.jinouts.org/\", name = \"AndProxyClientRespTestWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface AndProxyClientRespTestWS {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testPrimitiveResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testPrimitiveResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponseResponse\")\r\n public java.lang.String testPrimitiveResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user,\r\n @WebParam(name = \"pass\", targetNamespace = \"\")\r\n java.lang.String pass\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObjectResponse\")\r\n public org.jinouts.ws.TestComplexResponse testComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponseResponse\")\r\n public java.util.List<java.lang.String> testListResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testDateResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testDateResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponseResponse\")\r\n public javax.xml.datatype.XMLGregorianCalendar testDateResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObjectResponse\")\r\n public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testArrayResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testArrayResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponseResponse\")\r\n public java.util.List<java.lang.String> testArrayResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfObjResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfObjResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponseResponse\")\r\n public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n}", "public sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse helloAuthenticated(\n\n sample.ws.HelloWorldWSStub.HelloAuthenticated helloAuthenticated8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"helloAuthenticated\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n helloAuthenticated8,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"helloAuthenticated\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(name = \"CreditReportServiceDelegate\", targetNamespace = \"http://webservice.icrqs.cfcc.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CreditReportServiceDelegate {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuResult sendCuRequest(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuSingleRequest arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuSingleResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuSingleResult getCuResult(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuGetResult arg0);\n\n}", "public sample.ws.HelloWorldWSStub.HelloResponse hello(\n\n sample.ws.HelloWorldWSStub.Hello hello4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"hello\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n hello4,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"hello\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "public interface ClientService {\r\n\r\n String fpkj(String wsdlUrl);\r\n}", "@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"FileService\", targetNamespace = \"http://soap.web.lab/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface FileService extends lab.web.FileService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"writeFile\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFile\")\n @ResponseWrapper(localName = \"writeFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFileResponse\")\n public boolean writeFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListAllFiles\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFiles\")\n @ResponseWrapper(localName = \"getListAllFilesResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFilesResponse\")\n public List<String> getListAllFiles();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFile\")\n @ResponseWrapper(localName = \"deleteFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFileResponse\")\n public boolean deleteFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"downloadFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFile\")\n @ResponseWrapper(localName = \"downloadFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFileResponse\")\n public boolean downloadFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1)\n throws ServiceException\n ;\n\n}", "@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}", "@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}", "@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}", "@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", name = \"ClassifierZip\")\n@XmlSeeAlso({ObjectFactory.class, iac.cud.infosweb.ws.classif.common.ObjectFactory.class})\npublic interface ClassifierZip {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement52 getClassifierByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement54 getClassifierZipListByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement53 getClassifierZipListByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement51 getClassifierByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "public sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse initializeHelloWorldWS(\n\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWS initializeHelloWorldWS10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"initializeCourseWS\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n initializeHelloWorldWS10,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"initializeHelloWorldWS\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"UserService\", targetNamespace = \"http://services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserService {\n\n\n /**\n * \n * @param id\n * @return\n * returns services.Anagrafica\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserById\", targetNamespace = \"http://services/\", className = \"services.GetUserById\")\n @ResponseWrapper(localName = \"getUserByIdResponse\", targetNamespace = \"http://services/\", className = \"services.GetUserByIdResponse\")\n public Anagrafica getUserById(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param id\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://services/\", className = \"services.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://services/\", className = \"services.DeleteUserResponse\")\n public void deleteUser(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param anagrafica\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://services/\", className = \"services.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://services/\", className = \"services.UpdateUserResponse\")\n public void updateUser(\n @WebParam(name = \"anagrafica\", targetNamespace = \"http://services/\")\n Anagrafica anagrafica);\n\n /**\n * \n * @param cf\n * @param cognome\n * @param cellulare\n * @param nome\n * @param telefono\n * @param email\n */\n @WebMethod\n @RequestWrapper(localName = \"addUser\", targetNamespace = \"http://services/\", className = \"services.AddUser\")\n @ResponseWrapper(localName = \"addUserResponse\", targetNamespace = \"http://services/\", className = \"services.AddUserResponse\")\n public void addUser(\n @WebParam(name = \"nome\", targetNamespace = \"\")\n String nome,\n @WebParam(name = \"cognome\", targetNamespace = \"\")\n String cognome,\n @WebParam(name = \"cf\", targetNamespace = \"\")\n String cf,\n @WebParam(name = \"telefono\", targetNamespace = \"\")\n String telefono,\n @WebParam(name = \"cellulare\", targetNamespace = \"\")\n String cellulare,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email);\n\n /**\n * \n * @return\n * returns java.util.List<services.Anagrafica>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listUsers\", targetNamespace = \"http://services/\", className = \"services.ListUsers\")\n @ResponseWrapper(localName = \"listUsersResponse\", targetNamespace = \"http://services/\", className = \"services.ListUsersResponse\")\n public List<Anagrafica> listUsers();\n\n}", "@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}", "private WebServicesFabrica(){}", "@WebService(name = \"WebServiceSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WebServiceSoap {\n\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Login\", action = \"http://tempuri.org/Login\")\n @WebResult(name = \"LoginResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Login\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Login\")\n @ResponseWrapper(localName = \"LoginResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginResponse\")\n public String login(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginEx\", action = \"http://tempuri.org/LoginEx\")\n @WebResult(name = \"LoginExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginEx\")\n @ResponseWrapper(localName = \"LoginExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginExResponse\")\n public String loginEx(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param value\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByCookies\", action = \"http://tempuri.org/LoginByCookies\")\n @WebResult(name = \"LoginByCookiesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByCookies\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookies\")\n @ResponseWrapper(localName = \"LoginByCookiesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookiesResponse\")\n public String loginByCookies(\n @WebParam(name = \"value\", targetNamespace = \"http://tempuri.org/\")\n String value);\n\n /**\n * \n */\n @WebMethod(operationName = \"SignOut\", action = \"http://tempuri.org/SignOut\")\n @RequestWrapper(localName = \"SignOut\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOut\")\n @ResponseWrapper(localName = \"SignOutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOutResponse\")\n public void signOut();\n\n /**\n * \n * @return\n * returns boolean\n */\n @WebMethod(operationName = \"IsAuthenticated\", action = \"http://tempuri.org/IsAuthenticated\")\n @WebResult(name = \"IsAuthenticatedResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsAuthenticated\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticated\")\n @ResponseWrapper(localName = \"IsAuthenticatedResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticatedResponse\")\n public boolean isAuthenticated();\n\n /**\n * \n * @param token\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByGoogleId\", action = \"http://tempuri.org/LoginByGoogleId\")\n @WebResult(name = \"LoginByGoogleIdResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByGoogleId\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleId\")\n @ResponseWrapper(localName = \"LoginByGoogleIdResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleIdResponse\")\n public String loginByGoogleId(\n @WebParam(name = \"token\", targetNamespace = \"http://tempuri.org/\")\n String token);\n\n /**\n * \n * @param args\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Execute\", action = \"http://tempuri.org/Execute\")\n @WebResult(name = \"ExecuteResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Execute\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Execute\")\n @ResponseWrapper(localName = \"ExecuteResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteResponse\")\n public String execute(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteEx\", action = \"http://tempuri.org/ExecuteEx\")\n @WebResult(name = \"ExecuteExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteEx\")\n @ResponseWrapper(localName = \"ExecuteExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteExResponse\")\n public String executeEx(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @param timeout\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteWithTimeout\", action = \"http://tempuri.org/ExecuteWithTimeout\")\n @WebResult(name = \"ExecuteWithTimeoutResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteWithTimeout\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeout\")\n @ResponseWrapper(localName = \"ExecuteWithTimeoutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeoutResponse\")\n public String executeWithTimeout(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"timeout\", targetNamespace = \"http://tempuri.org/\")\n int timeout);\n\n /**\n * \n * @param ticket\n * @param sessionId\n */\n @WebMethod(operationName = \"UpdateSession\", action = \"http://tempuri.org/UpdateSession\")\n @RequestWrapper(localName = \"UpdateSession\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSession\")\n @ResponseWrapper(localName = \"UpdateSessionResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSessionResponse\")\n public void updateSession(\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"sessionId\", targetNamespace = \"http://tempuri.org/\")\n String sessionId);\n\n /**\n * \n * @param ticket\n * @param oldPassword\n * @param newPassword\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ChangePassword\", action = \"http://tempuri.org/ChangePassword\")\n @WebResult(name = \"ChangePasswordResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ChangePassword\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePassword\")\n @ResponseWrapper(localName = \"ChangePasswordResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePasswordResponse\")\n public String changePassword(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"oldPassword\", targetNamespace = \"http://tempuri.org/\")\n String oldPassword,\n @WebParam(name = \"newPassword\", targetNamespace = \"http://tempuri.org/\")\n String newPassword,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @return\n * returns java.lang.Object\n */\n @WebMethod(operationName = \"IsEnabled\", action = \"http://tempuri.org/IsEnabled\")\n @WebResult(name = \"IsEnabledResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsEnabled\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabled\")\n @ResponseWrapper(localName = \"IsEnabledResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabledResponse\")\n public Object isEnabled();\n\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "@WebService(name = \"CajaUnificadaWeb\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CajaUnificadaWeb {\n\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.StartupResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"startupResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"startup\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.Startup\")\n @ResponseWrapper(localName = \"startupResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.StartupResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startup/Fault/CajaUnificadaWebException\")\n })\n public StartupResult startup(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param nroInterno\n * @param codEmp\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.ValeGetResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"valeGetResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"valeGet\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGet\")\n @ResponseWrapper(localName = \"valeGetResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGetResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGet/Fault/CajaUnificadaWebException\")\n })\n public ValeGetResult valeGet(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName,\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno,\n @WebParam(name = \"codEmp\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String codEmp)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param nroInterno\n * @return\n * returns cl.imperial.cajaunificada.ws.RegistraPagoResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"registraPagoResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"registraPago\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPago\")\n @ResponseWrapper(localName = \"registraPagoResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPagoResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPago/Fault/CajaUnificadaWebException\")\n })\n public RegistraPagoResult registraPago(\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno)\n throws CajaUnificadaWebException\n ;\n\n}", "@WebService(targetNamespace = \"http://www.example.org/BuyMart/\", name = \"BuyMartPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface BuyMartPortType {\n\n @WebMethod(operationName = \"GetOrders\")\n @WebResult(name = \"GetOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public GetOrdersResponse getOrders(\n @WebParam(partName = \"parameters\", name = \"GetOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n GetOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"UpdateOrders\")\n @WebResult(name = \"UpdateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public UpdateOrdersResponse updateOrders(\n @WebParam(partName = \"parameters\", name = \"UpdateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n UpdateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"CreateOrders\")\n @WebResult(name = \"CreateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public CreateOrdersResponse createOrders(\n @WebParam(partName = \"parameters\", name = \"CreateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n CreateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"DeleteOrders\")\n @WebResult(name = \"DeleteOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public DeleteOrdersResponse deleteOrders(\n @WebParam(partName = \"parameters\", name = \"DeleteOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n DeleteOrdersRequest parameters\n );\n}", "@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"YCJKServiceSoap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface YCJKServiceSoap {\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJC\")\r\n @RequestWrapper(localName = \"saveYCJC\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJC\")\r\n @ResponseWrapper(localName = \"saveYCJCResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCResponse\")\r\n @WebResult(name = \"saveYCJCResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJC(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String elements\r\n );\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJCArray\")\r\n @RequestWrapper(localName = \"saveYCJCArray\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArray\")\r\n @ResponseWrapper(localName = \"saveYCJCArrayResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArrayResponse\")\r\n @WebResult(name = \"saveYCJCArrayResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJCArray(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n com.webservice.xxxq.ws.ArrayOfArrayOfString elements\r\n );\r\n}", "public interface ClientRequestInfo extends ClientRequestInfoOperations, org.omg.PortableInterceptor.RequestInfo, org.omg.CORBA.portable.IDLEntity \n{\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@WebService(name = \"BillingService\", targetNamespace = \"http://billing.jaxws.bt.com/\")\n@HandlerChain(file = \"BillingService_handler.xml\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n com.bt.jaxb.model.ObjectFactory.class,\n com.bt.jaxws.billing.ObjectFactory.class\n})\npublic interface BillingService {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns javax.xml.ws.Response<com.bt.jaxws.billing.Invoice>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Response<Invoice> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @param asyncHandler\n * @return\n * returns java.util.concurrent.Future<? extends java.lang.Object>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Future<?> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1,\n @WebParam(name = \"asyncHandler\", partName = \"asyncHandler\")\n AsyncHandler<Invoice> asyncHandler);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.bt.jaxws.billing.Invoice\n * @throws InvalidCustomerException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://billing.jaxws.bt.com/BillingService/getInvoiceRequest\", output = \"http://billing.jaxws.bt.com/BillingService/getInvoiceResponse\", fault = {\n @FaultAction(className = InvalidCustomerException_Exception.class, value = \"http://billing.jaxws.bt.com/BillingService/getInvoice/Fault/InvalidCustomerException\")\n })\n public Invoice getInvoice(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1)\n throws InvalidCustomerException_Exception\n ;\n\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}", "public registry.ClientRegistryStub.GetClientsResponse getClients(\r\n\r\n registry.ClientRegistryStub.GetClients getClients7)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"urn:getClients\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getClients7,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"getClients\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"getClients\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n registry.ClientRegistryStub.GetClientsResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (registry.ClientRegistryStub.GetClientsResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getClients\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getClients\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getClients\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "@WebService(name = \"BookService\", targetNamespace = \"http://webservices.arabie.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BookService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBook\")\n @ResponseWrapper(localName = \"deleteBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/deleteBookRequest\", output = \"http://webservices.arabie.com/BookService/deleteBookResponse\")\n public boolean deleteBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBook\")\n @ResponseWrapper(localName = \"getBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/getBookRequest\", output = \"http://webservices.arabie.com/BookService/getBookResponse\")\n public Book getBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBook\")\n @ResponseWrapper(localName = \"addBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/addBookRequest\", output = \"http://webservices.arabie.com/BookService/addBookResponse\")\n public Book addBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBook\")\n @ResponseWrapper(localName = \"updateBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/updateBookRequest\", output = \"http://webservices.arabie.com/BookService/updateBookResponse\")\n public Book updateBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.GetClients param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.GetClients.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "ServiceReferenceProxy getServiceReference();", "@WebService(name = \"CompeticionesWS\", targetNamespace = \"http://WebServices/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CompeticionesWS {\n\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataPartido seleccionarPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2)\n throws ExNoExisteCompeticion_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanEquipo\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanEquipo listarEquipos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listaJugadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarCompetencias(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugador\n * @throws ExNoExisteJugador_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugador seleccionarJugador(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteJugador_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataCompeticion\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataCompeticion verInfoCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarVerDetallesComp(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public String getImagePath(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void agregarCompeticionSesion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataPartidoComp\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataPartidoComp listarPartidos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n ListBeanFiltro arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.FloatArrayArray\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public FloatArrayArray obtenerDividendosResultadoExacto(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido verInfoPartidoFinalizado(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarDetallesPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarLigasDefinidas(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataEquipoLiga\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataEquipoLiga obtenerTablaDePosiciones(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean obtenerUltimosPartidosFinalizados(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean infoPartidosCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExDatosNoAsignados_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido listarJugadoresPorBando(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExDatosNoAsignados_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExNoExisteEquipo_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarJugEquipo(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteEquipo_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public boolean competicionEstaFinalizada(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarPencasDisponibles(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores getJugadoresCampeonato(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores get5MaxGoleadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n}" ]
[ "0.6623832", "0.64621055", "0.6354315", "0.63485867", "0.6342769", "0.63178897", "0.6184071", "0.6173265", "0.61537236", "0.60798013", "0.60722595", "0.60687053", "0.606493", "0.6058197", "0.6055943", "0.60452783", "0.6016187", "0.599254", "0.5986505", "0.5947432", "0.5932394", "0.5926759", "0.5917877", "0.5905126", "0.5896254", "0.5893097", "0.5883044", "0.58829135", "0.58773357", "0.5874171", "0.58721364", "0.5870018", "0.58662003", "0.5855079", "0.5852209", "0.5819809", "0.5808696", "0.5806531", "0.5786638", "0.57858956", "0.5781591", "0.5773486", "0.57660645", "0.5766063", "0.5761484", "0.5755934", "0.57545036", "0.5737758", "0.5734363", "0.5734217", "0.57336843", "0.5724958", "0.5721677", "0.57160205", "0.571597", "0.57097423", "0.57095027", "0.570707", "0.5705914", "0.57049036", "0.56900764", "0.56811374", "0.56726277", "0.5662714", "0.5655276", "0.56549424", "0.56457657", "0.5638755", "0.56340706", "0.56311184", "0.562663", "0.56177604", "0.5611496", "0.5603169", "0.5602363", "0.5600813", "0.559608", "0.559581", "0.55953103", "0.5589939", "0.5587106", "0.557746", "0.557494", "0.55716604", "0.55712754", "0.55702233", "0.5562457", "0.5561861", "0.5552806", "0.55527997", "0.5541892", "0.5540054", "0.5539304", "0.5533419", "0.55322444", "0.55297565", "0.55249655", "0.5523498", "0.5513293", "0.55021435", "0.5499405" ]
0.0
-1
TODO Autogenerated method stub
@Override public Iterable<Chitietdonhang> findAll() { return chiTietDonHangRepository.findAll(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Optional<Chitietdonhang> findById(Integer id) { return chiTietDonHangRepository.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void save(Chitietdonhang danhMuc) { chiTietDonHangRepository.save(danhMuc); }
{ "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 delete(Integer id) { chiTietDonHangRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Page<Chitietdonhang> findAllChiTietDonHang(Pageable pageable) { return chiTietDonHangRepository.findAllChiTietDonHang(pageable); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Chitietdonhang findByIdChiTietDonHang(Integer id) { return chiTietDonHangRepository.findByIdChiTietDonHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findByIdChiTietDonHangActive() { return chiTietDonHangRepository.findByIdChiTietDonHangActive(); }
{ "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 List<Chitietdonhang> findAllByGioHang(Integer id) { return chiTietDonHangRepository.findAllByGioHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Chitietdonhang findAllByGioHang(Integer id, Integer idSanpham) { return chiTietDonHangRepository.findAllByGioHang(id, idSanpham); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Integer groupBy(Integer id) { return chiTietDonHangRepository.groupBy(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Integer count(Integer id) { return chiTietDonHangRepository.count(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@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 List<Chitietdonhang> findAllGioHangTheoDonHang(Integer id) { return chiTietDonHangRepository.findAllGioHangTheoDonHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public long countchitietdonhang() { return chiTietDonHangRepository.countchitietdonhang(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Page<Chitietdonhang> findAllSanPhamBanChay(Pageable pageable) { return chiTietDonHangRepository.findAllSanPhamBanChay(pageable); }
{ "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 int tinhSoLuongSanPham(Integer id) { return chiTietDonHangRepository.tinhSoLuongSanPham(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@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 List<Chitietdonhang> findAllSanPhamBanChayTheoNgay(Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoNgay(nam, thang, ngay); }
{ "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 int tinhSoLuongSanPhamTheoNgay(Integer id, Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoNgay(id, nam, thang, ngay); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllSanPhamBanChayTheoThang(Integer nam, Integer thang) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoThang(nam, thang); }
{ "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 int tinhSoLuongSanPhamTheoThang(Integer id, Integer nam, Integer thang) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoThang(id, nam, thang); }
{ "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 List<Chitietdonhang> findAllSanPhamBanChayTheoNam(Integer nam) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoNam(nam); }
{ "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 int tinhSoLuongSanPhamTheoNam(Integer id, Integer nam) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoNam(id, nam); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> tinhDoanhThuTheoNgay(Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.tinhDoanhThuTheoNgay(nam, thang, ngay); }
{ "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 List<Chitietdonhang> tinhDoanhThuTheoThang(Integer nam, Integer thang) { return chiTietDonHangRepository.tinhDoanhThuTheoThang(nam, thang); }
{ "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 List<Chitietdonhang> tinhDoanhThuTheoNam(Integer nam) { return chiTietDonHangRepository.tinhDoanhThuTheoNam(nam); }
{ "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
insert a new value into the list of values associated to a key in tables
public void addValue(HashMap<String, HashSet<String>> table, String key, String newValue) { HashSet<String> currentValue = table.get(key); if (currentValue == null) { currentValue = new HashSet<String>(); table.put(key, currentValue); } currentValue.add(newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertValues(String tablename, ArrayList<Value> valueList) throws SQLException {\n String sql = \"INSERT INTO `\" + tablename + \"` \";\n String keys = \"( `\" + valueList.get(0).getKey() + \"`\";\n String values = \") VALUES ('\" + valueList.get(0).getValue() + \"'\";\n\n for(Value value : valueList){\n if(value != valueList.get(0)){\n\n keys += \" , `\" + value.getKey() + \"`\";\n values += \" , '\" + value.getValue() + \"'\";\n\n }\n }\n // Add values to the SQL-Syntax\n sql += keys + values + \")\";\n mysql.update(sql);\n }", "public void insertValue(String tablename, Value value, String idkey, String idvalue) throws SQLException {\n mysql.update(\"INSERT INTO `\" + tablename + \"` ('\"+ value.getKey() +\"') VALUES ('\" + value.getValue() + \"')\");\n }", "public void updateValues(String tablename, String idkey, Object idvalue, ArrayList<Value> valueList) throws SQLException {\n String sql = \"UPDATE `\" + tablename + \"` SET `\" + valueList.get(0).getKey()+ \"`='\" + valueList.get(0).getValue() + \"' \";\n\n for(Value value : valueList){\n if(value != valueList.get(0)){\n\n sql += \" , `\" + value.getKey()+ \"`='\" + value.getValue() + \"' \";\n\n }\n }\n sql += \" WHERE `\" + idkey + \"` LIKE '\" + idvalue.toString() + \"'\" ;\n mysql.update(sql);\n }", "public void insertIntoTable (String tableName , LinkedList<String> values);", "public void insert(String key){\n DataPair dp = getDataPair(key);\n insert(dp);\n }", "abstract void insert(K key, V value);", "abstract void insert(K key, V value);", "void insertOrUpdate(StockList stockList) throws Exception;", "public V insert(K key, V value) {\r\n int index = key.hashCode() % mainTable.length;\r\n\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n // No collision. Create a new linked list at mainTable[index].\r\n mainTable[index] = new LinkedList<Entry<K,V>>();\r\n } else {\r\n totalCollisions++;\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n // If the search is successful, replace the old value.\r\n if (nextItem.key.equals(key)) {\r\n // Replace value for this key.\r\n V oldVal = nextItem.value;\r\n nextItem.setValue(value);\r\n addChainLength(chainLength);\r\n return oldVal;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // Key is not in the mainTable, add new item.\r\n mainTable[index].addFirst(new Entry<K,V>(key, value));\r\n numberOfKeys++;\r\n if (numberOfKeys > (LOAD_THRESHOLD * mainTable.length)) {\r\n rehash();\r\n }\r\n return null;\r\n }", "Object insert(String key, Object param);", "void add(ThreadLocal<?> key, Object value) {\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n if (k == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n return;\n }\n }\n }", "public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }", "private Status batchSet(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n List<SetItem> setItemList = new ArrayList<>();\n byte[] hashKey = key.getBytes();\n byte[] value = toJson(values);\n for (byte[] sortKey : sortKeys) {\n setItemList.add(new SetItem(hashKey, sortKey, value));\n }\n client.batchSet(table, setItemList);\n return Status.OK;\n } catch (Exception e) {\n logger.error(\"Error batch inserting value to table[\" + table + \"] with key: \" + key, e);\n return Status.ERROR;\n }\n }", "public void put(K key, V value) {\n int counter = 0;\n for (Table.Entry e : entries) {\n if (e.getKey().equals(key)) {\n entries.set(counter, new Table.Entry<>(key, value));\n return;\n }\n }\n entries.add(new Table.Entry<>(key, value));\n }", "public void insert(List<T> entity) throws NoSQLException;", "private V put(K key, V value, Chain<K, V>[] table) {\r\n int index = key.hashCode() % table.length;\r\n if (index < 0)\r\n index += table.length;\r\n if (table[index]== null)\r\n {\r\n table[index] =new Chain<>(key,value) ;\r\n numKeys++;\r\n return null;\r\n }\r\n else if(table[index].data.equals(key))\r\n return table[index].data.setValue(value);\r\n else if (table[index].next==null)\r\n {\r\n table[index].next=new HashtableChain<>(prime);\r\n prime=previousPrime(prime-1);\r\n numKeys++;\r\n return table[index].next.put(key,value);\r\n }else\r\n return put(key,value,table[index].next.table);\r\n }", "public void insert(KeyedItem newItem);", "public abstract boolean insert(Key key);", "void insert(K key, V value) {\r\n // binary search\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int indexing;\r\n if (correct_place >= 0) {\r\n indexing = correct_place;\r\n } else {\r\n indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n } else {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n }\r\n\r\n // to check if the node is overloaded then split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n }", "public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }", "public void put(R key, S ...values) {\n if (!map.containsKey(key)){\n if (listType == ARRAY_LIST){\n map.put(key, Collections.synchronizedList(new ArrayList<S>()));\n } else if (listType == LINKED_LIST){\n map.put(key, Collections.synchronizedList(new LinkedList<S>()));\n }\n }\n List<S> list = map.get(key);\n for (S value : values) {\n list.add(value);\n }\n }", "private static void insertRow(HTable htable, byte[] rowKey, byte[] family, Map<byte[], byte[]> qualifierValueMap)\n throws IOException {\n Put put = new Put(rowKey);\n for (Map.Entry<byte[], byte[]> entry : qualifierValueMap.entrySet()) {\n int key = Bytes.toInt(entry.getKey());\n int value = Bytes.toInt(entry.getValue());\n//System.out.println(\"In Map, the key = \"+key+\", the value = \"+value);\n put.add(family, entry.getKey(), entry.getValue());\n }\n for (Map.Entry<byte[], List<KeyValue>> entry : (Set<Map.Entry<byte[], List<KeyValue>>>) put.getFamilyMap().entrySet()) {\n byte[] keyBytes = entry.getKey();\n String familyString = Bytes.toString(keyBytes);\n//System.out.println(\"Family: \"+familyString+\"\\n\");\n List<KeyValue> list = entry.getValue();\n for (KeyValue kv : list) {\n byte[] kkk = kv.getQualifier();\n byte[] vvv = kv.getValue();\n int index = Bytes.toInt(kkk);\n int fid = Bytes.toInt(vvv);\n//System.out.println(\" (\"+index+\"th FID) = \"+fid);\n }\n }\n htable.put(put);\n }", "public Entry insert(Object key, Object value) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n Entry entry = new Entry();\n entry.key = key;\n entry.value = value;\n\n defTable[index].insertFront(entry);\n size++;\n return entry;\n }", "private HashEntry(K insertKey, V insertValue)\r\n\t\t{\r\n\t\t\tkey = insertKey;\r\n\t\t\tvalue.add(insertValue);\r\n\t\t}", "@Override\n public Status insert(String table, String key, Map<String, ByteIterator> values) {\n String hash = serialize(values);\n InsertM request = InsertM.newBuilder().setTable(table).setKey(key).setValues(hash).build();\n Result response;\n try {\n response = blockingStub.insert(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }", "public static void insert(int xact, int key, int value) throws Exception {\n\t System.out.println(\"T(\"+(xact+1)+\"):I(\"+(key)+\",\"+value+\")\");\n\t if (mData.containsKey(key)) {\n\t\t System.out.println(\"T(\"+(xact+1)+\"):ROLLBACK\");\n\t\t throw new Exception(\"KEY ALREADY EXISTS IN T(\"+(xact+1)+\"):I(\"+key+\")\");\n\t }\n\t Version v = new Version(xact, xact, value);\n\t LinkedList<Version> m = new LinkedList<Version>();\n\t m.add(v);\n\t mData.put(key, m);\n\n }", "@Override\n public V put(K key, V value) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n // Create a new linked list at table[index].\n table[index] = new LinkedList<Entry<K, V>>();\n }\n\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n // If the search is successful, replace the old value.\n if (nextItem.key.equals(key)) {\n // Replace value for this key.\n V oldVal = nextItem.value;\n nextItem.setValue(value);\n return oldVal;\n }\n }\n\n // assert: key is not in the table, add new item.\n table[index].addFirst(new Entry<K, V>(key, value));\n numKeys++;\n if (numKeys > (LOAD_THRESHOLD * table.length)) {\n rehash();\n }\n return null;\n }", "public void insert(Key key, Value value){\n this.root = this.insertHelper(key, value, root);\n }", "public void set(K key, V value)\n {\n // If there are too many entries, expand the table.\n if (this.size > (this.buckets.length * LOAD_FACTOR))\n {\n expand();\n } // if there are too many entries\n // Find out where the key belongs.\n int index = this.find(key);\n // Create a new association list, if necessary.\n if (buckets[index] == null)\n {\n this.buckets[index] = new AssociationList<K, V>();\n } // if (buckets[index] == null)\n // Add the entry.\n AssociationList<K, V> bucket = this.get(index);\n int oldsize = bucket.size;\n bucket.set(key, value);\n // Update the size\n this.size += bucket.size - oldsize;\n }", "public void insertingANode(T key, E value) {\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t}", "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "public void putAll(R key, Collection<S> values){\n if (!map.containsKey(key)){\n if (listType == ARRAY_LIST){\n map.put(key, new ArrayList<S>());\n } else if (listType == LINKED_LIST){\n map.put(key, new LinkedList<S>());\n }\n }\n map.get(key).addAll(values);\n }", "public boolean insert(K key, V value) {\n boolean isInserted = false;\n\n if (key != null) {\n if ((double) amountOfEntries / container.length > loadFactor) {\n extendContainer();\n }\n int index = indexFor(key);\n Entry<K, V> entry = container[index];\n if (entry == null) {\n //add new\n Entry newEntry = new Entry(key, value);\n container[index] = newEntry;\n amountOfEntries++;\n } else if (entry.key.equals(key)) {\n //update\n entry.value = value;\n }\n }\n return isInserted;\n }", "public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}", "public void put(int key, int value) {\n\n int index = key % n;\n MapNode node = keys[index];\n// System.out.println(key + \" \" + value + \" \" + (node == null));\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n node.list.remove(i);\n vals[index].list.remove(i);\n }\n }\n\n node.list.add(key);\n vals[index].list.add(value);\n }", "public void insert(K key, E val) {\n MapEntry<K, E> newEntry = new MapEntry<K, E>(key, val);\n int b = hash(key);\n for (SLLNode<MapEntry<K,E>> curr = buckets[b]; curr != null; curr = curr.succ) {\n if (key.equals(((MapEntry<K, E>) curr.element).key)) {\n curr.element = newEntry;\n return;\n }\n }\n buckets[b] = new SLLNode<MapEntry<K,E>>(newEntry, buckets[b]);\n }", "public HPTNode<K, V> insert(List<K> key) {\n check(key);\n init();\n int size = key.size();\n HPTNode<K, V> current = root;\n for (int i = 0; i < size; i++) {\n HPTNode<K, V> result = find(current, i, key.get(i), true);\n current.maxDepth = Math.max(current.maxDepth, size - i);\n current = result;\n }\n return current;\n }", "public void insert(double key, Double value){\n\tif(search(key)!=null){\r\n\t\tLeaf Leaf = (Leaf)Search(root, key);\r\n\t\t\r\n\t\tfor(int i=0; i<Leaf.keyvalues.size(); i++) {\r\n\t\t\tif(key==Leaf.getKeyValue(i).getKey()) {\r\n\t\t\t\t\tLeaf.getKeyValue(i).values.add(value);\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\tLeaf newleaf = new Leaf(key, value);\r\n\t\r\n\tPair<Double,Node> entry=new Pair<Double, Node>(key,newleaf);\r\n\r\n\tif(root == null ) {\r\n\t\troot = entry.getValue();\r\n\t}\r\n\t\r\n\r\n\tPair<Double, Node> newChildEntry = getChildEntry(root, entry, null);\r\n\t\r\n\tif(newChildEntry == null) {\r\n\t\treturn;\r\n\t} else {\r\n\t\tIntrnlNode newRoot = new IntrnlNode(newChildEntry.getKey(), root, newChildEntry.getValue());\r\n\t\troot = newRoot;\r\n\t\treturn;\r\n\t}\r\n}", "void upsert(@NotNull final ByteBuffer key, @NotNull final ByteBuffer value) {\n final ClusterValue prev = storage.put(key, ClusterValue.of(value));\n if (prev == null) {\n tableSize = tableSize + key.remaining() + value.remaining();\n } else if (prev.isTombstone()) {\n tableSize = tableSize + value.remaining();\n } else {\n tableSize = tableSize + value.remaining() - prev.getData().remaining();\n }\n }", "public long insert(EvaluetingListDO evaluetingList) throws DataAccessException;", "public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_entry.key.hashCode()); //compresses key hash code\r\n if (hash_table[comp_hash] == null) { \r\n hash_table[comp_hash] = new DList();\r\n hash_table[comp_hash].insertFront(new_entry);\r\n } else {\r\n hash_table[comp_hash].insertFront(new_entry);\r\n }\r\n size++;\r\n return new_entry;\r\n }", "public void insert_values_in_list_items_local_db(String AgentID, String selected_ln, int list_incr) {\n\n // non_deleted_arraylist\n ArrayList<String> non_deleted_prod_id = get_non_deleted_product_id(selected_ln, AgentID, list_incr);\n\n // define contentvalues object\n ContentValues copy_values_int_list_item = new ContentValues();\n\n // set values of list items\n copy_values_int_list_item.put(GlobalProvider.LI_List_Name, selected_ln);\n copy_values_int_list_item.put(GlobalProvider.LI_Increment,list_incr);\n copy_values_int_list_item.put(GlobalProvider.LI_Login_User_Id,AgentID);\n copy_values_int_list_item.put(GlobalProvider.LI_deleted,\"0\");\n\n // loop on array of prod ids selected by user\n for(String curr_prod_ids : product_ids_for_list){\n\n // set prod ids into contentvalues object\n copy_values_int_list_item.put(GlobalProvider.LI_Product_ID, curr_prod_ids);\n if(!non_deleted_prod_id.contains(curr_prod_ids) || non_deleted_prod_id.isEmpty()) {\n // firing query to insert into local db of list item\n Uri uri = getContentResolver().insert(GlobalProvider.CONTENT_URI_List_Item,\n copy_values_int_list_item);\n Toast.makeText(this,\n \" Added data successfully in \" + selected_ln ,Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this,\"Product is already exists in \" + selected_ln,Toast.LENGTH_LONG).show();\n }\n }\n }", "public void put(K key, V value) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n node.getData().value = value;\n return;\n }\n\n Pair<K, V> entry = new Pair<>(key, value);\n\n int hash1 = hash1(key);\n int hash2 = hash2(key);\n\n int count1 = table[hash1] == null ? 0 : table[hash1].list.getCount();\n int count2 = table[hash2] == null ? 0 : table[hash2].list.getCount();\n\n if (count1 <= count2) {\n if (table[hash1] == null) {\n table[hash1] = new Entry<>();\n }\n\n table[hash1].list.put(entry);\n } else {\n if (table[hash2] == null) {\n table[hash2] = new Entry<>();\n }\n\n table[hash2].list.put(entry);\n }\n\n if (++elementsCount > table.length * OCCUPANCY) {\n rehash();\n }\n }", "@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}", "public void insert( int key, Integer data ){\n if (data == null) data = key;\n\n int index = computeHash(key);\n Node head = list[index];\n while( head != null ){ // Collision : key already in hashtable, put it in the linked list\n \n if(compare(head.key, key) == 0){ // Update : In case key is already present in list : exit\n head.data = data;\n return;\n }\n head = head.next; // put it at the end of the list\n }\n\n // No collision, new key; list.get(index) = null because that node at that index is not present\n list[index] = new Node(key, data, list[index]);\n }", "@Override\n\tpublic void insertList(Map<String, Object> map) {\n\t\tapprovalDao.insertList(map);\n\t}", "public void insert( Word x )\n {\n WordList whichList = theLists[ myhash( x.key ) ];\n //System.out.println(\"WordList found\");\n \n\t whichList.add( x );\n\t //System.out.println(\"Word \" + x.value + \" successfully added\");\n }", "void insert(EntryPair entry);", "private <T> void executeInsert(Object key, T value, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeInsert\", new Object[] {key, value, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tByteArrayOutputStream baos = null;\r\n\t\tObjectOutputStream oout = null;\r\n\t\tbyte[] b;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tbaos = new ByteArrayOutputStream();\r\n\t\t\toout = new ObjectOutputStream(baos);\r\n\t\t\toout.writeObject(value);\r\n\r\n\t\t\tb = baos.toByteArray();\r\n\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\tstatement.setBytes(2, b);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\t\t\tif (baos != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbaos.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (oout != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toout.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcleanupConnection(conn, null, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeInsert\");\r\n\t}", "public void insert(String key, String val){\n\t\touterloop:\n\t\tfor(int i = 1; i < queueArray.length; i++){\n\t\t\tif(queueArray[i][0] == null){\n\t\t\t\tqueueArray[i][0] = key;\n\t\t\t\tqueueArray[i][1] = val;\n\t\t\t\tif(i != 1){\n\t\t\t\t\tcompareLeaf(i);\n\t\t\t\t}\n\t\t\t\tbreak outerloop;\n\t\t\t}\n\t\t}\n\t}", "void add(KeyType key, ValueType value);", "public void insertInto(final Table table, final String keyValue, final String eiffelevent)\n throws SQLException, ConnectException {\n String sqlInsertStatement = String.format(\"INSERT INTO %s(%s,%s) VALUES(?,?)\", table, EVENT_ID_KEY,\n table.keyName);\n executeUpdate(sqlInsertStatement, keyValue, eiffelevent);\n\n }", "public Entry<K, V> insert(K key, V value) {\r\n try {\r\n int hash = key.hashCode();\r\n Entry<K, V> entry = new Entry<K, V>();\r\n entry.key = key;\r\n entry.value = value;\r\n table[compFunction(hash)].insertFront(entry);\r\n return entry;\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n return null;\r\n }\r\n }", "void insert(int idx, int val);", "void insertColumns(String columnFamily, String key, Map<String, Object> keyValuePairs);", "public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}", "int insert(Lbt72TesuryoSumDPkey record);", "int insertSelective(PmKeyDbObj record);", "public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count++;\r\n\t\t\t_loadFactor = (double) _count / (double) _numBuckets;\r\n\t\t\tif(_loadFactor > _maxLoadFactor){\r\n\t\t\t\t_increaseTableSize();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t_buckets[bucketLoc]._value = value;\r\n\t\t}\r\n\t}", "void insert(K key, V value) {\r\n\r\n\r\n Node child = getChild(key);\r\n child.insert(key, value);\r\n // to check if the child is overloaded\r\n if (child.isOverflow()) {\r\n Node sibling = child.split();\r\n insertChild(sibling.getFirstLeafKey(), sibling);\r\n }\r\n\r\n // if the node is full then it requires to split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n\r\n }", "int insertSelective(VoteList record);", "int insertSelective(Lbt72TesuryoSumDPkey record);", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }", "public void set(R key, List<S> value){\n map.remove(key);\n map.put(key, value);\n }", "void addCorrect(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n List<String> exist = map.putIfAbsent(key, list);\n if (exist != null) {\n list = exist;\n }\n }\n list.add(val);\n }", "public boolean insert(K key, V value)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\t\tint i;\r\n\t\tnumProbes = 0;\r\n\r\n\t\t// Make sure we haven't filled 70% or more of the entries\r\n\t\tif (numFilledSlots >= 0.7 * size)\r\n\t\t{\r\n\t\t\t// If we're running out of space, increase the size of our table\r\n\t\t\tincreaseCapacity();\r\n\t\t\tsize = SIZES[sizeIdx];\r\n\t\t}\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If the current slot doesn't contain a value\r\n\t\t\tif (table[index] == null || table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Store the given value at the current slot\r\n\t\t\t\ttable[index] = new HashEntry<K, V>(key, value);\r\n\t\t\t\t++numEntries;\r\n\t\t\t\t++numFilledSlots;\r\n\t\t\t\tnumProbes = i;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t// If the current slot has a value with the same key as the key we\r\n\t\t\t// are inserting with\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add the given value to the current slot\r\n\t\t\t\ttable[index].value.add(value);\r\n\t\t\t\t++numEntries;\r\n\t\t\t\tnumProbes = i;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Compute the number of probes if probing failed\r\n\t\tnumProbes = i - 1;\r\n\r\n\t\t// The value wasn't inserted because we couldn't find a place to insert\r\n\t\t// it\r\n\t\treturn false;\r\n\t}", "@Override\n public void insert(Comparable k, Object v) {\n\n if (k == null) { // Check for null key\n throw new IllegalArgumentException(\"null key\");\n }\n\n // If size 0, just add pair\n else if (this.size == 0) {\n ls[this.size] = new Pair(k, v);\n this.size++;\n return;\n }\n // If # of items reached capacity\n else if (this.CAPACITY == this.size) {\n Pair[] newLs = new Pair[this.CAPACITY + 100];\n\n // Deep copy of previous Pair[]\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n newLs[i] = this.ls[i]; // Change this.ls value\n }\n this.ls = newLs; // Change field to new Pair[]\n this.ls[size] = new Pair(k, v); // Add the Pair\n this.CAPACITY += 100; // Increase capacity\n size++;\n return;\n\n } else {\n // Loop to check for duplicate exception\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n }\n\n // Add pair to array\n ls[this.size] = new Pair(k, v);\n this.size++;\n }\n\n }", "int insert(VoteList record);", "int insertSelective(Lbm83ChohyokanriPkey record);", "private void insertValue(String field, String value) {\n switch (mapFieldsTypes.get(field)) {\n case DBCreator.STRING_TYPE:\n insertStringValue(field, value);\n break;\n case DBCreator.INTEGER_TYPE:\n insertIntegerValue(field, Integer.valueOf(value));\n break;\n }\n }", "int insertSelective(Assist_table record);", "public void insert(int key,int value){\n\t\tif(map.containsKey(key)){\n\t\t\tNode n = map.get(key);\n\t\t\tdeleteNode(n);\n\t\t\taddToHead(n);\n\t\t} else {\n\t\t\tif(count > capacity){\n\t\t\t\tint key1 = tail.key;\n\t\t\t\tmap.remove(key1);\n\t\t\t\tdeleteTail();\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t} else {\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t}\n\t\t}\n\t}", "static void addRecordToDBQueue(HashMap<String, String> data, String tablename) {\r\n try {\r\n String sql;\r\n StringJoiner sqlRowsWithValues = new StringJoiner(\",\");\r\n StringJoiner sqlValues = new StringJoiner(\",\");\r\n\r\n sql = \"INSERT INTO `\" + tablename + \"` (\";\r\n\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n sqlRowsWithValues.add(\" `\" + entry.getKey() + \"`\");\r\n sqlValues.add(\"'\" + entry.getValue() + \"'\");\r\n }\r\n\r\n Run.statement.addBatch(sql + sqlRowsWithValues.toString() + \")\" + \" VALUES( \" + sqlValues.toString() + \")\");\r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void insert(int key)\n {\n root = insertRec(root,key);\n }", "private void save_items(Connection connection, String table_name, String[] columns,\r\n int url_id, LinkedList<String> values) throws SQLException{\r\n \r\n PreparedStatement prep_state = create_prepared_insert(connection, table_name, columns);\r\n Iterator values_it = values.iterator();\r\n \r\n int counter = 1;\r\n while(values_it.hasNext()){\r\n String word = (String) values_it.next();\r\n String[] storing_values = {Integer.toString(url_id), word};\r\n set_strings(prep_state, storing_values);\r\n \r\n prep_state.addBatch();\r\n \r\n if(counter % batch_limit == 0){\r\n prep_state.executeBatch();\r\n }\r\n }\r\n \r\n prep_state.executeBatch();\r\n \r\n close_prepared_statement(prep_state);\r\n }", "public int put(int key, String value) {\n int retval = 0;\n\n String sql = \"INSERT INTO data_map(data_key, data_val) VALUES(?, ?)\";\n\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n pstmt.setString(2, value);\n retval = pstmt.executeUpdate();\n }\n catch (SQLException e) {\n retval = -1;\n }\n\n return retval;\n }", "private void addTableEntry(TableEntry<K, V> entry, TableEntry<K, V>[] newTable) {\r\n\r\n\t\tint slotIndex = Math.abs(entry.key.hashCode()) % newTable.length;\r\n\r\n\t\tif (newTable[slotIndex] == null) {\r\n\t\t\tnewTable[slotIndex] = entry;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = newTable[slotIndex];\r\n\r\n\t\twhile (currentElement.next != null) {\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t}\r\n\r\n\t\tcurrentElement.next = entry;\r\n\t}", "public Integer inserir(String tabela, ArrayList<String> campos, ArrayList<String> valores);", "int insert(TDictAreas record);", "public void insert(ValueType element) {\r\n // TODO\r\n }", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=VARCHAR})\"\n })\n int insert(TApikey record);", "void bulkInsertOrReplace (List<Consumption> entities);", "public void put(int key, int value) {\n int hashedKey = hash(key);\n Entry entry = map.get(hashedKey);\n if (entry.key == -1){\n // empty entry, insert entry\n entry.key = key;\n entry.value = value;\n }else if (entry.key == key){\n // target entry\n entry.value = value;\n }else{\n // in list, find target entry\n while(entry.key != key && entry.next!=null){\n entry = entry.next;\n }\n if (entry.key == key)\n entry.value = value;\n else\n entry.next = new Entry(key, value);\n }\n }", "public void insert(K key, V value) throws KeyFoundException {\n\tif (RBT.containsKey(key))\n\t throw new KeyFoundException(); \n\tRBT.put(key, value);\n }", "private static void add(String key, List<FieldDefinition> value) {\n if (messageFieldsMap.containsKey(key)) {\n LOGGER.error(\"Initialization error: \" + key + \" already exists in messageFieldsMap\");\n } else {\n messageFieldsMap.put(key, value);\n }\n }", "String getInsertStatement(\r\n TypedKeyValue<List<String>, List<String>> fieldsAndValues,\r\n String tableName);", "public void insertOrUpdateRecord(Object key, Object record ) \n\t{\n\t check(\"insert or update\", key, record);\n \n\t //--- Store a copy of the given key+record\n\t Object key2 = copy ( key ); // Is it realy useful for the key ?\n\t Object record2 = copy ( record );\n\t \n\t htRecords.put(key2, record2);\n\t}", "public void searchAndInsert(T searchValue, T InsertValue){\n int index = searchByValue(searchValue) + 1;\n addAtIndex(index, InsertValue);\n }", "@Insert({\"<script>\",\n \"INSERT INTO ${tableName}\",\n \" <trim prefix='(' suffix=')' suffixOverrides=','>\",\n \" <foreach collection='records[0]' index='colKey' item='value' separator=','>\",\n \" <if test='value != null'>${colKey}</if>\",\n \" </foreach>\",\n \" </trim>\",\n \"VALUES\",\n \" <foreach collection='records' item='record' separator=','>\",\n \" <foreach collection='records[0]' index='colKey' item='value' open='(' separator=',' close=')'>\",\n \" <foreach collection='record' index='dataKey' item='dataValue' separator=','>\",\n \" <if test='value != null and colKey == dataKey'>#{dataValue}</if>\",\n \" </foreach>\",\n \" </foreach>\",\n \" </foreach>\",\n \"ON DUPLICATE KEY UPDATE\",\n \" <trim suffixOverrides=','>\",\n \" <foreach collection='records[0]' index='colKey' item='value' separator=','>\",\n \" <if test='value != null'>${colKey} = values(${colKey})</if>\",\n \" </foreach>\",\n \" </trim>\",\n \"</script>\"})\n int batchInsertOrUpdateSelective(@Param(\"tableName\") String tableName, @Param(\"records\") List<Map> records);", "int insert(Lbm83ChohyokanriPkey record);", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "void insertBatch(List<TABLE41> recordLst);", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "@Test\n void testPutInsertsValue() {\n MyList l = new MyList();\n l.put(\"key\", \"value\");\n\n assertEquals(true, l.contains(\"key\"));\n }", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "@Override\r\n public void insert(K key, V value) {\r\n // call insert of the root\r\n root.insert(key, value);\r\n }", "private void insertItem(Hashtable<String, List<Integer>> h, Element e) {\n\t\tString key = e.attribute(\"sourcefilepath\").getValue().replace('/', '\\\\') + e.attribute(\"sourcefile\").getValue();\r\n\t\tint line = Integer.parseInt(e.attribute(\"line\").getValue().trim());\r\n\t\tList<Integer> l = h.get(key);\r\n\t\tif(l==null){\r\n\t\t\tl = new ArrayList<Integer>();\r\n\t\t\th.put(key, l);\r\n\t\t}\r\n\t\tl.add(line);\r\n\t}", "public void put(Key key, Value val)\t//put key-value pair in the table\n\t{\t\n\t/*\n\t * Tree shape: Many BSTs can correspond to the same set of keys.\n\t * <li>Number of compares for search/insert is equal to 1+depth of node.\n\t * <li>Worst case when keys entered in order\n\t */\n\t\troot=put(root,key,val);\n\t}" ]
[ "0.67649204", "0.6741922", "0.65454686", "0.63704324", "0.6318482", "0.63117313", "0.63117313", "0.6273407", "0.6206838", "0.6123891", "0.6102043", "0.60971767", "0.6015384", "0.5982745", "0.5974958", "0.5972766", "0.59589726", "0.59542245", "0.59295756", "0.5899597", "0.5863101", "0.5861099", "0.5860324", "0.5858934", "0.5806626", "0.5800219", "0.5780854", "0.57773", "0.57740176", "0.5768013", "0.5764393", "0.5747125", "0.57434297", "0.57375395", "0.57331556", "0.571777", "0.5716943", "0.5706456", "0.56932396", "0.56927633", "0.5690841", "0.5681299", "0.5676338", "0.56530905", "0.5642522", "0.56143004", "0.5605299", "0.5599556", "0.5594149", "0.55909765", "0.558884", "0.5584899", "0.55797243", "0.5576274", "0.5573082", "0.5568804", "0.55411136", "0.5536344", "0.55361897", "0.5527002", "0.55222714", "0.5508749", "0.54872", "0.5482676", "0.54724425", "0.5472288", "0.5462108", "0.54620886", "0.5460815", "0.5458876", "0.5458074", "0.5456264", "0.54561335", "0.54501957", "0.54480875", "0.5447153", "0.54446423", "0.5434852", "0.54290843", "0.54284143", "0.5428143", "0.5420876", "0.541595", "0.5409505", "0.54059297", "0.540429", "0.5396854", "0.53839225", "0.5374154", "0.53677106", "0.5356082", "0.5355293", "0.5350662", "0.53496104", "0.53469735", "0.53448457", "0.534383", "0.5338708", "0.53385216", "0.533338" ]
0.59117705
19
general el archivo de depliegue de pruebas
@Deployment public static Archive<?> createTestArchive() { return ShrinkWrap.create(WebArchive.class, "test.war").addPackage(Persona.class.getPackage()) .addAsResource("persistenceForTest.xml", "META-INF/persistence.xml") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getMainCatalogueFilePath();", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }", "private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}", "public static void main (String []args){\n\t\tString root = \"/home/weslley/ArtigoGroundHog2015/LogProjetos2015\";\n\t\tString rootCompleto = \"/home/weslley/mestrado2014/FinalProjects\";\n\t\t//String listaProjetosSemData = \"/home/weslley/ArtigoGroundHog2015/projectsNames2015.txt\";\n\n\t\t//Para alguns projetos nao datados\n/*\t\tVector<String> listaProjetosNaoDatados = null;\n\t\ttry {\n\t\t\tlistaProjetosNaoDatados = readProjectsNames();\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\tFile folder = new File(root);\n\t\tFile folderCompleto = new File(rootCompleto);\n\n\t\tint x = 0;\n\t\tFile firstLevel[] = folder.listFiles();\n\t\tFile firstLevelCompleto[] = folderCompleto.listFiles();\n\n\t\tboolean completed = true;\n\n\t\tfor (int i = 0; i < firstLevel.length; i++){\n\n\t\t\t//if(listaProjetosNaoDatados.contains(firstLevel[i].getName())){\n\n\t\t\t\tFile projetoDatado=null;\n\t\t\t\ttry {\n\t\t\t\t\tprojetoDatado = findFile(firstLevelCompleto, firstLevel[i].getName());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif(projetoDatado!=null){\n\n\t\t\t\t\tFile secondLevel[] = firstLevel[i].listFiles();\n\t\t\t\t\t//System.out.println(firstLevel[i].getName());\n\t\t\t\t\tif (secondLevel != null){\n\t\t\t\t\t\tfor(int j = 0; j < secondLevel.length && completed; j++){\n\t\t\t\t\t\t\t//System.out.println(secondLevel[j].getName());\n\t\t\t\t\t\t\tif (secondLevel[j].getName().compareTo(\".DS_Store\") != 0){\n\t\t\t\t\t\t\t\tFile thirdLevel[] = secondLevel[j].listFiles();\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t\tfor (int k = 0;thirdLevel!=null && k < thirdLevel.length && completed; k++){\n\t\t\t\t\t\t\t\t\tif (thirdLevel[k].getName().compareTo(\".DS_Store\") != 0){\n\t\t\t\t\t\t\t\t\t\tif (!(thirdLevel[k].getName().startsWith(\"[\") && thirdLevel[k].getName().contains(\"]\"))){\n\n\t\t\t\t\t\t\t\t\t\t\t//File secondLevelCompleto[] = projetoDatado.listFiles();\n\t\t\t\t\t\t\t\t\t\t\tFile secondLevelCompletoAuxiliar;\n\t\t\t\t\t\t\t\t\t\t\tFile thirdLevelCompletoAuxiliar;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tsecondLevelCompletoAuxiliar = findFile(projetoDatado.listFiles(), secondLevel[j].getName());\n\t\t\t\t\t\t\t\t\t\t\t\tif(secondLevelCompletoAuxiliar!=null){\n\t\t\t\t\t\t\t\t\t\t\t\t\tthirdLevelCompletoAuxiliar = findFile(secondLevelCompletoAuxiliar.listFiles(), thirdLevel[k].getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (thirdLevelCompletoAuxiliar!=null && thirdLevelCompletoAuxiliar.getName().startsWith(\"[\") && thirdLevelCompletoAuxiliar.getName().contains(\"]\")){\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(thirdLevelCompletoAuxiliar!=null && (thirdLevelCompletoAuxiliar.getName().endsWith(thirdLevel[k].getName()) || (compararProjetoSemExtensao(thirdLevelCompletoAuxiliar.getName(),thirdLevel[k].getName() )))){\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFile rename = new File(thirdLevel[k].getParent() + \"/\" + thirdLevelCompletoAuxiliar.getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthirdLevel[k].renameTo(rename);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString novoNome = thirdLevel[k].getName();\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\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}catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}//System.out.println(\"asdasd\" + x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t//}\n\n\t\t\t}\n\t\t}\n\t}", "public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void generModeloDePrueba() {\n\t\tCSharpArchIdPackageImpl.init();\n // Retrieve the default factory singleton\n\t\tCSharpArchIdFactory factory = CSharpArchIdFactory.eINSTANCE;\n // create an instance of myWeb\n\t\tModel modelo = factory.createModel();\n\t\tmodelo.setName(\"Prueba\"); \n // create a page\n\t\tCompileUnit cu = factory.createCompileUnit();\n\t\tcu.setName(\"archivo.cs\");\n\t\tClassDeclaration clase = factory.createClassDeclaration();\n\t\t//clase.setName(\"Sumar\");\n\t\t//cu.getTypeDeclaration().add(clase);\n modelo.getCompileUnits().add(cu);\n \n Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n Map<String, Object> m = reg.getExtensionToFactoryMap();\n m.put(\"model\", new XMIResourceFactoryImpl());\n\n // Obtain a new resource set\n ResourceSet resSet = new ResourceSetImpl();\n\n // create a resource\n Resource resource = resSet.createResource(URI\n .createURI(\"CSharpArchId.model\"));\n // Get the first model element and cast it to the right type, in my\n // example everything is hierarchical included in this first node\n resource.getContents().add(modelo);\n\n // now save the content.\n try {\n resource.save(Collections.EMPTY_MAP);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\t\t\n // and so on, and so on\n // as you can see the EMF model can be (more or less) used as standard Java\n\t}", "@Override\n protected void exportFirmware() throws IOException {\n // Look for an override in the program's TB_Options directory.\n File sourceFirmwareDir = new File(builderContext.sourceTbOptionsDir, \"firmware.v2\");\n if (!isValidFirmwareSource(sourceFirmwareDir)) {\n // Fall back to the system default, ~/Amplio/ACM/firmware.v2\n sourceFirmwareDir = new File(AmplioHome.getAppSoftwareDir(), \"firmware.v2\");\n }\n File stagedFirmwareDir = new File(builderContext.stagedDeploymentDir, \"firmware.v2\");\n IOUtils.deleteRecursive(stagedFirmwareDir);\n stagedFirmwareDir.mkdirs();\n FileUtils.copyDirectory(sourceFirmwareDir, stagedFirmwareDir);\n }", "public BrihaspatiProFile() {\n }", "public File findJarFileForClass(String type, String name) throws ClassNotFoundException {\n // On cherche la classe demandee parmi celles repertoriees lors du lancement de Kalimucho\n // Si on ne la trouve pas on recree la liste (cas ou le fichier jar aurait ete ajoute apres le demarrage)\n // Si on la trouve on revoie le fichier jar la contenant sinon on leve une exception\n int index=0;\n boolean trouve = false;\n while ((index<types.length) && (!trouve)) { // recherche du type\n if (type.equals(types[index])) trouve = true;\n else index++;\n }\n if (!trouve) throw new ClassNotFoundException(); // type introuvable\n else { // le type est connu on cherche la classe\n int essais = 0;\n while (essais != 2) {\n String fich = classesDisponibles[index].get(name);\n if (fich != null) { // classe repertoriee dans la liste\n essais = 2; // on renvoie le fichier\n return new File(Parameters.COMPONENTS_REPOSITORY+\"/\"+type+\"/\"+fich);\n }\n else { // la classe n'est pas dans la liste\n essais++;\n if (essais == 1) { // si on ne l'a pas deja fait on recree la liste a partir du depot\n rescanRepository();\n }\n }\n }\n throw new ClassNotFoundException(); // Classe introuvable meme apres avoir recree la liste\n }\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\tListaNombre nombres = new ListaNombre();\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.setCantRepetidos(3);\n//\t\tfor (Nombre nom : nombres.getNombres()) {\n//\t\t\tSystem.out.println(nom.getNombre() + \" \" + nom.getCant());\n//\t\t}\n\t\tnombres = ( Archivo.leer(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\premioA.in\"));\n\t\tArchivo.escribir(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\salida.out\",nombres);\n\t}", "private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }", "public interface IFileConstants\r\n{\r\n\r\n //Dateien fuer die Speicherstände\r\n\r\n public final String FILE_PATH_SAVEGAME_1\r\n = \"src/resources/savegame/savegame1.ser\";\r\n public final String FILE_PATH_SAVEGAME_2\r\n = \"src/resources/savegame/savegame1.ser\";\r\n public final String FILE_PATH_SAVEGAME_3\r\n = \"src/resources/savegame/savegame1.ser\";\r\n\r\n //Dateien fuer die Karten der Quests\r\n public final String FILE_PATH_Q1_M1 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q1_M2 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q1_M3 = \"src/resources/maps/Q1_M1.json\";\r\n\r\n public final String FILE_PATH_Q2_M1 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q2_M2 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q2_M3 = \"src/resources/maps/Q1_M1.json\";\r\n\r\n public final String FILE_PATH_Q3_M1 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q3_M2 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q3_M3 = \"src/resources/maps/Q1_M1.json\";\r\n\r\n public final String FILE_PATH_Q4_M1 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q4_M2 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q4_M3 = \"src/resources/maps/Q1_M1.json\";\r\n\r\n public final String FILE_PATH_Q5_M1 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q5_M2 = \"src/resources/maps/Q1_M1.json\";\r\n public final String FILE_PATH_Q5_M3 = \"src/resources/maps/Q1_M1.json\";\r\n\r\n //Dateien fuer die Scenes\r\n public final String FILE_PATH_FXML_INGAME\r\n = \"src/view/fxmlscenes/FXML_IngameScene.fxml\";\r\n public final String FILE_PATH_FXML_HOMESCREEN\r\n = \"src/view/fxmlscenes/FXML_HomeScreen.fxml\";\r\n public final String FILE_PATH_FXML_OPTIONS\r\n = \"src/view/fxmlscenes/FXML_Options.fxml\";\r\n public final String FILE_PATH_FXML_QUESTSELECTION\r\n = \"src/view/fxmlscenes/FXML_QuestSelection.fxml\";\r\n\r\n //Dateien fuer die Sprites\r\n public final String FILE_PATH_SPRITE_FIELD\r\n = \"src/resources/sprites/Field.png\";\r\n public final String FILE_PATH_SPRITE_ROCK\r\n = \"src/resources/sprites/Rock.png\";\r\n public final String FILE_PATH_SPRITE_WATER\r\n = \"src/resources/sprites/Water.png\";\r\n public final String FILE_PATH_SPRITE_TREE\r\n = \"src/resources/sprites/Tree.png\";\r\n public final String FILE_PATH_SPRITE_HERO\r\n = \"src/resources/sprites/Hero.png\";\r\n public final String FILE_PATH_SPRITE_ENEMY\r\n = \"src/resources/sprites/Enemy.png\";\r\n public final String FILE_PATH_SPRITE_MARKED\r\n = \"src/resources/sprites/Marked.png\";\r\n public final String FILE_PATH_SPRITE_EMPTY\r\n = \"src/resources/sprites/Empty.png\";\r\n}", "private Path makeFilePath(String name) {\n Path baseFilePath = Paths.get(portManager.getBfp());\n if (name.length() > 4 && name.substring(name.length() - 5).equals(\".json\")) {\n return baseFilePath.resolve(name);\n } else {\n return baseFilePath.resolve(name + \".json\");\n }\n }", "private void scanRepository(String type, HashMap<String, String> liste) {\n String chemin = new String(Parameters.COMPONENTS_REPOSITORY+\"/\"+type);\n//System.out.println(\"explore : \"+chemin);\n File depot = new File(chemin);\n File[] fichiers = depot.listFiles(); // liste des fichiers contenus dans ce repertoire\n for (int i = 0; i<fichiers.length; i++) { // explorer ces fichiers\n if (fichiers[i].isFile()) { // c'est un fichier\n if (fichiers[i].getName().endsWith(\".jar\")) { // c'est un fichier .jar\n try {\n JarFile accesJar = new JarFile(fichiers[i]);\n Manifest manifest = accesJar.getManifest(); // recuperer le manifest de ce fichier\n // Recuperer le nom de la classe du composant metier (dans ce manifest)\n String classeCM = manifest.getMainAttributes().getValue(KalimuchoClassLoader.BC_CLASS);\n liste.put(classeCM, fichiers[i].getName());\n//System.out.println(\"ajoute : (\"+classeCM+\" , \"+fichiers[i].getName()+\")\");\n }\n catch (IOException ioe) {\n System.err.println(\"Can't access to jar file \"+fichiers[i].getName()+\" in \"+chemin);\n }\n }\n }\n }\n }", "public TiDeployData()\n\t{\n\t\tTiApplication app = TiApplication.getInstance();\n\t\tFile extStorage = Environment.getExternalStorageDirectory();\n\t\tFile deployJson = new File(new File(extStorage, app.getPackageName()), \"deploy.json\");\n\t\tif (deployJson.exists()) {\n\t\t\treadDeployData(deployJson);\n\t\t}\n\t}", "public void crearArchivoDeTexto(String rutas,String nombre, String texto){\n try{\n archivo = new File(rutas + File.separator + nombre);\n String rutaCompleta=archivo.getAbsolutePath();\n \n System.out.println(rutaCompleta);\n FileWriter archivoEscritura= new FileWriter(rutaCompleta,true);\n BufferedWriter escritura= new BufferedWriter(archivoEscritura);\n escritura.append(texto+\"\\n\");\n escritura.close();\n archivoEscritura.close();\n }catch(FileNotFoundException e1){\n System.out.println(\"Ruta de archivo no encontrada\");\n }catch(IOException e2){\n System.out.println(\"Error de escritura\");\n }catch(Exception e3){\n System.out.println(\"Error General\");\n }\n }", "public void guardarPuntaje() {\r\n\t\tFile archivo = new File(\"archivos/puntajes.txt\");\r\n\t\tBufferedWriter bw;\r\n\t\ttry {\r\n\t\t\tif (archivo.exists()) {\r\n\t\t\t\tFileWriter fw = new FileWriter(archivo, true);\r\n\t\t\t\tbw = new BufferedWriter(fw);\r\n\t\t\t\tbw.write(\"\\r\\n\"+jugadorActual.getNombre()+\"-\"+jugadorActual.getPuntaje());\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tFileWriter fw = new FileWriter(archivo, true);\r\n\t\t\t\tbw = new BufferedWriter(fw);\r\n\t\t\t\tbw.write(jugadorActual.getNombre()+\"-\"+jugadorActual.getPuntaje());\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\tbw.close();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t}", "public void salvaPartita(String file) {\n\r\n }", "File getBundle();", "public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }", "public static void main(String[] args) throws Exception {\n \n\n\t File pasta = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\phishing\");\n\t \n\t File[] arquivos = pasta.listFiles();\n\t \n\t \n\t for (File file : arquivos) {\n\t\t System.out.println(file.getName()+ \"\tphishing\");\n\t }\n\t \n\t File pasta1 = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\not_phishing\");\n\t \n\t File[] arquivos1 = pasta1.listFiles();\n\t \n\t \n\t for (File file : arquivos1) {\n\t\t if(!file.isDirectory()){\n\t\t\t System.out.println(file.getName()+ \"\tnot_phishing\"); \n\t\t }\t\t \n\t }\n\t \n//\t FileReader m = new FileReader(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\EMAIL000240\");\n//\n//\t\tStringBuffer text = new StringBuffer();\n//\t\tint l;\n//\t\twhile ((l = m.read()) != -1) {\n//\t\t\ttext.append((char) l);\n//\t\t}\n//\t\tm.close();\n//\t\t\n//\t\tString texto = text.toString();\n//\t\t\n//\t\tSystem.out.println(texto);\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tSystem.out.println(\"############################################### NOVO TEXTO ##############################################\");\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tString texto1 = texto.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"[0-9]\", \"\");\n//\t\tSystem.out.println(texto1);\n\t \n\t\t\n\t\t \n\t \n\t \n }", "public interface FileRelease {\n String PROPATHOFRELEASE = \"com/fr/performance/file/release/release.properties\";\n\n void checkFile();\n\n void verifyPath();\n\n void backupFile();\n\n void prepareFile();\n\n void releaseFile();\n\n void resultGather();\n}", "@Override\n\tpublic Project packageArchive(IProject ipr, IProject relativeTo) {\n\t\t//throw new RuntimeException(\"This method is not supported for Web based build configurations\");\n\t\tProject proj = null;\n\t\t\n\t\t\n\t\tProjectDeploymentStructure pds = readDeploymentAssembly(ipr);\n\t\t\n\t\tproj = generateArchive(pds, ipr, relativeTo);\n\t\tproj.setProperties(BuildCore.getProjectProperties(relativeTo.getLocation()));\n\t\t/**\n\t\t * If the ProjectDeploymentStructure instance is null. Then it is clear that this archive doesn't need packaging of other archives.\n\t\t * Hence, Only archive this Project.\n\t\t * \n\t\t */\n\t\t\n\t\treturn proj;\n\t}", "public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }", "public static void main(String[] args) throws IOException {\n File ruta = new File(\"C:\\\\Users\\\\usuario\\\\Documents\\\\curso de java online sepe\\\\unidad 1 clase file\\\\ejercicios\");\n // establecer el nombre del fichero a crear\n File f = new File(ruta, \"datos.txt\");\n File f1 = new File(ruta, \"datosNuevos.txt\");\n // imprimir la ruta absoluta del archivo\n System.out.println(f.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. del archivo\n System.out.println(f.getParent());\n // imprimir la ruta absoluta de la ruta del archivo\n System.out.println(ruta.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. de la ruta\n System.out.println(ruta.getParent());\n if (!f.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f.getName() + \" no existe\");\n if (!ruta.exists()) { //se comprueba si la ruta existe o no\n System.out.println(\"El directorio \" + ruta.getName() + \" no existe\");\n if (ruta.mkdir()) { //se crea la carpeta\n System.out.println(\"Directorio creado\");\n if (f.createNewFile()) { //se crea el fichero.\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n } else {\n System.out.println(\"No se ha podido crear \" + ruta.getName());\n }\n } else { //si la ruta existe creamos el fichero\n if (f.createNewFile()) {\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n }\n } else { //el fichero existe. Mostramos el tamaño\n System.out.println(\"Fichero \" + f.getName() + \" existe\");\n System.out.println(\"Tamaño \" + f.length() + \" bytes\");\n }\n\n // mostrar los archivos en esa carpeta\n File f2 = new File(ruta, \".\");\n // creamos un array para mostrar todos los archivos en esa ruta\n String[] listaArchivos = f2.list();\n if (!f1.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f1.getName() + \" no existe\");\n }\n if (f1.createNewFile()) { //se crea el fichero. Si se ha creado correctamente\n System.out.println(\"Fichero \" + f1.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f1.getName());\n }\n for (int i = 0; i < listaArchivos.length; i++) {\n System.out.println(listaArchivos[i]);\n }\n // mostrar el numero de archivos en esa carpeta\n String[] elementos = ruta.list();\n System.out.println(\"La carpeta \" + ruta.getAbsolutePath() + \" tiene \" + elementos.length + \" subelementos\");\n }", "public Preparation(){\n\t\ttry {\n\t\t\t\n\t\t\tValueObjectRetrieve valueObjectRetrieve = new ValueObjectRetrieve(\"StaticData\",new Integer(1),remotehosturi);\n\t\t\tStaticData staticData = (StaticData)valueObjectRetrieve.getValueObject();\n\t\t\tHttpPost httpPost = new HttpPost(\"name\",nameofj2eeproject,null,remotehosturi,\"J2eeProject\");\n\t\t\tSystem.err.println(httpPost.isOk());\n\t\t\t\n\t\t\tFile file = new File(eclipseroot + nameofj2eeproject + \"/mda\");\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\tFile webxmlfile = new File(eclipseroot + nameofj2eeproject + \"/WEB-INF/web.xml\");\n\t\t\t\n\t\t\tFileDownload fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/base.css\",remotehosturi + \"/base.css\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/createscheme.bat\",remotehosturi + \"/mda/createscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/dropscheme.bat\",remotehosturi + \"/mda/dropscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/h.jsp\",remotehosturi + \"/h.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/index.jsp\",remotehosturi + \"/index.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/menu.jsp\",remotehosturi + \"/menu.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/mysql-connector-java-3.1.12-bin.jar\",remotehosturi + \"/mda/mysql-connector-java-3.1.12-bin.jar\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/systemheader.jsp\",remotehosturi + \"/systemheader.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/web.xml\",remotehosturi + \"/WEB-INF/web.xml\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/.classpath\",remotehosturi + \"/.classpath\");\n\n\t\t\t \n\t\t\tHttpClient httpClient = new HttpClient(); \n\t\t\tGetMethod getMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/copycorejar.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString contentofcopycorejat_bat = getMethod.getResponseBodyAsString();\n\t\t\tcontentofcopycorejat_bat = contentofcopycorejat_bat.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile copycorejat_batfile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\tFileWriter writer = new FileWriter(copycorejat_batfile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n\t\t\t\n\t\t\thttpClient = new HttpClient(); \n\t\t\tgetMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/createscheme.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString content = getMethod.getResponseBodyAsString();\n\t\t\tcontent = content.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile instancefile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\twriter = new FileWriter(instancefile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n//\t\t\tFile base_css = new File(eclipseroot + nameofj2eeproject + \"base.css\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n String contenido = \"\";\r\n\r\n try {\r\n FileReader in = new FileReader(\"./src/fichero_prueba.txt\");\r\n int c = in.read();\r\n\r\n while (c != -1) {\r\n contenido += (char) c;\r\n c = in.read();\r\n }\r\n in.close();\r\n } catch (IOException e){\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n System.out.println(contenido);\r\n\r\n\r\n //LEER MENSAJE POR BLOQUES\r\n\r\n String contenido2 = \"\";\r\n\r\n try {\r\n BufferedReader inb = new BufferedReader(new FileReader(\"./src/fichero_prueba.txt\"));\r\n\r\n String linea = inb.readLine();\r\n while (linea!=null){\r\n contenido2 += linea+\"\\n\";\r\n linea = inb.readLine();\r\n }\r\n inb.close();\r\n } catch (IOException e){\r\n e.printStackTrace();\r\n }\r\n System.out.println(contenido2);\r\n\r\n }", "public void restaurarPartida() throws FileNotFoundException, IOException, ClassNotFoundException {\n\t\tjuego.restaurarPartida(jugador.getID());\t\r\n\t}", "public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }", "public static void cargarRecursos(String carpetaArchivosConf, AdministradorRecursosNvjItf recursosProyecto) \n \t\tthrows CargadorRecursosException, MapeoException, IOException{\n System.out.println(\"Comenzando la carga de NavajaFW\");\n //Listo los archivos de configuracion\n String[] listaDeArchivos = new File(carpetaArchivosConf).list();\n \n if (listaDeArchivos == null) {\n throw new CargadorRecursosCarpetaConfVaciaException(carpetaArchivosConf);\n }\n\n //Se listan los archivos de la carpeta indicada\n ArrayList<String> archivosConf = new ArrayList<String>(Arrays.asList(listaDeArchivos));\n\n //Se los itera\n for (String archivoNombre : archivosConf){\n //Si algun archivo termina con _or.xml es un mapeo\n if (archivoNombre.endsWith(NavajaConstantes.GUION_BAJO_OR_PUNTO_XML)) {\n //Muestro que el archivo se esta leyendo\n System.out.println(\"Mapeando \" + archivoNombre + \"...\");\n //Comienzo el mapeo\n Mapeador.mapearXml(carpetaArchivosConf + archivoNombre);\n System.out.println(\"Mapeado correctamente \"); \n }\n }\n \n if (Mapeador.getRaizMapeo() == null || Mapeador.getRaizMapeo().getTablas().isEmpty()) {\n throw new CargadorRecursosNoExistenArchivosMapeoException(); \t\n }\n \n //Se setea la instancia NavajaConector de la app el mapeo recien generado\n NavajaConector.getInstance().setMapeoRaiz(Mapeador.getRaizMapeo());\n \n //Se inicializa los recursos segun lo implementado en el metodo sobrescrito\n recursosProyecto.iniciarRecursos();\n \n //Se setea la instancia NavajaConector de la app el DataSource para conectarse\n DataSource dataSource = recursosProyecto.proveerDataSource();\n \n if(dataSource == null) {\n throw new org.calevin.navaja.excepciones.core.CargadorRecursosDataSourceNuloException();\n }\n\n Connection conexion = null;\n\t\ttry {\n\t\t\tconexion = dataSource.getConnection();\n\t\t\t\n\t\t\tif (conexion == null){\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_NULA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\n\t\t\t} else if (!conexion.isValid(0)) {\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_INVALIDA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.COMA_ESPACIO\n\t\t\t\t\t\t+ NavajaConstantes.CONEXION\n\t\t\t\t\t\t+ NavajaConstantes.ESPACIO_COMILLA\n\t\t\t\t\t\t+ conexion\n\t\t\t\t\t\t+ NavajaConstantes.COMILLA\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\t\t\t\t\n\t\t\t} else {\n\t\t NavajaConector.getInstance().setDataSource(dataSource);\t\t\t\t\n\t\t\t}\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t} finally {\n\t\t\tif (conexion != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconexion.close(); \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n }", "public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public String leerArchivoJSON() {\n String contenido = \"\";\n FileReader entradaBytes;\n try {\n entradaBytes = new FileReader(new File(ruta));\n BufferedReader lector = new BufferedReader(entradaBytes);\n String linea;\n try {\n while ((linea = lector.readLine()) != null) {\n contenido += linea;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (entradaBytes != null) {\n entradaBytes.close();\n }\n if (lector != null) {\n lector.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(GenerarIsla.class.getName()).log(Level.SEVERE, null, ex);\n }\n return contenido;\n }", "public byte[] generateMavenProject(UpnpDevice device, Requirements requirements) throws IOException, URISyntaxException\n\t{\n\t\tByteArrayOutputStream zipBytes = null;\n\t\tZipOutputStream out = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tzipBytes = new ByteArrayOutputStream();\n\t\t\tout = new ZipOutputStream(zipBytes);\n\n\t\t\t// Generate services files\n\t\t\tfor (UpnpService service : device.getServices())\n\t\t\t{\n\t\t\t\tString serviceCode = VelocityCodeGenerator.getIntance().generateService(service);\n\t\t\t\tcreateZipEntry(out, MAVEN_STRUCTURE_JAVA + service.getName() + \".java\", serviceCode.getBytes());\n\t\t\t}\n\n\t\t\t// Generate the device file\n\t\t\tString serverCode = VelocityCodeGenerator.getIntance().generateServer(device);\n\t\t\tcreateZipEntry(out, MAVEN_STRUCTURE_JAVA + device.getDeviceName() + \"Server.java\", serverCode.getBytes());\n\n\t\t\t// Generate pom.xml\n\t\t\tSet<MavenDependency> dependencies = new HashSet<>(); // TODO\n\t\t\tif (requirements.getMavenDependencies() != null)\n\t\t\t{\n\t\t\t\tdependencies.addAll(requirements.getMavenDependencies());\n\t\t\t}\n\n\t\t\tif (requirements.getLocalJars() != null)\n\t\t\t{\n\t\t\t\tfor (String path : requirements.getLocalJars())\n\t\t\t\t{\n\t\t\t\t\tFile jar = new File(path);\n\t\t\t\t\taddLibrary(out, jar);\n\n\t\t\t\t\tMavenDependency dep = new MavenDependency();\n\t\t\t\t\tdep.setGroupId(DEFAULT_LIBRARY_GROUPID);\n\t\t\t\t\tdep.setArtifactId(jar.getName().substring(0, jar.getName().lastIndexOf(\".\")));\n\t\t\t\t\tdep.setVersion(DEFAULT_LIBRARY_VERSION);\n\t\t\t\t\tdep.setLocalJar(true);\n\t\t\t\t\tdependencies.add(dep);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString pomXmlCode = VelocityCodeGenerator.getIntance().generatePomXml(device, dependencies);\n\t\t\tcreateZipEntry(out, MAVEN_POM_XML, pomXmlCode.getBytes());\n\n\t\t\t// Add modules\n\t\t\tif (requirements.getJavaModules() != null)\n\t\t\t{\n\t\t\t\tfor (String path : requirements.getJavaModules())\n\t\t\t\t{\n\t\t\t\t\tFile module = new File(path);\n\t\t\t\t\taddModule(out, module);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//\n\t\t\t// TODO: gérer les imports\n\t\t\t//\n\t\t\t\n\t\t\t// FIXME: ugly hack\n\t\t\tFile modulesDirectory = new File(\"src/main/java/fr/unice/polytech/si5/pfe46/\" + MODULES_FOLDER);\n\t\t\taddModule(out, modulesDirectory);\n\t\t\tFile jsonProcess = new File(\"src/main/java/fr/unice/polytech/si5/pfe46/utils/JsonProcess.java\");\n\t\t\taddModule(out, jsonProcess);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\treturn zipBytes.toByteArray();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tout.close();\n\t\t\tzipBytes.close();\n\t\t}\n\t}", "public void processaArquivos() throws Exception\n\t{\n\t\t/* Busca o nome do diretorio no arquivo de propriedades */\n\t\tString nomeDiretorio = getPropriedade(\"ordemVoucher.dirArquivos\");\n\t\tFile dirArquivos = new File(nomeDiretorio);\n\t\tif (!dirArquivos.isDirectory())\n\t\t\tthrow new IOException(\"Diretorio invalido... \"+nomeDiretorio);\n\n\t\t/* Busca os arquivos das ordems (arquivos com informacoes de caixa) */\n\t\tFileFilter filtro = new OrdemVoucherFileFilter(getPropriedade(\"ordemVoucher.patternArquivos\"),\n\t\t\t\t\t\t\t\t\t\t\t\t\t getPropriedade(\"ordemVoucher.extensaoArquivos\"));\n\t\tFile arquivosOrdem[] = dirArquivos.listFiles(filtro);\n\t\t\n\t\t/* Faz a varredura dos arquivos de ordem de voucher encontrados */\n\t\tfor (int i=0; i < arquivosOrdem.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Processando ordem:\"+arquivosOrdem[i].getName());\n\t\t\t\tif (existeArquivos(arquivosOrdem[i]))\n\t\t\t\t{\n\t\t\t\t\t// Realiza a concatenacao dos arquivos da ordem agrupando-as por item\n\t\t\t\t\t// e entao processa-os para a criptografia e compactacao antes de \n\t\t\t\t\t// envia-los ao GPP\n\t\t\t\t\tString arqAProcessar[] = concatenaArquivos(arquivosOrdem[i]);\n\t\t\t\t\t\n\t\t\t\t\t// Para cada arquivo encontrado de ordem de criacao de voucher\n\t\t\t\t\t// faz se a criptografia dos arquivos de caixa correspondentes\n\t\t\t\t\t// para entao compacta-los em um unico arquivo para posteriormente\n\t\t\t\t\t// ser enviado ao GPP juntamente com este arquivo de capa\n\t\t\t\t\t// da ordem de criacao do voucher\n\t\t\t\t\tString arquivoCompactado = criptografaECompactaOrdem(arquivosOrdem[i],arqAProcessar);\n\t\t\t\t\t\n\t\t\t\t\t// Caso ao criar os arquivos criptografados e compacta-los aconteca algum\n\t\t\t\t\t// erro entao o retorno do metodo e um nome de arquivo nulo. Se este nome\n\t\t\t\t\t// for nulo, entao nada e executado com esta ordem passando entao para a\n\t\t\t\t\t// proxima\n\t\t\t\t\tif (arquivoCompactado != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Envia o arquivo do cabecalho da ordem \n\t\t\t\t\t\t// e em seguida envia o arquivo compactado\n\t\t\t\t\t\tenviaArquivoParaGPP(arquivosOrdem[i]);\n\t\t\t\t\t\tenviaArquivoParaGPP(new File(arquivoCompactado));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Remove os arquivos criptografados e compactados que foram enviados\n\t\t\t\t\t\t// para o GPP\n\t\t\t\t\t\tremoveArquivos(arquivosOrdem[i],arqAProcessar);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Move os arquivos de origem das informacoes de voucher para um diretorio\n\t\t\t\t\t\t// historico desses arquivos\n\t\t\t\t\t\t// Obs: Os arquivos concatenados foram removidos do diretorio\n\t\t\t\t\t\tmoveArquivos(arquivosOrdem[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Erro ao processar ordem:\"+arquivosOrdem[i].getName()+\" Erro:\"+e);\n\t\t\t}\n\t\t}\n\t}", "public String getPackaging();", "public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }", "public synchronized KnowledgeBuilder compilarReglas(String agentId,InputStream fichero,String ficheroReglas) {\n int indiceFicheroEnArray = ficheroReglasCompilados.indexOf(ficheroReglas);\n // if (!ficheroReglasCompilados.isEmpty()){ \n if (indiceFicheroEnArray>=0) return KbuildersObtenidos.get(indiceFicheroEnArray);\n else{ // se debe compilar\n// PackageBuilder builder = new PackageBuilder();\n// KnowledgeBuilderConfiguration kbuilderConf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();\n try {\n kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();\n Resource rsc = ResourceFactory.newInputStreamResource( fichero );\n kbuilder.add( rsc,ResourceType.DRL );\n if ( kbuilder.hasErrors() ) {\n System.out.println(\"Problemas con el fichero : \"+ ficheroReglas);\n System.err.println( kbuilder.getErrors().toString() );\n throw new RuntimeException( \"Unable to compile\");\n }else{\n // int ultimoIndiceInsercion = ficheroReglasCompilados.size();\n ficheroReglasCompilados.add( ficheroReglas);\n KbuildersObtenidos.add(kbuilder); \n return kbuilder;\n }\n } catch (Exception e) {\n trazas.aceptaNuevaTraza(new InfoTraza(agentId,\"Motor de Reglas Drools: ERROR al compilar las reglas. \" + ficheroReglas,InfoTraza.NivelTraza.error));\n e.printStackTrace(); \n }\n return null;\n }\n }", "String prepareFile();", "static void CrearArchivo(Vector productos, Vector clientes){ \r\n \ttry{ //iniciamos el try y si no funciona se hace el catch\r\n BufferedWriter bw = new BufferedWriter(\r\n \t\t//Iniciamos el archivo adentro de bw que es un objeto.\r\n new FileWriter(\"reporte.txt\") );\r\n //creamos un producto auxiliar\r\n Producto p; \r\n //mientas existan productos se escribe lo siguiente en el archivo\r\n for(int x = 0; x < productos.size(); x++){ \r\n \t//impresiones de nombre,codigo,stock,precio en el archivo\r\n \tp = (Producto) productos.elementAt(x);\r\n bw.write(\"Nombre del producto: \" + p.getNombre() + \"\\n\"); \r\n bw.write(\"Codigo del producto: \" + p.getCodigo() + \"\\n\");\r\n bw.write(\"Tamaño del stock: \" + p.getStock() + \"\\n\");\r\n bw.write(\"Precio: \" + p.getPrecio() + \"\\n\");\r\n \r\n \r\n }\r\n //creamos un cliente auxiliar\r\n Cliente c;\r\n //mientas existan clientes se escribe lo siguiente en el archivo\r\n for(int x = 0; x < clientes.size(); x++){ \r\n \tc = (Cliente) clientes.elementAt(x);\r\n \t//impresiones de nombre,telefono,cantidad y total en el archivo\r\n bw.write(\"Nombre del cliente: \" + c.getname() + \"\\n\");\r\n bw.write(\"Numero de telefono: \" + c.getTelefono() + \"\\n\"); \r\n bw.write(\"Cantidad de compra: \" + c.getCantidad() + \"\\n\");\r\n bw.write(\"Total de compra: \" + c.getTotal() + \"\\n\");\r\n \r\n \r\n }\r\n // Cerrar archivo al finalizar\r\n bw.close();\r\n System.out.println(\"¡Archivo creado con éxito!\");\r\n //si no funciona imprime el error\r\n } catch(Exception ex){ \r\n System.out.println(ex);\r\n }\r\n }", "public static void exportToFile() throws Exception {\n String fileName = \"Prova.txt\";\n try (PrintWriter outputStream = new PrintWriter(new FileWriter(fileName))) {\n List<Libro> libroList = Biblioteca.getRepo().getListaLibri();\n Iterator<Libro> libri = libroList.iterator();\n\n while (libri.hasNext()) {\n String sLibro = convertToString(libri.next());\n outputStream.println(sLibro);\n }\n }\n }", "public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }", "default String getFileExtension() {\n return \"bin\";\n }", "String getPackager();", "String getConfigFileName();", "public void gerarCupom(String cliente, String vendedor,List<Produto> produtos, float totalVenda ) throws IOException {\r\n \r\n File arquivo = new File(\"cupomFiscal.txt\");\r\n String produto =\" \"; \r\n if(arquivo.exists()){\r\n System.out.println(\"Arquivo localizado com sucessso\");\r\n }else{\r\n System.out.println(\"Arquivo não localizado, será criado outro\");\r\n arquivo.createNewFile();\r\n } \r\n \r\n for(Produto p: produtos){\r\n produto += \" \"+p.getQtd()+\" \"+ p.getNome()+\" \"+p.getMarca()+\" \"+ p.getPreco()+\"\\n \";\r\n }\r\n \r\n \r\n \r\n FileWriter fw = new FileWriter(arquivo, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n \r\n \r\n bw.write(\" \"+LOJA);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"CLIENTE CPF\");\r\n bw.newLine();\r\n bw.write(cliente);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(DateCustom.dataHora());\r\n bw.newLine();\r\n bw.write(\" CUPOM FISCAL \");\r\n bw.newLine();\r\n bw.write(\"QTD DESCRIÇÃO PREÇO\");\r\n bw.newLine();\r\n bw.write(produto);\r\n bw.newLine(); \r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"TOTAL R$ \" + totalVenda);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"Vendedor \" + vendedor);\r\n bw.newLine();\r\n bw.newLine();\r\n bw.close();\r\n fw.close();\r\n }", "public String getXsdFileName();", "public Resource cargarArchivo(String nombreArchivo) throws MalformedURLException;", "static void LeerArchivo(){ \r\n \t//iniciamos el try y si no funciona se hace el catch\r\n\r\n try{ \r\n \t//se crea un objeto br con el archivo de txt\r\n \tBufferedReader br = new BufferedReader( \r\n \tnew FileReader(\"reporte.txt\")\r\n );\r\n String s;\r\n //Mientras haya una linea de texto se imprime\r\n while((s = br.readLine()) != null){ \r\n System.out.println(s);\r\n }\r\n //se cierra el archivo de texto\r\n br.close(); \r\n } catch(Exception ex){\r\n \t//si no funciona se imprime el error\r\n System.out.println(ex); \r\n }\r\n }", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }", "public static void main(String[] args) {\n\r\n String cFields = \"NIC,SIMBOLO_VARIABLE,FECHA_VENCIMIENTO,FECHA_PAGO_OPORTUNO,FECHA_EMISION,NUMERO_FACTURA,INDICATIVO_SUMINISTRO,CIIU,TIPO_COBRO,SECUENCIAL_RECIBO,NIS,TIPO_SERVICIO,ORDEN_LECTURA,MEDIDOR,LECT_ANTERIOR,LECT_ACTUAL,FECHA_LECTURA_ACTUAL,CONSUMO_FACTURADO,VALOR_FACTURA,GRUPO_FAMILIAR,PRECIO_UNITARIO_CU,IND_VISUSALIZACION_BARCODI,IMPORTE_TOTAL_DEUDA,CANTIDAD_FACTURAS_ADEUDADAS,DESC_ANOMALIA_LECTURA,IMPORTE_TOTAL_FACTURA,SUBTOTAL_FACTURA,DESCRIPCION_TARIFA,CONSUMO_PROMEDIO,DIAS_FACTURADOS,CLAVE_ORDEN_FACTURA,PROPIEDAD_EQUIPO_MEDIDA,UNICOM,RUTA,ITINERARIO\";\r\n fields = cFields.split(\",\");\r\n\r\n readConfiguracion();\r\n\r\n if (configuracion.size() != fields.length) {\r\n System.out.println(\"Longitud de campos y configuración es diferente. Fields: \" + fields.length + \" Configuracion: \" + configuracion.size());\r\n Utilidades.AgregarLog(\"Longitud de campos y configuración es diferente. Fields: \" + fields.length + \" Configuracion: \" + configuracion.size());\r\n return;\r\n }\r\n\r\n if (configuracion.size() > 0) {\r\n System.out.println(\"Campos a leer: \" + configuracion.size());\r\n Utilidades.AgregarLog(\"Campos a leer: \" + configuracion.size());\r\n String ruta = \"C:\\\\REPARTO\\\\\";\r\n File directorio = new File(ruta);\r\n Utilidades.AgregarLog(\"Descomprimiendo archivos ruta:\" + ruta);\r\n DescomprimirArchivosCarpeta(directorio);\r\n Utilidades.AgregarLog(\"Procesando archivos de reparto en ruta:\" + ruta);\r\n ProcesarDirectorio(directorio);\r\n\r\n } else {\r\n System.out.println(\"No se ha cargado la configuracion\");\r\n Utilidades.AgregarLog(\"No se ha cargado la configuracion\");\r\n }\r\n\r\n }", "private void parsePackageFile( Part part, HttpServletResponse resp ) throws IOException\n {\n String fileName = part.getSubmittedFileName();\n CompressionType compressionType = CompressionType.getCompressionType( fileName );\n\n try ( InputStream is = part.getInputStream() )\n {\n LocalRepository repo = getRepository();\n repo.put( is, compressionType );\n ok( resp, \"Package successfully saved\" );\n }\n catch ( IOException ex )\n {\n internalServerError( resp, \"Failed to upload package: \" + ex.getMessage() );\n }\n }", "private void prepareREADME() {\n\t\ttry {\n\t\t\tInputStream is = getClass().getResourceAsStream(\"/demo/README.txt\");\n\t\t\tInputStreamReader isr = new InputStreamReader(is);\n\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\tString readme = \"\";\n\t\t\twhile ((readme = br.readLine()) != null)\n\t\t\t\tview.appendTextREADME(readme += \"\\n\");\n\t\t\tbr.close();\n\t\t\tisr.close();\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\tview.displayErrorMessage(\"ERROR: README creation failed.\");\n\t\t}\n\t}", "@Override\n public List<FileObject> createBuildSystem(Space s, List<FileObject> files) {\n TemplatePair tmpl_extra = new TemplatePair(\"linker_script\", s.getName());\n TemplatePair tmpl_extra1 = new TemplatePair(\"sdk_config\", \"sdk_config\");\n List<TemplatePair> make_addons = new ArrayList<>();\n make_addons.add(tmpl_extra);\n //make_addons.add(tmpl_extra1);\n List<FileObject> all_files = new ArrayList<>(super.createBuildSystem(s,files, NrfPlatformOptions.getInstance(), make_addons));\n\n all_files.add(makeLinkerScript(tmpl_extra));\n //all_files.add(makeConfigFile(tmpl_extra1, build_nrf_config_file(s)));\n\n return all_files;\n }", "Path getBookingSystemFilePath();", "Path getModBookFilePath();", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException \n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tFile dir = new File(\"C:\\\\apache-tomcat-7.0.52\\\\webapps\\\\proj\");\t \n\t\t dir.mkdir();\n\t\t \n\t\t /* File dir1 = new File(\"C:\\\\Root\\\\module\");\n\t\t dir1.mkdir();\n\t\t \t \n\t\t File dir2 = new File(\"C:\\\\Root\\\\module\\\\file\"); \n\t\t dir2.mkdir(); \n\t\t \n\t\t File f=new File(\"C:\\\\Root\\\\module\\\\file\\\\rid.txt\");\n\t\t\tf.createNewFile();\n\t\t\tFileWriter fw=new FileWriter(f);\n\t\t\tfw.write(\"hi ridd\");\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t\n\t\t\t File f1=new File(\"C:\\\\Root\\\\module\\\\file\\\\vid.txt\");\n\t\t f1.createNewFile();\n\t\t FileWriter fw1=new FileWriter(f1);\n\t\t\tfw1.write(\"hi vidd\");\n\t\t\tfw1.flush();\n\t\t\tfw1.close();\n\n\t\t\t File f2=new File(\"C:\\\\Root\\\\module\\\\file\\\\khu.txt\");\n\t\t\t f2.createNewFile();\n\t\t\t FileWriter fw2=new FileWriter(f2);\n\t\t\t fw2.write(\"hi khu\");\n\t\t\t fw2.flush();\n\t\t\t fw2.close();\n\t\t\t \n\t\t\t File f3=new File(\"C:\\\\Root\\\\module\\\\file\\\\anu.txt\");\n\t\t\t f3.createNewFile();\n\t\t\t FileWriter fw3=new FileWriter(f3);\n\t\t\t fw3.write(\"hi anuu\");\n\t\t fw3.flush();\n\t\t\t fw3.close();\n\t\t\t\t\t\t\n\t\t \n\t\t /*rename a file*/\n\t\t\t\t \n\t\t}", "File prepareEnvironment();", "public static void updatePOFiles(){\n\t\tfor(TableInfo tableInfo: tables.values()){\n\t\t\tJavaFileUtils.createJavaPOFile(tableInfo,new MySQLTypeConvertor());\n\t\t}\n\t}", "private static void jbptTest2() throws FileNotFoundException, Exception {\n\t\tFile folder = new File(\"models\");\n\t\t\n\t\tFile[] arModels = folder.listFiles(new FileUtil().getFileter(\"pnml\"));\n\t\tfor(File file: arModels)\n\t\t{\n\t\t\t//print the file name\n\t\t\tSystem.out.println(\"========\" + file.getName() + \"========\");\n\n\t\t\t//initialize the counter for conditions and events\n\t\t\tAbstractEvent.count = 0;\n\t\t\tAbstractCondition.count = 0;\n\n\t\t\t//get the file path\n\t\t\tString filePrefix = file.getPath();\n\t\t\tfilePrefix = filePrefix.substring(0, filePrefix.lastIndexOf('.'));\n\t\t\tString filePNG = filePrefix + \".png\";\n\t\t\tString fileCPU = filePrefix + \"-cpu.png\";\n\t\t\tString fileNet = filePrefix + \"-cpu.pnml\";\n\n\t\t\tPnmlImport pnmlImport = new PnmlImport();\n\t\t\tPetriNet p1 = pnmlImport.read(new FileInputStream(file));\n\n\t\t\t// ori\n\t\t\t/*ProvidedObject po1 = new ProvidedObject(\"petrinet\", p1);\n\t\t\t\n\t\t\tDotPngExport dpe1 = new DotPngExport();\n\t\t\tOutputStream image1 = new FileOutputStream(filePNG);\n\t\t\t\n\t\t\tdpe1.export(po1, image1);*/\n\n\t\t\tNetSystem ns = PetriNetConversion.convert(p1);\n\t\t\tProperCompletePrefixUnfolding cpu = new ProperCompletePrefixUnfolding(ns);\n\t\t\tNetSystem netPCPU = PetriNetConversion.convertCPU2NS(cpu);\n\t\t\t// cpu\n\t\t\tPetriNet p2 = PetriNetConversion.convert(netPCPU);\n\t\t\t\n\t\t\tProvidedObject po2 = new ProvidedObject(\"petrinet\", p2);\n\t\t\tDotPngExport dpe2 = new DotPngExport();\n\t\t\tOutputStream image2 = new FileOutputStream(fileCPU);\n\t\t\tdpe2.export(po2, image2);\n//\t\t\t\n\t\t\tExport(p2, fileNet);\n//\t\t\t// net\n//\t\t\tNetSystem nsCPU = PetriNetConversion.convertCPU2NS(cpu);\n//\t\t\tPetriNet pnCPU = PetriNetConversion.convertNS2PN(nsCPU);\n//\t\t\tProvidedObject po3 = new ProvidedObject(\"petrinet\", pnCPU);\n//\t\t\tDotPngExport dpe3 = new DotPngExport();\n//\t\t\tOutputStream image3 = new FileOutputStream(fileNet);\n//\t\t\tdpe3.export(po3, image3);\n\t\t}\n\t\t\tSystem.exit(0);\n\t}", "private List<ICompilationUnit> packageFiles(IPackageFragment p) throws JavaModelException\n {\n\tList<ICompilationUnit> files = new ArrayList<ICompilationUnit>();\n\tICompilationUnit[] compilationUnits = p.getCompilationUnits();\n\tfor (ICompilationUnit cu : compilationUnits)\n\t{\n\t files.add(cu);\n\t}\n\treturn files;\n }", "private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }", "private static String getPackageNameForPackageDirFile(WebFile aFile)\n {\n String filePath = aFile.getPath();\n return filePath.substring(1).replace('/', '.');\n }", "public static void main(String[] args) throws IOException {\n\n writeFile(ProductService.productList,ProductService.path);\n\n// Main.display(readFile());\n }", "public void crearConfiguracion (){\n\t\tInputStream streamMenues = FileUtil.getResourceAsStream(\"organizacionMenues.xml\");\r\n\t\tgruposModulos = new ArrayList<GrupoModulos>();\r\n\t\ttry {\r\n\t\t\tif (streamMenues != null){\r\n\t\t\t\tgruposModulos = leerGruposModulos(streamMenues);\t\r\n\t\t\t}\r\n\t\t} catch(XPathExpressionException e) {\r\n\t\t\tManejadorMenues.logger.error(\"Error procesando xml de menues\",e);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (gruposModulos.isEmpty()){\r\n\t\t\tGrupoModulos gm = new GrupoModulos();\r\n\t\t\tgm.setNombre(\"Módulos\");\r\n\t\t\tgm.setEsDefault(true);\r\n\t\t\tgruposModulos.add(gm);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tPath source = Paths.get(\"C:\", \"Phad\", \"zur\", \"quelldatei\", \"jdbc.properties\");\n\t\tPath out = Paths.get(\"C:\", \"Phad\", \"zur\", \"zieldatei\", \"jdbc.properties\");\n\n\t\t// Datei kopieren\n\t\t// Files.copy(source, out); //and then add throws IOException\n\n\t\t// Datei kopieren, Ziel ueberschreiben\n\t\t// Files.copy(source, out, StandardCopyOption.REPLACE_EXISTING);\n\n\t\t// Datei verschieben\n\t\t// Files.move(source,out);//error file allready exist\n\n\t\t// Verzeichnis und unterverzeichnisse erstellen\n\t\tFiles.createDirectories(Paths.get(\"C:\", \"verzeichnis\", \"und\", \"unterverzeichnis\"));\n\n\t\t// Eine Text Datei oefnnen und lesen\n\t\tPath textDatei = Paths.get(\"C:\", \"Phad\", \"zur\", \"quelldatei\", \"jdbc.properties\");\n\t\t// charset fuer Zeichensatz -art\n\t\tBufferedReader reader = Files.newBufferedReader(textDatei, Charset.forName(\"UTF-8\"));\n\t\tString zeile = reader.readLine();// eine Zeile lesen\n\n\t\tSystem.out.println(zeile);\n\n\t\treader.close();\n\n\t\t// Eine Text Datei oefnnen und schreiben\n\t\tPath textDatei_neu = Paths.get(\"C:\", \"Phad\", \"zur\", \"zieldatei\", \"jdbc.properties\");\n\t\tBufferedWriter writer = Files.newBufferedWriter(textDatei_neu, Charset.forName(\"UTF-8\"));\n\t\twriter.newLine();\n\t\twriter.write(\"neu_user:Helmut\");\n\t\twriter.close();\n\n\t\t// Siehe und probiere mit die methoden:\n\n\t\t// Files.readAllLines(path, cs); --> man bekommt daraus eine Liste von String\n\n\t}", "public static void main(String[] args) {\n\t\tReproductor reproductor = new ReproductorDuracion();\n\t\ttry {\n\t\t\t// Añadimos al reproductor varias listas de reproducción\n\t\t\treproductor.anyadirLista(\"footing\", \"recursos/mdCanciones/footing.txt\");\n\t\t\treproductor.anyadirLista(\"sobremesa\", \"recursos/mdCanciones/sobremesa.txt\");\n\t\t\treproductor.anyadirLista(\"fiesta\", \"recursos/mdCanciones/fiesta.txt\");\n\n\t\t\t// Obtenemos por pantalla la salida de las tres listas\n\t\t\tPrintWriter pw = new PrintWriter(System.out, true);\n\t\t\treproductor.reproducir(\"footing\", pw);\n\t\t\treproductor.reproducir(\"sobremesa\", pw);\n\t\t\treproductor.reproducir(\"fiesta\", pw);\n\n\t\t\t// Obtenemos en un fichero la salida de la lista \"footing\"\n\t\t\treproductor.reproducir(\"footing\", \"recursos/mdCanciones/footingSalida.txt\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) { // Capturamos excepción de fichero no encontrado\n\t\t\tSystem.out.println(\"Error de E/S \" + e.getMessage());\n\t\t} catch (RuntimeException e) { // Cualquier otra excepción debe corresponder con un error de formato\n\t\t\tSystem.out.println(\"Formato de fichero erroneo: \" + e.getMessage());\n\t\t}\n\t}", "protected abstract String getResourcePath();", "private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}", "private void cargarConfiguracionBBDD()\r\n\t{\r\n\t\tjava.io.InputStream IO = null;\r\n\r\n\t\ttry {\r\n\t\t\tIO = getClass().getClassLoader().getResourceAsStream(\"configuracion.properties\");\r\n\r\n\t\t // load a properties file\r\n\t\t prop.load(IO);\r\n\t\t \r\n\t\t \r\n\t\t host=prop.getProperty(\"host\");\r\n\t\t database=prop.getProperty(\"database\");\r\n\t\t username=prop.getProperty(\"username\");\r\n\t\t password=prop.getProperty(\"password\");\r\n\t\t \r\n\t\t System.out.println(host);\r\n\r\n\t\t \r\n\t\t \r\n\t\t} catch (IOException ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t} finally {\r\n\t\t if (IO != null) {\r\n\t\t try {\r\n\t\t IO.close();\r\n\t\t } catch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void RT() {////cada clase que tiene informacion en un archivo txt tiene este metodo para leer el respectivo archivoy guardarlo en su hashmap\n\t\treadTxt(\"peliculas.txt\", pelisList);\n\t}", "@Override public void outputAllNames(Set<String> files,IvyXmlWriter xw)\n{\n resolve();\n\n Set<String> done = new HashSet<String>();\n\n\n for (RebaseJavaFile jf : file_nodes) {\n // output package element\n if (files != null && !files.contains(jf.getFile().getFileName())) continue;\n\n RebaseFile rf = jf.getFile();\n String pkg = rf.getPackageName();\n if (pkg != null && pkg.length() > 0 && !done.contains(pkg)) {\n\t done.add(pkg);\n\t xw.begin(\"ITEM\");\n\t xw.field(\"HANDLE\",rf.getPackageName() + \"/\" + pkg);\n\t xw.field(\"NAME\",pkg);\n\t File f1 = new File(rf.getFileName());\n\t xw.field(\"PATH\",f1.getParent());\n\t xw.field(\"PROJECT\",rf.getProjectName());\n\t xw.field(\"SOURCE\",\"USERSOURCE\");\n\t xw.field(\"TYPE\",\"Package\");\n\t xw.end(\"ITEM\");\n }\n\n xw.begin(\"FILE\");\n xw.textElement(\"PATH\",jf.getFile().getFileName());\n\n OutputVisitor ov = new OutputVisitor(jf,xw);\n jf.getAstNode().accept(ov);\n\n xw.end(\"FILE\");\n }\n}", "public GestorArchivos(String numeroArchivo)\r\n {\r\n this.rutaArchivoEntrada = new File(\"archivostexto/in/in\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n this.rutaArchivoSalida = new File(\"archivostexto/out/out\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n }", "Path getCartFilePath();", "public String getNombreArchivoAdjunto(){\r\n\t\treturn dato.getNombreArchivo() + \".pdf\";\r\n\t}", "public n501070324_PedidosAssistencia() {\n super(\"Pedidos.txt\");\n }", "public static File obtenerFileDeFicheroEnUnidadExterna(String DIRECTORIOEXTERNO, String carpetaorigen, String nombrefichero) {\n boolean res = true;\n File file = null;\n try {\n // se crea variable separada por conveniencia, para facilitar una depuracion\n String pathcompleto = Environment.getExternalStoragePublicDirectory(DIRECTORIOEXTERNO) + File.separator + carpetaorigen;\n file = new File(pathcompleto, nombrefichero);\n if (file.exists()) {\n return file;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return file;\n }", "private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }", "private void writeFiles(String projectName, File projectRootDirectory, AdoptionContext context, File classPath,\n\t\t\tFile project) throws IOException {\n\t\tString ls = System.getProperty(\"line.separator\");\n\t\tStringBuilder projectSb = new StringBuilder();\n\t\tprojectSb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\").append(ls);\n\t\tprojectSb.append(\"<projectDescription>\").append(ls);\n\t\tprojectSb.append(\" <name>\").append(projectName).append(\"</name>\").append(ls);\n\t\tprojectSb.append(\" <comment>\").append(\"Auto generated by QuickAdopt plugin\").append(\"</comment>\").append(ls);\n\t\tprojectSb.append(\" <projects/>\").append(ls);\n\t\tprojectSb.append(\" <natures>\").append(ls);\n\t\tprojectSb.append(\" <nature>org.eclipse.jdt.core.javanature</nature>\").append(ls);\n\t\tprojectSb.append(\" </natures>\").append(ls);\n\t projectSb.append(\" <buildSpec>\").append(ls);\n\t projectSb.append(\" <buildCommand>\").append(ls);\n\t projectSb.append(\" <name>org.eclipse.jdt.core.javabuilder</name>\").append(ls);\n\t projectSb.append(\" <arguments/>\").append(ls);\n\t projectSb.append(\" </buildCommand>\").append(ls);\n\t projectSb.append(\" </buildSpec>\").append(ls);\n\t projectSb.append(\" <linkedResources/>\").append(ls);\n\t projectSb.append(\"</projectDescription>\").append(ls);\n\t\t\n\t\t\n\t\tStringBuilder claspathSb = new StringBuilder();\n\t\tclaspathSb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\").append(ls);\n\t\tclaspathSb.append(\"<classpath>\").append(ls);\n\t\tclaspathSb.append(\" <classpathentry kind=\\\"con\\\" path=\\\"org.eclipse.jdt.launching.JRE_CONTAINER\\\"/>\").append(ls);\n\t\tfor(File sourceFolder: context.sourceFolderAdoptables){\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tFile parent = sourceFolder;\n\t\t\tboolean first=true;\n\t\t\twhile (parent!=null && !projectRootDirectory.equals(parent)){\n\t\t\t\tif (!first){\n\t\t\t\t\tsb.insert(0,\"/\");\n\t\t\t\t}\n\t\t\t\tfirst=false;\n\t\t\t\tsb.insert(0,parent.getName());\n\t\t\t\tparent=parent.getParentFile();\n\t\t\t}\n\t\t\tString relativePath = sb.toString();\n\t\t\tclaspathSb.append(\" <classpathentry kind=\\\"src\\\" path=\\\"\").append(relativePath).append(\"\\\"/>\").append(ls);\n\t\t}\n\t\tclaspathSb.append(\" <classpathentry kind=\\\"output\\\" path=\\\"bin\\\"/>\").append(ls);\n\t\tclaspathSb.append(\"</classpath>\").append(ls);\n\t\t\n\t\tSystem.out.println(\".project=\"+classPath);\n\t\tSystem.out.println(\".classpath=\"+classPath);\n\t\t\n\t\ttry(BufferedWriter bw = new BufferedWriter(new FileWriter(project))){\n\t\t\tbw.write(projectSb.toString());\n\t\t\tSystem.out.println(\"written:\"+project);\n\t\t}\n\t\t\n\t\ttry(BufferedWriter bw = new BufferedWriter(new FileWriter(classPath))){\n\t\t\tbw.write(claspathSb.toString());\n\t\t\tSystem.out.println(\"written:\"+classPath);\n\t\t}\n\t\tFileUtil.copyFile(classPath, new File(classPath.getParentFile(),\".classpath_quickadopt\"));\n\t\tFileUtil.copyFile(project, new File(project.getParentFile(),\".project_quickadopt\"));\n\t}", "private static String getJarFilePath() throws URISyntaxException, UnsupportedEncodingException {\n\n\t\tFile jarFile;\n\n\t\t// if (codeSource.getLocation() != null) {\n\t\t// jarFile = new File(codeSource.getLocation().toURI());\n\t\t// } else {\n\t\tString path = ConfigurationLocator.class.getResource(ConfigurationLocator.class.getSimpleName() + \".class\")\n\t\t\t\t.getPath();\n\t\tString jarFilePath = path.substring(path.indexOf(\":\") + 1, path.indexOf(\"!\"));\n\t\tjarFilePath = URLDecoder.decode(jarFilePath, \"UTF-8\");\n\t\tjarFile = new File(jarFilePath);\n\t\t// }\n\t\treturn jarFile.getParentFile().getAbsolutePath();\n\t}", "private ArrayList<String> getPackagesFromFile() {\n\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tString path = Environment.getExternalStorageDirectory().getCanonicalPath() + \"/data/levelup/\";\r\n\r\n\r\n\t\t\t//view2_.setText(\"\");\r\n\t\t\tFile root = new File(path);\r\n\r\n\r\n\t\t\troot.mkdirs();\r\n\r\n\r\n\t\t\tFile f = new File(root, \"custom.txt\");\r\n\t\t\tif(!f.exists())\r\n\t\t\t{\r\n\t\t\t\t//view2_.setText(\"now I am here\");\r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(f);\r\n\t\t\t\tfos.close();\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tFileReader r = new FileReader(f);\r\n\t\t\tBufferedReader br = new BufferedReader(r);\r\n\r\n\r\n\r\n\t\t\t// Open the file that is the first\r\n\t\t\t// command line parameter\r\n\r\n\r\n\t\t\tString strLine;\r\n\t\t\t// Read File Line By Line\r\n\r\n\r\n\r\n\t\t\twhile ((strLine = br.readLine()) != null) {\r\n\t\t\t\t// Print the content on the console\r\n\t\t\t\t//String[] allWords;\r\n\t\t\t\tif(!strLine.equals(null)) temp.add(strLine);\r\n\t\t\t\tLog.i(\"packages from file\", strLine);\r\n\t\t\t}\r\n\r\n\t\t\tr.close();\r\n\r\n\r\n\t\t} catch (Exception e) {// Catch exception if any\r\n\t\t\t//System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "public void LecturaEscrituraOBjetosManual(File rutaEscribir) throws IOException {\n ObjectOutputStream escribir = new ObjectOutputStream(\n new BufferedOutputStream(\n new FileOutputStream(rutaEscribir)));\n\n Scanner read = new Scanner(System.in);\n System.out.println(\"¿Cuántas carteleras agregarás?\");\n //se ingresa cantidad de carteleras, para generar el array\n //se crea el array y se piden los datos de cada objeto\n //se agrega cada objeto al array y lo devuelve con la información rellenada\n Cartelera[] lista = Cartelera.listaCartelera(read.nextInt());\n\n //se escribe un array de cartelera. \n escribir.writeObject(lista);\n escribir.close();\n }", "protected String retrieveRbFile() {\r\n\t\tString className = this.getClass().getName();\r\n\t\tString packageName = this.getClass().getPackage().getName() + \".\";\r\n\t\treturn className.replaceFirst(packageName, \"\");\r\n\t}", "private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }", "public File write(IFile file,String contents){\r\n \t\ttry {\r\n \t\t\tString path=file.getProjectRelativePath().toOSString();\r\n \t\t\tFile tgt=new File(new File(workingDir,DIST_FOLDER),path);\r\n \t\t\ttgt.getParentFile().mkdirs();\r\n \t\t\twrite(file,tgt, contents);\r\n \t\t\treturn tgt;\r\n \t\t} catch (Exception e){\r\n \t\t\tBuildWrapperPlugin.logError(e.getLocalizedMessage(), e);\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "private void setupFiles(){\n\t\t// Copies the default configuration files to the workspace \n\t\ttry{\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tIPath destBasePath = Platform.getStateLocation(bundle);\n\t\t\tpropertiesFile = destBasePath.append(PreferencesConstants.PROP_BUNDLE_STATE_PATH).toFile();\n\t\t\tif(!propertiesFile.exists()){\n\n\t\t\t\tURI sourceBaseURI = bundle.getEntry(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH).toURI();\n\t\t\t\t//TODO: fix the item below?\n\t\t\t\tEnumeration<URL> entries = bundle.findEntries(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH, null, true);\n\t\t\t\tfor(; entries != null && entries.hasMoreElements();){\n\t\t\t\t\tURL url = entries.nextElement();\n\t\t\t\t\tURI uri = url.toURI();\n\t\t\t\t\tURI relativeURI = sourceBaseURI.relativize(uri);\n\t\t\t\t\tIPath destPath = destBasePath.append(relativeURI.toString());\n\n\t\t\t\t\tif(destPath.hasTrailingSeparator()){\n\t\t\t\t\t\t// it's a folder\n\t\t\t\t\t\tdestPath.toFile().mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// it's a file\n\t\t\t\t\t\tURL contentURL = FileLocator.resolve(url);\n\t\t\t\t\t\tSystemUtils.blt(contentURL.openStream(), new FileOutputStream(destPath.toFile()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now save the destination paths to the System properties\n\t\t\t//save the report paths\n\t\t\tString reportTemplatePath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, \n\t\t\t\t\treportTemplatePath);\n\t\t\tSystem.out.println(\"report template file: \" + reportTemplatePath);\t\t\n\t\t\t\n\t\t\tString reportPath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, \n\t\t\t\t\treportPath);\t\t\t\n\t\t\tSystem.out.println(\"report file: \" + reportPath);\t\t\t\n\t\t\t\n\t\t\t//save the rule paths\n\t\t\tString ruleSessionPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, \n\t\t\t\t\truleSessionPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session file: \" + ruleSessionPath);\t\t\t\t\t\n\t\t\t\n\t\t\tString ruleSessionOutPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, \n\t\t\t\t\truleSessionOutPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session out file: \" + ruleSessionOutPath);\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\t/*\n\t\tString pluginName = Activator.PLUGIN_ID;\n\t\tBundle bundle = Platform.getBundle(pluginName);\n\n\t\tString propFileStr = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.PROP_URL);\n\t\tFile sourcePropFile = new File(propFileStr);\n\n\t\t//propertiesFile = new File(fixedPath);\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tIWorkspaceRoot root = workspace.getRoot();\n\t\tIPath location = root.getLocation();\n\t\t//location.toString()\n\t\t//String path = location.toString() + location.SEPARATOR + \".metadata\" \n\t\t//\t+ location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\tString path = location.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\t//URL entry = Platform.getInstallLocation().getURL();\n\t\t//String path = entry.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\n\t\tFile usersResourceDir = new File(path);\n\t\tpropertiesFile = new File(path + PreferencesConstants.PROP_URL);\n\t\tSystem.out.println(\"properties file \" + propertiesFile.getAbsolutePath());\n\t\tFile reportDir;\n\t\tFile ruleDir;\n\t\tif(!usersResourceDir.exists()){\n\t\t\ttry{\n\t\t\t\tSystemUtils.createDirectory(usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy the properties file\n\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyFile(sourcePropFile, propertiesFile);\n\t\t\t}\n\t\t\tcatch(IOException e1){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy report directory\n\t\t\tString fixedReportPath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_REPORT_PATH);\n\t\t\treportDir = new File(fixedReportPath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(reportDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy rule directory\n\t\t\tString fixedRulePath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_RULE_PATH);\n\t\t\truleDir = new File(fixedRulePath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(ruleDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tSystem.out.println(\"success\");\n\t\t}\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL);\n\t\tSystem.out.println(\"report template file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_URL.substring(1));\n\t\tSystem.out.println(\"report file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION));\n\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT));\n\t\t*/\n\t}", "public synchronized void addProjectCP(File f) { projectCP.add(f); }", "private String getOptionsGoldenFile() {\n String dataDir = \"\";\n try {\n dataDir = getDataDir().getCanonicalPath();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return dataDir + File.separator + \"permanentUI\" + File.separator + \"options\" + File.separator + \"options-categories.txt\";\n }", "private void exportConfiguration() {\n if (!Files.exists(languageConfigPath)) this.saveResource(\"language.yml\", false);\n if (!Files.exists(propertiesConfigPath)) this.saveResource(\"properties.yml\", false);\n }", "@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }", "private void browseProject()\n {\n List<FileFilter> filters = new ArrayList<>();\n filters.add(new FileNameExtensionFilter(\"Bombyx3D project file\", \"yml\"));\n\n File directory = new File(projectPathEdit.getText());\n File selectedFile = FileDialog.chooseOpenFile(this, BROWSE_DIALOG_TITLE, directory, filters);\n if (selectedFile != null) {\n projectDirectory = selectedFile.getParentFile();\n projectPathEdit.setText(projectDirectory.getPath());\n projectPathEdit.selectAll();\n }\n }", "Composer createComposer();", "private File generatePomFile(Model model) {\n \n Writer writer = null;\n try {\n File pomFile = File.createTempFile(\"mvninstall\", \".pom\");\n writer = WriterFactory.newXmlWriter(pomFile);\n new MavenXpp3Writer().write(writer, model);\n return pomFile;\n } catch (IOException e) {\n logger.error(\"Error writing temporary POM file: \" + e.getMessage(), e);\n return null;\n } finally {\n IOUtil.close(writer);\n }\n }", "public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}", "public interface GetPath {\n //path是svn中的地址,realpath是class的路径\n public void copyFileAndFloder(String[] paths, String realPath);\n}", "@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }", "private void downloadFile() throws Exception {\n try {\n File backup = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.bkup\"));\n backup.delete();\n File armPaymentCFGFile = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.cfg\"));\n armPaymentCFGFile.renameTo(backup);\n armPaymentCFGFile.delete();\n ConfigMgr armConfigFile = new ConfigMgr(\"ArmCreditCardPlans.cfg\");\n ConfigMgr config = new ConfigMgr(\"armaniDownload.cfg\");\n ArmaniDownloadServices armDownloadServices = (ArmaniDownloadServices)\n config.getObject(\n \"CLIENT_IMPL\");\n bootMgr.setBootStrapStatus(\n \"Downloading Armani Payment Plan Configurations file\");\n CMSStore store = (CMSStore) theMgr.getGlobalObject(\"STORE\");\n ArmPayPlanConfigDetail armPayPlanConfig[] = armDownloadServices.\n getPayPlanConfigByCountryAndLanguage(\n store.getPreferredISOCountry(), store.getPreferredISOLanguage());\n\n String sNewTenderCode = \"\";\n String sPlanCode = \"\";\n String sPlanDescription = \"\";\n String sOldTenderCode = \"\";\n String sCardPlansKey = \"\";\n String sCardPlansValues = \"\";\n int iPlanCtr = 1;\n for (int iCtr = 0; iCtr < armPayPlanConfig.length; iCtr++) {\n sNewTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n if (sOldTenderCode.length() < 1) {\n sCardPlansKey = TENDER_TYPE + sNewTenderCode + CARD_PLANS;\n sOldTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n }\n if (sNewTenderCode.equals(sOldTenderCode)) {\n String sTmp = \"_\"+armPayPlanConfig[iCtr].getCardPlanCode();\n sCardPlansValues += TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp +\n \",\";\n sPlanCode = TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp + CODE;\n sPlanDescription = TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp +\n LABEL;\n armConfigFile.setString(sPlanCode, armPayPlanConfig[iCtr].getCardPlanCode());\n armConfigFile.setString(sPlanDescription,\n armPayPlanConfig[iCtr].getCardPlanDescription());\n\n iPlanCtr++;\n }\n else {\n if (sCardPlansValues.indexOf(\",\") != -1)\n sCardPlansValues = sCardPlansValues.substring(0,\n sCardPlansValues.lastIndexOf(','));\n armConfigFile.setString(sCardPlansKey, sCardPlansValues);\n sCardPlansKey = TENDER_TYPE + sNewTenderCode + CARD_PLANS;\n sCardPlansValues = \"\";\n sOldTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n iCtr--;\n iPlanCtr = 0;\n }\n }\n if (sCardPlansValues.length() > 1 && iPlanCtr > 0) {\n if (sCardPlansValues.indexOf(\",\") != -1)\n sCardPlansValues = sCardPlansValues.substring(0,\n sCardPlansValues.lastIndexOf(','));\n armConfigFile.setString(sCardPlansKey, sCardPlansValues);\n }\n theMgr.addGlobalObject(\"ARMANI_PAY_PLAN_CONFIG_DOWNLOAD_DATE\",\n new java.util.Date(), true);\n }\n catch (Exception ex) {\n ex.printStackTrace();\n try {\n File armaniPayment = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.cfg\"));\n armaniPayment.delete();\n File backup = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.bkup\"));\n backup.renameTo(armaniPayment);\n }\n catch (Exception ex1) {}\n System.out.println(\"Exception downloadFile()->\" + ex);\n ex.printStackTrace();\n }\n finally {\n if (theMgr instanceof IApplicationManager) {\n ( (IApplicationManager) theMgr).closeStatusDlg();\n }\n }\n }" ]
[ "0.6141855", "0.5873375", "0.5710931", "0.5547218", "0.55422103", "0.5419801", "0.54158485", "0.5379406", "0.5371479", "0.5366185", "0.5364388", "0.5358776", "0.532977", "0.531683", "0.52673656", "0.52669865", "0.5266433", "0.5262413", "0.5248629", "0.52395606", "0.5235987", "0.5221602", "0.5176106", "0.51752186", "0.51729095", "0.5171943", "0.51701677", "0.51544577", "0.51485085", "0.5143269", "0.5122789", "0.5116764", "0.51165855", "0.5107103", "0.50930035", "0.5072898", "0.5072809", "0.5071495", "0.506522", "0.50601864", "0.5056137", "0.5050857", "0.5043724", "0.5041721", "0.5038711", "0.5033816", "0.50263995", "0.5023428", "0.50158614", "0.5011915", "0.5004717", "0.5001344", "0.49957985", "0.4991527", "0.49843216", "0.49806595", "0.49671718", "0.49649534", "0.49598026", "0.49542397", "0.49530795", "0.49509835", "0.49486998", "0.49439597", "0.49377698", "0.4936139", "0.49345848", "0.49336278", "0.4930944", "0.4927252", "0.49268892", "0.49257344", "0.4922563", "0.49189574", "0.4910719", "0.49105215", "0.49098864", "0.49063054", "0.4903739", "0.4901075", "0.4893446", "0.48838466", "0.48816815", "0.48793942", "0.48776034", "0.48763227", "0.48703456", "0.48695287", "0.48676524", "0.48657808", "0.48651057", "0.48650146", "0.4860866", "0.48499918", "0.48499846", "0.48487037", "0.48455274", "0.48450637", "0.48391443", "0.4838066", "0.48355588" ]
0.0
-1
lista todos los empleados
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarEmpleadosTest() { TypedQuery<Empleado> query = entityManager.createNamedQuery(Empleado.LISTAR_EMPLEADOS, Empleado.class); List<Empleado> listaEmpleados = query.getResultList(); Assert.assertEquals(listaEmpleados.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Empleado> buscarTodos() {\n\t\tList<Empleado> listEmpleados;\n\t\tQuery query = entityManager.createQuery(\"SELECT e FROM Empleado e WHERE estado = true\");\n\t\tlistEmpleados = query.getResultList();\n\t\tIterator iterator = listEmpleados.iterator();\n\t\twhile(iterator.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\treturn listEmpleados;\n\t}", "public static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\n\t}", "public List<Empleado> getAll();", "public List listar() {\n ArrayList<Empleado> lista = new ArrayList<>();\r\n String sql = \"SELECT * FROM empleado\";\r\n \r\n try {\r\n con = cn.getConexion();\r\n ps = con.prepareStatement(sql); \r\n rs = ps.executeQuery();\r\n \r\n while (rs.next()) {\r\n Empleado emp = new Empleado(); \r\n emp.setId(rs.getInt(\"Id\")); //campos de la tabla\r\n emp.setNombre(rs.getString(\"Nombre\"));\r\n emp.setSalario(rs.getDouble(\"Salario\")); \r\n lista.add(emp); \r\n } \r\n } catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n \r\n return lista;\r\n }", "@Override\r\n\tpublic List consultaEmpresas() {\n\t\treturn null;\r\n\t}", "public static void mostrarEmpleados(List<Empleado> lista )\r\n\t{\r\n\t\tfor(Empleado empleado: lista)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public List<Empleado> getEmpleados(Empleado emp) {\n List<Empleado> empleados = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n\n String carnet = emp.getCarnetEmpleado();\n\n \n try{\n\n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n // String miSql = \"select * from departamento d inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado = '\"+carnet+\"'\";\n String miSql = \"select * from empleado e WHERE e.carnetempleado = '\"+carnet+\"'\"; \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n String codCarnet = miResultset.getString(\"CARNETEMPLEADO\");\n \n Empleado temporal = new Empleado(codCarnet);\n \n empleados.add(temporal);\n }\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return empleados;\n }", "public List<Ejemplar> getAll();", "public ArrayList<DatosNombre> listaNombre(){\n \n ArrayList<DatosNombre> respuesta = new ArrayList<>();\n Connection conexion = null;\n JDBCUtilities conex = new JDBCUtilities();\n \n try{\n conexion= conex.getConnection();\n \n String query = \"SELECT usuario, contrasenia, nombre\"\n + \" FROM empleado\"\n + \" WHERE estado=true\";\n \n PreparedStatement statement = conexion.prepareStatement(query);\n ResultSet resultado = statement.executeQuery();\n \n while(resultado.next()){\n DatosNombre consulta = new DatosNombre();\n consulta.setUsuario(resultado.getString(1));\n consulta.setContrasenia(resultado.getString(2));\n consulta.setNombreAnt(resultado.getString(3));\n \n respuesta.add(consulta);\n }\n }catch(SQLException e){\n JOptionPane.showMessageDialog(null, \"Error en la consulta \" + e);\n }\n return respuesta;\n }", "public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }", "public static void mostrarSegundaListaDeEmpleados()\r\n\t{\r\n\t\tfor(Empleado empleado: segundaListaDeEmpleados)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<Persona> obtenerTodasLasPersona();", "List<Entidade> listarTodos();", "List<ParqueaderoEntidad> listar();", "private static java.util.List<com.esperapp.ws.Empleado> buscarEmpleado(java.lang.String cedula) {\n com.esperapp.ws.AsignarTurnos_Service service = new com.esperapp.ws.AsignarTurnos_Service();\n com.esperapp.ws.AsignarTurnos port = service.getAsignarTurnosPort();\n return port.buscarEmpleado(cedula);\n }", "public static ArrayList<Paciente> BuscarPacientesConConvenios(Empresa emp) {\n Session sesion;\n Transaction tr = null;\n ArrayList<Paciente> lis = null;\n String hql;\n try{ \n sesion = NewHibernateUtil.getSessionFactory().openSession();\n tr = sesion.beginTransaction();\n hql = \"SELECT DISTINCT c.paciente FROM Convenio c WHERE c.estado = 'Activo' AND c.empresa = \"+emp.getIdempresa();\n Query query = sesion.createQuery(hql); \n Iterator<Paciente> it = query.iterate();\n if(it.hasNext()){\n lis = new ArrayList();\n while(it.hasNext()){\n lis.add(it.next());\n }\n }\n }catch(HibernateException ex){\n JOptionPane.showMessageDialog(null, \"Error al conectarse con Base de Datos\", \"Convenio Controlador\", JOptionPane.INFORMATION_MESSAGE);\n }\n return lis;\n }", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "@Override\n\tprotected void doListado() throws Exception {\n\t\tList<Department> deptos = new DepartmentDAO().getAllWithManager();\n//\t\tList<Department> deptos = new DepartmentDAO().getAll();\n\t\tthis.addColumn(\"Codigo\").addColumn(\"Nombre\").addColumn(\"Manager\").newLine();\n\t\t\n\t\tfor(Department d: deptos){\n\t\t\taddColumn(d.getNumber());\n\t\t\taddColumn(d.getName());\n\t\t\taddColumn(d.getManager().getFullName());\n\t\t\tnewLine();\n\t\t}\n\t}", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Empresa> listarTodos() {\n\t\tList<Empresa> lista = new ArrayList<Empresa>();\n\t\t\n\t\ttry {\n\t\t\tlista = empresaDAO.listarTodosDesc();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn lista;\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 List<CLEmpleado> obtenerListaEmpleados() throws SQLException{\r\n String sql = \"{CALL sp_mostrarEmpleados()}\";\r\n List<CLEmpleado> miLista = null;\r\n try{\r\n st = cn.createStatement();\r\n rs = st.executeQuery(sql);\r\n miLista = new ArrayList<>();\r\n while(rs.next()) {\r\n CLEmpleado cl = new CLEmpleado();\r\n cl.setIdEmpleado(rs.getInt(\"IdEmpleado\"));\r\n cl.setPrimerNombre(rs.getString(\"empleadoPrimerNombre\"));\r\n cl.setSegundoNombre(rs.getString(\"empleadoSegundoNombre\"));\r\n cl.setPrimerApellido(rs.getString(\"empleadoPrimerApellido\"));\r\n cl.setSegundoApellido(rs.getString(\"empleadoSegundoApellido\"));\r\n cl.setDireccion(rs.getString(\"empleadoDireccion\"));\r\n cl.setTelefonoCelular(rs.getString(\"empleadoTelefonoCelular\"));\r\n cl.setIdCargo(rs.getInt(\"idCargo\"));\r\n cl.setIdEstado(rs.getInt(\"idEstado\"));\r\n miLista.add(cl);\r\n }\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n return miLista; \r\n }", "@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}", "public static void mostrarPrimeraListaDeEmpleados()\r\n\t{\r\n\t\tfor(Empleado empleado: listaDeEmpleados)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "public ArrayList<Empleado> getListaEmpleados(){\n return listaEmpleados;\n }", "public void listaTemas() {\n\t\ttemas = temaEJB.listarTemas();\n\t}", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\t/**\n\t * Leo todos los empleados.\n\t */\n\tpublic List<Employees> readAll() {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_TODOS)).addEntity(Employees.class)\n\t\t\t\t.list();// no creo que funcione, revisar\n\n\t\treturn ls;\n\t}", "public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }", "@Override\n public List<Pessoa> todas() {\n this.conexao = Conexao.abrirConexao();\n List<Pessoa> pessoas = new ArrayList<>();\n try {\n String consulta = \"SELECT * FROM pessoa;\";\n PreparedStatement statement = conexao.prepareStatement(consulta);\n ResultSet resut = statement.executeQuery();\n while (resut.next()) {\n pessoas.add(criarPessoa(resut));\n }\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n if (pessoas.size() > 0) {\n return Collections.unmodifiableList(pessoas);\n } else {\n return Collections.EMPTY_LIST;\n }\n\n }", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public List<Veiculo> listarTodosVeiculos(){\n\t\tList<Veiculo> listar = null;\n\t\t\n\t\ttry{\n\t\t\tlistar = veiculoDAO.listarTodosVeiculos();\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t\treturn listar;\n\t}", "public List<Empresa> getData() {\n lista = new ArrayList<Empresa>();\n aux = new ArrayList<Empresa>();\n Empresa emp = new Empresa(1, \"restaurantes\", \"KFC\", \"Av. Canada 312\", \"tel:5050505\", \"[email protected]\", \"www.kfc.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/KFC_logo.svg/1024px-KFC_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(2, \"restaurantes\", \"Pizza Hut\", \"Av. Aviación 352\", \"tel:1111111\", \"[email protected]\", \"www.pizzahut.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Pizza_Hut_logo.svg/1088px-Pizza_Hut_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(3, \"restaurantes\", \"Chifa XUNFAN\", \"Av. del Aire 122\", \"tel:1233121\", \"[email protected]\", \"www.chifaxunfan.com\", \"https://www.piscotrail.com/sf/media/2011/01/chifa.png\", \"Restaurante de comida oriental.exe\");\n lista.add(emp);\n emp = new Empresa(4, \"Restaurantes\", \"El buen sabor\", \"Av. Benavides 522\", \"tel:5366564\", \"[email protected]\", \"www.elbuensabor.com\", \"http://www.elbuensaborperu.com/images/imagen1.jpg\", \"Restaurante de comida peruana\");\n lista.add(emp);\n emp = new Empresa(5, \"Restaurantes\", \"La Romana\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.laromana.com\", \"https://3.bp.blogspot.com/-rAxbci6-cM4/WE7ZppGVe4I/AAAAAAAA3fY/TkiySUlQJTgR7xkOXViJ1IjFRjOulFWnwCLcB/s1600/pizzeria-la-romana2.jpg\", \"Restaurante de comida italiana\");\n lista.add(emp);\n emp = new Empresa(6, \"Ocio\", \"Cinemark\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.cinemark.com.pe\", \"https://s3.amazonaws.com/moviefone/images/theaters/icons/cienmark-logo.png\", \"El mejor cine XD\");\n lista.add(emp);\n emp = new Empresa(7, \"Educación\", \"TECSUP\", \"Av. cascanueces 233\", \"tel:6462453\", \"[email protected]\", \"www.tecsup.edu.pe\", \"http://www.miningpress.com/media/img/empresas/tecsup_1783.jpg\", \"Instituto tecnologico del Perú\");\n lista.add(emp);\n emp = new Empresa(8, \"Ocio\", \"CC. Arenales\", \"Av. arenales 233\", \"tel:6462453\", \"[email protected]\", \"www.arenales.com.pe\", \"http://4.bp.blogspot.com/-jzojuNRfh_s/UbYXFUsN9wI/AAAAAAAAFjU/ExT_GmT8kDc/s1600/35366235.jpg\", \"Centro comercial arenales ubicado en la avenida Arenales al costado del Metro Arenales\");\n lista.add(emp);\n emp = new Empresa(9, \"Ocio\", \"Jockey Plaza\", \"Av. Javier Prado 233\", \"tel:6462453\", \"[email protected]\", \"www.jockeyplaza.com.pe\", \"http://3.bp.blogspot.com/-a2DHRxS7R8k/T-m6gs9Zn7I/AAAAAAAAAFA/z_KeH2QTu18/s1600/logo+del+jockey.png\", \"Un Centro Comercial con los diversos mercados centrados en la moda y tendencia del mundo moderno\");\n lista.add(emp);\n emp = new Empresa(10, \"Educación\", \"UPC\", \"Av. Monterrico 233\", \"tel:6462453\", \"[email protected]\", \"www.upc.edu.pe\", \"https://upload.wikimedia.org/wikipedia/commons/f/fc/UPC_logo_transparente.png\", \"Universidad Peruana de Ciencias Aplicadas conocida como UPC se centra en la calidad de enseñanza a sus estudiantes\");\n lista.add(emp);\n int contador=0;\n String key = Busqueda.getInstance().getKey();\n for (int i = 0; i < lista.size(); i++) {\n if (lista.get(i).getRubro().equalsIgnoreCase(key)||lista.get(i).getRubro().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n }else {\n if (lista.get(i).getNombre().equalsIgnoreCase(key)||lista.get(i).getNombre().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n break;\n }else {\n\n }\n }\n\n }\n return aux;\n }", "@Override\n public ArrayList<Asesor> getListaAsesores() {\n ArrayList<Asesor> listaAsesores = new ArrayList();\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor\");\n ResultSet resultadoConsulta = orden.executeQuery();\n String numeroPersonal;\n String nombre;\n String idioma;\n String telefono;\n String correo;\n Asesor asesor;\n while(resultadoConsulta.next()){\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n listaAsesores.add(asesor);\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return listaAsesores;\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\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 }", "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 static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "@Override\n\tpublic List<ExamenDTO> obtenerTodos() {\n\t\tList<ExamenDTO> examenes= new ArrayList<ExamenDTO>();\n\t\tdao.findAll().forEach(e -> examenes.add(Mapper.getDTOFromEntity(e)));\n\t\treturn examenes;\n\t}", "public List<Temas> ListarTemas(){\n try{\r\n Statement smtm = _cn.createStatement();\r\n \r\n List<Temas> temas = new ArrayList<>();\r\n \r\n ResultSet result = smtm.executeQuery(\"SELECT * FROM tema ORDER BY Id;\");\r\n \r\n while(result.next()){\r\n Temas tema = new Temas();\r\n tema.setId(result.getInt(\"Id\"));\r\n tema.setNombre(result.getString(\"Nombre\"));\r\n tema.setURL_Imagen(result.getString(\"URL_Imagen\"));\r\n \r\n temas.add(tema);\r\n }\r\n \r\n return temas;\r\n \r\n }\r\n catch(Exception e){\r\n return null;\r\n }\r\n }", "public List<Empleat> obtenirEmpleatsQueTreballenOnViuen() throws UtilitatJdbcSQLException {\r\n JdbcPreparedQueryDao jdbcDao = new JdbcPreparedQueryDao() {\r\n @Override\r\n public Object writeObject(ResultSet rs) throws SQLException {\r\n int field=0;\r\n Empleat empleat = new Empleat();\r\n empleat.setCodi(rs.getInt(++field));\r\n empleat.setNom(rs.getString(++field));\r\n empleat.setCiutat(rs.getString(++field));\r\n \r\n Establiment est=new Establiment();\r\n est.setCodi(rs.getInt(++field));\r\n if(!rs.wasNull()){\r\n est.setNom(rs.getString(++field));\r\n est.setCiutat(rs.getString(++field));\r\n }else{\r\n est=null;\r\n }\r\n empleat.setEstabliment(est);\r\n \r\n return empleat;\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"SELECT e.codi, e.nom, e.ciutat, e.establiment, es.nom, es.ciutat FROM Empleat e JOIN Establiment es ON e.establiment = es.codi WHERE e.ciutat = es.ciutat\";\r\n }\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n \r\n }\r\n };\r\n List<Empleat> empleat = UtilitatJdbcPlus.obtenirLlista(con, jdbcDao); \r\n return empleat;\r\n }", "@Override\r\n public List<QuestaoMultiplaEscolha> consultarTodosQuestaoMultiplaEscolha()\r\n throws Exception {\n return rnQuestaoMultiplaEscolha.consultarTodos();\r\n }", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Empregado> getList() {\n\t\treturn em.createQuery(\"SELECT e FROM Empregado e where e.ativo = true\").getResultList();\r\n\t}", "public ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }", "List<Vehiculo>listar();", "public void listarHospedes() {\n System.out.println(\"Hospedes: \\n\");\n if (hospedesCadastrados.isEmpty()) {\n// String esta = hospedesCadastrados.toString();\n// System.out.println(esta);\n System.err.println(\"Não existem hospedes cadastrados\");\n } else {\n String esta = hospedesCadastrados.toString();\n System.out.println(esta);\n // System.out.println(Arrays.toString(hospedesCadastrados.toArray()));\n }\n\n }", "public List<AlojamientoEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos los alojamientos\");\n TypedQuery q = em.createQuery(\"select u from AlojamientoEntity u\", AlojamientoEntity.class);\n return q.getResultList();\n }", "List<Especialidad> getEspecialidades();", "private void mostraPesquisa(List<BeansLivro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 3);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 4);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 5); \n } \n }\n }", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "private void listarDepartamentos() {\r\n\t\tdepartamentos = departamentoEJB.listarDepartamentos();\r\n\t}", "@Override\r\n public List<Prova> consultarTodosProva() throws Exception {\n return rnProva.consultarTodos();\r\n }", "public List<Usuario> buscarTodos(){\n\t\tList<Usuario> listarUsuarios = new ArrayList<>();\n\t\t\n\t\tString sql = \"Select * from usuario\";\n\t\tUsuario usuario = null ;\n\t\t\n\t\ttry(PreparedStatement preparedStatement = con.prepareStatement(sql)) {\n\t\t\t\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t/*\n\t\t\t * Dentro do while estou verificando se tem registro no banco de dados, enquanto tiver registro vai \n\t\t\t * adcionando um a um na lista e no final fora do while retorna todos os registro encontrados. \n\t\t\t */\n\t\t\twhile(result.next()){\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setIdUsuario(result.getInt(\"idUsuario\"));\n\t\t\t\tusuario.setNome(result.getString(\"Nome\"));\n\t\t\t\tusuario.setLogin(result.getString(\"Login\"));\n\t\t\t\tusuario.setSenha(result.getString(\"senha\"));\n\t\t\t\t\n\t\t\t\t// Adcionando cada registro encontro, na lista .\n\t\t\t\tlistarUsuarios.add(usuario);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listarUsuarios;\n\t}", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public List<Empresa> readEmp() throws ClassNotFoundException {\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n List<Empresa> Empresa = new ArrayList<>();\r\n try {\r\n stmt = con.prepareStatement(\"SELECT * FROM tbempresas\");\r\n rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n Empresa p = new Empresa();\r\n p.setCodEmp(rs.getInt(\"codEmp\"));\r\n p.setNomeEmp(rs.getString(\"nomeEmp\"));\r\n\r\n Empresa.add(p);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(EmpresaDao.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n ConnectionFactory.closeConnection(con, stmt, rs);\r\n }\r\n return Empresa;\r\n }", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "@RequestMapping(value = \"/empregado/list_all\" , method = RequestMethod.GET)\n\tpublic List<EmpregadoDto> listAllEmpregados(){\n\t\treturn repoEmp.findAll();\n\t}", "@Override\r\n\tpublic List<ReservaBean> traeTodos() throws Exception {\n\t\treturn null;\r\n\t}", "public List<Empleat> obtenirEmpleatsPerNom(String nom) throws UtilitatPersistenciaException{\r\n JdbcPreparedQueryDao jdbcDao = new JdbcPreparedQueryDao() {\r\n @Override\r\n public Object writeObject(ResultSet rs) throws SQLException {\r\n int field=0;\r\n Empleat empleat = new Empleat();\r\n empleat.setCodi(rs.getInt(++field));\r\n empleat.setNom(rs.getString(++field));\r\n empleat.setCiutat(rs.getString(++field));\r\n \r\n Establiment est=new Establiment();\r\n est.setCodi(rs.getInt(++field));\r\n if(!rs.wasNull()){\r\n est.setNom(rs.getString(++field));\r\n est.setCiutat(rs.getString(++field));\r\n }else{\r\n est=null;\r\n }\r\n empleat.setEstabliment(est);\r\n \r\n return empleat;\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"SELECT e.codi, e.nom, e.ciutat, e.establiment, es.nom, es.ciutat FROM Empleat e JOIN Establiment es ON e.establiment = es.codi WHERE e.nom LIKE ?\";\r\n }\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) \r\n throws SQLException {\r\n pstm.setString(1, nom);\r\n }\r\n };\r\n List<Empleat> empleat = UtilitatJdbcPlus.obtenirLlista(con, jdbcDao); \r\n return empleat;\r\n }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public List<Location> listarPorAnunciante() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR IMÓVEIS\r\n pStatement = conn.prepareStatement(\"select * from pessoa inner join anuncio inner join imagem inner join imovel inner join location inner join comodo\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n\r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\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 }", "@Override\n\tpublic List<Paciente> listar() {\n\t\treturn dao.findAll();\n\t}", "public static List<Endereco> listar() {\n\t\t\tConnection conexao = ConectaPostgreSQL.geraConexao();\n\t\t\t// variavel lista de ass\n\t\t\tList<Endereco> acessos = new ArrayList<Endereco>();\n\t\t\t// executa o SQL no banco de endereco\n\t\t\tStatement consulta = null;\n\t\t\t// contém os endereco consultado da tabela\n\t\t\tResultSet resultado = null;\n\t\t\t// objeto as\n\t\t\t// Endereco as = null;\n\t\t\t// consulta SQL\n\t\t\tString sql = \"select distinct * from Endereco\";\n\t\t\ttry {\n\t\t\t\t// consulta => objeto que executa o SQL no banco de endereco\n\t\t\t\tconsulta = conexao.createStatement();\n\t\t\t\t// resultado => objeto que contém os endereco consultado da tabela\n\t\t\t\t// Endereco\n\t\t\t\tresultado = consulta.executeQuery(sql);\n\t\t\t\t// Lê cada as\n\n\t\t\t\twhile (resultado.next()) {\n\t\t\t\t\tEndereco endereco = new Endereco();\n\t\t\t\t\tendereco.setBairro(resultado.getString(\"bairro\"));\n\t\t\t\t\tendereco.setCep(resultado.getString(\"cep\"));\n\t\t\t\t\tendereco.setCidade(resultado.getString(\"cidade\"));\n\t\t\t\t\tendereco.setEstado(resultado.getString(\"estado\"));\n\t\t\t\t\tendereco.setNumero(resultado.getInt(\"numero\"));\n\t\t\t\t\tendereco.setRua(resultado.getString(\"rua\"));\n\t\t\t\t\t// insere o as na lista\n\t\t\t\t\tacessos.add(endereco);\n\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new RuntimeException(\"Erro ao buscar um acesso a serviços: \" + e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tconsulta.close();\n\t\t\t\t\tresultado.close();\n\t\t\t\t\tconexao.close();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\tthrow new RuntimeException(\"Erro ao fechar a conexao \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// retorna lista de ass\n\t\t\treturn acessos;\n\t\t}", "public List<Aluno> buscarTodos() {\n\t\treturn null;\n\t}", "public List<persona> listar() {\n\t\tList<persona>lista= new ArrayList<>();\n\t\t\n\t\tString sql=\"SELECT * FROM TABLA.TABLA;\";\n\t\ttry {\n\t\t\n\t\tcon = c.conectar();\n\t\tps= con.prepareStatement(sql);\n\t\trs=ps.executeQuery();\n\t\t\n\t\twhile(rs.next()) {\n\t\t\tPersona p= new persona();\n\t\t\tp.setId(rs.getString(1));\n\t\t\tp.setNom(rs.getString(2));\n\t\t\tlista.add(p);\n\t\t}\n\t}catch (Exception e) {\n\t\t\n\t}return lista;\n\t\n\t}", "public List<Tripulante> buscarTodosTripulantes();", "@Override\n public List<Paciente> listar(){\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n List<Paciente> listaPaciente = em.createQuery(\"SELECT pac FROM Paciente pac\").getResultList(); \n em.close();\n factory.close();\n return (listaPaciente);\n }", "public ArrayList<Equipamento> todos() {\n return new ArrayList<>(lista.values());\n }", "public List<Evento> listarEventos() throws Exception{\n\t\t// Hibernate.initialize(listaEspecialidades());\n\t\treturn super.findListByQueryDinamica(\" from Evento\");\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<SistemaFazendaModel> listaTudo(){\n\t\treturn this.session.createCriteria(SistemaFazendaModel.class).list();\n\t}", "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "public ArrayList< UsuarioVO> listaDePersonas() {\r\n\t ArrayList< UsuarioVO> miUsuario = new ArrayList< UsuarioVO>();\r\n\t Conexion conex= new Conexion();\r\n\t \r\n\t try {\r\n\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM usuarios\");\r\n\t ResultSet res = consulta.executeQuery();\r\n\t while(res.next()){\r\n\t\t UsuarioVO persona= new UsuarioVO();\r\n\t persona.setCedula_usuario(Integer.parseInt(res.getString(\"cedula_usuario\")));\r\n\t persona.setEmail_usuario(res.getString(\"email_usuario\"));\r\n\t persona.setNombre_usuario(res.getString(\"nombre_usuario\"));\r\n\t persona.setPassword(res.getString(\"password\"));\r\n\t persona.setUsuario(res.getString(\"usuario\"));\r\n\t \r\n\t \r\n\t miUsuario.add(persona);\r\n\t }\r\n\t res.close();\r\n\t consulta.close();\r\n\t conex.desconectar();\r\n\t \r\n\t } catch (Exception e) {\r\n\t JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\r\n\t }\r\n\t return miUsuario;\r\n\t }", "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 List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Empleado>listaEmpleados = new ArrayList<Empleado>();\n\t\t//listaEmpleados.ensureCapacity(12); //USAMOS ESTE MÉTODO PARA NO CONSUMIR MÁS MEMORIA QUE 12 ELEMENTOS DEL ARRAYLIST\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\t//PARA ELEGIR LA POSICIÓN DONDE QUEREMOS INCLUIR ELEMENTO.\n\t\tlistaEmpleados.set(5,new Empleado(\"Androide18\", 10,2000));\n\t\t\n\t\t//CORTAMOS EL EXCESO DE MEMORIA QUE ESTÁ SIN USAR\n\t\t//listaEmpleados.trimToSize();\n\t\t\n\t\t//PARA IMPRIMIR UN ELEMENTO DE ARRAYLIST EN ESPECIAL\n\t\tSystem.out.println(listaEmpleados.get(4).dameEmpleados());\n\t\t\n\t\t//IMPRIMIMOS EL TAMAÑO DEL ARRAYLIST\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\t\n\t\t/*//BUCLE FOR-EACH\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\tfor(Empleado x : listaEmpleados) {\n\t\t\tSystem.out.println(x.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t/*//BUCLE FOR\n\t\tfor(int i=0;i<listaEmpleados.size();i++) {\n\t\t\t//ALAMCENAMOS EN \"e\" LOS ELEMENTOS DEL ARRAYLIST\n\t\t\tEmpleado e =listaEmpleados.get(i); \n\t\t\tSystem.out.println(e.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t//GUARDAMOS LA INFORMACIÓN DEL ARRAYLIST EN UN ARRAY CONVENSIONAL Y LO RECORREMOS\n\t\t//CREAMOS ARRAY Y LE DAMOS LA LONGITUD DEL ARRAYLIST:\n\t\tEmpleado arrayEmpleados[]= new Empleado[listaEmpleados.size()];\n\t\t//COPIAMOS LA INFORMACIÓN EN EL ARRAY CONVENSIONAL:\n\t\tlistaEmpleados.toArray(arrayEmpleados);\n\t\t//RECORREMOS\n\t\tfor(int i=0;i<arrayEmpleados.length;i++) {\n\t\t\tSystem.out.println(arrayEmpleados[i].dameEmpleados());\n\t\t}\n\t}", "public static ArrayList cargarEstudiantes() {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.printf(\"conexion establesida\");\r\n Statement sentencia = conexion.createStatement();\r\n ResultSet necesario = sentencia.executeQuery(\"select * from estudiante\");\r\n\r\n Estudiante estudiante;\r\n\r\n listaEstudiantes = new ArrayList<>();\r\n while (necesario.next()) {\r\n\r\n String Nro_de_ID = necesario.getString(\"Nro_de_ID\");\r\n String nombres = necesario.getString(\"Nombres\");\r\n String apellidos = necesario.getString(\"Apellidos\");\r\n String laboratorio = necesario.getString(\"Laboratorio\");\r\n String carrera = necesario.getString(\"Carrera\");\r\n String modulo = necesario.getString(\"Modulo\");\r\n String materia = necesario.getString(\"Materia\");\r\n String fecha = necesario.getString(\"Fecha\");\r\n String horaIngreso = necesario.getString(\"Hora_Ingreso\");\r\n String horaSalida = necesario.getString(\"Hora_Salida\");\r\n\r\n estudiante = new Estudiante();\r\n\r\n estudiante.setNro_de_ID(Nro_de_ID);\r\n estudiante.setNombres(nombres);\r\n estudiante.setLaboratorio(laboratorio);\r\n estudiante.setCarrera(carrera);\r\n estudiante.setModulo(modulo);\r\n estudiante.setMateria(materia);\r\n estudiante.setFecha(fecha);\r\n estudiante.setHora_Ingreso(horaIngreso);\r\n estudiante.setHora_Salida(horaSalida);\r\n\r\n listaEstudiantes.add(estudiante);\r\n\r\n }\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n return listaEstudiantes;\r\n }", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente 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(\"nomepaciente\");\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 static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEmpleados[1]=new empleado(\"Johana\",28500,1998,12,17);\n misEmpleados[2]=new empleado(\"sebastian\",98500,1898,12,17);\n \n /*for (int i = 0; i < misEmpleados.length; i++) {\n misEmpleados[i].aumentoSueldo(10);\n \n }\n for (int i = 0; i < misEmpleados.length; i++) {\n System.out.println(\"nombre :\" + misEmpleados[i].dameNombre() + \" sueldo \" + misEmpleados[i].dameSueldo()+ \" fecha de alta \"\n + misEmpleados[i].dameContrato());\n }*/\n \n for (empleado e:misEmpleados) {\n e.aumentoSueldo(10);\n \n }\n for (empleado e:misEmpleados) {\n System.out.println(\"nombre :\" + e.dameNombre() + \" sueldo \" + e.dameSueldo()+ \" fecha de alta \"\n + e.dameContrato());\n \n }\n \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<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "List<Oficios> buscarActivas();", "@Override\n\tpublic List<CLIENTE> listarTodos() {\n\t\t\n\t\tString sql = \"SELECT * FROM CLIENTE\";\n\t\t\n\t\tList<CLIENTE> listaCliente = new ArrayList<CLIENTE>();\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tResultSet res = ps.executeQuery();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\t\n\t\t\t\tcliente = new CLIENTE();\n\t\t\t\tcliente.setNomeCliente(res.getString(\"NOME_CLIENTE\"));\n\t\t\t\t\n\t\t\t\tlistaCliente.add(cliente);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn listaCliente;\n\t}", "public List<ViajeroEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos\");\n TypedQuery<ViajeroEntity> query = em.createQuery(\"select u from ViajeroEntity u\", ViajeroEntity.class);\n return query.getResultList();\n }", "public static List<Comentario> listar()\n {\n Session sessionRecheio;\n sessionRecheio = HibernateUtil.getSession();\n Transaction tr = sessionRecheio.beginTransaction();\n String hql = \"from Comentario u\";\n List<Comentario> lista = (List)sessionRecheio.createQuery(hql).list();\n tr.commit();\n return lista;\n }", "public List<Usuario> listarTodos() {\n List<Usuario> r = new ArrayList<>();\n try {\n try (Connection cnx = bd.obtenerConexion(Credenciales.BASE_DATOS, Credenciales.USUARIO, Credenciales.CLAVE);\n Statement stm = cnx.createStatement();\n ResultSet rs = stm.executeQuery(CMD_LISTAR2)) {\n while (rs.next()) {\n r.add(new Usuario(\n rs.getString(\"cedula\"),\n rs.getString(\"apellido1\"),\n rs.getString(\"apellido2\"),\n rs.getString(\"nombre\")\n ));\n }\n }\n } catch (SQLException ex) {\n System.err.printf(\"Excepción: '%s'%n\",\n ex.getMessage());\n }\n return r;\n }", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "public List<Calificar> list_comentarios(String nombre){\n List<Calificar> comentarios = null;\n\n Session session = sessionFactory.openSession();\n Transaction tx = null;\n\n try{\n\n tx = session.beginTransaction();\n String hql = \"from Calificar c where c.puesto.idNombre = :puesto\";\n Query query = session.createQuery(hql);\n query.setParameter(\"puesto\", nombre);\n comentarios = (List<Calificar>)query.list();\n tx.commit();\n\n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n\n return comentarios;\n }", "private void getDepartamentos() {\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n\n String jpql =\"SELECT d FROM Departamento d \"\n + \"WHERE d.estado = 'a'\";\n\n Query query = em.createQuery(jpql);\n List<Departamento> listDepartamentos = query.getResultList();\n ArrayList<Departamento> arrayListDepartamentos = new ArrayList<>();\n for(Departamento d: listDepartamentos){\n arrayListDepartamentos.add(d);\n }\n this.Listdepartamentos = arrayListDepartamentos;\n em.close();\n emf.close();\n }\n catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n }", "private void mostraPesquisa(List<Livro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n\n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else {\n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[]{null, null, null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getId_genero(), i, 1);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 2);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 3);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 4);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 5);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 6);\n }\n }\n }", "private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }", "public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }", "public List<Usuario> listar() {\n List<Usuario> listaUsuarios = new ArrayList<>();\n String consulta = \"select tipoDocumento, documento, nombre, apellido, password, correo, tipoUsuario from Usuario\";\n Cursor temp = conex.ejecutarSearch(consulta);\n if (temp.moveToFirst()) {\n do {\n Usuario usuario = new Usuario(temp.getString(0), Integer.parseInt(temp.getString(1)), temp.getString(2), temp.getString(3), temp.getString(4), temp.getString(5), temp.getString(6));\n listaUsuarios.add(usuario);\n } while (temp.moveToNext());\n }\n return listaUsuarios;\n }", "List<BeanPedido> getPedidos();", "@Override\n\tpublic List<AlmacenDTO> listarEntrada() {\n\t\tList<AlmacenDTO> data = new ArrayList<AlmacenDTO>();\n\t\tAlmacenDTO obj = null;\n\t\tConnection cn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tcn = new MySqlDbConexion().getConexion();\n\t\t\tString sql = \"select me.codigo_entrada,p.nombre_producto,me.cantidad_entrada,me.fecha_entrada\\r\\n\" + \n\t\t\t\t\t\"from material_entrada me inner join producto p on me.codigo_producto=p.codigo_producto\";\n\n\t\t\tpstm = cn.prepareStatement(sql);\n\t\t\trs = pstm.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tobj = new AlmacenDTO();\n\t\t\t\tobj.setCodigo_entrada(rs.getInt(1));\n\t\t\t\tobj.setNombre_producto(rs.getString(2));\n\t\t\t\tobj.setCantidad_entrada(rs.getInt(3));\n\t\t\t\tobj.setFecha_entrada(rs.getDate(4));\n\n\t\t\t\tdata.add(obj);\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn data;\n\t}", "@Override\n\tpublic List<Aluno> carregar() {\n\t\tList<Aluno> lista = new ArrayList<Aluno>();\n\t\ttry {\n\t\t\tConnection con = DBUtil.getInstance().getConnection();\n\t\t\tString cmd = \"SELECT * FROM Aluno \";\n\t\t\tPreparedStatement stmt = con.prepareStatement( cmd );\n\t\t\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) { \n\t\t\t\tAluno a = new Aluno();\n\t\t\t\ta.setNome( rs.getString(\"Nome\") );\n\t\t\t\ta.setNumero(Integer.parseInt(rs.getString(\"idAluno\")) );\n\t\t\t\tlista.add( a );\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Erro no Sql, verifique o banco\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\treturn lista;\n\t}", "List<TipoHuella> listarTipoHuellas();" ]
[ "0.7710959", "0.76797163", "0.7616711", "0.7420977", "0.7399745", "0.7251678", "0.7247781", "0.72350353", "0.7193124", "0.7173628", "0.71377057", "0.7125559", "0.708229", "0.7076199", "0.70709825", "0.70480096", "0.70255923", "0.6970271", "0.6956465", "0.69561523", "0.69424874", "0.69229275", "0.69205797", "0.6912075", "0.68934673", "0.6892446", "0.684977", "0.68433493", "0.6821474", "0.6809069", "0.6807277", "0.67933404", "0.67929775", "0.6791614", "0.67751265", "0.67719835", "0.67718965", "0.6765154", "0.6760083", "0.6757092", "0.6756028", "0.6755754", "0.67537045", "0.67514884", "0.6742369", "0.6739088", "0.67291844", "0.67010987", "0.6698149", "0.6688558", "0.66871303", "0.6664137", "0.66550034", "0.6653794", "0.6652833", "0.66245186", "0.6622664", "0.6615031", "0.6613822", "0.6602151", "0.6595964", "0.6590564", "0.6588996", "0.6583969", "0.65725434", "0.65707105", "0.6565182", "0.65643406", "0.65616685", "0.65569675", "0.6554219", "0.65487796", "0.65459806", "0.65398365", "0.6537687", "0.6534894", "0.65313566", "0.65304303", "0.65295464", "0.6521311", "0.65212643", "0.65091175", "0.6507922", "0.6503315", "0.6502568", "0.6499108", "0.64970046", "0.6493824", "0.6493275", "0.6488492", "0.6488291", "0.6488215", "0.6485944", "0.6482273", "0.6479386", "0.64738536", "0.64730066", "0.646085", "0.6452489", "0.6443749" ]
0.6740982
45
metodo test para saber que personas no han realizado registros de plantas
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void obtenerPersonaSinRegistro() { TypedQuery<Persona> query = entityManager.createNamedQuery(Persona.PERSONA_SIN_REGISTRO, Persona.class); List<Persona> listaPersonas = query.getResultList(); Iterator<Persona> iterator = listaPersonas.iterator(); while (iterator.hasNext()) { System.out.println(iterator.next()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void checkFuelEmpty() {\n Game.getInstance().getPlayer().setSolarSystems(SolarSystems.SOMEBI);\n Game.getInstance().getPlayer().setFuel(0);\n assertFalse(SolarSystems.SOMEBI.canTravel(SolarSystems.ADDAM));\n \n \n \n }", "@Test\n void registerVeichle() {\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n\n assertTrue(vr.getVeichles().contains(dieselCar) && vr.getVeichles().contains(dieselCar2));\n assertFalse(vr.registerVeichle(dieselCar));\n }", "@Test\r\n\t public void register1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \t\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\r\n\t public void isRegisterIfdroped1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",4);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\n\tpublic void validarPeticionListAllRegistros() {\n\t\t// Arrange\n\t\tint cantidadRegistros = 1;\n\t\t// Act\n\t\tList<Registro> registroRecuperados = (List<Registro>) registroService.listAllRegistro();\n\t\tint cantidadRegistrosRecuperdos = registroRecuperados.size();\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", cantidadRegistrosRecuperdos, cantidadRegistros);\n\t}", "@Test\n\tvoid testgetAllPlants() {\n\t\tList<Plant> plantlist = service.getAllPlant();\n\t\tboolean result = true;\n\t\tif (plantlist.isEmpty()) {\n\t\t\tresult = false;\n\t\t}\n\t\tassertTrue(result);\n\t}", "@Test\n public void testTegisterPatient(){\n register.registerPatient(\"Donald\", \"Trump\",\"16019112345\", \"Doctor Proctor\");\n assertEquals(1, register.getRegisterSize());\n }", "@Test \nvoid testFillPrescripNoRefills() {\n\tprescrip.setRefills(0);\n\t testPharm.receivePrescription(prescrip);\n\tBoolean success = testPharm.fillPrescription(prescrip.getId()); //doesn't exist\n assertFalse(success);\n}", "@Test\r\n\t public void register3() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2017);\r\n\t\t \tthis.student.registerForClass(\"gurender2\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender3\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender4\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender4\", \"ecs60\", 2017)); \r\n\t }", "@Test\n\tpublic void testResponderEjercicio2(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(0));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n void necesitaConductorExperimentado() {\n when(f1.esCompleja()).thenReturn(true);\n when(f2.esCompleja()).thenReturn(true);\n when(f3.esCompleja()).thenReturn(false);\n assertTrue(deposito.necesitaConductorExperimentado());\n\n // Nignuna de sus formaciones es compleja:\n when(f1.esCompleja()).thenReturn(false);\n when(f2.esCompleja()).thenReturn(false);\n when(f3.esCompleja()).thenReturn(false);\n assertFalse(deposito.necesitaConductorExperimentado());\n }", "@Test\n\tvoid testGetPlant() {\n\t\tPlant plant = service.getPlant(53);\n\t\tassertNotEquals(\"Rose\", plant.getName());\n\t}", "@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}", "@Test\n\tpublic void testResponderEjercicio3(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(20));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n public void test3IsCreatable()throws Exception{\n\n //Zone\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n if(generateLevel.isCreatable(nd)){\n generateLevel.getDefendersList().push(nd);\n }\n\n NormalDefender nd2 = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertFalse(generateLevel.isCreatable(nd2));\n }", "@Test\n\tpublic void testResponderEjercicio4(){\n\t\tAlumno oscar = Alumno.CreaAlumno(\"2\", \"Oscar\", \"Password\", \"[email protected]\");\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tassertFalse(ej1.responderEjercicio(oscar, array));\n\t\tassertTrue(oscar.getEstadisticas().isEmpty());\n\t}", "@Test\r\n\t public void register4() {\n\t\t \tthis.admin.createClass(\"ecs61\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs61\", 2017));\r\n\t \r\n\t }", "@Test\r\n\t public void register2() {\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\r\n\t public void isRegisterIfdroped2() {\n\t\t \tthis.admin.createClass(\"ecs60\",2016,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2016);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2016);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2016));\r\n\t // assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\n\tpublic void addRegistrationDetails() {\n\t\tRegistrationDetails registrationDetailsForHappyPath = RegistrationHelper.getRegistrationDetailsForHappyPath();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tRegistrationDetails addRegistrationDetails = registrationDAO\n\t\t\t\t\t.addRegistrationDetails(registrationDetailsForHappyPath);\n\t\t\tem.getTransaction().commit();\n\t\t\tassertTrue(addRegistrationDetails.getId() != 0l);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t}", "@Test\n void testGetRegistrarForUser_noAccess_isNotAdmin_notReal() {\n expectGetRegistrarFailure(\n OTE_CLIENT_ID_WITHOUT_CONTACT,\n USER,\n \"user [email protected] doesn't have access to registrar OteRegistrar\");\n verify(lazyGroupsConnection).get();\n }", "@Test\r\n\tpublic void testAddPregnancyRecord() {\r\n\t\t\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setMultiplicity(\"2\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setWeightGain(\"12.5\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setNumHoursInLabor(\"-1\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setNumWeeksPregnant(\"39\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\t\r\n\t\toic.setYearOfConception(\"a\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setYearOfConception(\"2005\");\r\n\t\toic.setDeliveryType(\"Vaginal Delivery\");\r\n\t\tAssert.assertTrue(oic.getDeliveryType().equals(\"Vaginal Delivery\"));\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\t\t\r\n\t\t\r\n\t\toic.setYearOfConception(\"101\");\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().isEmpty());\r\n\t\t\r\n\t\toic.setYearOfConception(\"2005\");\r\n\t\toic.setNumHoursInLabor(\"3\");\r\n\t\toic.addPregnancyRecord();\r\n\t\tAssert.assertFalse(oic.getDisplayedPregnancies().isEmpty());\r\n\t}", "@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Test\n\tpublic void validarPeticionRecuperarRegistroByIdVehiculo() {\n\t\t// Arrange\n\t\tString idVehiculo = \"2\";\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdVehiculo(\"2\").build();\n\t\tList<Registro> registros = new ArrayList<>();\n\t\tregistros.add(registro);\n\t\tMockito.when(registroRepository.findByidVehiculo(registro.getIdVehiculo())).thenReturn(registros);\n\t\t// Act\n\t\tList<Registro> registroRecuperado = registroService.getRegistrosByIdVehiculo(idVehiculo);\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", registroRecuperado.get(0).getIdVehiculo(), idVehiculo);\n\t}", "@Test\n public void testReservationFactoryEmpty() {\n ReservationController reservationController = reservationFactory.getReservationController();\n assertEquals(0, reservationController.getReservationList().size());\n }", "private void obtainProblem(){\n followers = frame.getFollowers();\n followers = Math.min(followers, CreatureFactory.getStrongestMonster().getFollowers() * Formation.MAX_MEMBERS);\n maxCreatures = frame.getMaxCreatures();\n heroes = frame.getHeroes();//is this field needed?\n prioritizedHeroes = frame.getHeroes(Priority.ALWAYS);\n //create boss formation\n LinkedList<Creature> list = new LinkedList<>();\n list.add(frame.getBoss());\n bossFormation = new Formation(list);\n containsRandomBoss = bossFormation.containsRandomHeroes();\n yourRunes = frame.getYourRunes();\n for (int i = 0; i < Formation.MAX_MEMBERS; i++){\n //System.out.println(yourRunes[i]);\n if (!(yourRunes[i] instanceof Nothing)){\n hasRunes = true;\n //System.out.println(\"hasRunes\");\n break;\n }\n }\n \n NHWBEasy = heroes.length == 0 && prioritizedHeroes.length == 0 && frame.getBoss().getMainSkill().WBNHEasy() && !hasRunes && !containsRandomBoss;\n \n }", "@Test\n\tpublic void testRespondible4(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n\tpublic void testLecturaNombre() {\n\t\tassertTrue(!esquemaReal.getNombrePatron().equals(\"\"));\n\t}", "@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\n void findVeichleByLicence() {\n\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n\n assertEquals(dieselCar, vr.findVeichleByLicence(dieselCar.getLicencePlateNumber()));\n\n assertNotEquals(dieselCar, vr.findVeichleByLicence(dieselCar2.getLicencePlateNumber()));\n\n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Test\r\n public void testVerificaPossibilidade0() {\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\r\n\t public void registerBaseCase() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t //this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017);\r\n\t \r\n\t }", "@Test\n public void shouldCreateEpiDataTravel() {\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataTravel(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(1));\n }", "@Test\n public void crearSinOrden(){\n WebDriverWait wait = new WebDriverWait(driver, 30);\n ingenieria.completarNombre(\"Prueba Automatizada\");\n ingenieria.crearProyecto();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"growlError_container\")));\n Assert.assertEquals(\"Debe seleccionar una Ingeniería\", driver.findElement(By.id(\"growlError_container\")).getText());\n }", "@Test\n\tpublic void testListReservationsOfFacilityNoMatch() {\n\t\t// create a reservation of another user\n\t\tdataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()), validStartDate, validEndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(infoBuilding.getId(),\n\t\t\t\tvalidStartDate, validEndDate);\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertTrue(reservationsOfFacility.isEmpty());\n\t}", "@Test\n public void nao_deve_aceitar_descricao_com_a_primeira_letra_minuscula() {\n telefone.setDescricao(\"celular empresarial.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "public boolean isForGenere();", "@Test\n public void checkFuelEnough() {\n Game.getInstance().getPlayer().setSolarSystems(SolarSystems.SOMEBI);\n Game.getInstance().getPlayer().setFuel(SolarSystems.SOMEBI.getDistance(SolarSystems.ADDAM) + 1);\n assertTrue(SolarSystems.SOMEBI.canTravel(SolarSystems.ADDAM));\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@SuppressWarnings(\"static-access\")\n\t@Test\n\tpublic void testRegistraEmpleado() throws Exception {\n\t\tString guid = uid.generateGUID(altaEmpleado);\n\t\ttry {\n\t\t\tdataEmpleado.registraEmpleado(altaEmpleado);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLogHandler.debug(guid, this.getClass(), \"Error\");\n\t\t}\n\t}", "@Test\n public void testSpecializationIsNull() {\n boolean expected = false;\n boolean actual = hospital.canAllocateDoctorToRoom(\n null, SurgeryRoomType.small);\n assertEquals(expected, actual);\n }", "boolean isSetSpecimen();", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_3_addExistDept() throws Exception {\n Department dept = new Department();\n dept.setName(d_1_1.getName());\n dept.setDescription(\"测试新增重复部门\");\n dept.setParent(d_1.getId());\n try {\n RequestBuilder request = post(\n \"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isConflict());\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(d_1.getId())\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n }", "@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n public void testGetNachrichtNeueProbe(){\n BenachrichtigungVerwaltung benachrichtigungVerwaltung = BenachrichtigungVerwaltung.getInstance();\n assertEquals(benachrichtigungVerwaltung.getNachrichtNeueProbe().size(), 0);\n\n Probe probe = new Probe(1, LocalDateTime.MAX, null, null, null, null, null);\n probe.setStatus(ProbenStatus.NEU);\n ProbenVerwaltung probenVerwaltung = ProbenVerwaltung.getInstance();\n probenVerwaltung.addProbe(probe);\n assertTrue(benachrichtigungVerwaltung.getNachrichtNeueProbe().contains(probe));\n }", "@Test\n public void nao_deve_aceitar_descricao_com_menos_de_15_caracteres() {\n telefone.setDescricao(random(35, true, false));\n assertFalse(isValid(telefone, \"A descrição não pode ter menos de 15 e mais de 30 caracteres.\", Find.class));\n }", "@Test\r\n public void CriterioTipoNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0); \r\n }", "@Test\n public void z_topDown_TC01() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "@Test\n public void nao_deve_aceitar_descricao_vazia() {\n telefone.setDescricao(EMPTY);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "@Test\n public void testPartieFinie() {\n Joueur NORD = new Joueur(\"NORD\");\n assertFalse(Regles.partieFinie(NORD));\n NORD.jeu.clear();\n for (int i = 0; i < NORD.getNbPioche();) {\n NORD.piocherCarte();\n NORD.jeu.clear();\n }\n assertTrue(Regles.partieFinie(NORD));\n }", "@Test(expected = PiezaVendidaException.class)\r\n\tpublic void reservarUnaPiezaVendida() {\r\n\t\tthis.pieza.reservar();\r\n\t\tthis.pieza.vender();\r\n\t\tthis.pieza.reservar();\r\n\t}", "public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void ensureCannotRemoveNonExisitingAllergenUnit() {\n\n System.out.println(\"Ensure Cannot remove an Allergen Unit Test\");\n\n Allergen allergen = new Allergen(\"al5\", \"allergen 5\");\n\n assertFalse(profile_unit.removeAllergen(allergen));\n\n }", "public boolean checkPlantCanHarvest() {\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\tif(l == 0){\n\t\t\treturn false;\n\t\t}\n\t\telse return true;\n\t}", "@Test\r\n public void CriterioUnidadNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }", "private boolean isPregnant() {\n return this.hasCapability(LifeStage.PREGNANT);\n }", "@Test\n public void nao_deve_aceitar_descricao_com_numeros() {\n telefone.setDescricao(random(10, true, true));\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "@Test\n public void deve_aceitar_descricao_entre_15_e_30_caracteres_valido() {\n telefone.setDescricao(random(20, true, false));\n assertTrue(isValid(telefone, telefone.getDescricao(), Find.class));\n }", "@Test\n void seeIfIsSensorListEmptyWorks() {\n\n boolean actualResult1 = validArea.isSensorListEmpty();\n\n // Assert With No Sensors\n\n assertTrue(actualResult1);\n\n // Arrange\n\n Sensor sensor = new Sensor(\"Sensor 1\", new TypeSensor(\"Temperature\", \"Celsius\"), new Date());\n validArea.addSensor(sensor);\n\n // Act\n\n boolean actualResult2 = validArea.isSensorListEmpty();\n\n // Assert\n\n assertFalse(actualResult2);\n }", "@Test\n\tpublic void lateHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfLateHires() == 1);\n\t}", "@Test\n\tpublic void validaPeticionSaveRegistro() {\n\t\t// Arrange\n\t\tRegistro registro = new RegistroTestDataBuilder().build();\n\t\tMockito.when(registroRepository.save(registro)).thenReturn(registro);\n\t\t// Act\n\t\tRegistro registroGuardado = new Registro();\n\t\tregistroGuardado = registroService.saveRegistro(registro);\n\t\t// Assert\n\t\tAssert.assertNotNull(registroGuardado);\n\t}", "@Test\n public void testIsCreatable()throws Exception{\n\n NormalDefender nd = new NormalDefender(new Position(0,0),\n generateLevel.getAttackersList());\n assertFalse(generateLevel.isCreatable(nd));\n }", "@Test\n @DisplayName(\"Test for add patient to patient arrayList if correct\")\n public void testAddPatientTrue(){\n assertEquals(\"test\",department.getPatients().get(0).getFirstName());\n assertEquals(\"test\",department.getPatients().get(0).getLastName());\n assertEquals(\"test\",department.getPatients().get(0).getPersonNumber());\n }", "@Test\n\t@DisplayName(\"combinacion == null || combinacionSecreta == null\") \n\tvoid combinacionNulaFacilTest(){ \n\t\tCombinacion combinacionFacil = null;\n\t\tCombinacion combinacionSecretaFacil = null;\n\t\t\n\t\tAssertions.assertThrows(NullPointerException.class, () -> {\n\t\t\tcombinacionFacil.calcularResultado(combinacionSecretaFacil);\n\t\t});\n\t}", "@Test\n\tpublic void validarPeticionGetIdRegistro() {\n\t\t// Arrange\n\t\tString idRegistro = \"1\";\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdRegistro(\"1\").build();\n\t\tMockito.when(registroRepository.findOne(registro.getIdVehiculo())).thenReturn(registro);\n\t\t// Act\n\t\tRegistro registroRecuperado = registroService.getRegistroById(idRegistro);\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", registroRecuperado.getIdRegistro(), idRegistro);\n\t}", "@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\n public void testRobustnessRegisterKyc(){\n for (int i = 0; i < 100; i++){\n UserRegisterKYC userRegisterKyc = new UserRegisterKYC(RandomInput.randomString(), RandomInput.randomString(), RandomInput.randomString(), RandomInput.randomString());\n int requestResponse = userRegisterKyc.sendRegisterRequest();\n assertFalse(requestResponse==200);\n }\n }", "@Test\n public void createStatisticsF03_TC2_valid() {\n try {\n Statistica statistica = appService.getStatistica();\n assertTrue(true);\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\") == 1);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n e.printStackTrace();\n }\n\n }", "@Test\n public void testGetNachrichtLoeschProbe(){\n BenachrichtigungVerwaltung benachrichtigungVerwaltung = BenachrichtigungVerwaltung.getInstance();\n assertEquals(benachrichtigungVerwaltung.getNachrichtLoeschProbe().size(), 0);\n\n Probe probe = new Probe(1, LocalDateTime.MAX, null, null, null, null, null);\n probe.setStatus(ProbenStatus.SOLL_VERNICHTET_WERDEN);\n ProbenVerwaltung probenVerwaltung = ProbenVerwaltung.getInstance();\n probenVerwaltung.addProbe(probe);\n assertTrue(benachrichtigungVerwaltung.getNachrichtLoeschProbe().contains(probe));\n }", "@Test\n public void testGetRegisterSize(){\n register.registerPatient(\"Mikke\",\"Mus\",\"24120012345\", \"Doctor Proctor\");\n register.registerPatient( \"Donald\", \"Duck\",\"16120012345\", \"Doctor Proctor\");\n assertEquals(2, register.getRegisterSize());\n }", "@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }", "@Test\n public void testRegisterExistingPatient(){\n register.registerPatient(\"Mikke\",\"Mus\",\"24120012345\", \"Doctor Proctor\");\n assertThrows(IllegalArgumentException.class,\n () -> { register.registerPatient(\"Donald\", \"Duck\", \"24120012345\", \"Doctor Proctor\") ;});\n assertEquals(1, register.getRegisterSize());\n }", "@Test\n public void testReservationFactory() {\n assertNotNull(reservationFactory);\n }", "@Test\r\n public void testVerificaPossibilidade9() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(250);\r\n usucapiao.setPrazo(2);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"possivel-agora\", result);\r\n }", "@Test\n\tpublic void testResponderEjercicio1(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tassertTrue(ej1.responderEjercicio(nacho, array));\n\t\tassertFalse(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n public void testRegisterSuccessfully() {\n SignUpRequest request = new SignUpRequest(UNIQUE, \"Secret\");\n\n dao.register(request);\n\n verify(controller).registered();\n }", "@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public void testValidateFieldsAdd() throws Exception {\n this.mSession = new PortalSessionTestFacade(new InstanceSelectorPlusDirectActionsTemplate());\n\n this.mSession.startFlow(\"start\");\n assertNotNull(this.mSession.getCurrentPage());\n assertNotNull(this.mSession.getCurrentPage());\n\n // emtpy required field Peroon.Naam and press add button\n this.mSession.handleButtonEvent(\"add\", new RequestTemplate(\"Persoon.Naam\", \"\"));\n assertNotNull(this.mSession.getCurrentPage());\n assertEquals(\"Persoon instance must be added\", 4,\n this.mSession.getProfile().getAllInstancesForEntity(\"Persoon\", false).length);\n }", "@Test\n public void validResturantByName() throws Exception {\n Logger.getGlobal().info(\"Start validResturantByName test\");\n ResponseEntity<Collection<Restaurant>> restaurants = restaurantController\n .findByName(RESTAURANT_NAME);\n Logger.getGlobal().info(\"In validAccount test\");\n\n Assert.assertEquals(HttpStatus.OK, restaurants.getStatusCode());\n Assert.assertTrue(restaurants.hasBody());\n Assert.assertNotNull(restaurants.getBody());\n Assert.assertFalse(restaurants.getBody().isEmpty());\n Restaurant restaurant = (Restaurant) restaurants.getBody().toArray()[0];\n Assert.assertEquals(RESTAURANT, restaurant.getId());\n Assert.assertEquals(RESTAURANT_NAME, restaurant.getName());\n Logger.getGlobal().info(\"End validResturantByName test\");\n }", "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}", "@Test\n\tpublic void testJoueurExisteDansEquipe() {\n\t\tclub.creerEquipe();\n\t\tclub.remplissageJoueurJoueur(club.getEquipe().get(0), club.getEquipe().get(1), club);\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(0).getJoueur().get(0));\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(1).getJoueur().get(1));\n\t}", "public static boolean testGuset() {\n // Reset the guest index\n Guest.resetNextGuestIndex();\n // Create two new guests, one is with a dietary restriction\n Guest shihan = new Guest();\n Guest cheng = new Guest(\"no milk\");\n\n // Check the guest's information\n if (!shihan.toString().equals(\"#1\")) {\n System.out.println(\"Return value is \" + shihan.toString());\n return false;\n }\n // Check if the dietary restriction implement\n if (cheng.hasDietaryRestriction() != true) {\n return false;\n }\n if (!cheng.toString().equals(\"#2(no milk)\")) {\n System.out.println(\"Return value is \" + cheng.toString());\n return false;\n }\n // Reset the guest index again\n Guest.resetNextGuestIndex();\n // Create two new guests again, the index should be 1 and 2\n Guest ruoxi = new Guest();\n Guest shen = new Guest(\"no cookie\");\n // Check the new guests' information with new indices\n if (!ruoxi.toString().equals(\"#1\")) {\n System.out.println(\"Return value is \" + ruoxi.toString());\n return false;\n }\n if (!shen.toString().equals(\"#2(no cookie)\")) {\n System.out.println(\"Return value is \" + shen.toString());\n return false;\n }\n // Reset the guest index for next time or other classes' call\n Guest.resetNextGuestIndex();\n // No bug, return true\n return true;\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test\n public void test2IsCreatable()throws Exception{\n\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertTrue(generateLevel.isCreatable(nd));\n }", "@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "@Test\n\tvoid testAddPlant() {\n\t\tPlant plant = service.addPlant(new Plant(9.0, \"Hibiscus\", \"Skin Benefits\", 22.0, 8, 330.0, \"Shurbs\"));\n\t\tassertEquals(\"Hibiscus\", plant.getName());\n\n\t}", "@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n public void nao_deve_aceitar_descricao_com_mais_de_30_caracteres() {\n telefone.setDescricao(random(35, true, false));\n assertFalse(isValid(telefone, \"A descrição não pode ter menos de 15 e mais de 30 caracteres.\", Find.class));\n }", "@Test\r\n\tpublic void teachingUnitContainsPersons() {\r\n\t\tassertTrue(teachu1.containsPerson(\"ErK\"));\r\n\t\tassertTrue(teachu1.containsPerson(\"AlP\"));\r\n\t\tassertFalse(teachu1.containsPerson(\"MaP\"));\r\n\t}", "@Test \r\n\tpublic void testSingleRegTransform() throws Exception {\r\n\t\t//String id = \"pt2d7\"; //live api example\r\n\t\tString id = \"h48cy\";\r\n\t\tString[] args = {\"osf_registration\",\"-id\",id, \"-o\", \"testOneReg/\"};\r\n\t\tRMapTransformerCLI.main(args);\r\n\t\t//check output files\r\n\t\tInteger numfiles = new File(\"testOneReg\").list().length;\r\n\t\tassertTrue(numfiles.equals(1)); //one root Public Project, one partial\r\n\t}", "@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_1_addFirstLevelDept() throws Exception {\n Department dept = new Department();\n dept.setName(\"testadddept\");\n dept.setDescription(\"测试新增一级部门\");\n dept.setCompany(c_1.getId());\n try {\n RequestBuilder request = post(\"/api/v1.0/companies/\"+c_1.getId().toString()+\"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.id\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString()\n )))\n .andExpect(jsonPath(\"$.name\",is(dept.getName())))\n .andExpect(jsonPath(\"$.description\",is(dept.getDescription())))\n .andExpect(jsonPath(\"$.company\",is(c_1.getId().toString())))\n .andExpect(jsonPath(\"$.parent\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .build().toString()\n )));\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n\n }", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "@Test\n\tpublic void nuevoTest() {\n\t\tFactura resultadoObtenido = sut.nuevo(facturaSinId);\n\t\t//resuladoObtenido es unicamente dependiente de nuestro algoritmo\n\t\t\n\t\t//Validar\n\t\tassertEquals(facturaConId.getId(), resultadoObtenido.getId());\n\t\t\n\t}" ]
[ "0.62858766", "0.6258031", "0.62562567", "0.62147105", "0.62102646", "0.617771", "0.61020625", "0.6066544", "0.6050932", "0.6026392", "0.6002325", "0.5973324", "0.5955133", "0.5906909", "0.58954936", "0.58723515", "0.58394164", "0.58238107", "0.579555", "0.57669586", "0.5763128", "0.57533276", "0.5749987", "0.5741232", "0.5727596", "0.57152814", "0.5687452", "0.5685119", "0.568401", "0.5678505", "0.56667536", "0.5651937", "0.5651359", "0.5645249", "0.5626331", "0.56254107", "0.56122005", "0.560922", "0.56069034", "0.5600974", "0.5600386", "0.55987704", "0.55987704", "0.55986637", "0.5586099", "0.55852747", "0.5584025", "0.55818856", "0.5577663", "0.5577443", "0.5575007", "0.5563808", "0.5555288", "0.55550927", "0.5542121", "0.5532772", "0.5532606", "0.5530364", "0.55290526", "0.5528327", "0.55271274", "0.55266243", "0.55199116", "0.55180115", "0.5516193", "0.5511671", "0.5509366", "0.55049056", "0.5497904", "0.54964", "0.5492371", "0.54907465", "0.54627156", "0.5460961", "0.5458303", "0.54577994", "0.54575413", "0.54562664", "0.54536647", "0.5448719", "0.5447596", "0.54455847", "0.5442361", "0.5440332", "0.5438131", "0.543438", "0.5433326", "0.5431917", "0.542927", "0.54270065", "0.54266095", "0.54228204", "0.54213417", "0.5420273", "0.5414069", "0.5408814", "0.5406162", "0.5405904", "0.54042983", "0.5403801", "0.54024935" ]
0.0
-1
lista todas las plantas por aprovacion
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasAprovadasFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class); query.setParameter("aprovacion", 1); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }", "public void mostrarDisponibles(ArrayList<parqueo> parking){\n try {\n System.out.println(\"Espacios Disponibles: \");//Recorremos la base de datos y vamos imprimiendo solo los que esten disponibles\n for (int num = 0; num < parking.size(); num++){\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n }\n }\n System.out.println(\"---------------------------------\");\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error en la impresion de los parqueos disponibles\");\n }\n }", "public java.util.List<PlanoSaude> findAll();", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\n\t}", "List<Plaza> consultarPlazas();", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public void mostrarPiezas() {\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"/piezas/pieza\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\twhile(i.hasMoreResources()) {\n\t\t\t\tSystem.out.println(i.nextResource().getContent());\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "public List<Vendedor> listarVendedor();", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public List<Tripulante> obtenerTripulantes();", "public List<PlanPrepago> mostrarPlanesPre()\n\t{\n\t\tString r = new String();\n\t\t\n\t\tPlan p;\n\t\tif (planes != null)\n\t\t{\n\t\t\tr = r.concat(\"#PLANES PREPAGO\\n\" + \"#Nombre ------ ValorMinuto\\n\");\n\t\t\tListIterator<Plan> it = planes.listIterator(0);\n\t\t\tList<PlanPrepago> li = new ArrayList<PlanPrepago>();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tp = it.next();\n\t\t\t\tif(p instanceof PlanPrepago)\n\t\t\t\t\tli.add((PlanPrepago)p);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(li, new CompararNombresPlan());\n\t\t\treturn li;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public Collection getListaPartidosEleicaoVotos(){\n return this.eleicaoDB.getListaPartidosEleicaoVotos();\n }", "public ListaPlantilla getPlantilla() throws MalformedURLException, IOException, JAXBException {\n //DEBEMOS INDICAR EL METODO DONDE LEEMOS\n String request = \"api/plantilla\";\n return this.getRequestPlantilla(request);\n }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "private void cargarProvincias() {\n ArrayList<Provincia> provincias = new ArrayList<>();\n try {\n provincias = new Provincia().listarProvincias();\n if (!provincias.isEmpty()) {\n for (int i = 0; i < provincias.size(); i++) {\n ProvinciasjComboBox.addItem(provincias.get(i).getNombreProvincia());\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al cargar las provincias\");\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "protected void cargarOfertas(List<ViajeCabecera> listaViajes){\n\n\t\tpanelOfertas.removeAll();\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tfor (ViajeCabecera viaje : listaViajes) {\t\t\n\t\t\tagregarPanelOferta(viaje, i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t}", "public void mostrarReservas() {\n\t\tint numReserva=1;\r\n\t\tfor(Reserva reserva:reservas) {\r\n\t\t\tSystem.out.println(numReserva+\" \"+reserva.toString());\r\n\t\t\tnumReserva++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "List<TipoHuella> listarTipoHuellas();", "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 }", "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<PlanTrabajo> generarPlanesTrabajo( Date fecPrgn, \n\t\t\tList<Cuadrilla> cuadrillas,Map<Long, GrupoAtencion> mpGrupos, \n\t\t\tMap<Long, Long> asignaciones ){\n\t\t\n\t\t\tList<PlanTrabajo> planTrabajoList = new ArrayList<PlanTrabajo>();\n\t\t\tSet<Long> grupos = asignaciones.keySet();\t\n\t\t\tlong np = 1;\n\t\t\tfor (Long ngrupo : grupos) {\n\t\t\t\t Long ncuadrilla = asignaciones.get(ngrupo);\n\t\t\t\t GrupoAtencion grupoAtencion = mpGrupos.get(ngrupo);\n\t\t\t\t //GrupoAtencion grupoAtencion = asignar(cuadrilla, idx, mpGruposCached);\n\t\t\t\t PlanTrabajo planTrabajo = new PlanTrabajo(np);\n\t\t\t\t int nsp = 1;\n\t\t\t\t planTrabajo.setFechaProgramacion(new Timestamp(fecPrgn.getTime()));\n\t\t\t\t int i = cuadrillas.indexOf( new Cuadrilla(ncuadrilla));\n\t\t\t\t if(i!=-1){\n\t\t\t\t\t \n\t\t\t\t\t Cuadrilla cuadrilla = cuadrillas.get(i);\n\t\t\t\t\t planTrabajo.setCuadrilla(cuadrilla);\n\t\t\t\t\t planTrabajo.setGrupoAtencion(grupoAtencion);\n\t\t\t\t\t \n\t\t\t\t\t if(grupoAtencion!=null){\n\t\t\t\t\t\t for( GrupoAtencionDetalle d : grupoAtencion.getGrupoAtencionDetalles()){\n\t\t\t\t\t\t\t // añadiendo las solicitudes de servicio\t\n\t\t\t\t\t\t\t SolicitudServicio s = d.getSolicitudServicio();\n\t\t\t\t\t\t\t //System.out.println(\" #### añadiendo solicitud \"+s.getNumeroSolicitud());\n\t\t\t\t\t\t\t if(planTrabajo.getPlanTrabajoDetalles()==null){\n\t\t\t\t\t\t\t\t planTrabajo.setPlanTrabajoDetalles(new ArrayList<PlanTrabajoDetalle>());\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t PlanTrabajoDetalle pd = new PlanTrabajoDetalle(np, nsp);\n\t\t\t\t\t\t\t pd.setSolicitudServicio(s);\n\t\t\t\t\t\t\t //planTrabajo.addPlanTrabajoDetalle( new PlanTrabajoDetalle(s));;\n\t\t\t\t\t\t\t planTrabajo.addPlanTrabajoDetalle(pd);\n\t\t\t\t\t\t\t nsp++;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t planTrabajoList.add(planTrabajo);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t np++;\n\t\t\t}\n\t\t\t\n\t\treturn planTrabajoList;\n\t}", "@Override\n public List<Programador> list() {\n return memoryDataBank;//To change body of generated methods, choose Tools | Templates.\n }", "public List<vacante> cargarvacante() {\n\t\treturn vacantesrepo.findAll();\n\t}", "public void mostrarLista(String tipo, String encabezado){\n System.out.println(\"\\n\" /*+ \"Departamento de \"*/ + tipo.concat(\"s\") + \"\\n\" + encabezado);\n for (Producto i: productos){\n if (tipo.compareToIgnoreCase(i.tipo) == 0)\n System.out.println(i);\n }\n }", "List<Videogioco> retriveByGenere(String genere);", "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }", "@Override\n\tpublic List<Veiculo> listar() {\n\t\treturn null;\n\t}", "public java.util.List<viaggi.Pacchetto> getPacchetti();", "@GetMapping\n\tpublic ResponseEntity<List<Plato>> listarPlatos(){\t\t\n\t\tList<Plato> platos = miServicioPlatos.listarPlatos();\n\t\t\n\t\t// No hay platos\n if(platos.size() <= 0){\n return ResponseEntity.noContent().build();\n } \n \n return ResponseEntity.ok(platos);\n\t}", "Collection<GestionPrecioDTO> findCampaniasPendientes() ;", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "public List<Produto> listar() {\n return manager.createQuery(\"select distinct (p) from Produto p\", Produto.class).getResultList();\n }", "public abstract java.util.Collection getTecnico_peticion();", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "public Collection<Proyecto> leerProyectosCollection() {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto[] proyecto = plantilla.getForObject(\"http://localhost:5000/proyectos\", Proyecto[].class);\n\t\t\tList<Proyecto> listaProyectos = Arrays.asList(proyecto);\n\t\t\treturn listaProyectos;\n\t\t}", "List<Vehiculo>listar();", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "public static void visualizarTodasLasPiezas(Monton todas){\n \n System.out.println(\"\\nVisualizando todas las piezas: \");\n System.out.println(todas.toString());\n }", "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "public static void listarDepartamentos() {\n\t\tList<Dept> departamento;\n\t\tSystem.out.println(\"\\nListamis todos los Departamentos\");\n\t\tdepartamento= de.obtenListaDept();\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"Deptno\", \"Dname\", \"Loc\");\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"__________\", \"__________\", \"__________\");\n\t\tfor(Dept e : departamento) {\n\t\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\", e.getDeptno(), e.getDname(), e.getLoc());\n\t\t}\n\t\t\n\t}", "public void mostrarTareas(){\n System.out.println(\"Tareas existentes:\");\n System.out.println(tareas);\n }", "public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno()+ \" DIRECCION: \"+ \n ps.getDireccion()+ \" SEXO: \"+ ps.getSexo());\n }\n }", "public void trancribirPistas() {\r\n\t\t\r\n\t\tfor (int x = 0; x<manejadorArchivos.getPistas().size();x++) {\r\n\t\t\t\r\n\t\t\tpistas.add(manejadorArchivos.getPistas().get(x));\t\r\n\t\t}\r\n\t}", "@GetMapping (path=\"peliculas\",produces= {MediaType.APPLICATION_JSON_VALUE})\n\t//1.-mapeo de recursos a url 2.- verbo 3.- multiples representaciones \n\tpublic ResponseEntity<List<Pelicula>> listarPeliculas() {\n\t\tList<Pelicula> lista = daoPelicula.findAll();\n\t\tResponseEntity<List<Pelicula>> re = new ResponseEntity<>(lista,HttpStatus.OK);\n\t\t//4.-basado codigos de respuesta, si el recurso exite le devolvemos el ok un 200\n\t\treturn re;\n\t\t//5.-uso de cabeceras\n\t}", "public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }", "List<PilotContainer> getPilots();", "private static void mostrarRegiones (List<Regions> list)\n\t{\n\t\tIterator<Regions> it = list.iterator();\n\t\tRegions rg;\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\trg = it.next();\n\t\t\tSystem.out.println(rg.getRegionName() + \" \" +rg.getRegionId());\n\t\t\tSet<Countries> paises = rg.getCountrieses();\n\t\t\tSystem.out.println(\"PAISES\");\n\t\t\tIterator<Countries> it_paises = paises.iterator();\n\t\t\t\n\t\t\twhile (it_paises.hasNext())\n\t\t\t{\n\t\t\t\tCountries country = it_paises.next();\n\t\t\t\tSystem.out.println(country.getCountryName());\n\t\t\t}\n\t\t}\n\t}", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "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 }", "public void listarHospedes() {\n System.out.println(\"Hospedes: \\n\");\n if (hospedesCadastrados.isEmpty()) {\n// String esta = hospedesCadastrados.toString();\n// System.out.println(esta);\n System.err.println(\"Não existem hospedes cadastrados\");\n } else {\n String esta = hospedesCadastrados.toString();\n System.out.println(esta);\n // System.out.println(Arrays.toString(hospedesCadastrados.toArray()));\n }\n\n }", "private void listarDepartamentos() {\r\n\t\tdepartamentos = departamentoEJB.listarDepartamentos();\r\n\t}", "public List<SelectItem> getlistEstados() {\n\t\tList<SelectItem> lista = new ArrayList<SelectItem>();\n\t\tlista.add(new SelectItem(Funciones.estadoActivo, Funciones.estadoActivo\n\t\t\t\t+ \" : \" + Funciones.valorEstadoActivo));\n\t\tlista.add(new SelectItem(Funciones.estadoInactivo,\n\t\t\t\tFunciones.estadoInactivo + \" : \"\n\t\t\t\t\t\t+ Funciones.valorEstadoInactivo));\n\t\treturn lista;\n\t}", "private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }", "private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}", "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 List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "private void cargarNotasAclaratorias() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"tipo\", INotas.NOTAS_ACLARATORIAS);\r\n\t\ttabboxContendor\r\n\t\t\t\t.abrirPaginaTabDemanda(false, \"/pages/nota_aclaratoria.zul\",\r\n\t\t\t\t\t\t\"NOTAS ACLARATORIAS\", parametros);\r\n\t}", "public ArrayList getStages();", "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<VoziloDto> sveVozila();", "public void marcarTodos() {\r\n\t\tfor (int i = 0; i < listaPlantaCargoDto.size(); i++) {\r\n\t\t\tPlantaCargoDetDTO p = new PlantaCargoDetDTO();\r\n\t\t\tp = listaPlantaCargoDto.get(i);\r\n\t\t\tif (!obtenerCategoria(p.getPlantaCargoDet())\r\n\t\t\t\t\t.equals(\"Sin Categoria\"))\r\n\t\t\t\tp.setReservar(true);\r\n\t\t\tlistaPlantaCargoDto.set(i, p);\r\n\t\t}\r\n\t\tcantReservados = listaPlantaCargoDto.size();\r\n\t}", "List<Oficios> buscarActivas();", "List<Videogioco> findAllVideogioco();", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}", "public void cadastrar(Jogo j, EstatisticasGenero g, EstatisticasPlataforma p) {\n\t\tboolean plataforma = plataforma();\n\t\tif(validar() == true)\n\t\t\tif(plataforma == true) {\n\t\t\t\tDados.arrayJogos.add(j);\n\t\t\t\tcadastrarEstatisticaGenero(g.getGeneroJogo());\n\t\t\t\tcadastrarEstatisticaPlataforma(p.getPlataformaJogo());\n\t\t\t}\n\t}", "List<Alimento> getAlimentos();", "List<Property> givePropList(Kingdom kingdom) throws Exception;", "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 cargarOfertas() {\r\n\t\tcoi.clearOfertas();\r\n\t\tController c = gui.getController();\r\n\t\tList<Integer> ofertas = c.ofertanteGetMisOfertas();\r\n\t\tfor (Integer id : ofertas) {\r\n\t\t\tString estado = c.ofertaGetEstado(id);\r\n\t\t\tif (estado.equals(GuiConstants.ESTADO_ACEPTADA) || estado.equals(GuiConstants.ESTADO_CONTRATADA)\r\n\t\t\t\t\t|| estado.equals(GuiConstants.ESTADO_RESERVADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addActiva(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_PENDIENTE) || estado.equals(GuiConstants.ESTADO_PENDIENTE)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOfertaEditable(gui, id);\r\n\t\t\t\tcoi.addPendiente(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_RETIRADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addRechazada(oferta);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcoi.repaint();\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tscrollPane.getHorizontalScrollBar().setValue(0);\r\n\t\t\t\tscrollPane.getVerticalScrollBar().setValue(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }", "public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }", "List<ParqueaderoEntidad> listar();", "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<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "public List<SelectItem> getListaNivelDimensionContable()\r\n/* 212: */ {\r\n/* 213:252 */ return getNivelDimension(getDimensionPresupuesto());\r\n/* 214: */ }", "private List<NamePartView> namePartViewList(TreeNode namePartStructure){\n\t\tList<NamePartView> namePartViews=Lists.newArrayList();\n for(TreeNode node: treeNodeManager.filteredNodeList(namePartStructure,true, false)){\n \tNamePartView namePartView =node.getData() instanceof NamePartView ? (NamePartView) node.getData() :null;\n \tNamePart namePart =namePartView!=null? namePartView.getNamePart():null;\n \tif(namePart!=null && (devicesBySection.containsKey(namePart)||devicesByDeviceType.containsKey(namePart))){\n \t\tnamePartViews.add(namePartView);\n \t}\n }\n return namePartViews;\n\t}", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "public List<ReservaEntity> getReservas() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ReservaEntity> reservas = persistence.findAllReservas();\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las reservas\");\n return reservas;\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 }", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }" ]
[ "0.66150105", "0.6123597", "0.6099912", "0.6091807", "0.60671663", "0.604585", "0.604501", "0.6035578", "0.6018041", "0.6003796", "0.5994849", "0.5938762", "0.59293103", "0.59286326", "0.59164345", "0.59145015", "0.5892132", "0.58758", "0.5872487", "0.58618563", "0.5837869", "0.5822352", "0.5808284", "0.5770675", "0.576378", "0.5763598", "0.5761099", "0.5740835", "0.57242745", "0.57240856", "0.5721087", "0.57202274", "0.5719793", "0.5712066", "0.57055545", "0.570454", "0.5689355", "0.5680837", "0.56633806", "0.56567174", "0.56554973", "0.5652803", "0.5650044", "0.5642852", "0.56411004", "0.5639265", "0.5638349", "0.56382596", "0.5635644", "0.56273705", "0.5619521", "0.5616297", "0.56003165", "0.5598803", "0.55957", "0.5588906", "0.5586351", "0.55861086", "0.55808556", "0.55793417", "0.5578642", "0.5573158", "0.55655324", "0.55480003", "0.55450046", "0.5543634", "0.55433273", "0.5540023", "0.5538762", "0.5536592", "0.5524142", "0.55183655", "0.55181026", "0.5516753", "0.5506673", "0.5503475", "0.5502541", "0.5499505", "0.54958177", "0.54916644", "0.5491192", "0.54910636", "0.549011", "0.5488505", "0.5486494", "0.548381", "0.5477342", "0.5473378", "0.54706025", "0.547018", "0.54658073", "0.5463468", "0.5457232", "0.54571176", "0.54530174", "0.54498756", "0.54450184", "0.54447436", "0.54390633", "0.54372" ]
0.6268782
1
lista todas las plantas por familia
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasPorFamiliaFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class); query.setParameter("familia", "telepiatos"); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "List<Videogioco> retriveByGenere(String genere);", "List<TipoHuella> listarTipoHuellas();", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "public List<Mobibus> darMobibus();", "public ListaPlantilla getPlantilla() throws MalformedURLException, IOException, JAXBException {\n //DEBEMOS INDICAR EL METODO DONDE LEEMOS\n String request = \"api/plantilla\";\n return this.getRequestPlantilla(request);\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public abstract List<Patient> getAllPatientNode();", "private static void mostrarRegiones (List<Regions> list)\n\t{\n\t\tIterator<Regions> it = list.iterator();\n\t\tRegions rg;\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\trg = it.next();\n\t\t\tSystem.out.println(rg.getRegionName() + \" \" +rg.getRegionId());\n\t\t\tSet<Countries> paises = rg.getCountrieses();\n\t\t\tSystem.out.println(\"PAISES\");\n\t\t\tIterator<Countries> it_paises = paises.iterator();\n\t\t\t\n\t\t\twhile (it_paises.hasNext())\n\t\t\t{\n\t\t\t\tCountries country = it_paises.next();\n\t\t\t\tSystem.out.println(country.getCountryName());\n\t\t\t}\n\t\t}\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\t}", "public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno()+ \" DIRECCION: \"+ \n ps.getDireccion()+ \" SEXO: \"+ ps.getSexo());\n }\n }", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public static String listFather() {\n\t\tString s = \"\";\n\t\tString i1 = \" \";\n\t\tfor (Entry<String, TreeMap<String, Set<String>>> en:getFatherMap().entrySet()) {\n\t\t\ts = s + en.getKey() + \":\\n\";\n\t\t\tTreeMap<String, Set<String>> fathers = en.getValue();\n\t\t\tfor (Entry<String, Set<String>> father:fathers.entrySet()) {\n\t\t\t\ts = s + i1 + father.getKey() + \" ( \";\n\t\t\t\tfor (String root:father.getValue()) {\n\t\t\t\t\ts = s + root + \" \";\n\t\t\t\t}\n\t\t\t\ts = s + \")\\n\";\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}", "@Override\n\tpublic List<Veiculo> listar() {\n\t\treturn null;\n\t}", "public java.util.List<PlanoSaude> findAll();", "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 NavigableSet<Groupe> getGroupes();", "public void listarMunicipios() {\r\n\t\tmunicipios = departamentoEJB.listarMunicipiosDepartamento(deptoSeleccionado);\r\n\t}", "List<Especialidad> getEspecialidades();", "public String getListaGrupos () {\n String nomesGruposList = \"\";\n if(this.conversas != null && this.conversas.size() > 0){\n for(int i = 0; i < this.conversas.size(); i++){\n //nomesGruposList += conversas.get(i).nomeGrupo + \" \";\n }\n }\n return nomesGruposList;\n }", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }", "@Override\n\tpublic List<FicheSante> listFicheSante() {\n\t\treturn daofichesante.listFicheSante();\n\t}", "public ResponseEntity<List<GrupoDS>> buscarGrupos() {\n \tList<GrupoDS> lista = new ArrayList<>();\n \tfor (GrupoModel model : grupoRepository.findAll()) {\n \t\tlista.add(new GrupoDS(model));\n \t}\n return new ResponseEntity<List<GrupoDS>>(lista, HttpStatus.OK);\n }", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasAprovadasFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class);\n\t\tquery.setParameter(\"aprovacion\", 1);\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "public void mostrarPiezas() {\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"/piezas/pieza\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\twhile(i.hasMoreResources()) {\n\t\t\t\tSystem.out.println(i.nextResource().getContent());\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic List<Nature> listNaturess() {\n\t\treturn natureRepository.findAll();\n\t}", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "public static void main(String[] args) throws IOException, IllegalAccessException, ClassNotFoundException, InstantiationException, SQLException, Exception {\n \n GestionFamiliaProducto gm=new GestionFamiliaProducto();\n ArrayList<FamiliaProducto> lista=gm.listar();\n \n for (int i = 0; i < lista.size(); i++) {\n System.out.println(\"Ro: \"+lista.get(i).getN_idfamilia());\n }\n \n }", "public abstract List<Organism> getOrganisms();", "private static Set<TipoLinkPartita> initModel() {\n\n Set<TipoLinkPartita> partite = new HashSet<TipoLinkPartita>();\n\n Squadra verdi = new Squadra(\"Verdi\");\n Squadra rossi = new Squadra(\"Rossi\");\n Squadra gialli = new Squadra(\"Gialli\");\n Squadra blu = new Squadra(\"Blu\");\n\n try {\n\n TipoLinkPartita p = new TipoLinkPartita(verdi, 2, rossi, 0);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(verdi, 3, blu, 1);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(blu, 2, rossi, 0);\n blu.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(gialli, 1, rossi, 3);\n rossi.inserisciLinkPartita(p);\n partite.add(p);\n\n } catch (EccezionePrecondizioni e) {\n e.printStackTrace();\n }\n\n // Crea ed aggiunge giocatori alle squadre\n // eta' casuale tra 1970 e 1980\n // (Math.random() resituisce un double casuale tra 0.0 e 1.0)\n for (int i = 0; i < 20; i++) {\n\n Giocatore g = new Giocatore(\"verde-\" + i, 1970 + (int) (10 * Math.random()));\n verdi.insericiLinkGioca(g);\n\n g = new Giocatore(\"rosso-\" + i, 1970 + (int) (10 * Math.random()));\n rossi.insericiLinkGioca(g);\n\n g = new Giocatore(\"giallo-\" + i, 1970 + (int) (10 * Math.random()));\n gialli.insericiLinkGioca(g);\n\n g = new Giocatore(\"blu-\" + i, 1970 + (int) (10 * Math.random()));\n blu.insericiLinkGioca(g);\n }\n\n return partite;\n }", "public List<Plant> initPlantList(final FieldPlant species)\n {\n final List<Plant> plantList = new ArrayList<>();\n\n if( species == FieldPlant.MORE )\n {\n final int randomCount = new Random().nextInt(25) + 25;\n for( int i = 0; i < randomCount; i++ )\n {\n plantList.add(new More(new Random().nextFloat() * 70));\n }\n }\n else if( species == FieldPlant.WHEAT )\n {\n final int randomCount = new Random().nextInt(25) + 25;\n for( int i = 0; i < randomCount; i++ )\n {\n plantList.add(new Wheat(new Random().nextFloat() * 70));\n }\n }\n else\n {\n LOG.warn(\"unauthorized entry - no data passed on\");\n }\n\n return plantList;\n }", "@GetMapping (path=\"peliculas\",produces= {MediaType.APPLICATION_JSON_VALUE})\n\t//1.-mapeo de recursos a url 2.- verbo 3.- multiples representaciones \n\tpublic ResponseEntity<List<Pelicula>> listarPeliculas() {\n\t\tList<Pelicula> lista = daoPelicula.findAll();\n\t\tResponseEntity<List<Pelicula>> re = new ResponseEntity<>(lista,HttpStatus.OK);\n\t\t//4.-basado codigos de respuesta, si el recurso exite le devolvemos el ok un 200\n\t\treturn re;\n\t\t//5.-uso de cabeceras\n\t}", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "private List<RhFuncionario> getFuncionariosMedicos()\n {\n System.out.println(\"supiEscalaFacade.findMedicos():\"+supiEscalaFacade.findMedicos());\n return supiEscalaFacade.findMedicos();\n }", "public void llenarListas(PaseoEntity entity) {\r\n ofertas = new ArrayList<OfertaDTO>();\r\n List<OfertaEntity> ofertasEntities = entity.getOfertas();\r\n if (ofertasEntities == null) {\r\n return;\r\n }\r\n for (OfertaEntity of : ofertasEntities) {\r\n ofertas.add(new OfertaDTO(of));\r\n }\r\n fotos = new ArrayList<FotoDTO>();\r\n if (entity.getOfertas() == null || entity.getOfertas().isEmpty() || entity.getOfertas().get(0) == null) {\r\n return;\r\n }\r\n if (entity.getOfertas().get(0).getVisitas() == null || entity.getOfertas().get(0).getVisitas().isEmpty()) {\r\n\r\n return;\r\n }\r\n List<FotoEntity> lista = entity.getOfertas().get(0).getVisitas().get(0).getFotos();\r\n if (lista != null) {\r\n\r\n for (FotoEntity fotoEntity : lista) {\r\n fotos.add(new FotoDTO(fotoEntity));\r\n }\r\n }\r\n }", "List<Videogioco> findAllVideogioco();", "public List<Familia> obterFamilia(String xml, String tipoConsulta) {\n\n\t\t\n\t\t\n\t\tList<Familia> familias = new ArrayList<Familia>();\n\n\t\ttry {\n\n\t\t\tDocument xmlDoc = loadXMLFrom(xml);\n\t\t\tElement root = xmlDoc.getDocumentElement();\n\n\t\t\tNodeList patentFamilyPai = root.getElementsByTagName(\"ops:family-member\");\n\n\t\t\tNodeList nodePublicationReference = root.getElementsByTagName(\"ops:publication-reference\");\n\t\t\tElement publicationReference = (Element) nodePublicationReference.item(0);\n\n\t\t\tif (\"ops:publication-reference\".equals(publicationReference.getNodeName())) {\n\n\t\t\t\tthis.obterPublicationReferencePai(publicationReference);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < patentFamilyPai.getLength(); i++) {\n\n\t\t\t\tElement element = (Element) patentFamilyPai.item(i);\n\t\t\t\tString nomeElemento = element.getNodeName();\n\t\t\t\tif (\"ops:family-member\".equals(nomeElemento)) {\n\t\t\t\t\tFamilia familia = this.obterFamilia(element, tipoConsulta);\n\t\t\t\t\tfamilias.add(familia);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tFacesMessage facesMessage = createMessage(FacesMessage.SEVERITY_WARN, \"Erro na solicitação do serviço!\", \"Erro !\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, facesMessage);\n\t\t}\n\t\treturn familias;\n\t}", "public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}", "public List<Prevision> getListTipoPrevisionByFK(Integer Aux);", "public abstract java.util.Collection getTecnico_peticion();", "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 }", "@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}", "@GetMapping(value = \"/semanario/buscar-por-dia/{nitrest}\")\n\tpublic ResponseEntity<List<Plato>> buscarPlatosPorDia(@PathVariable(\"nitrest\") String nit, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t @RequestParam(name = \"dia\", required = false) String dia,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t @RequestParam(name = \"categoria\", required = false) String categoria){\n\t\t\n\t\t//si dia es nulo, devuelve del dia de hoy\n\t\t//si categiria es nulo, devuelve todas las categorias\n\t\t\n\t\tList<Plato> platos = miServicioPlatos.buscarPlatosPorDia(nit, dia, categoria);\n\t\t\n\t\tSystem.out.println(\"\\n\" + platos + \"\\n\");\n\t\t\n\t\t//No se encontraron platos\n\t\tif(platos == null){\n return ResponseEntity.noContent().build();\n } \t\t\n\t\tif(platos.size() <= 0){\n return ResponseEntity.noContent().build();\n } \n\t\t\n\t\t\t\t\n\t\treturn ResponseEntity.ok(platos);\n\t}", "public static List<Fattura> tutteLeFatture() {\n\t\tEntityManager em = JPAUtil.getInstance().getEmf().createEntityManager();\n\t\tList<Fattura> _return = em.createQuery(\"SELECT f FROM Fattura f\", Fattura.class).getResultList();\n\t\tem.close();\n\t\treturn _return;\n\t}", "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 List<Tripulante> obtenerTripulantes();", "@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }", "public List<Filme> listar() {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery consulta = gerenciador.createQuery(\r\n \"Select f from Filme f\", Filme.class);\r\n\r\n //Retornar a lista de atores\r\n return consulta.getResultList();\r\n\r\n }", "@GetMapping(\"/familles\")\n public List<FamilleDTO> getAllFamilles() {\n log.debug(\"REST request to get all Familles\");\n return familleService.findAll();\n }", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\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 }", "public List<String> platsAvecFilm(String film) {\n\n List<String> factures = nomsFactures();\n List<String> plats = new ArrayList<String>();\n\n for (String facture : factures) {\n List<String> platsFacture = getPlatsFromFacture(film, facture);\n for (String plat : platsFacture) {\n plats.add(plat);\n }\n\n }\n\n return plats;\n }", "List<Vehiculo>listar();", "public static void listarDepartamentos() {\n\t\tList<Dept> departamento;\n\t\tSystem.out.println(\"\\nListamis todos los Departamentos\");\n\t\tdepartamento= de.obtenListaDept();\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"Deptno\", \"Dname\", \"Loc\");\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"__________\", \"__________\", \"__________\");\n\t\tfor(Dept e : departamento) {\n\t\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\", e.getDeptno(), e.getDname(), e.getLoc());\n\t\t}\n\t\t\n\t}", "public List<Vendedor> listarVendedor();", "@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 List<ArticulosFactura> getArticulosFactura(Factura f){\n return f.getArticulosFacturaList();\n }", "public NavigableSet<Groupe> getGroupes(Utilisateur utilisateur);", "public void bindPlatsDataExample(){\n Categorie categorie = new Categorie();\n categorie.setId(1);\n for (String value : getTajineExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie);\n this.add(plat);\n }\n\n //INSERT CATEGORIE COUSCOUS PLAT (la categorie couscous est 2 dans notre exemple\n Categorie categorie2 = new Categorie();\n categorie2.setId(2);\n for (String value : getCouscousExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie2);\n this.add(plat);\n }\n\n //INSERT CATEGORIE CASSOLETTES PLAT (la categorie couscous est 3 dans notre exemple\n Categorie categorie3 = new Categorie();\n categorie3.setId(3);\n for (String value : getCassoletteExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie3);\n this.add(plat);\n }\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public void generTirarDados() {\n\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 }", "@Override\r\n public void mostrarAlumnos(){\n for(Persona i: listaPersona){\r\n if(i instanceof Alumno){\r\n i.mostrar();\r\n }\r\n }\r\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\n\t}", "public List<MunicipioDTO> listaUF() throws ClassNotFoundException, SQLException{\n\n\t\t// ativa conexão com BD\n\t\tConnection connection = ConexaoUtil.getInstance().getConnection();\n \n\t\tPreparedStatement statement = null;\n ResultSet rs = null;\n\n List<MunicipioDTO> ufs = new ArrayList<>();\n\n try {\n \t\n\t\t\tString sql = \"SELECT DISTINCT Uf FROM Municipio ORDER BY Uf\";\n\t\t\t// realiza uma ponte entre o java e o BD\n\t\t\tstatement = connection.prepareStatement(sql); \t\n \t\n //stmt = connection.prepareStatement(\"SELECT * FROM topicos\");\n rs = statement.executeQuery();\n\n while (rs.next()) {\n\n \tMunicipioDTO uf = new MunicipioDTO();\n \t\t\n \t//recupera valores de acordo com as colunas do BD\n \tuf.setUf(rs.getString(\"Uf\"));\n \t//adiciona o municipio na lista de municipios\n \tufs.add(uf);\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(MunicipioDAO.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n //ConnectionFactory.closeConnection(con, stmt, rs);\n \tstatement.close();\n }\n\n return ufs;\n\n }", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void mostrarLista(String tipo, String encabezado){\n System.out.println(\"\\n\" /*+ \"Departamento de \"*/ + tipo.concat(\"s\") + \"\\n\" + encabezado);\n for (Producto i: productos){\n if (tipo.compareToIgnoreCase(i.tipo) == 0)\n System.out.println(i);\n }\n }", "public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "@Override\n\tpublic List<Tramite_informesem> lista() {\n\t\treturn tramite_informesemDao.lista();\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 }", "public void getGenero(Pelicula pelicula) {\n\t\tpelicula.getGenero();\n\t}", "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<Pregunta> getPreguntasUsuario(Usuario user);", "private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }", "List<Subdivision> findAll();", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public List<SelectItem> getListaNivelDimensionContable()\r\n/* 212: */ {\r\n/* 213:252 */ return getNivelDimension(getDimensionPresupuesto());\r\n/* 214: */ }", "public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }", "@Override\r\n\tpublic List<Fournisseur> getListFournisseur() {\n\t\treturn this.sessionFactory.getCurrentSession().createQuery(\"from fournisseur\").list();\r\n\t}", "public HashMap<String, String> cargarValoresParametrosGeneralesPlantillasGrupos(){\n\t\tHashMap<String, String> valoresParametros = new HashMap<String, String>();\n//\t\ttry {\n\t\n//\t\tString cargofirmantepr =parametrosGeneralesService.getParametroGeneralByCodigo(\"CARPR\").getValor();\n//\t\tString nombrefirmantepr =parametrosGeneralesService.getParametroGeneralByCodigo(\"NOMBPR\").getValor();\n//\t\tString cargofirmanteresol =parametrosGeneralesService.getParametroGeneralByCodigo(\"CARRESOL\").getValor();\n//\t\tString nombrefirmanteresol =parametrosGeneralesService.getParametroGeneralByCodigo(\"NOMBRESOL\").getValor();\n//\t\tvaloresParametros.put(\"CARPR\", cargofirmantepr);\n//\t\tvaloresParametros.put(\"NOMBPR\", nombrefirmantepr);\n//\t\tvaloresParametros.put(\"CARRESOL\", cargofirmanteresol);\n//\t\tvaloresParametros.put(\"NOMBRESOL\", nombrefirmanteresol);\n//\t\t} catch (PersistenciaException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t\treturn valoresParametros;\n\t}", "List<Plaza> consultarPlazas();", "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 }", "@Test\n\tpublic void testAfficheListe() {\n\t\tList<Professeur> list = new ArrayList<Professeur>();\n\t\tlist.add(prof);\n\t}", "public String pantallasToString(){\n\t\tif(null == this.pantallas){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tfinal StringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.pantallas.size(); i++) {\n\t\t\t\tif(i == (this.pantallas.size()-1)){\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}", "protected void regenerarVista() {\r\n if (this.partida != null) {\r\n\r\n Configuracion config = this.partida.getConfiguracion(); \r\n \r\n /* Tablero y Piezas en el Tablero */\r\n PanelTablero panel = this.fabricaDePanelesTablero.crearTablero(config);\r\n\r\n this.vista.setPanelTablero(panel);\r\n \r\n /* Piezas que no están en el Tablero */\r\n List<BaseEspacial> bases = this.partida.getBases();\r\n\r\n for (BaseEspacial base : bases) {\r\n\r\n this.vista.addInforme(base, INFORMES_BASE);\r\n \r\n /* Naves que están en la Base */\r\n for (Nave nave : base.getNaves()) {\r\n \r\n this.fabricaDePanelesTablero.crearPieza(nave, panel, config);\r\n \r\n this.vista.addInforme(nave, INFORMES_NAVE);\r\n }\r\n }\r\n \r\n // TODO refactorizar\r\n for (Pieza pieza : this.partida.getTablero()) {\r\n\r\n if (pieza instanceof Contenedor) {\r\n \r\n this.vista.addInforme(pieza, INFORMES_CONTENEDOR);\r\n }\r\n }\r\n \r\n } else {\r\n \r\n this.vista.setPanelTablero(this.presentacion);\r\n }\r\n \r\n this.vista.revalidate();\r\n }", "List<ParqueaderoEntidad> listar();", "public List<UserType> list() {\r\n\t\t\r\n\t\t//!!! Show only Buyer and Farmer\r\n\t\tString selectAllUserType = \"FROM UserType WHERE Acronym = :farmer\"; \r\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(selectAllUserType);\r\n\t\tquery.setParameter(\"farmer\", 'F');\r\n\t\t\r\n\t\treturn query.getResultList();\r\n\t\t\r\n\t\t//return sessionFactory.getCurrentSession().createQuery(\"FROM UserType\", Farmer.class).getResultList();\r\n\t}" ]
[ "0.6470177", "0.62446517", "0.6071636", "0.60646504", "0.5908274", "0.58576787", "0.5778132", "0.57601064", "0.57567096", "0.5748862", "0.57342076", "0.5728929", "0.5709461", "0.57093215", "0.5654792", "0.5646926", "0.56193596", "0.5612929", "0.5607553", "0.5589503", "0.5589068", "0.5578492", "0.5573534", "0.55658394", "0.55650985", "0.5564052", "0.5556648", "0.55503196", "0.5549992", "0.554913", "0.5547329", "0.553257", "0.5532564", "0.55263263", "0.55253893", "0.55232644", "0.55216146", "0.55179703", "0.55105937", "0.55088943", "0.55077475", "0.5506948", "0.5504024", "0.5497814", "0.5496967", "0.54942846", "0.5492993", "0.549214", "0.5482471", "0.5482415", "0.5475536", "0.54697436", "0.5469544", "0.54565895", "0.54514235", "0.54476726", "0.5445708", "0.5435065", "0.54135007", "0.5412354", "0.54108155", "0.54093117", "0.5408136", "0.5407816", "0.5400573", "0.5398901", "0.539518", "0.5391105", "0.538031", "0.5380211", "0.53663456", "0.5366116", "0.5364778", "0.5360872", "0.53546363", "0.5353879", "0.5353856", "0.53521574", "0.5350523", "0.534468", "0.53393525", "0.5333376", "0.5332278", "0.53231174", "0.53230864", "0.5317386", "0.53169125", "0.5312814", "0.53121424", "0.5310631", "0.53079444", "0.53059214", "0.5290016", "0.5286235", "0.5285981", "0.5285106", "0.52850914", "0.52839416", "0.527915", "0.52771056" ]
0.6776251
0
listar plantas por genero
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasPorGeneroFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class); query.setParameter("genero", "carnivoras"); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get(\"sunlight\", ArrayList.class);\n String min_sun = sunlightArray.get(0).toString();\n String max_sun = sunlightArray.get(1).toString();\n ArrayList temperatureArray = doc.get(\"temperature\", ArrayList.class);\n String min_temp = temperatureArray.get(0).toString();\n String max_temp = temperatureArray.get(1).toString();\n ArrayList humidityArray = doc.get(\"humidity\", ArrayList.class);\n String min_humidity = humidityArray.get(0).toString();\n String max_humidity = humidityArray.get(1).toString();\n\n listOfPlants.add(new RecyclerViewPlantItem(picture, name, description, min_sun, max_sun, min_temp, max_temp, min_humidity, max_humidity));\n }\n }", "public void generTirarDados() {\n\r\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "List<Videogioco> retriveByGenere(String genere);", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "private void generate(){\n\n nurses.add(new Nurse(1, \"ZUZANNA\", \"KOWALSKA\", \"normalna\"));\n nurses.add(new Nurse(2, \"ZOFIA\", \"WISNIEWSKA\", \"normalna\"));\n nurses.add(new Nurse(3, \"MAJA\", \"WOJCIK\", \"normalna\"));\n nurses.add(new Nurse(4, \"HANNA\", \"KOWALCZYK\", \"normalna\"));\n nurses.add(new Nurse(5, \"AMELIA\", \"KAMINSKA\", \"normalna\"));\n nurses.add(new Nurse(6, \"ALICJA\", \"LEWANDOWSKA\", \"normalna\"));\n nurses.add(new Nurse(7, \"MARIA\", \"ZIELINSKA\", \"normalna\"));\n nurses.add(new Nurse(8, \"ALEKSANDRA\", \"WOZNIAK\", \"normalna\"));\n nurses.add(new Nurse(9, \"OLIWIA\", \"SZYMANSKA\", \"normalna\"));\n nurses.add(new Nurse(10, \"NATALIA\", \"DABROWSKA\", \"normalna\"));\n nurses.add(new Nurse(11, \"WIKTORIA\", \"KOZLOWSKA\", \"normalna\"));\n nurses.add(new Nurse(12, \"EMILIA\", \"JANKOWSKA\", \"bez_nocnych\"));\n nurses.add(new Nurse(13, \"ANTONINA\", \"WOJCIECHOWSKA\", \"normalna\", 32));\n nurses.add(new Nurse(14, \"LAURA\", \"KWIATKOWSKA\", \"normalna\", 24));\n nurses.add(new Nurse(15, \"POLA\", \"MAZUR\", \"normalna\", 24));\n nurses.add(new Nurse(16, \"IGA\", \"KRAWCZYK\", \"normalna\", 24));\n// nurses.add(new Nurse(17, \"ANNA\", \"KACZMAREK\", \"normalna\"));\n// nurses.add(new Nurse(18, \"LILIANA\", \"PIOTROWSKA\", \"normalna\"));\n// nurses.add(new Nurse(19, \"MARCELINA\", \"GRABOWSKA\", \"normalna\"));\n// nurses.add(new Nurse(20, \"GABRIELA\", \"PAWLOWSKA\", \"normalna\"));\n// nurses.add(new Nurse(21, \"MICHALINA\", \"MICHALSKA\", \"normalna\"));\n// nurses.add(new Nurse(22, \"KORNELIA\", \"ZAJAC\", \"normalna\"));\n// nurses.add(new Nurse(23, \"NIKOLA\", \"KROL\", \"normalna\"));\n// nurses.add(new Nurse(24, \"HELENA\", \"JABLONSKA\", \"normalna\"));\n// nurses.add(new Nurse(25, \"JULIA\", \"WIECZOREK\", \"normalna\"));\n// nurses.add(new Nurse(26, \"JULIA\", \"NOWAKOWSKA\", \"normalna\"));\n// nurses.add(new Nurse(27, \"MILENA\", \"MAJEWSKA\", \"normalna\"));\n// nurses.add(new Nurse(28, \"MARTYNA\", \"WROBEL\", \"normalna\"));\n// nurses.add(new Nurse(29, \"JAGODA\", \"STEPIEN\", \"normalna\"));\n// nurses.add(new Nurse(30, \"MAGDALENA\", \"OLSZEWSKA\", \"normalna\"));\n\n }", "public List<Plant> initPlantList(final FieldPlant species)\n {\n final List<Plant> plantList = new ArrayList<>();\n\n if( species == FieldPlant.MORE )\n {\n final int randomCount = new Random().nextInt(25) + 25;\n for( int i = 0; i < randomCount; i++ )\n {\n plantList.add(new More(new Random().nextFloat() * 70));\n }\n }\n else if( species == FieldPlant.WHEAT )\n {\n final int randomCount = new Random().nextInt(25) + 25;\n for( int i = 0; i < randomCount; i++ )\n {\n plantList.add(new Wheat(new Random().nextFloat() * 70));\n }\n }\n else\n {\n LOG.warn(\"unauthorized entry - no data passed on\");\n }\n\n return plantList;\n }", "List<TipoHuella> listarTipoHuellas();", "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 listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\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 }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public String altaGenero(){\n int id = coleccionGenero.size() + 1;\n Genero gen = new Genero(id, generoSeleccionado);\n //graba en bd\n GeneroService serv = new GeneroService();\n //refrescar otra vez la lista\n return \"lista-genero\";\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "protected void generar() {\n generar(1, 1);\n }", "private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void genLists() {\n\t}", "public ListaPlantilla getPlantilla() throws MalformedURLException, IOException, JAXBException {\n //DEBEMOS INDICAR EL METODO DONDE LEEMOS\n String request = \"api/plantilla\";\n return this.getRequestPlantilla(request);\n }", "public static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\n\t}", "public void creationPlateau() {\n for (int i = 0; i < 10; i++) {\n int X = rand.nextInt(14);\n int Y = rand.nextInt(14);\n if (plateau[X][Y] == null && espacementMonstre(X,Y,plateau)) {\n int monstreAleatoire = 1 + (int)(Math.random() * ((3 - 1) + 1));\n switch (monstreAleatoire) {\n case 1:\n Personnage monstreD = new Dragonnet(X,Y);\n plateau[X][Y] = monstreD;\n this.monstre.add(monstreD);\n System.out.println(\"Dragonnet ajouté en position : \"+X+\" \"+Y);\n break;\n case 2:\n Personnage monstreL = new Loup(X,Y);\n plateau[X][Y] = monstreL;\n this.monstre.add(monstreL);\n System.out.println(\"Loup ajouté en position : \"+X+\" \"+Y);\n\n break;\n case 3:\n Personnage monstreO = new Orque(X,Y);\n plateau[X][Y] = monstreO;\n this.monstre.add(monstreO);\n System.out.println(\"Orque ajouté en position : \"+X+\" \"+Y);\n break;\n }\n } else {\n i --;\n }\n }\n }", "public static void main(String[] args) {\n\n PlantFactory pf = new PlantFactory();\n for(int number = 0; number < 5; number++) {\n Corn newCorn = pf.getCorn();\n if(newCorn == null) break;\n\n PlantField.cornList.add(newCorn);\n }\n for(int number = 0;number < 10; number++) {\n Rice newRice = pf.getRice();\n if(newRice == null) break;\n\n PlantField.riceList.add(newRice);\n }\n for(int number = 0;number < 2;number++) {\n Pasture newPasture = pf.getPasture();\n if(newPasture == null) break;\n\n PlantField.pastureList.add(newPasture);\n }\n\n // Now we got different plants!\n show();\n\n // Let's fertilize those plants!\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n\n // Let's try to fertilize them again.\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Rice item : PlantField.riceList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n System.out.println(\"\\nLet's harvest them!\");\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n for(Rice item : PlantField.riceList){\n item.harvested();\n }\n for(Pasture item : PlantField.pastureList){\n item.harvested();\n }\n\n show();\n\n // Maybe we need to buy some seeds.\n\n // Oops, those corns and rices need to be pollinated.\n for(Corn item : PlantField.cornList){ // corn and rise need to be poll\n PollinationStrategy ps = new SpontaneousPollination();\n ps.pollinate(item);\n }\n\n // We just pollinated those corns. Let's harvest them!\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n\n show();\n// ------\n // Take a look at those dead plant.\n for(Corn item : PlantField.cornList){\n item.harvested();\n item.fertilized();\n PollinationStrategy ps = new ArtificialPollination();\n ps.pollinate(item);\n }\n\n // plantTest completed successfully\n }", "public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }", "public void bindPlatsDataExample(){\n Categorie categorie = new Categorie();\n categorie.setId(1);\n for (String value : getTajineExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie);\n this.add(plat);\n }\n\n //INSERT CATEGORIE COUSCOUS PLAT (la categorie couscous est 2 dans notre exemple\n Categorie categorie2 = new Categorie();\n categorie2.setId(2);\n for (String value : getCouscousExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie2);\n this.add(plat);\n }\n\n //INSERT CATEGORIE CASSOLETTES PLAT (la categorie couscous est 3 dans notre exemple\n Categorie categorie3 = new Categorie();\n categorie3.setId(3);\n for (String value : getCassoletteExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie3);\n this.add(plat);\n }\n }", "private void genererListeView() {\n\n displayToast(\"Antall treff: \" + spisestedListe.size());\n\n //sorterer alfabetisk på navn\n Collections.sort(spisestedListe);\n\n spisestedAdapter = new SpisestedAdapter(this, spisestedListe);\n recyclerView.setAdapter(spisestedAdapter);\n\n //henter inn antall kolonner fra values, verdi 2 i landscape\n // https://stackoverflow.com/questions/29579811/changing-number-of-columns-with-gridlayoutmanager-and-recyclerview\n int columns = getResources().getInteger(R.integer.list_columns);\n recyclerView.setLayoutManager(new GridLayoutManager(this, columns));\n }", "private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public void listar() {\n\t\t\n\t}", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "private List<PlanTrabajo> generarPlanesTrabajo( Date fecPrgn, \n\t\t\tList<Cuadrilla> cuadrillas,Map<Long, GrupoAtencion> mpGrupos, \n\t\t\tMap<Long, Long> asignaciones ){\n\t\t\n\t\t\tList<PlanTrabajo> planTrabajoList = new ArrayList<PlanTrabajo>();\n\t\t\tSet<Long> grupos = asignaciones.keySet();\t\n\t\t\tlong np = 1;\n\t\t\tfor (Long ngrupo : grupos) {\n\t\t\t\t Long ncuadrilla = asignaciones.get(ngrupo);\n\t\t\t\t GrupoAtencion grupoAtencion = mpGrupos.get(ngrupo);\n\t\t\t\t //GrupoAtencion grupoAtencion = asignar(cuadrilla, idx, mpGruposCached);\n\t\t\t\t PlanTrabajo planTrabajo = new PlanTrabajo(np);\n\t\t\t\t int nsp = 1;\n\t\t\t\t planTrabajo.setFechaProgramacion(new Timestamp(fecPrgn.getTime()));\n\t\t\t\t int i = cuadrillas.indexOf( new Cuadrilla(ncuadrilla));\n\t\t\t\t if(i!=-1){\n\t\t\t\t\t \n\t\t\t\t\t Cuadrilla cuadrilla = cuadrillas.get(i);\n\t\t\t\t\t planTrabajo.setCuadrilla(cuadrilla);\n\t\t\t\t\t planTrabajo.setGrupoAtencion(grupoAtencion);\n\t\t\t\t\t \n\t\t\t\t\t if(grupoAtencion!=null){\n\t\t\t\t\t\t for( GrupoAtencionDetalle d : grupoAtencion.getGrupoAtencionDetalles()){\n\t\t\t\t\t\t\t // añadiendo las solicitudes de servicio\t\n\t\t\t\t\t\t\t SolicitudServicio s = d.getSolicitudServicio();\n\t\t\t\t\t\t\t //System.out.println(\" #### añadiendo solicitud \"+s.getNumeroSolicitud());\n\t\t\t\t\t\t\t if(planTrabajo.getPlanTrabajoDetalles()==null){\n\t\t\t\t\t\t\t\t planTrabajo.setPlanTrabajoDetalles(new ArrayList<PlanTrabajoDetalle>());\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t PlanTrabajoDetalle pd = new PlanTrabajoDetalle(np, nsp);\n\t\t\t\t\t\t\t pd.setSolicitudServicio(s);\n\t\t\t\t\t\t\t //planTrabajo.addPlanTrabajoDetalle( new PlanTrabajoDetalle(s));;\n\t\t\t\t\t\t\t planTrabajo.addPlanTrabajoDetalle(pd);\n\t\t\t\t\t\t\t nsp++;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t planTrabajoList.add(planTrabajo);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t np++;\n\t\t\t}\n\t\t\t\n\t\treturn planTrabajoList;\n\t}", "public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno()+ \" DIRECCION: \"+ \n ps.getDireccion()+ \" SEXO: \"+ ps.getSexo());\n }\n }", "public Examen generarExamenTest() {\r\n\r\n\t\tPregunta pregunta;\r\n Ejercicio ejercicio;\r\n\t\tMateria materia = new Materia(\"Disenio\");\r\n\t\tExamen ex;\r\n\r\n\t\t// Creo lotes de prueba de Unidades Tematicas\r\n\t\tSet<String> unidadesAbarcadas = new HashSet<String>();\r\n\t\r\n\t\tunidadesAbarcadas.add(\"Patrones\");\r\n\t\tunidadesAbarcadas.add(\"Ciclos de Vida\");\r\n\t\tunidadesAbarcadas.add(\"Estructurado\");\r\n\t\tunidadesAbarcadas.add(\"DFDTR\");\t\r\n\t\r\n\t\tpregunta = new ADesarrollar(\"Patrones\", 75, \"Por que necesitamos a los patrones en las estancias?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 40, \"Cuantos modos de Cohesion Existe?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tejercicio = new Ejercicio(\"Estructurado\", 75, \"Que es un trampolin de datos?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\t \r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 75, \"Indique los pasos que aplicaria con que ciclo de vida para implementar un Sistema Contable\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n \r\n \r\n\t\tPrototipoItem<Pregunta> protoPregunta = new PrototipoItem<Pregunta>(Pregunta.class);\r\n\t\tprotoPregunta.setTipo(TiposItem.TEORICO);\r\n\t\tPrototipoItem<Ejercicio> protoEjercicio = new PrototipoItem<Ejercicio>(Ejercicio.class);\r\n\t\tprotoEjercicio.setTipo(TiposItem.PRACTICO);\r\n\t\tExamenBuilder builder = new ExamenBuilder(materia,unidadesAbarcadas,Calendar.getInstance());\r\n\t\tbuilder.putPrototipo(protoPregunta, 3);\r\n\t\tbuilder.putPrototipo(protoEjercicio, 3);\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tex = builder.generarExamen();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// No se controlan errores de creacion ya que se genera el examen para el Test\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\treturn ex;\r\n\r\n\t}", "@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\t}", "public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\n\t}", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public void mostrarLista(String tipo, String encabezado){\n System.out.println(\"\\n\" /*+ \"Departamento de \"*/ + tipo.concat(\"s\") + \"\\n\" + encabezado);\n for (Producto i: productos){\n if (tipo.compareToIgnoreCase(i.tipo) == 0)\n System.out.println(i);\n }\n }", "public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }", "private static void ListaProduto() throws IOException {\n \n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n }\n \n \n\t\tFileWriter arq = new FileWriter(\"lista_produto.txt\"); // cria o arquivo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// será criado o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// arquivo para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// armazenar os\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados\n\t\tPrintWriter gravarArq = new PrintWriter(arq); // imprimi no arquivo \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados.\n\n\t\tString relatorio = \"\";\n\n\t\tgravarArq.printf(\"+--LISTA DE PRODUTOS--+\\r\\n\");\n\n\t\tfor (int i = 0; i < ListaDProduto.size(); i++) {\n\t\t\tProduto Lista = ListaDProduto.get(i);\n\t\t\t\n\n\t\t\tgravarArq.printf(\n\t\t\t\t\t\" - |Codigo: %d |NOME: %s | VALOR COMPRA: %s | VALOR VENDA: %s | INFORMAÇÕES DO PRODUTO: %s | INFORMAÇÕES TÉCNICAS: %s\\r\\n\",\n\t\t\t\t\tLista.getCodigo(), Lista.getNome(), Lista.getPrecoComprado(),\n\t\t\t\t\tLista.getPrecoVenda(), Lista.getInformacaoProduto(), Lista.getInformacaoTecnicas()); // formatação dos dados no arquivos\n \n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\n\n\t\t\trelatorio += \"\\nCódigo: \" + Lista.getCodigo() +\n \"\\nNome: \" + Lista.getNome() +\n\t\t\t\t \"\\nValor de Compra: \" + Lista.getPrecoComprado() + \n \"\\nValor de Venda: \" + Lista.getPrecoVenda() +\n \"\\nInformações do Produto: \" + Lista.getInformacaoProduto() +\n \"\\nInformações Técnicas: \" + Lista.getInformacaoTecnicas() +\n \"\\n------------------------------------------------\";\n\n\t\t}\n \n \n\n\t\tgravarArq.printf(\"+------FIM------+\\r\\n\");\n\t\tgravarArq.close();\n\n\t\tSaidaDados(relatorio);\n\n\t}", "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 List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "private void mostrarRota() {\n int cont = 1;\n int contMelhorRota = 1;\n int recompensa = 0;\n int distanciaTotal = 0;\n List<Rota> calculaMR;\n\n System.out.println(\"\\n=================== =================== ========== #Entregas do dia# ========== =================== ===================\");\n for (RotasEntrega re : rotas) {\n Rota r = re.getRotaMenor();\n\n System.out\n .print(\"\\n\\n=================== =================== A \" + cont + \"º possível rota a ser realizada é de 'A' até '\" + r.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (r.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA possivel rota é: \" + printRoute(r));\n System.out.println(\n \"Com a chegada estimada de \" + r.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + r.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n r.getRecompensa() + \" real\" : r.getRecompensa() + \" reais\") + \".\");\n\n\n distanciaTotal += r.getDistancia();\n cont++;\n }\n\n calculaMR = calculaMelhorEntraga(distanciaTotal);\n System.out.println(\"\\n#############################################################################################################################\");\n\n for(Rota reS : calculaMR)\n {\n System.out\n .print(\"\\n\\n=================== =================== A \" + contMelhorRota + \"º rota a ser realizada é de 'A' até '\" + reS.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (reS.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA melhor rota é: \" + printRoute(reS));\n System.out.println(\n \"Com a chegada estimada de \" + reS.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + reS.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n reS.getRecompensa() + \" real\" : reS.getRecompensa() + \" reais\") + \".\");\n\n recompensa += reS.getRecompensa();\n contMelhorRota ++;\n }\n\n System.out.println(\"\\n\\nO lucro total do dia: \" + recompensa + \".\");\n }", "public List<Tripulante> obtenerTripulantes();", "public List<Plant> getPlants() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\n\t}", "public void llenarDetalles(){\n nombreLabel.setText(ninno.getNombreCompleto());\n \n int numGrupo = ninno.getGrupo();\n Grupo grupo = JardinController.getGrupo(numGrupo);\n grupoLabel.setText(grupo.getId());\n nivelLabel.setText(Integer.toString(grupo.getNivel()));\n profesorLabel.setText(grupo.getProfesor().getNombreCompleto());\n telefonoLabel.setText(grupo.getProfesor().getTelefono());\n }", "public void makePathList() {\r\n\t\tPath p = new Path(false,false,false,false);\r\n\t\tfor(int i=0; i<15; i++) {\r\n\t\t\tp = p.randomizePath(p.makeCornerPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<13; i++) {\r\n\t\t\tp = p.randomizePath(p.makeStraightPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<6; i++) {\r\n\t\t\tp = p.randomizePath(p.makeTPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tCollections.shuffle(_list);\r\n\t}", "public GenerarInformePlanificacion(Curso[] cursos, Apoderado[] apoderados) {\n this.apoderados = new PlanificacionApoderado[apoderados.length];\n for (int i = 0; i < apoderados.length; i++) {\n this.apoderados[i] = new PlanificacionApoderado();\n }\n\n int cantidadCurso = 0;\n\n for (int apTotal = 0; apTotal < this.apoderados.length; apTotal++) {\n this.apoderados[apTotal].nombre = apoderados[apTotal].getNombre();\n this.apoderados[apTotal].apellido = apoderados[apTotal].getApellido();\n this.apoderados[apTotal].run = apoderados[apTotal].getRun();\n for (int cantPupilos = 0; cantPupilos < apoderados[apTotal].getPupilos().size(); cantPupilos++) {\n\n PlanificacionAlumno alumnoAgregar = new PlanificacionAlumno();\n alumnoAgregar.nombre = apoderados[apTotal].getPupilos().get(cantPupilos).getNombre();\n alumnoAgregar.apellido = apoderados[apTotal].getPupilos().get(cantPupilos).getApellido();\n alumnoAgregar.run = apoderados[apTotal].getPupilos().get(cantPupilos).getRun();\n for (int j = 0; j < 16; j++) {\n for (int alum = 0; alum < 30; alum++) {\n if (cursos[j].getAlumnos()[alum].getRun().equals(apoderados[apTotal].getPupilos().get(cantPupilos).getRun())) {\n cantidadCurso = j;\n break;\n }\n }\n }\n for (int i = 0; i < 50; i++) {\n alumnoAgregar.plan[i] = cursos[cantidadCurso].getAsignaturas()[(int) i / 10].getPlan()[i % 10];\n }\n this.apoderados[apTotal].pupilos.add(alumnoAgregar);\n\n }\n }\n\n }", "List<String> getTrees();", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\n\t}", "public String getListaGrupos () {\n String nomesGruposList = \"\";\n if(this.conversas != null && this.conversas.size() > 0){\n for(int i = 0; i < this.conversas.size(); i++){\n //nomesGruposList += conversas.get(i).nomeGrupo + \" \";\n }\n }\n return nomesGruposList;\n }", "public List<Vendedor> listarVendedor();", "public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }", "public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}", "@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}", "public BuildingList() {\n Building temp = new Building(1);\n temp.createSubAreas(6);\n temp.setSystemPass(\"0000\");\n URL url = this.getClass().getClassLoader()\n .getResource(\"singleHouse.jpg\");\n temp.setImage(url);\n\n buildings.add(temp);\n temp = new Building(2);\n url = this.getClass().getClassLoader()\n .getResource(\"commercial.jpg\");\n temp.setImage(url);\n buildings.add(temp);\n }", "@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void mostrarTareas(){\n System.out.println(\"Tareas existentes:\");\n System.out.println(tareas);\n }", "public void mostrarPiezas() {\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"/piezas/pieza\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\twhile(i.hasMoreResources()) {\n\t\t\t\tSystem.out.println(i.nextResource().getContent());\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "List<Vehiculo>listar();", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "private static void generaGrupos(PrintWriter salida_grupos, PrintWriter salida_musicos, PrintWriter salida_discos, PrintWriter salida_canciones){\r\n boolean flagm = true;//Indica si el nº de integrantes de a es 10 para contrarestar en la siguiente generación\r\n int a, b;\r\n String nombre = \"nombre\";\r\n String titulo = \"www.web\";\r\n String dominio = \".com\";\r\n \r\n for (long i = 1; i <= num_grupos; i++){\r\n //Calculamos el numero de integrantes que tendrán los dos grupos que se generarán por loop\r\n // si el anterior loop no se han superado los 10 integrantes en la suma de a y b,\r\n // se permitirá la generación de 10 integrantes en el grupo a\r\n // si en el anterior loop se han generado en uno de los grupos 10 integrantes\r\n // debemos reducir el numero para contrarestar en este loop,\r\n // de forma que resulte una generación aleatoria dentro de los límites pedidos\r\n if (flagm){\r\n a = rand.nextInt(10) + 1;\r\n b = 10 - a;\r\n } else {\r\n a = rand.nextInt(8) + 1;\r\n b = 9 - a;\r\n flagm = true;\r\n }\r\n if (b == 0){ b++; flagm = false;}\r\n \r\n //Grupo A del loop\r\n salida_grupos.println(cod_grupo + \",\" + nombre + cod_grupo + \",\"\r\n + genero.getGenero() + \",\" + rand.nextInt(paises.length)\r\n + \",\" + titulo + cod_grupo + dominio);\r\n generaMusicos(salida_musicos, cod_grupo, a);\r\n generaDiscos(salida_discos, salida_canciones, cod_grupo);\r\n \r\n //Aumento de las variables usadas\r\n i++; cod_grupo++;\r\n //Grupo B del loop\r\n salida_grupos.println(cod_grupo + \",\" + nombre + cod_grupo + \",\"\r\n + genero.getGenero() + \",\" + rand.nextInt(paises.length)\r\n + \",\" + titulo + cod_grupo + dominio);\r\n generaMusicos(salida_musicos, cod_grupo, b);\r\n generaDiscos(salida_discos, salida_canciones, cod_grupo);\r\n \r\n cod_grupo++;\r\n }\r\n }", "@Override\n public List<Programador> list() {\n return memoryDataBank;//To change body of generated methods, choose Tools | Templates.\n }", "public void report() {\n\t\tfor (Plant p : plants) {\r\n\t\t\tp.list();\r\n\t\t}\r\n\t\tfor (Fish f: fishes) {\r\n\t\t\tf.list();\r\n\t\t}\r\n\t}", "public void mostrarReservas() {\n\t\tint numReserva=1;\r\n\t\tfor(Reserva reserva:reservas) {\r\n\t\t\tSystem.out.println(numReserva+\" \"+reserva.toString());\r\n\t\t\tnumReserva++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}", "public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }", "public ResponseEntity<List<GrupoDS>> buscarGrupos() {\n \tList<GrupoDS> lista = new ArrayList<>();\n \tfor (GrupoModel model : grupoRepository.findAll()) {\n \t\tlista.add(new GrupoDS(model));\n \t}\n return new ResponseEntity<List<GrupoDS>>(lista, HttpStatus.OK);\n }", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "@RequestMapping(value = \"/getGeneros\", method = RequestMethod.GET)\r\n public @ResponseBody List<Genero> getGeneros() {\r\n return (List<Genero>) this.generoRepository.findAll();\r\n }", "public void marcarTodos() {\r\n\t\tfor (int i = 0; i < listaPlantaCargoDto.size(); i++) {\r\n\t\t\tPlantaCargoDetDTO p = new PlantaCargoDetDTO();\r\n\t\t\tp = listaPlantaCargoDto.get(i);\r\n\t\t\tif (!obtenerCategoria(p.getPlantaCargoDet())\r\n\t\t\t\t\t.equals(\"Sin Categoria\"))\r\n\t\t\t\tp.setReservar(true);\r\n\t\t\tlistaPlantaCargoDto.set(i, p);\r\n\t\t}\r\n\t\tcantReservados = listaPlantaCargoDto.size();\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 }", "public void getGenero(Pelicula pelicula) {\n\t\tpelicula.getGenero();\n\t}", "protected abstract Set<Part> generateParts(List<Card> cards, List<Card> jokers);", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "private void createArmy(int size)\n {\n for(int i = 0; i < size; i++)\n {\n int rando = Randomizer.nextInt(10) + 1;\n if(rando < 6 )\n {\n army1.add(new Human());\n } \n else if(rando < 8)\n {\n army1.add(new Dwarf());\n \n }\n else if (rando < 10)\n {\n army1.add(new Elf());\n }\n else\n {\n rando = Randomizer.nextInt(3) + 1;\n if (rando ==1)\n {\n army1.add(new Demon()); \n }\n else if(rando == 2)\n {\n army1.add(new CyberDemon());\n }\n else\n {\n army1.add(new Balrog());\n }\n }\n \n rando = Randomizer.nextInt(10) + 1;\n if(rando < 6)\n {\n army2.add(new Human());\n }\n else if (rando < 8)\n {\n army2.add(new Dwarf());\n }\n else if (rando < 10)\n {\n army2.add(new Elf());\n }\n else\n {\n rando = Randomizer.nextInt(3) + 1;\n if (rando ==1)\n {\n army2.add(new Demon()); \n }\n else if(rando == 2)\n {\n army2.add(new CyberDemon());\n }\n else\n {\n army2.add(new Balrog());\n }\n } \n }\n \n \n \n \n \n }", "public static void listarDepartamentos() {\n\t\tList<Dept> departamento;\n\t\tSystem.out.println(\"\\nListamis todos los Departamentos\");\n\t\tdepartamento= de.obtenListaDept();\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"Deptno\", \"Dname\", \"Loc\");\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"__________\", \"__________\", \"__________\");\n\t\tfor(Dept e : departamento) {\n\t\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\", e.getDeptno(), e.getDname(), e.getLoc());\n\t\t}\n\t\t\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasAprovadasFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class);\n\t\tquery.setParameter(\"aprovacion\", 1);\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "public java.util.List<PlanoSaude> findAll();", "private void createPlanets()\n\t{\n\t\tdouble semimajorAxis;\n\t\tdouble eccentricityOfOrbit;\n\t\tdouble inclinationOnPlane;\n\t\tdouble perihelion;\n\t\tdouble longitudeOfAscendingNode;\n\t\tdouble meanLongitude;\n String unicode_icon;\n\t\t\n\t\tplanetList.clear();\n\t\t\n\t\t//*****************\n\t\t//create Mercury\n\t\t//*****************\n\t\tPlanet mercury = new Planet(\"Mercury\");\n\t\tunicode_icon = \"\\u263f\";\n\t\tmeanLongitude = 60.750646;\n\t\tsemimajorAxis = 0.387099;\n\t\teccentricityOfOrbit = 0.205633;\n\t\tinclinationOnPlane = 7.004540;\n\t\tperihelion = 77.299833;\n\t\tlongitudeOfAscendingNode = 48.212740;\n\t\t\n\t\tmercury.setUnicodeIcon(unicode_icon);\n\t\tmercury.setSemimajorAxis(semimajorAxis);\n\t\tmercury.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tmercury.setInclinationOnPlane(inclinationOnPlane);\n\t\tmercury.setPerihelion(perihelion);\n\t\tmercury.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tmercury.setMeanLongitude(meanLongitude);\n\t\tmercury.setOrbitalPeriod(0.24852);\n\t\tplanetList.add(mercury);\n\t\t\n\t\t//*****************\n\t\t//create Venus\n\t\t//*****************\n\t\tPlanet venus = new Planet(\"Venus\");\n\t\tunicode_icon = \"\\u2640\";\n\t\tmeanLongitude = 88.455855;\n\t\tsemimajorAxis = 0.723332;\n\t\teccentricityOfOrbit = 0.006778;\n\t\tinclinationOnPlane = 3.394535;\n\t\tperihelion = 131.430236;\n\t\tlongitudeOfAscendingNode = 76.589820;\n\t\t\n\t\tvenus.setUnicodeIcon(unicode_icon);\n\t\tvenus.setSemimajorAxis(semimajorAxis);\n\t\tvenus.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tvenus.setInclinationOnPlane(inclinationOnPlane);\n\t\tvenus.setPerihelion(perihelion);\n\t\tvenus.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tvenus.setMeanLongitude(meanLongitude);\n\t\tvenus.setOrbitalPeriod(0.615211);\n\t\tplanetList.add(venus);\n\t\t\n\t\t//*****************\n\t\t//create Earth\n\t\t//*****************\n\t\tearth = new Planet(\"Earth\");\n\t\tunicode_icon = \"\\u2695\";\t\n\t\tmeanLongitude = 99.403308;\n\t\tsemimajorAxis = 1.000;\n\t\teccentricityOfOrbit = 0.016713;\n\t\tinclinationOnPlane = 1.00;\n\t\tperihelion = 102.768413;\n\t\tlongitudeOfAscendingNode = 1.00;\n\t\t\n\t\tearth.setUnicodeIcon(unicode_icon);\n\t\tearth.setSemimajorAxis(semimajorAxis);\n\t\tearth.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tearth.setInclinationOnPlane(inclinationOnPlane);\n\t\tearth.setPerihelion(perihelion);\n\t\tearth.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tearth.setMeanLongitude(meanLongitude);\n\t\tearth.setOrbitalPeriod(1.00004);\n\t\t//earth not added to list, kept as separate object\n\t\t\n\t\t//*****************\n\t\t//create Mars\n\t\t//*****************\n\t\tPlanet mars = new Planet(\"Mars\");\n\t\tunicode_icon = \"\\u2642\";\n\t\tmeanLongitude = 240.739474;\n\t\tsemimajorAxis = 1.523688;\n\t\teccentricityOfOrbit = 0.093396;\n\t\tinclinationOnPlane = 1.849736;\n\t\tperihelion = 335.874939;\n\t\tlongitudeOfAscendingNode = 49.480308;\n\t\t\n\t\tmars.setUnicodeIcon(unicode_icon);\n\t\tmars.setSemimajorAxis(semimajorAxis);\n\t\tmars.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tmars.setInclinationOnPlane(inclinationOnPlane);\n\t\tmars.setPerihelion(perihelion);\n\t\tmars.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tmars.setMeanLongitude(meanLongitude);\n\t\tmars.setOrbitalPeriod(1.880932);\n\t\tplanetList.add(mars);\n\t\t\n\t\t//*****************\n\t\t//create Jupiter\n\t\t//*****************\n\t\tPlanet jupiter = new Planet(\"Jupiter\");\n\t\tunicode_icon = \"\\u2643\";\n\t\tmeanLongitude = 90.638185;\n\t\tsemimajorAxis = 5.202561;\n\t\teccentricityOfOrbit = 0.048482;\n\t\tinclinationOnPlane = 1.303613;\n\t\tperihelion = 14.170747;\n\t\tlongitudeOfAscendingNode = 100.353142;\n\t\t\n\t\tjupiter.setUnicodeIcon(unicode_icon);\n\t\tjupiter.setSemimajorAxis(semimajorAxis);\n\t\tjupiter.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tjupiter.setInclinationOnPlane(inclinationOnPlane);\n\t\tjupiter.setPerihelion(perihelion);\n\t\tjupiter.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tjupiter.setMeanLongitude(meanLongitude);\n\t\tjupiter.setOrbitalPeriod(11.863075);\n\t\tplanetList.add(jupiter);\n\t\t\n\t\t//*****************\n\t\t//create Saturn\n\t\t//*****************\n\t\tPlanet saturn = new Planet(\"Saturn\");\n\t\tunicode_icon = \"\\u2644\";\n\t\tmeanLongitude = 287.690033;\n\t\tsemimajorAxis = 9.554747;\n\t\teccentricityOfOrbit = 0.055581;\n\t\tinclinationOnPlane = 2.488980;\n\t\tperihelion = 92.861407;\n\t\tlongitudeOfAscendingNode = 113.576139;\n\t\t\t\t\n\t\tsaturn.setUnicodeIcon(unicode_icon);\n\t\tsaturn.setSemimajorAxis(semimajorAxis);\n\t\tsaturn.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tsaturn.setInclinationOnPlane(inclinationOnPlane);\n\t\tsaturn.setPerihelion(perihelion);\n\t\tsaturn.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tsaturn.setMeanLongitude(meanLongitude);\n\t\tsaturn.setOrbitalPeriod(29.471362);\n\t\tplanetList.add(saturn);\n\t\t\n\t\t//*****************\n\t\t//create Uranus\n\t\t//*****************\n\t\tPlanet uranus = new Planet(\"Uranus\");\n\t\tunicode_icon = \"\\u2645\";\n\t\tmeanLongitude = 271.063148;\n\t\tsemimajorAxis = 19.21814;\n\t\teccentricityOfOrbit = 0.046321;\n\t\tinclinationOnPlane = 0.773059;\n\t\tperihelion = 172.884833;\n\t\tlongitudeOfAscendingNode = 73.926961;\n\t\t\n\t\turanus.setUnicodeIcon(unicode_icon);\n\t\turanus.setSemimajorAxis(semimajorAxis);\n\t\turanus.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\turanus.setInclinationOnPlane(inclinationOnPlane);\n\t\turanus.setPerihelion(perihelion);\n\t\turanus.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\turanus.setMeanLongitude(meanLongitude);\n\t\turanus.setOrbitalPeriod(84.039492);\n\t\tplanetList.add(uranus);\n\t\t\n\t\t//*****************\n\t\t//create Neptune\n\t\t//*****************\n\t\tPlanet neptune = new Planet(\"Neptune\");\n\t\tunicode_icon = \"\\u2646\";\n\t\tmeanLongitude = 282.349556;\n\t\tsemimajorAxis = 30.109570;\n\t\teccentricityOfOrbit = 0.009003;\n\t\tinclinationOnPlane = 1.770646;\n\t\tperihelion = 48.009758;\n\t\tlongitudeOfAscendingNode = 131.670599;\n\t\t\n\t\tneptune.setUnicodeIcon(unicode_icon);\n\t\tneptune.setSemimajorAxis(semimajorAxis);\n\t\tneptune.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tneptune.setInclinationOnPlane(inclinationOnPlane);\n\t\tneptune.setPerihelion(perihelion);\n\t\tneptune.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tneptune.setMeanLongitude(meanLongitude);\n\t\tneptune.setOrbitalPeriod(164.79246);\n\t\tplanetList.add(neptune);\n\t\t\n\t\t//*****************\n\t\t//create Pluto\n\t\t//*****************\n\t\tPlanet pluto = new Planet(\"Pluto\");\n\t\tunicode_icon = \"\\u263f\";\n\t\tmeanLongitude = 246.77027;\n\t\tsemimajorAxis = 39.3414;\n\t\teccentricityOfOrbit = 0.24624;\n\t\tinclinationOnPlane = 17.1420;\n\t\tperihelion = 224.133;\n\t\tlongitudeOfAscendingNode = 110.144;\n\t\t\n\t\tpluto.setUnicodeIcon(unicode_icon);\n\t\tpluto.setSemimajorAxis(semimajorAxis);\n\t\tpluto.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tpluto.setInclinationOnPlane(inclinationOnPlane);\n\t\tpluto.setPerihelion(perihelion);\n\t\tpluto.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tpluto.setMeanLongitude(meanLongitude);\n\t\tpluto.setOrbitalPeriod(246.77027);\n\t\tplanetList.add(pluto);\n\t}", "public String generarEstadisticasGenerales(){\n \n String estadisticaGeneral = \"En general en la universidad del valle: \\n\";\n estadisticaGeneral += \"se encuentran: \" + EmpleadosPrioridadAlta.size() + \" empleados en prioridad alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMediaAlta.size() + \" empleados en prioridad media alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMediaAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMedia.size() + \" empleados en prioridad media\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMedia)\n + \"se encuentran: \" + EmpleadosPrioridadBaja.size() + \" empleados en prioridad baja\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadBaja);\n return estadisticaGeneral;\n }", "public void crearConfiguracion (){\n\t\tInputStream streamMenues = FileUtil.getResourceAsStream(\"organizacionMenues.xml\");\r\n\t\tgruposModulos = new ArrayList<GrupoModulos>();\r\n\t\ttry {\r\n\t\t\tif (streamMenues != null){\r\n\t\t\t\tgruposModulos = leerGruposModulos(streamMenues);\t\r\n\t\t\t}\r\n\t\t} catch(XPathExpressionException e) {\r\n\t\t\tManejadorMenues.logger.error(\"Error procesando xml de menues\",e);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (gruposModulos.isEmpty()){\r\n\t\t\tGrupoModulos gm = new GrupoModulos();\r\n\t\t\tgm.setNombre(\"Módulos\");\r\n\t\t\tgm.setEsDefault(true);\r\n\t\t\tgruposModulos.add(gm);\r\n\t\t}\r\n\t\t\r\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "private static Set<TipoLinkPartita> initModel() {\n\n Set<TipoLinkPartita> partite = new HashSet<TipoLinkPartita>();\n\n Squadra verdi = new Squadra(\"Verdi\");\n Squadra rossi = new Squadra(\"Rossi\");\n Squadra gialli = new Squadra(\"Gialli\");\n Squadra blu = new Squadra(\"Blu\");\n\n try {\n\n TipoLinkPartita p = new TipoLinkPartita(verdi, 2, rossi, 0);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(verdi, 3, blu, 1);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(blu, 2, rossi, 0);\n blu.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(gialli, 1, rossi, 3);\n rossi.inserisciLinkPartita(p);\n partite.add(p);\n\n } catch (EccezionePrecondizioni e) {\n e.printStackTrace();\n }\n\n // Crea ed aggiunge giocatori alle squadre\n // eta' casuale tra 1970 e 1980\n // (Math.random() resituisce un double casuale tra 0.0 e 1.0)\n for (int i = 0; i < 20; i++) {\n\n Giocatore g = new Giocatore(\"verde-\" + i, 1970 + (int) (10 * Math.random()));\n verdi.insericiLinkGioca(g);\n\n g = new Giocatore(\"rosso-\" + i, 1970 + (int) (10 * Math.random()));\n rossi.insericiLinkGioca(g);\n\n g = new Giocatore(\"giallo-\" + i, 1970 + (int) (10 * Math.random()));\n gialli.insericiLinkGioca(g);\n\n g = new Giocatore(\"blu-\" + i, 1970 + (int) (10 * Math.random()));\n blu.insericiLinkGioca(g);\n }\n\n return partite;\n }", "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 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 void generateRooms(){ //TODO it's public just for testing\n rooms = new ArrayList<>();\n for(Color color : roomsToBuild)\n rooms.add(new Room(color));\n }", "public List<String> pntestructura(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntEstructura(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Plaza,Unidad,Descripcion Puesto,Cargo o Funcion,Codigo Puesto,Tipo,Unidad Jefe,Denominacion,Fundamento,Atribuciones,Hipervinculo,Prestador,Organigrama,Leyenda,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }" ]
[ "0.63393", "0.6323891", "0.6321515", "0.62198776", "0.6074276", "0.58732945", "0.5861903", "0.58558416", "0.5830429", "0.5812886", "0.5803215", "0.58025604", "0.5800688", "0.57331115", "0.5720308", "0.56806165", "0.5676782", "0.56694776", "0.5637494", "0.5635906", "0.5633965", "0.56321025", "0.5627041", "0.5593976", "0.55685484", "0.55645055", "0.5554718", "0.5543786", "0.55430424", "0.5513436", "0.5510996", "0.55090225", "0.5502072", "0.5498542", "0.5497362", "0.54939127", "0.54905504", "0.54895556", "0.54763097", "0.54687726", "0.5459248", "0.5454158", "0.54536736", "0.5446552", "0.5443811", "0.5440112", "0.543622", "0.54339004", "0.5432835", "0.54311955", "0.54267657", "0.5425689", "0.5413873", "0.5408801", "0.5400711", "0.538336", "0.53706723", "0.53704107", "0.53681093", "0.53674215", "0.5365718", "0.53648823", "0.53638816", "0.5363608", "0.5358535", "0.5354514", "0.5353455", "0.5352498", "0.5349896", "0.53493553", "0.5342258", "0.5339766", "0.5338804", "0.5336558", "0.53325576", "0.5332406", "0.5331443", "0.53313106", "0.5329943", "0.53278315", "0.5326921", "0.5323982", "0.53184426", "0.53157777", "0.5315477", "0.53153497", "0.5313032", "0.53067726", "0.5302042", "0.5301658", "0.53008586", "0.52999365", "0.52993035", "0.52981263", "0.5296004", "0.5293098", "0.52868503", "0.52833116", "0.52829874", "0.5279186" ]
0.6131824
4
test para eliminar un empleado
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void eliminarEmpladoTest() { Empleado ad = entityManager.find(Empleado.class, "125"); Assert.assertNotNull(ad); entityManager.remove(ad); Assert.assertNull("No se ha eliminado", entityManager.find(Administrador.class, "125")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeEmpleado(){\n //preguntar al empleado si realmente eliminar o no al objeto empleado\n this.mFrmMantenerEmpleado.messageBox(Constant.APP_NAME, \"<html>\"\n + \"¿Deseas remover el empleado del sistema?<br> \"\n + \"<b>OJO: EL EMPLEADO SERÁ ELIMINADO PERMANENTEMENTE.</b> \"\n + \"</html>\",\n new Callback<Boolean>(){\n @Override\n public void execute(Boolean[] answer) {\n //si la respuesta fue YES=true, remover al empleado y limpiar el formulario\n if(answer[0]){\n mEmpleado.remove();\n clear();\n }\n //si la respuesta es NO=false, no hacer nada\n }\n }\n );\n \n }", "@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}", "public void eliminarEmpleado(String nroDocEmpleado) throws Exception {\n if (this.empleados.containsKey(nroDocEmpleado)) {\r\n this.generarAuditoria(\"BAJA\", \"EMPLEADO\", nroDocEmpleado, \"\", GuiIngresar.getUsuario());\r\n this.empleados.remove(nroDocEmpleado);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El cajero no Existe\");\r\n }\r\n //return retorno;\r\n }", "public void remove(Ejemplar ej);", "@Test\n public void deleteEmpleadoTest() {\n \n try{ \n EmpleadoEntity entity = data.get(3);\n empleadoLogic.deleteEmpleado(entity.getId());\n EmpleadoEntity deleted = em.find(EmpleadoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n \n }catch(BusinessLogicException b){\n Assert.fail();\n }\n }", "@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }", "public void deleteEmp(int empno) {\n\t\t\n\t}", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.eliminar(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n\tpublic void eliminar() {\n\t\tGestionarComicPOJO gestionarComicPOJO = new GestionarComicPOJO();\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"1\", \"Dragon Ball Yamcha\",\n\t\t\t\t\"Planeta Comic\", TematicaEnum.AVENTURAS.name(), \"Manga Shonen\", 144, new BigDecimal(2100),\n\t\t\t\t\"Dragon Garow Lee\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 20l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"2\", \"Captain America Corps 1-5 USA\",\n\t\t\t\t\"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"BIBLIOTECA MARVEL\", 128, new BigDecimal(5000),\n\t\t\t\t\"Phillippe Briones, Roger Stern\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 5l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"3\",\n\t\t\t\t\"The Spectacular Spider-Man v2 USA\", \"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"MARVEL COMICS\",\n\t\t\t\t208, new BigDecimal(6225), \"Straczynski,Deodato Jr.,Barnes,Eaton\", Boolean.TRUE, LocalDate.now(),\n\t\t\t\tEstadoEnum.INACTIVO.name(), 0l));\n\n\t\tint tamañoAnterior = gestionarComicPOJO.getListaComics().size();\n\t\tgestionarComicPOJO.eliminarComicDTO(\"1\");\n\t\tAssert.assertEquals(gestionarComicPOJO.getListaComics().size(), tamañoAnterior - 1);\n\t}", "@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\n\t}", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idUsuario = null;\r\n Usuario instance = new Usuario();\r\n instance.eliminar(idUsuario);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Override\n\t/**\n\t * Elimino un empleado.\n\t */\n\tpublic boolean delete(Object Id) {\n\t\treturn false;\n\t}", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Test\n void removeTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"[email protected]\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.persist(anAdmin);\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n adminJpa.remove(anAdmin);\n assertThrows(NoResultException.class, () -> {\n adminJpa.retrieveByEmailPassword(\"[email protected]\", \"Ciao1234.\");\n });\n }", "@Test\r\n public void testRemoveElement() {\r\n System.out.println(\"removeElement\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = false;\r\n boolean result = instance.removeElement(o);\r\n\r\n }", "@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}", "public void eliminar(Short idEmpleado) {\n\t\tEmpleado empleado;\n\t\templeado = entityManager.find(Empleado.class, idEmpleado);\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.remove(empleado);\n\t\tentityManager.getTransaction().commit();\n\t\tJPAUtil.shutdown();\n\t}", "@Test\n public void removeEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n //removing dummy data to avoid clutter in database\n assertTrue(employeeResource.removeEmployee(\"dummy\"));\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@FXML\n\tvoid eliminarEmpleado(ActionEvent event) {\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del empleado a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarEmpleado(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado el empleado exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del recolector a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarRecolector(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado al recolector exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConPropuestasAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(2);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "public String eliminarEmpregado(Empregados empregado) {\n this.empregadosFacade.remove(empregado);\n return \"gerirEmpregados.xhtml?faces-redirect=true\";\n }", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test\n public void removeEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n assertFalse(employeeResource.removeEmployee(\"notdummy\"));\n\n //removing dummy data to avoid clutter in database\n employeeResource.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConSolicitudesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(0);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "@Test\n\tpublic void testRemoveColaboradorSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.removeColaborador(col1);\n\n\t\tassertTrue(result);\n\t}", "@Test\n public void deleteEspecieTest() throws BusinessLogicException {\n EspecieEntity entity = especieData.get(1);\n System.out.println(entity.getId());\n System.out.println(entity.getRazas().size());\n especieLogic.deleteEspecie(entity.getId());\n EspecieEntity deleted = em.find(EspecieEntity.class, entity.getId());\n Assert.assertTrue(deleted.getDeleted());\n }", "public void deleteDetalleNominaEmpleado(DetalleNominaEmpleado entity)\n throws Exception;", "public void eliminarUsuario(Long idUsuario);", "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }", "@Override\n\tpublic void deleteEmployee() {\n\n\t}", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "@Test\n\tpublic void testEliminar() {\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\t//Test eliminar el unico elemento que hay\n\t\tl.agregar(0, 0);\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tl.agregar(i, i);\n\n\t\t//Test eliminar el primer elemento cuando hay mas\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar un elemento del medio\n\t\tl.agregar(1, 1);\n\t\tl.comenzar();\n\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar el ultimo elemento\n\t\tl.comenzar();\n\t\tfor (int i = 0; i < 8; i++)\n\t\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test de eliminar luego de haber recorrido todo.\n\t\tl.comenzar();\n\t\twhile (!l.fin())\n\t\t\tl.proximo();\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteEmployee(Employee t) {\n\t\t\r\n\t}", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "@Test\n public void testEliminarCliente() throws Exception {\n long sufijo = System.currentTimeMillis(); \n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); \n usuario.setDocumento(Long.valueOf(sufijo)); \n usuario.setTipoDocumento(TipoDocumento.CC);\n servicio.registrar(usuario); \n servicio.eliminarCliente(usuario.getLogin()); \n Usuario usuarioRegistrado =(Usuario) servicioPersistencia.findById(Usuario.class, usuario.getLogin()); \n assertNull(usuarioRegistrado); \n }", "public void eliminar(DetalleArmado detallearmado);", "@Test\n public void deleteComentarioTest(){\n ComentarioEntity entity = data.get(0);\n comentarioPersistence.delete(entity.getId());\n ComentarioEntity eliminado = em.find(ComentarioEntity.class,entity.getId());\n Assert.assertNull(eliminado);\n }", "@Test\n\tpublic void testRemoveMentee()\n\t{\n\t\tmentor.removeMentee(mentee);\n\t\tassertThat(mentor.getMentees().size()).isEqualTo(0);\n\t}", "public void eliminarUsuario(String id) throws BLException;", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void testRemove() throws SQLException, ClassNotFoundException {\r\n\t\t// create an instance to be test\r\n\t\tDate d = Date.valueOf(\"2017-01-01\");\r\n\t\tService ser = new Service(\"employee\", 1, \"variation\", \"note\", d, d, 1, 1);\r\n\t\tmodelDS.insert(ser); \r\n\t\tint id = -1;\r\n\t\tLinkedList<Service> list = modelDS.findAll();\r\n\t\tfor (Service a : list) {\r\n\t\t\tif (a.equals(ser))\r\n\t\t\t\tid = a.getId();\r\n\t\t}\r\n\t\t\r\n\t\tService service = modelDS.findByKey(id);\r\n\t\tmodelDS.remove(service.getId()); // method to test\r\n\r\n\t\t// database extrapolation\r\n\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT count(*) FROM \" + TABLE_NAME + \" WHERE id = ?\");\r\n\t\tps.setInt(1, id);\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tint expected = 0;\r\n\t\tif (rs.next())\r\n\t\t\texpected = rs.getInt(1);\r\n\t\tassertEquals(expected, 0);\r\n\t}", "@Override\n\tpublic void delete(int codigo) {\n\t\tSystem.out.println(\"Borra el empleado con \" + codigo + \" en la BBDD.\");\n\t}", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}", "@Test\r\n public void testRemove() throws Exception {\r\n\r\n String ADMIN_USERNAME = \"bjones\";\r\n Calendar DEFAULT_START_DATE = Calendar.getInstance();\r\n Calendar DEFAULT_END_DATE = Calendar.getInstance();\r\n DEFAULT_START_DATE.set(Calendar.YEAR, 1900);\r\n DEFAULT_END_DATE.set(Calendar.YEAR, 3000);\r\n \r\n logger.debug(\"\\nSTARTED testRemove()\\n\");\r\n\r\n User user1 = userDao.find(TEST_USERNAME);\r\n\r\n List<TaskLog> logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n Result<User> ar;\r\n\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as no task logs assigned!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as empty task log list!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n ar = userService.remove(ADMIN_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Should not be able to delete yourself\", !ar.isSuccess());\r\n\r\n logger.debug(\"\\nFINISHED testRemove()\\n\");\r\n }", "@Test\n public void testExclui() {\n System.out.println(\"exclui\");\n Object obj = null;\n AdministradorDAO instance = new AdministradorDAO();\n instance.exclui(obj);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void eliminarEmpleado(CLEmpleado cl) throws SQLException{\r\n String sql = \"{CALL sp_eliminarEmpleado(?)}\";\r\n \r\n try{\r\n ps = cn.prepareCall(sql);\r\n ps.setInt(1, cl.getIdEmpleado());\r\n ps.execute();\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n \r\n }", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "@Override\n\tpublic Employee delete(Employee emp) {\n\t\treturn null;\n\t}", "@Test\n void testRemoveExistingElement(){\n ToDoList list = new ToDoList();\n ToDo t = new ToDo(\"lala\");\n list.add(t);\n assertTrue(list.remove(t));\n }", "@Test\n public void testRemoveOrcamento() throws Exception {\n System.out.println(\"removeOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeOrcamento(orc);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void delEmployee(String person){\n System.out.println(\"Attempt to delete \" + person);\n try {\n String delete =\"DELETE FROM JEREMY.EMPLOYEE WHERE NAME='\" + person+\"'\"; \n stmt.executeUpdate(delete);\n \n \n } catch (Exception e) {\n System.out.println(person +\" may not exist\" + e);\n }\n \n }", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Test\n\tpublic void validaPeticionDeleteVehiculo() {\n\t\t// Arrange\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdVehiculo(\"5\").build();\n\t\tregistroService.saveRegistro(registro);\n\t\tboolean flag = false;\n\t\t// Act\n\t\ttry{\n\t\tregistroService.deleteRegistro(registro.getIdVehiculo());\n\t\tflag = true;\n\t\t}catch(Exception e){\n\t\t\tflag =false;\n\t\t}\n\t\t// Assert\n\t\tAssert.assertTrue(flag);\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n int id = 0;\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.eliminar(id);\n assertEquals(expResult, result);\n \n }", "public void eliminarMensaje(InfoMensaje m) throws Exception;", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConInvitacionesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(1);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "public void EliminarElmento(int el) throws Exception{\n if (!estVacia()) {\n if (inicio == fin && el == inicio.GetDato()) {\n inicio = fin = null;\n } else if (el == inicio.GetDato()) {\n inicio = inicio.GetSiguiente();\n } else {\n NodoDoble ante, temporal;\n ante = inicio;\n temporal = inicio.GetSiguiente();\n while (temporal != null && temporal.GetDato() != el) {\n ante = ante.GetSiguiente();\n temporal = temporal.GetSiguiente();\n }\n if (temporal != null) {\n ante.SetSiguiente(temporal.GetSiguiente());\n if (temporal == fin) {\n fin = ante;\n }\n }\n }\n }else{\n throw new Exception(\"No existen datos por borrar!!!\");\n }\n }", "@Override\n\tpublic void deleteEmployee(Employee e) {\n\t\t\n\t}", "@Test\r\n public void testDeleteUsuario() throws Exception \r\n {\r\n UsuarioEntity entity = dataUs.get(0);\r\n usuarioLogic.deleteUsuario(entity.getId());\r\n UsuarioEntity deleted = em.find(UsuarioEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n }", "public boolean isEliminable(VOUsuario us) {\n return true;\n }", "@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}", "@Test\r\n public void testEliminarUsuario() {\r\n System.out.println(\"EliminarUsuario\");\r\n Usuario pusuario = new Usuario();\r\n pusuario.setCodigo(1);\r\n //pusuario.setUsuario(\"MSantiago\");\r\n \r\n BLUsuario instance = new BLUsuario();\r\n Result expResult = new Result(ResultType.Ok, \"Usuario eliminado correctamente.\", null);\r\n Result result = instance.EliminarUsuario(pusuario);\r\n \r\n System.out.println(result.getMensaje());\r\n assertEquals(expResult.getDetalleMensaje(), result.getDetalleMensaje());\r\n assertEquals(expResult.getMensaje(), result.getMensaje()); \r\n assertEquals(expResult.getTipo(), result.getTipo()); \r\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new Date(System.currentTimeMillis()), table.getId(), new Time(1000), new Time(2000));\n reservationsDao.createReservation(reservation);\n\n // Confirm that the reservation is in DB\n ReservationsEntity reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(reservation, reservationFromDb);\n\n // Delete reservation and confirm that it's not in the DB\n reservationsDao.deleteReservation(reservation);\n\n reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(null, reservationFromDb);\n\n }", "@Override\n\tpublic boolean eliminar(Long id) {\n\t\treturn false;\n\t}", "public void borrarempleado(Empleado empleado)throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnection();\n if(conexion.getAutoCommit()){\n conexion.setAutoCommit(false);\n }\n EmpleadosDatos empleadodatos = new EmpleadosDatos();\n empleadodatos.delete(empleado);\n conexion.commit();\n System.out.println(\"Empleado borrado\");\n }catch(SQLException e){\n System.out.println(\"Error en borrado, entramos a rollback\");\n try{\n conexion.rollback();\n }catch(SQLException ex){\n System.out.println(\"Error en rollback\");\n }\n }finally{\n if(conexion != null){\n conexion.close();\n }\n }\n }", "public void eliminar(Long id) throws AppException;", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "@Test\n public void testaRemoveResultadoComExcecoes() {\n assertThrows(IllegalArgumentException.class, () -> atividade1.removeResultado(-1));\n assertThrows(IllegalArgumentException.class, () -> atividade2.removeResultado(0));\n\n //Resultado inexistente no sistema\n assertThrows(IllegalArgumentException.class, () -> atividade1.removeResultado(4));\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n if (rows_update==1)\n {\n JOptionPane.showMessageDialog(null,\"Registro eliminado exitosamente\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"No se pudo eliminar el registro, verifique datos\");\n con.desconectar();\n }\n }\n catch (SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Error \"+e.getMessage()); \n }\n }", "public void eliminar(Periodo periodo)\r\n/* 27: */ {\r\n/* 28: 53 */ this.periodoDao.eliminar(periodo);\r\n/* 29: */ }", "@Test\n void testRemoveNotExistingElement(){\n ToDoList list = new ToDoList();\n ToDo t = new ToDo(\"lala\");\n assertFalse(list.remove(t));\n }", "public void testSupprimerUtilisateur() {\n System.out.println(\"supprimerUtilisateur\");\n int pid = 0;\n boolean expResult = false;\n boolean result = Utilisateur.supprimerUtilisateur(pid);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void delete(Employee employee) {\r\n\r\n String sql = \"delete from db.emp where id= ?\";\r\n try {\r\n Connection connection = ConnectDB();\r\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\r\n preparedStatement.setInt(1,employee.getId());\r\n\r\n int rows=preparedStatement.executeUpdate();\r\n String message=rows==1 ? \"A fost sters cu succes\": \"Nu este nimic de sters\";\r\n\r\n System.out.println(message);\r\n\r\n } catch (SQLException Ex) {\r\n System.out.println(Ex.getMessage());\r\n System.out.println(\"Eroare la stergere\"+ Ex.getMessage());\r\n\r\n }\r\n }", "public void eliminar(Producto producto) throws IWDaoException;", "public String deleteEmployee(EmployeeDetails employeeDetails);", "private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Test\n\tpublic void testDeletingEmployee() {\n\t\t\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.linkText(\"FirstName LastName\")).click();\n\t\tdriver.findElement(By.linkText(\"Click Here\")).click();\n\t\t\n\t\tAlert alert = driver.switchTo().alert();\n\t\talert.accept();\n\t\t\n\t\tassertEquals(0, driver.findElements(By.linkText(\"FirstName LastName\")).size());\n\t\t\n\t}", "@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }", "public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "public boolean eliminaEmpleado(int idEmpl) {\r\n\t\tif (getEmpleado(idEmpl)==null) return false;\r\n\t\templeados.remove(getEmpleado(idEmpl));\r\n\t\tdeleteCache(idEmpl, \"Empleado\");\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "@Override\r\n\tpublic void delete(Employee arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic String deleteEmp(int eid) {\n\t\treturn eb.deleteEmp(eid);\n\t}", "public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "@Test\r\n public void deleteCarritoDeComprasTest() {\r\n System.out.println(\"d entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n carritoDeComprasPersistence.delete(entity.getId());\r\n CarritoDeComprasEntity deleted = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n System.out.println(\"d voy\"+data);\r\n }" ]
[ "0.7233925", "0.7143173", "0.7135969", "0.70055544", "0.6980363", "0.69771457", "0.6967723", "0.6946858", "0.68957174", "0.6876745", "0.6814409", "0.68112874", "0.6764435", "0.67638445", "0.67555684", "0.6752335", "0.67292786", "0.6716911", "0.6694446", "0.66532516", "0.6629971", "0.6588173", "0.65813667", "0.6572498", "0.65713745", "0.6569148", "0.6552911", "0.65524197", "0.6540582", "0.65130913", "0.65101886", "0.650811", "0.6502674", "0.6497579", "0.6495026", "0.6492854", "0.64879817", "0.6478096", "0.64753735", "0.64737594", "0.6454641", "0.645163", "0.64488786", "0.64483863", "0.6444469", "0.64379615", "0.64345425", "0.6418234", "0.6404474", "0.64016193", "0.639746", "0.6387693", "0.638553", "0.63812584", "0.63778293", "0.6376741", "0.6362852", "0.63625145", "0.6358131", "0.6357477", "0.63538045", "0.6353647", "0.63496476", "0.6348859", "0.63452643", "0.6340388", "0.63401496", "0.6338539", "0.6336734", "0.63299906", "0.632788", "0.63213354", "0.6320268", "0.6318949", "0.63070095", "0.63002", "0.6291013", "0.6284778", "0.6283028", "0.6278465", "0.6270876", "0.62692434", "0.62640446", "0.6262932", "0.6257282", "0.62553054", "0.624216", "0.62421405", "0.62370366", "0.6231204", "0.6223147", "0.62199414", "0.6218797", "0.621692", "0.62168044", "0.6214172", "0.6213216", "0.62028265", "0.6200673", "0.61999893" ]
0.7940379
0
test para eliminar un empleado
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void modificarEmpleadoTest() { Empleado ad = entityManager.find(Empleado.class, "125"); Assert.assertNotNull(ad); ad.setNombre("Alfredo"); entityManager.merge(ad); ad = null; ad = entityManager.find(Empleado.class, "125"); Assert.assertEquals("Alfredo", ad.getNombre()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void eliminarEmpladoTest() {\n\t\tEmpleado ad = entityManager.find(Empleado.class, \"125\");\n\t\tAssert.assertNotNull(ad);\n\t\tentityManager.remove(ad);\n\t\tAssert.assertNull(\"No se ha eliminado\", entityManager.find(Administrador.class, \"125\"));\n\t}", "public void removeEmpleado(){\n //preguntar al empleado si realmente eliminar o no al objeto empleado\n this.mFrmMantenerEmpleado.messageBox(Constant.APP_NAME, \"<html>\"\n + \"¿Deseas remover el empleado del sistema?<br> \"\n + \"<b>OJO: EL EMPLEADO SERÁ ELIMINADO PERMANENTEMENTE.</b> \"\n + \"</html>\",\n new Callback<Boolean>(){\n @Override\n public void execute(Boolean[] answer) {\n //si la respuesta fue YES=true, remover al empleado y limpiar el formulario\n if(answer[0]){\n mEmpleado.remove();\n clear();\n }\n //si la respuesta es NO=false, no hacer nada\n }\n }\n );\n \n }", "@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}", "public void eliminarEmpleado(String nroDocEmpleado) throws Exception {\n if (this.empleados.containsKey(nroDocEmpleado)) {\r\n this.generarAuditoria(\"BAJA\", \"EMPLEADO\", nroDocEmpleado, \"\", GuiIngresar.getUsuario());\r\n this.empleados.remove(nroDocEmpleado);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El cajero no Existe\");\r\n }\r\n //return retorno;\r\n }", "public void remove(Ejemplar ej);", "@Test\n public void deleteEmpleadoTest() {\n \n try{ \n EmpleadoEntity entity = data.get(3);\n empleadoLogic.deleteEmpleado(entity.getId());\n EmpleadoEntity deleted = em.find(EmpleadoEntity.class, entity.getId());\n Assert.assertNull(deleted);\n \n }catch(BusinessLogicException b){\n Assert.fail();\n }\n }", "@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }", "public void deleteEmp(int empno) {\n\t\t\n\t}", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.eliminar(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n\tpublic void eliminar() {\n\t\tGestionarComicPOJO gestionarComicPOJO = new GestionarComicPOJO();\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"1\", \"Dragon Ball Yamcha\",\n\t\t\t\t\"Planeta Comic\", TematicaEnum.AVENTURAS.name(), \"Manga Shonen\", 144, new BigDecimal(2100),\n\t\t\t\t\"Dragon Garow Lee\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 20l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"2\", \"Captain America Corps 1-5 USA\",\n\t\t\t\t\"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"BIBLIOTECA MARVEL\", 128, new BigDecimal(5000),\n\t\t\t\t\"Phillippe Briones, Roger Stern\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 5l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"3\",\n\t\t\t\t\"The Spectacular Spider-Man v2 USA\", \"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"MARVEL COMICS\",\n\t\t\t\t208, new BigDecimal(6225), \"Straczynski,Deodato Jr.,Barnes,Eaton\", Boolean.TRUE, LocalDate.now(),\n\t\t\t\tEstadoEnum.INACTIVO.name(), 0l));\n\n\t\tint tamañoAnterior = gestionarComicPOJO.getListaComics().size();\n\t\tgestionarComicPOJO.eliminarComicDTO(\"1\");\n\t\tAssert.assertEquals(gestionarComicPOJO.getListaComics().size(), tamañoAnterior - 1);\n\t}", "@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\n\t}", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idUsuario = null;\r\n Usuario instance = new Usuario();\r\n instance.eliminar(idUsuario);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Override\n\t/**\n\t * Elimino un empleado.\n\t */\n\tpublic boolean delete(Object Id) {\n\t\treturn false;\n\t}", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Test\n void removeTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"[email protected]\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.persist(anAdmin);\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n adminJpa.remove(anAdmin);\n assertThrows(NoResultException.class, () -> {\n adminJpa.retrieveByEmailPassword(\"[email protected]\", \"Ciao1234.\");\n });\n }", "@Test\r\n public void testRemoveElement() {\r\n System.out.println(\"removeElement\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = false;\r\n boolean result = instance.removeElement(o);\r\n\r\n }", "@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}", "public void eliminar(Short idEmpleado) {\n\t\tEmpleado empleado;\n\t\templeado = entityManager.find(Empleado.class, idEmpleado);\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.remove(empleado);\n\t\tentityManager.getTransaction().commit();\n\t\tJPAUtil.shutdown();\n\t}", "@Test\n public void removeEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n //removing dummy data to avoid clutter in database\n assertTrue(employeeResource.removeEmployee(\"dummy\"));\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@FXML\n\tvoid eliminarEmpleado(ActionEvent event) {\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del empleado a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarEmpleado(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado el empleado exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\t\tUtilidades.mostrarMensaje(\"Alerta\", \"Por favor ingrese la cedula del recolector a eliminar\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (administradorDelegado.eliminarRecolector(txtCedula.getText().trim())) {\n\t\t\t\t\t\tUtilidades.mostrarMensaje(\"Exito\", \"Se ha eliminado al recolector exitosamente\");\n\t\t\t\t\t\tllenarTabla();\n\t\t\t\t\t\tvaciarCampos();\n\t\t\t\t\t}\n\t\t\t\t} catch (PersonaNoRegistradaException | TipoClaseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tUtilidades.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConPropuestasAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(2);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "public String eliminarEmpregado(Empregados empregado) {\n this.empregadosFacade.remove(empregado);\n return \"gerirEmpregados.xhtml?faces-redirect=true\";\n }", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test\n public void removeEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n assertFalse(employeeResource.removeEmployee(\"notdummy\"));\n\n //removing dummy data to avoid clutter in database\n employeeResource.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConSolicitudesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(0);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "@Test\n\tpublic void testRemoveColaboradorSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.removeColaborador(col1);\n\n\t\tassertTrue(result);\n\t}", "@Test\n public void deleteEspecieTest() throws BusinessLogicException {\n EspecieEntity entity = especieData.get(1);\n System.out.println(entity.getId());\n System.out.println(entity.getRazas().size());\n especieLogic.deleteEspecie(entity.getId());\n EspecieEntity deleted = em.find(EspecieEntity.class, entity.getId());\n Assert.assertTrue(deleted.getDeleted());\n }", "public void deleteDetalleNominaEmpleado(DetalleNominaEmpleado entity)\n throws Exception;", "public void eliminarUsuario(Long idUsuario);", "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }", "@Override\n\tpublic void deleteEmployee() {\n\n\t}", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "@Test\n\tpublic void testEliminar() {\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\t//Test eliminar el unico elemento que hay\n\t\tl.agregar(0, 0);\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tl.agregar(i, i);\n\n\t\t//Test eliminar el primer elemento cuando hay mas\n\t\tl.comenzar();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar un elemento del medio\n\t\tl.agregar(1, 1);\n\t\tl.comenzar();\n\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(9, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test eliminar el ultimo elemento\n\t\tl.comenzar();\n\t\tfor (int i = 0; i < 8; i++)\n\t\t\tl.proximo();\n\t\tassertTrue(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t//Test de eliminar luego de haber recorrido todo.\n\t\tl.comenzar();\n\t\twhile (!l.fin())\n\t\t\tl.proximo();\n\t\tassertFalse(l.eliminar());\n\t\tassertEquals(8, l.tamanio());\n\t\tfor (int i = 0; i < l.tamanio(); i++)\n\t\t\tassertEquals((int)(new Integer(i + 1)), l.elemento(i));\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteEmployee(Employee t) {\n\t\t\r\n\t}", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "@Test\n public void testEliminarCliente() throws Exception {\n long sufijo = System.currentTimeMillis(); \n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); \n usuario.setDocumento(Long.valueOf(sufijo)); \n usuario.setTipoDocumento(TipoDocumento.CC);\n servicio.registrar(usuario); \n servicio.eliminarCliente(usuario.getLogin()); \n Usuario usuarioRegistrado =(Usuario) servicioPersistencia.findById(Usuario.class, usuario.getLogin()); \n assertNull(usuarioRegistrado); \n }", "public void eliminar(DetalleArmado detallearmado);", "@Test\n public void deleteComentarioTest(){\n ComentarioEntity entity = data.get(0);\n comentarioPersistence.delete(entity.getId());\n ComentarioEntity eliminado = em.find(ComentarioEntity.class,entity.getId());\n Assert.assertNull(eliminado);\n }", "@Test\n\tpublic void testRemoveMentee()\n\t{\n\t\tmentor.removeMentee(mentee);\n\t\tassertThat(mentor.getMentees().size()).isEqualTo(0);\n\t}", "public void eliminarUsuario(String id) throws BLException;", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void testRemove() throws SQLException, ClassNotFoundException {\r\n\t\t// create an instance to be test\r\n\t\tDate d = Date.valueOf(\"2017-01-01\");\r\n\t\tService ser = new Service(\"employee\", 1, \"variation\", \"note\", d, d, 1, 1);\r\n\t\tmodelDS.insert(ser); \r\n\t\tint id = -1;\r\n\t\tLinkedList<Service> list = modelDS.findAll();\r\n\t\tfor (Service a : list) {\r\n\t\t\tif (a.equals(ser))\r\n\t\t\t\tid = a.getId();\r\n\t\t}\r\n\t\t\r\n\t\tService service = modelDS.findByKey(id);\r\n\t\tmodelDS.remove(service.getId()); // method to test\r\n\r\n\t\t// database extrapolation\r\n\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT count(*) FROM \" + TABLE_NAME + \" WHERE id = ?\");\r\n\t\tps.setInt(1, id);\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tint expected = 0;\r\n\t\tif (rs.next())\r\n\t\t\texpected = rs.getInt(1);\r\n\t\tassertEquals(expected, 0);\r\n\t}", "@Override\n\tpublic void delete(int codigo) {\n\t\tSystem.out.println(\"Borra el empleado con \" + codigo + \" en la BBDD.\");\n\t}", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}", "@Test\r\n public void testRemove() throws Exception {\r\n\r\n String ADMIN_USERNAME = \"bjones\";\r\n Calendar DEFAULT_START_DATE = Calendar.getInstance();\r\n Calendar DEFAULT_END_DATE = Calendar.getInstance();\r\n DEFAULT_START_DATE.set(Calendar.YEAR, 1900);\r\n DEFAULT_END_DATE.set(Calendar.YEAR, 3000);\r\n \r\n logger.debug(\"\\nSTARTED testRemove()\\n\");\r\n\r\n User user1 = userDao.find(TEST_USERNAME);\r\n\r\n List<TaskLog> logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n Result<User> ar;\r\n\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as no task logs assigned!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as empty task log list!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n ar = userService.remove(ADMIN_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Should not be able to delete yourself\", !ar.isSuccess());\r\n\r\n logger.debug(\"\\nFINISHED testRemove()\\n\");\r\n }", "@Test\n public void testExclui() {\n System.out.println(\"exclui\");\n Object obj = null;\n AdministradorDAO instance = new AdministradorDAO();\n instance.exclui(obj);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void eliminarEmpleado(CLEmpleado cl) throws SQLException{\r\n String sql = \"{CALL sp_eliminarEmpleado(?)}\";\r\n \r\n try{\r\n ps = cn.prepareCall(sql);\r\n ps.setInt(1, cl.getIdEmpleado());\r\n ps.execute();\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n \r\n }", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "@Test\n void testRemoveExistingElement(){\n ToDoList list = new ToDoList();\n ToDo t = new ToDo(\"lala\");\n list.add(t);\n assertTrue(list.remove(t));\n }", "@Override\n\tpublic Employee delete(Employee emp) {\n\t\treturn null;\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "@Test\n public void testRemoveOrcamento() throws Exception {\n System.out.println(\"removeOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeOrcamento(orc);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "public void delEmployee(String person){\n System.out.println(\"Attempt to delete \" + person);\n try {\n String delete =\"DELETE FROM JEREMY.EMPLOYEE WHERE NAME='\" + person+\"'\"; \n stmt.executeUpdate(delete);\n \n \n } catch (Exception e) {\n System.out.println(person +\" may not exist\" + e);\n }\n \n }", "void eliminarPedidosUsuario(String idUsuario);", "@Test\n\tpublic void validaPeticionDeleteVehiculo() {\n\t\t// Arrange\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdVehiculo(\"5\").build();\n\t\tregistroService.saveRegistro(registro);\n\t\tboolean flag = false;\n\t\t// Act\n\t\ttry{\n\t\tregistroService.deleteRegistro(registro.getIdVehiculo());\n\t\tflag = true;\n\t\t}catch(Exception e){\n\t\t\tflag =false;\n\t\t}\n\t\t// Assert\n\t\tAssert.assertTrue(flag);\n\t}", "@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n int id = 0;\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.eliminar(id);\n assertEquals(expResult, result);\n \n }", "public void eliminarMensaje(InfoMensaje m) throws Exception;", "@Test(expected = BusinessLogicException.class)\n public void deleteEmpleadoConInvitacionesAsociadasTest() throws BusinessLogicException {\n \n\n EmpleadoEntity entity = data.get(1);\n empleadoLogic.deleteEmpleado(entity.getId());\n\n }", "public void EliminarElmento(int el) throws Exception{\n if (!estVacia()) {\n if (inicio == fin && el == inicio.GetDato()) {\n inicio = fin = null;\n } else if (el == inicio.GetDato()) {\n inicio = inicio.GetSiguiente();\n } else {\n NodoDoble ante, temporal;\n ante = inicio;\n temporal = inicio.GetSiguiente();\n while (temporal != null && temporal.GetDato() != el) {\n ante = ante.GetSiguiente();\n temporal = temporal.GetSiguiente();\n }\n if (temporal != null) {\n ante.SetSiguiente(temporal.GetSiguiente());\n if (temporal == fin) {\n fin = ante;\n }\n }\n }\n }else{\n throw new Exception(\"No existen datos por borrar!!!\");\n }\n }", "@Override\n\tpublic void deleteEmployee(Employee e) {\n\t\t\n\t}", "@Test\r\n public void testDeleteUsuario() throws Exception \r\n {\r\n UsuarioEntity entity = dataUs.get(0);\r\n usuarioLogic.deleteUsuario(entity.getId());\r\n UsuarioEntity deleted = em.find(UsuarioEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n }", "public boolean isEliminable(VOUsuario us) {\n return true;\n }", "@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}", "@Test\r\n public void testEliminarUsuario() {\r\n System.out.println(\"EliminarUsuario\");\r\n Usuario pusuario = new Usuario();\r\n pusuario.setCodigo(1);\r\n //pusuario.setUsuario(\"MSantiago\");\r\n \r\n BLUsuario instance = new BLUsuario();\r\n Result expResult = new Result(ResultType.Ok, \"Usuario eliminado correctamente.\", null);\r\n Result result = instance.EliminarUsuario(pusuario);\r\n \r\n System.out.println(result.getMensaje());\r\n assertEquals(expResult.getDetalleMensaje(), result.getDetalleMensaje());\r\n assertEquals(expResult.getMensaje(), result.getMensaje()); \r\n assertEquals(expResult.getTipo(), result.getTipo()); \r\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new Date(System.currentTimeMillis()), table.getId(), new Time(1000), new Time(2000));\n reservationsDao.createReservation(reservation);\n\n // Confirm that the reservation is in DB\n ReservationsEntity reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(reservation, reservationFromDb);\n\n // Delete reservation and confirm that it's not in the DB\n reservationsDao.deleteReservation(reservation);\n\n reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(null, reservationFromDb);\n\n }", "@Override\n\tpublic boolean eliminar(Long id) {\n\t\treturn false;\n\t}", "public void borrarempleado(Empleado empleado)throws SQLException{\n Connection conexion = null;\n \n try{\n conexion = GestionSQL.openConnection();\n if(conexion.getAutoCommit()){\n conexion.setAutoCommit(false);\n }\n EmpleadosDatos empleadodatos = new EmpleadosDatos();\n empleadodatos.delete(empleado);\n conexion.commit();\n System.out.println(\"Empleado borrado\");\n }catch(SQLException e){\n System.out.println(\"Error en borrado, entramos a rollback\");\n try{\n conexion.rollback();\n }catch(SQLException ex){\n System.out.println(\"Error en rollback\");\n }\n }finally{\n if(conexion != null){\n conexion.close();\n }\n }\n }", "public void eliminar(Long id) throws AppException;", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "@Test\n public void testaRemoveResultadoComExcecoes() {\n assertThrows(IllegalArgumentException.class, () -> atividade1.removeResultado(-1));\n assertThrows(IllegalArgumentException.class, () -> atividade2.removeResultado(0));\n\n //Resultado inexistente no sistema\n assertThrows(IllegalArgumentException.class, () -> atividade1.removeResultado(4));\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n if (rows_update==1)\n {\n JOptionPane.showMessageDialog(null,\"Registro eliminado exitosamente\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"No se pudo eliminar el registro, verifique datos\");\n con.desconectar();\n }\n }\n catch (SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Error \"+e.getMessage()); \n }\n }", "public void eliminar(Periodo periodo)\r\n/* 27: */ {\r\n/* 28: 53 */ this.periodoDao.eliminar(periodo);\r\n/* 29: */ }", "@Test\n void testRemoveNotExistingElement(){\n ToDoList list = new ToDoList();\n ToDo t = new ToDo(\"lala\");\n assertFalse(list.remove(t));\n }", "public void testSupprimerUtilisateur() {\n System.out.println(\"supprimerUtilisateur\");\n int pid = 0;\n boolean expResult = false;\n boolean result = Utilisateur.supprimerUtilisateur(pid);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void delete(Employee employee) {\r\n\r\n String sql = \"delete from db.emp where id= ?\";\r\n try {\r\n Connection connection = ConnectDB();\r\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\r\n preparedStatement.setInt(1,employee.getId());\r\n\r\n int rows=preparedStatement.executeUpdate();\r\n String message=rows==1 ? \"A fost sters cu succes\": \"Nu este nimic de sters\";\r\n\r\n System.out.println(message);\r\n\r\n } catch (SQLException Ex) {\r\n System.out.println(Ex.getMessage());\r\n System.out.println(\"Eroare la stergere\"+ Ex.getMessage());\r\n\r\n }\r\n }", "public String deleteEmployee(EmployeeDetails employeeDetails);", "public void eliminar(Producto producto) throws IWDaoException;", "private void deleteEmployee() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Test\n\tpublic void testDeletingEmployee() {\n\t\t\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.linkText(\"FirstName LastName\")).click();\n\t\tdriver.findElement(By.linkText(\"Click Here\")).click();\n\t\t\n\t\tAlert alert = driver.switchTo().alert();\n\t\talert.accept();\n\t\t\n\t\tassertEquals(0, driver.findElements(By.linkText(\"FirstName LastName\")).size());\n\t\t\n\t}", "@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }", "public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "public boolean eliminaEmpleado(int idEmpl) {\r\n\t\tif (getEmpleado(idEmpl)==null) return false;\r\n\t\templeados.remove(getEmpleado(idEmpl));\r\n\t\tdeleteCache(idEmpl, \"Empleado\");\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "@Override\r\n\tpublic void delete(Employee arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic String deleteEmp(int eid) {\n\t\treturn eb.deleteEmp(eid);\n\t}", "public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "@Test\r\n public void deleteCarritoDeComprasTest() {\r\n System.out.println(\"d entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n carritoDeComprasPersistence.delete(entity.getId());\r\n CarritoDeComprasEntity deleted = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n System.out.println(\"d voy\"+data);\r\n }" ]
[ "0.79404014", "0.72344655", "0.7142826", "0.7135009", "0.70060575", "0.69809437", "0.69780636", "0.6967882", "0.6947601", "0.68962944", "0.6877523", "0.6814592", "0.6812228", "0.6765036", "0.67645276", "0.67565125", "0.67533696", "0.6730062", "0.67173326", "0.66952634", "0.6654018", "0.6630428", "0.65884453", "0.65820134", "0.65725994", "0.65715593", "0.6570431", "0.6553328", "0.65523845", "0.65408164", "0.6514081", "0.6511824", "0.6508737", "0.65037847", "0.649869", "0.6494754", "0.6493462", "0.64886814", "0.6479111", "0.6476379", "0.6473269", "0.64563334", "0.6452422", "0.6449951", "0.64489406", "0.6444725", "0.6439143", "0.6434915", "0.64175403", "0.6404894", "0.6402646", "0.6397649", "0.63889337", "0.63861275", "0.6381845", "0.6376837", "0.6376515", "0.6363409", "0.6363144", "0.63577414", "0.63577044", "0.6354128", "0.63537544", "0.6350335", "0.6350193", "0.6345588", "0.6340468", "0.6340153", "0.6338537", "0.633777", "0.6330818", "0.6329297", "0.63221335", "0.63201725", "0.63194275", "0.6307949", "0.6301279", "0.6291558", "0.6284321", "0.6284174", "0.6278321", "0.6271447", "0.6269083", "0.6264498", "0.6263932", "0.62564385", "0.625569", "0.62430924", "0.6242241", "0.6237927", "0.62311214", "0.6223381", "0.62198675", "0.62188035", "0.62178993", "0.62167", "0.62152046", "0.6213346", "0.6203871", "0.6202274", "0.6200898" ]
0.0
-1
method to print the list of movies that is not END_SHOWING
public int printChoicesWithoutEndShowing() { int i=0; int N = this.getDataLength(); while (i<N) { if (this.dataList.get(i).isEndShowing()) break; System.out.println(i+" : "+this.dataList.get(i).toString()); i++; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "public void displayMovie(ArrayList<Movie> movies)\n {\n int index = 1;\n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIES LIST::::::::::::::::::::::::::::**\");\n \n for(Movie film : movies)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\t\\t\\t Movie number : [\" + index +\"]\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n index = index + 1;\n }\n }", "private void showMovies() {\n mDisplayErrorTV.setVisibility(View.INVISIBLE);\n mDisplayMoviesRV.setVisibility(View.VISIBLE);\n }", "public void listAllShowingMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tif (movie.getStatus().toString().equals(\"Now Showing\")) {\n\t\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tmovieExist = true;\n\t\t\t\t\t}\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (!movieExist) {\n\t\t\tSystem.out.println(\"There are no showing movies.\");\n\t\t}\n\t}", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public void printMovieWL(){\n\t\tfor (int i = 0; i < numMP; i++){\n\t\t\tSystem.out.println(\"Rank \" +(i+1)+ \": \" + moviePref[i].getName() + \", Availible: \" + moviePref[i].getHasMovie());\t\n\t\t} \n\t}", "private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}", "private void showMovies(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(true);\n recyclerView.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "public void printDescend() {\r\n\t\tMovieListNode<m> cur = tail;\r\n\t\twhile (cur != null) {\r\n\t\t\tSystem.out.println(cur);\t//prints current node\r\n\t\t\tcur = cur.prev;\t\t//moves back to previous node\r\n\t\t}\r\n\t}", "private void printMovieMiniMenu() throws IOException{\n\t\tprintMiniMenu(\"2.Back to Movie Menu\");\n\t\t//if we passed the printMiniMenu() call, we know the user chose to search again rather than going back to the login menu\n\t\tsearchMovies();\t\n\t}", "public void printMovieInfo() {\n println(\"Title : \" + this.movie.getTitle());\n println(\"Showing Status: \" + this.movie.getShowingStatus().toString());\n println(\"Content Rating: \" + this.movie.getContentRating().toString());\n println(\"Runtime : \" + this.movie.getRuntime() + \" minutes\");\n println(\"Director : \" + this.movie.getDirector());\n print(\"Cast : \");\n StringBuilder s = new StringBuilder();\n for (String r : movie.getCasts()) {\n s.append(r + \"; \");\n }\n println(s.toString());\n println(\"Language : \" + this.movie.getLanguage());\n println(\"Opening : \" + this.movie.getFormattedDate());\n\n print(\"Synopsis : \");\n println(this.movie.getSynopsis(), 16);\n\n if(movie.getRatingTimes() != 0 ){\n print(\"Overall Rating :\");\n printStars(movie.getOverAllRating());\n } else {\n println(\"Overall Rating: N/A\");\n }\n if (movie.getRatingTimes() != 0){\n for (Review r : movie.getReview()) {\n print(\"Review : \");\n println(r.getComment(), 16);\n print(\"Rating : \");\n printStars(r.getRating());\n }\n }\n }", "private static void printMovieTab(Movie movie) {\n\t\tString title = movie.getTitle();\n\t\tint year = movie.getYear();\n\t\tString actors = formatActorsString(movie.getActors());\n\t\tprintln(padMovieTitle(title) + \" \" + year + \" \" + actors);\n\t}", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "private void showMovieDataView() {\n // hide the error message display\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n // show the list of movies\n mMoviesRecyclerView.setVisibility(View.VISIBLE);\n }", "private void showMovieList(MovieResponse movieResponse) {\n setToolbarText(R.string.title_activity_list);\n showFavouriteIcon(true);\n buildList(movieResponse);\n }", "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "@Override\n\tpublic List<ShowTime> getShowTimes() {\n\t\treturn moviesListed;\n\t}", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "private static void seachCats(String maybeCat) {\n\t\tSystem.out.println(\"List of \" + maybeCat + \" movies\");\n\t\tSystem.out.println(\"===============================\");\n\t\tint i;\n\t\tint x = 0;\n\t\tfor (i = 0; i < movList.size(); i++) {\n\t\t\tif (movList.get(i).isCat(maybeCat)) {\n\t\t\t\tSystem.out.println(movList.get(i));\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t\tif (x == 0) {\n\t\t\tSystem.out.println(\"Sorry, there are no movies in that category.\");\n\t\t}\n\t}", "private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}", "public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }", "private static void showMovieDetails(){\n\t\t\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/getSize\");\n\t\t\tString listSize = getHTTPResponse(url);\n\t\t\tint size = Integer.parseInt(listSize);\n\t\t\t\n\t\t\tif (size==0)\n\t\t\t\tSystem.out.println(\"There are no movies on the list\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Select movie id 1-\"+size);\n\t\t\t\n\t\t\tint choice = Integer.parseInt(scanner.next());\n\t\t\t\n\t\t\turl = new URL(\"http://localhost:8080/getMovieDetails?id=\"+choice);\n\t\t\tString rawJSONObject = getHTTPResponse(url);\n\t\t\tJSONObject movieDetails = new JSONObject(rawJSONObject);\n\t\t\tStringBuilder details = new StringBuilder();\n\t\t\t\n\t\t\tdetails.append(\"ID: \");\n\t\t\tdetails.append(movieDetails.getInt(\"id\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Name: \");\n\t\t\tdetails.append(movieDetails.getString(\"name\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Year: \");\n\t\t\tdetails.append(movieDetails.getInt(\"year\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Directed by: \");\n\t\t\tdetails.append(movieDetails.getString(\"director\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Country: \");\n\t\t\tdetails.append(movieDetails.getString(\"country\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\t\n\t\t\tSystem.out.println(details.toString());\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error - wrong input or service down\");\n\t\t}\n\t\t\n\t}", "public void emptyMovieSelected(){\n //get empty movie item\n mMovie = mMovieStaff.getEmptyMovie();\n\n //show movie item\n showMovieInfo(mMovie);\n }", "private void showMoviesDataView()\n {\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n mGridView.setVisibility(View.VISIBLE);\n }", "public static void printMovieInformation(Movie movieObj) {\n\n System.out.print(\"The movie \"+movieObj.getName());\n System.out.print(\" is \"+movieObj.getLength() + \" hour long\");\n System.out.println(\" and it genre is \"+movieObj.getType());\n\n \n\n }", "public void showFavorites() {\n System.out.println(\"Mina favoriter: \" + myFavorites.size());\n for (int i = 0; i < myFavorites.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myFavorites.get(i).getTitle() +\n \"\\nRegissör: \" + myFavorites.get(i).getDirector() + \" | \" +\n \"Genre: \" + myFavorites.get(i).getGenre() + \" | \" +\n \"År: \" + myFavorites.get(i).getYear() + \" | \" +\n \"Längd: \" + myFavorites.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myFavorites.get(i).getRating());\n }\n }", "public void listAllMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.println(\"==================\");\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tif (showtimes == null)\n\t\t\t\treturn;\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t\tmovieExist = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "void printFilteredItems();", "private void showNoFavoriteMoviesTextView(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.VISIBLE);\n }", "public static void watchMovie(){\r\n System.out.println('\\n'+\"Which movie would you like to watch?\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n //Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //If movie is found in the list\r\n if (movieTitle.equals(names.getName())){\r\n names.timesWatched += 1;\r\n System.out.println(\"Times Watched for \"+ names.getName()+ \" has been increased to \"+ names.timesWatched);\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n\r\n // If movie not found do the other case\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "public void print() {\n System.out.println(\"**List of books in the library.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }", "public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }", "public void printAscend() {\r\n\t\tMovieListNode<m> cur = head;\r\n\t\twhile (cur != null) {\r\n\t\t\tSystem.out.println(cur);\t//prints current node\r\n\t\t\tcur = cur.next;\t\t//moves on to next node\r\n\t\t}\r\n\t}", "public static void printMovieByCategory(String category) {\n System.out.println(\"View movies in the \" + category + \" category\");\n for (Movie movie : moviesList) {\n if (movie.getCategory().equalsIgnoreCase(category)) {\n System.out.println(movie.getName() + \" -- \" + movie.getCategory());\n }\n\n }\n\n\n }", "public void printAll() {\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"################\");\r\n\t\tSystem.out.println(\"Filename:\" +getFileName());\r\n\t\tSystem.out.println(\"Creation Date:\" +getCreationDate());\r\n\t\tSystem.out.println(\"Genre:\" +getGenre());\r\n\t\tSystem.out.println(\"Month:\" +getMonth());\r\n\t\tSystem.out.println(\"Plot:\" +getPlot());\r\n\t\tSystem.out.println(\"New Folder Name:\" + getNewFolder());\r\n\t\tSystem.out.println(\"New Thumbnail File Name:\" +getNewThumbnailName());\r\n\t\tSystem.out.println(\"New File Name:\" +getNewFilename());\r\n\t\tSystem.out.println(\"Season:\" +getSeason());\r\n\t\tSystem.out.println(\"Episode:\" +getEpisode());\r\n\t\tSystem.out.println(\"Selected:\" +getSelectEdit());\r\n\t\tSystem.out.println(\"Title:\" +getTitle());\r\n\t\tSystem.out.println(\"Year:\" +getYear());\r\n\t\tSystem.out.println(\"Remarks:\" +getRemarks());\r\n\t\tSystem.out.println(\"################\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void showMovieList(ArrayList<MovieItem> movies, int request){\n //instantiate HouseKeeper that is in charge of displaying the movie list\n SwipeKeeper swipe = (SwipeKeeper)mKeeperStaff.getHouseKeeper(SwipeHelper.NAME_ID);\n\n //notify houseKeeper to update movie list\n swipe.updateMovieList(movies, request);\n }", "public static void main(String[] args) {\n\t\tMovie coco = new Movie(\"Coco\", \"Animated\");\n\t\tmovList.add(coco);\n\t\tcoco.setCat(\"Supernatural\");\n\t\tcoco.setCat(\"Family\");\n\t\tMovie iHeart = new Movie(\"I <3 Huckabees\", \"Quirky\");\n\t\tmovList.add(iHeart);\n\t\tiHeart.setCat(\"Comedy\");\n\t\tiHeart.setCat(\"Drama\");\n\t\tMovie machGo = new Movie(\"Speed Racer\", \"Action\");\n\t\tmovList.add(machGo);\n\t\tmachGo.setCat(\"Comedy\");\n\t\tmachGo.setCat(\"Family\");\n\t\tMovie fightClub = new Movie(\"Fight Club\", \"Drama\");\n\t\tmovList.add(fightClub);\n\t\tfightClub.setCat(\"Thriller\");\n\t\tMovie scott = new Movie(\"Scott Pilgrim vs. The World\", \"Action\");\n\t\tmovList.add(scott);\n\t\tscott.setCat(\"Comedy\");\n\t\tscott.setCat(\"Coming of age\");\n\t\tscott.setCat(\"Teen\");\n\t\tMovie scream = new Movie(\"Scream\", \"Horror\");\n\t\tmovList.add(scream);\n\t\tscream.setCat(\"Thriller\");\n\t\tscream.setCat(\"Teen\");\n\t\tMovie nick = new Movie(\"Nick & Norah's Infinite Playlist\", \"Teen\");\n\t\tmovList.add(nick);\n\t\tnick.setCat(\"Romantic Comedy\");\n\t\tnick.setCat(\"Coming of age\");\n\t\tMovie fiveHun = new Movie(\"(500) Days of Summer\", \"Romantic Comedy\");\n\t\tmovList.add(fiveHun);\n\t\tfiveHun.setCat(\"Drama\");\n\t\tfiveHun.setCat(\"Coming of Age\");\n\t\tfiveHun.setCat(\"Quirky\");\n\t\tMovie nightMare = new Movie(\"The Nightmare Before Christmas\", \"Animated\");\n\t\tmovList.add(nightMare);\n\t\tnightMare.setCat(\"Family\");\n\t\tnightMare.setCat(\"Comedy\");\n\t\tMovie ferris = new Movie(\"Ferris Bueller's Day Off\");\n\t\tmovList.add(ferris);\n\t\tferris.setCat(\"Teen\");\n\t\tferris.setCat(\"Coming of age\");\n\t\tferris.setCat(\"Comedy\");\n//Menu is moved to it's own method for simplicity. \n\t\tSystem.out.println(\n\t\t\t\t\"Welcome to the movie list app! \\n \\nThere are currently \" + movList.size() + \" movies on the list.\");\n\t\tmenu();\n\t}", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }", "public void displayMostWatchedMovie(List<Movie> mostWatchedMovies) {\n\t\tfor(Movie movie:mostWatchedMovies)\n\t\t\tSystem.out.println(movie.getTitle());\n\t}", "public void printTopSalesMovies() {\n\t\tCollections.sort(this.dataList, new SortBySales());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public void printMoveList(){\n\t\tString body = \"\";\n\t\tfor (int i = 0; i < moveList.size(); i++) {\n\t\t\tif (i % 2 == 0)\n\t\t\t\tbody += \"\\n\" + Integer.toString(i / 2 + 1) + \" \";\n\n\t\t\tbody += moveList.get(i).algebraicNotationPrint() + \" \";\n\t\t}\n\t\tSystem.out.println(body);\n\t}", "public ArrayList<String> viewShow(MovieBean mbean) throws SQLException, ClassNotFoundException {\n\t\treturn tImpl.viewShow(mbean);\r\n\t}", "public void printMoveList() {\n \tint x = 1;\n \tfor(int i = 0; i < moveList.size(); ++i) {\n \t\tif(i%2 == 0) {\n \t\t\tSystem.out.print(\"\" + x + \". \" + moveList.get(i));\n \t\t\tx++;\n \t\t}\n \t\telse {\n \t\t\tSystem.out.print(\" \"+moveList.get(i));\n \t\t\tSystem.out.println();\n \t\t}\n \t}\n }", "@Override\r\n\tpublic void stop() {\n\t\tSystem.out.println(\"Stop Movie\");\r\n\t\t\r\n\t}", "private void showMovieDetails() {\n\n if (movie != null) {\n\n // Display movie title, year, and overview into corresponding labels\n if (movie.getReleaseDate().equals(\"\")) {\n\n lblTitle.setText(movie.getMovieTitle());\n lblOverview.setText(movie.getMovieOverview());\n } else {\n\n lblTitle.setText(String.format(\"%s (%s)\", movie.getMovieTitle(), movie.getReleaseDate()));\n lblOverview.setText(movie.getMovieOverview());\n }\n\n // Display movie media into an image view\n downloadPoster();\n }\n }", "@Override\n\tpublic void print() {\n\t\tSystem.out.println(\"Avaliable Media items are\");\n\t\t\n\t\tSystem.out.println(\"Identification Number number of copies title of item\");\n\n\t\t\t\tfor(int i =0; i<getTitle().length; i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(getIdentificatioNumber()[i]+\" \"\n\t\t\t\t\t+getNumberOfCopies()[i]+\" \"+getTitle()[i]);\n\t\t\t\t}\n\t\t\t}", "public static void printSeats() {\n for (boolean seat : movieTheater) {\n if (seat) {\n System.out.print(\"X \");\n } else {\n System.out.print(\"_ \");\n }\n }\n\n System.out.println();\n }", "public List<String> getMovieList(){\n Set<String> movieList= new HashSet<String>();\n List<MovieListing> showtimes= ListingManager.getShowtimes();\n for(int i=0;i<history.size();i++){\n CustomerTransaction curr= history.get(i);\n for(int j=0;j<showtimes.size(); j++){\n MovieListing show = showtimes.get(j);\n if (show.sameListing(curr.getListingID())){\n movieList.add(show.getTitle());\n\n }\n }\n }\n return new ArrayList<>(movieList);\n }", "private void videoVisible() {\n }", "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "@Override\n public String toString() {\n return currentShowings.toString();\n }", "private void displayTrailerInfo(List<Trailer> trailers) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(0).getName() == null) {\n setDefaultTrailerName(trailers.get(0));\n }\n //sets the value for the trailer name\n video1.setText(trailers.get(0).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play1.setTag(trailers.get(0).getKey());\n play1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n\n //if there is more than 1 trailer, show the second one\n if (trailers.size() > 1) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(1).getName() == null) {\n setDefaultTrailerName(trailers.get(1));\n }\n //sets the value for the trailer name\n video2.setText(trailers.get(1).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play2.setTag(trailers.get(1).getKey());\n play2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video2.setVisibility(View.VISIBLE);\n play2.setVisibility(View.VISIBLE);\n }\n //if there are more than 2 trailers, show the third one\n if (trailers.size() > 2) {\n //checks if the Trailer object has a name. If not, assigns a default name to it\n if (trailers.get(2).getName() == null) {\n setDefaultTrailerName(trailers.get(2));\n }\n //sets the value for the trailer name\n video3.setText(trailers.get(2).getName());\n //sets the trailer's tag to be used when launching Youtube app to view the trailer\n play3.setTag(trailers.get(2).getKey());\n play3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playVideo(v);\n }\n });\n //makes the \"play\" image and the name text view visible\n video3.setVisibility(View.VISIBLE);\n play3.setVisibility(View.VISIBLE);\n }\n\n }", "public void print() {\n\t\tif (cs213.isEmpty()) {\n\t\t\tSystem.out.println(\"List is empty!\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tcs213.print();\n\t\t}\n\t\treturn;\n\t\t}", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "public void printAll()\n {\n r.showAll();\n }", "private void show() {\n System.out.println(team.toString());\n }", "public void movieDisplay(){\n actor.display();\n }", "private void watched(boolean w){\n for (Movie temp:\n baseMovieList) {\n if(temp.isWatched() == w)\n movieList.add(temp);\n }\n }", "public void showInfo() {\n System.out.println(\"Showtime ID \" + showtimeID + \", Movie title: \" + movieTitle + \", Datetime: \" + dateTime.get(Calendar.YEAR) + \" \" + (dateTime.get(Calendar.MONTH) + 1) + \" \" + dateTime.get(Calendar.DATE) + \" \" + dateTime.get(Calendar.HOUR_OF_DAY) + \" \" + dateTime.get(Calendar.MINUTE));\n }", "private void printDiscardedAnswers(){\n\t\tSystem.out.println(\"\\nDiscarded Answers\");\n\t\tfor(Student student: discardedResponses){\n\t\t\tSystem.out.println(\"Student: \"+student.toString());\n\t\t}\n\t}", "public static ArrayList<MovieInfoObject> getMoviesToDisplay() {\n return mMovies;\n }", "private void showMovieDataView() {\n /* First, make sure the error is invisible */\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n /* Then, make sure the weather data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n }", "public void printRemoval() {\n System.out.println(\"\\n\" + \"=== Removed Files ===\");\n List<String> deleting = Utils.plainFilenamesIn(REMOVAL);\n for (String filesName: deleting) {\n System.out.println(filesName);\n }\n }", "public String showPlayListInformation(){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\treturn text;\n\t}", "@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }", "@Override\n\tpublic int getCount() {\n\t\treturn movies.size();\n\t}", "void showAll();", "public String visibleItems() {\n \tStringBuilder s = new StringBuilder(\"\");\n for (Item item : items) {\n if (item instanceof Visible && item.isVisible()) {\n s.append(\"\\nThere is a '\").append(item.detailDescription()).append(\"' (i.e. \" + item.description() + \" ) here.\");\n }\n }\n return s.toString();\n }", "public static void printShorterDurationMovieName(Movie movieObj1, Movie movieObj2){\n // TODO YOUR CODE HERE\n if (movieObj1.getLength() < movieObj2.getLength()){\n\n System.out.println(movieObj1.getName());\n\n }else {\n\n System.out.println(movieObj2.getName());\n\n }\n }", "public void printMedicationHistory() {\n StringBuilder builder = new StringBuilder();\n if (medications.size() > 0) {\n for (Medication medication : medications) {\n builder.append(medication.toString()).append(\"\\n\");\n }\n builder.delete(builder.length() - 1, builder.length());\n }\n System.out.println(builder.toString());\n }", "void printData()\n\t{\n\t\tint totalNumberofComments = comments.size();\n\t\tint videoHappyCommentCount = 0;\n\t\tint videoSadCommentCount = 0;\n\n\t\tfor (String comment : comments)\n\t\t{\n\t\t\tint sadWordsInComment = retrieveNumberOfSadKeywords(comment);\n\t\t\tint happyWordsInComment = retrieveNumberOfHappyKeywords(comment);\n\t\t\tString generalSentiment = null;\n\n\t\t\tgeneralSentiment = (sadWordsInComment >= happyWordsInComment) ? \"sad\"\n\t\t\t\t\t: \"happy\";\n\t\t\tSystem.out.println(\"_________________________________________________________________\");\n\t\t\tSystem.out.println(comment);\n\t\t\tSystem.out.println(\"From a sample size of \" + totalNumberofComments\n\t\t\t\t\t+ \" persons, \" + \"\\n\" + \"This sentence is mostly \"\n\t\t\t\t\t+ generalSentiment);\n\t\t\tSystem.out.println(\"It contained \" + happyWordsInComment\n\t\t\t\t\t+ \" happy keywords and \" + sadWordsInComment\n\t\t\t\t\t+ \" sad keywords\");\n\t\t\tSystem.out.println(\"_________________________________________________________________\");\n\t\t\tif (generalSentiment.equalsIgnoreCase(\"sad\"))\n\t\t\t{\n\t\t\t\tif(sadWordsInComment > 0)\n\t\t\t\t{\n\t\t\t\t\tvideoSadCommentCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (generalSentiment.equalsIgnoreCase(\"happy\"))\n\t\t\t{\n\t\t\t\tif(happyWordsInComment > 0)\n\t\t\t\t{\n\t\t\t\t\tvideoHappyCommentCount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tString videoFeelingCommentary = \"\";\n\t\tif(videoHappyCommentCount > videoSadCommentCount)\n\t\t{\n\t\t\tvideoFeelingCommentary = \"The general feelings towards this video were happy\";\n\t\t}\n\t\telse if(videoHappyCommentCount < videoSadCommentCount)\n\t\t{\n\t\t\tvideoFeelingCommentary = \"The general feelings towards this video were sad\";\n\t\t}\n\t\telse if(videoHappyCommentCount == videoSadCommentCount)\n\t\t{\n\t\t\tvideoFeelingCommentary = \"The general feelings towards this video were neutral\";\n\t\t}\n\t\t\n\t\tSystem.out.println(videoFeelingCommentary);\n\n\t}", "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void show() {\r\n\t\tfor (Carta carta: baraja) {\r\n\t\t\tSystem.out.println(carta);\r\n\t\t}\r\n\t}", "private void printOptionsForPlaylist() {\n System.out.println(\"\\n\\t0. Return to main menu \\n\\t1. print Options For Playlist \\n\\t2. Skip forward (next song) \\n\\t3. skip backwards (previous song)\" +\n \"\\n\\t4. removing song in playlist\" + \" \\n\\t5. repeat the current song\" + \" \\n\\t6. current song played\"\n + \" \\n\\t7. show list songs of playlist \");\n }", "public void skipPrint()\n {\n skipPrint(0);\n }", "public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "@Override\n public void println(String title){\n Print.oun(\"|============\" + title + \"============|\");\n println();\n Print.oun(\"|===========End of the list===========|\");\n }", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "public void printList() {\n userListCtrl.showAll();\n }", "public void displayGame()\n { \n System.out.println(\"\\n-------------------------------------------\\n\");\n for(int i=3;i>=0;i--)\n {\n if(foundationPile[i].isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(foundationPile[i].peek());\n }\n System.out.println();\n for(int i=6;i>=0;i--)\n {\n for(int j=0;j<tableauHidden[i].size();j++)\n System.out.print(\"X\");\n System.out.println(tableauVisible[i]);\n }\n System.out.println();\n if(waste.isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(waste.peek());\n if(deck.isEmpty())\n System.out.println(\"[O]\");\n else System.out.println(\"[X]\");\n }", "private void showCachedMovieList() {\n String cacheData = AppPrefs.getInstance(this).getCacheData();\n showMovieList(new Gson().fromJson(cacheData, MovieResponse.class));\n }", "public String toString()\n\t{\n\t\tString temp = \"\";\n\t\tfor (int index = 0; index < peopleAct.size(); index++)\n\t\t{\n\t\t\tif (index == peopleAct.size() - 1 || peopleAct.get(index + 1) == null)\n\t\t\t{\n\t\t\t\ttemp += \"and \" + peopleAct.get(index).toString() + \".\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemp += peopleAct.get(index).toString() + \", \";\n\t\t\t}\n\t\t}\n\t\tString output = \"Movie Name: \" + name + \"\\nMovie Release Year: \" + year + \"\\nMovie Actors/Actressess: \" + temp;\n\t\treturn output;\n\t}", "void printout() {\n\t\tprintstatus = idle;\n\t\tanyprinted = false;\n\t\tfor (printoldline = printnewline = 1;;) {\n\t\t\tif (printoldline > oldinfo.maxLine) {\n\t\t\t\tnewconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (printnewline > newinfo.maxLine) {\n\t\t\t\toldconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (newinfo.other[printnewline] < 0) {\n\t\t\t\tif (oldinfo.other[printoldline] < 0)\n\t\t\t\t\tshowchange();\n\t\t\t\telse\n\t\t\t\t\tshowinsert();\n\t\t\t} else if (oldinfo.other[printoldline] < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse if (oldinfo.other[printoldline] == printnewline)\n\t\t\t\tshowsame();\n\t\t\telse\n\t\t\t\tshowmove();\n\t\t}\n\t\tif (anyprinted == true)\n\t\t\tprintln(\">>>> End of differences.\");\n\t\telse\n\t\t\tprintln(\">>>> Files are identical.\");\n\t}", "public void movieDetailes (Movie movie) throws IOException, JSONException{\n\t\t\n\t MovieImages poster= movie.getImages(movie.getID());\n\t System.out.println(poster.posters);\n\t \n\t Set<MoviePoster> temp = new HashSet<MoviePoster>();\n\t for(MoviePoster a: poster.posters) {\n\t \t \n\t \t posterurl = \"\";\n\t \t largerposterurl = \"\";\n\t \t if(a.getSmallestImage() != null){\n\t \t\t posterurl = a.getSmallestImage().toString();\n\t \t }\n\t \t if(a.getImage(Size.MID) != null){\n\t \t\t largerposterurl = a.getImage(Size.MID).toString();\n\t \t }\n\t \t //System.out.println(a.getSmallestImage());\n\t \t break;\n\t }\n\n\t System.out.println(\"Cast:\");\n\t // Get the full decsription of the movie.\n\t Movie moviedetail = Movie.getInfo(movie.getID());\n\t if(moviedetail != null){\n\t \tmovieName = moviedetail.getOriginalName();\n\t\t overview = moviedetail.getOverview();\n\t\t if(moviedetail.getTrailer() != null){\n\t\t \ttrailerURL = moviedetail.getTrailer().toString();\n\t\t }\n\t\t if(moviedetail.getReleasedDate() != null){\n\t\t \treleaseDate = moviedetail.getReleasedDate().toString();\n\t\t }\n\t\t rating = moviedetail.getRating();\n\t\t cast = \"\\n\\nCast: \\n\";\n\t\t for (CastInfo moviecast : moviedetail.getCast()) {\n\t\t\t System.out.println(\" \" + moviecast.getName() + \" as \"\n\t\t\t + moviecast.getCharacterName()\t);\n\t\t\t cast = cast + \" \" + moviecast.getName() + \"\\n\";\n\t\t\t }\n\t\t \n\t\t ID = moviedetail.getID();\n\t }\n\t \n\t}", "private void printData() {\n\n System.out.println(\"No of Stars '\" + myStars.size() + \"'.\");\n\n// Iterator<Star> it = myStars.iterator();\n// System.out.println(\"First 20 in the list\");\n// int i=0;\n// while (it.hasNext()) {\n// System.out.println(it.next().toString());\n// i++;\n// if(i==19){\n// break;\n// }\n// }\n }", "private void searchShow() {\n ArrayList<Show> searchShows = new ArrayList<>();\n for (Show show : clientController.getUser().getShows()) {\n if (show.getName().toLowerCase().contains(getText().toLowerCase())) {\n searchShows.add(show);\n }\n// else {\n// JOptionPane.showMessageDialog(null, \"The search gave no result!\");\n// }\n\n }\n pnlShowList.removeAll();\n pnlShowList.setBackground(Color.decode(\"#6A86AA\"));\n draw(searchShows);\n }", "private List<MovieDetails> movieList() {\n List<MovieDetails> movieDetailsList = new ArrayList<>();\n movieDetailsList.add(new MovieDetails(1, \"Movie One\", \"Movie One Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two\", \"Movie Two Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two - 1 \", \"Movie Two Description - 1 \"));\n\n return movieDetailsList;\n }", "public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void showMandje(){\r\n \r\n // Laat \r\n System.out.println(\"Winkelmand bevat de volgende items\");\r\n \r\n // Print alle artikelen die de in zijn winkelmandje heeft\r\n for(Artikel item : artikelen)\r\n {\r\n System.out.println(\"Naam:\" + item.getNaam() + \" prijs:\"+ item.getPrijs());\r\n }\r\n }", "public ArrayList<Showing> getAllShowings() {\n return filmDisplay.getAllShowings();\n }", "public void showContent() {\n createStream().forEach(System.out::println);\n }", "public void showCards() {\n\t\tfor(int i=0;i<cards.size();i++) {\n\t\t\tSystem.out.println(cards.get(i).toString());\n\t\t}\n\t}", "@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}", "public void setPrint(String yorn) {\n print = yorn.trim().equals(\"y\");\n }", "public String toString() {\n return \"Movie: \" + this.movie.getTitle() + \"\\nDate and time: \" + this.dayAndTime.toString() +\n \"\\nCinema: \" + this.cinema.getCinemaName() + \"\\nTheater Number: \" + theater.getTheaterNumber();\n }" ]
[ "0.7216688", "0.66083217", "0.66082054", "0.6493487", "0.6484776", "0.6388543", "0.6386381", "0.623673", "0.62259245", "0.6209855", "0.60948753", "0.6047802", "0.60138524", "0.59865266", "0.5983409", "0.59409523", "0.5868965", "0.5861798", "0.58401316", "0.58033496", "0.5756039", "0.57247305", "0.5713057", "0.56868434", "0.56297284", "0.56235445", "0.56196773", "0.56084013", "0.5576963", "0.55378747", "0.5528252", "0.55250466", "0.5518339", "0.55091", "0.5507702", "0.5493703", "0.54763794", "0.54740393", "0.54576004", "0.54466194", "0.54389733", "0.54372007", "0.54325205", "0.54182905", "0.5415715", "0.5415095", "0.54103917", "0.5402905", "0.53960717", "0.5390068", "0.53899276", "0.5362501", "0.5353089", "0.5315599", "0.5299665", "0.52932906", "0.5277825", "0.5273795", "0.52692837", "0.5253299", "0.5246496", "0.5235696", "0.5232002", "0.52313966", "0.5230805", "0.52291816", "0.5224293", "0.52027047", "0.519256", "0.5185012", "0.51844335", "0.51823694", "0.5182096", "0.51774836", "0.51692456", "0.5168594", "0.51630586", "0.5160864", "0.51580834", "0.5157778", "0.51573527", "0.5155189", "0.5153494", "0.5151244", "0.5149357", "0.5147631", "0.5140622", "0.51388526", "0.51377434", "0.5137595", "0.5136841", "0.51347876", "0.51299214", "0.51198053", "0.5104484", "0.51005256", "0.50914806", "0.5076714", "0.50762546", "0.5075645" ]
0.5304798
54
method to print list of movies that is not COMING_SOON
public int printChoicesForShowtimes() { int i=0; int N = this.getDataLength(); while(i<N) { if (this.dataList.get(i).isComingSoon()) break; System.out.println(i+" : "+this.dataList.get(i).toString()); ++i; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public void displayMovie(ArrayList<Movie> movies)\n {\n int index = 1;\n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIES LIST::::::::::::::::::::::::::::**\");\n \n for(Movie film : movies)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\t\\t\\t Movie number : [\" + index +\"]\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n index = index + 1;\n }\n }", "public void printMovieWL(){\n\t\tfor (int i = 0; i < numMP; i++){\n\t\t\tSystem.out.println(\"Rank \" +(i+1)+ \": \" + moviePref[i].getName() + \", Availible: \" + moviePref[i].getHasMovie());\t\n\t\t} \n\t}", "private static void seachCats(String maybeCat) {\n\t\tSystem.out.println(\"List of \" + maybeCat + \" movies\");\n\t\tSystem.out.println(\"===============================\");\n\t\tint i;\n\t\tint x = 0;\n\t\tfor (i = 0; i < movList.size(); i++) {\n\t\t\tif (movList.get(i).isCat(maybeCat)) {\n\t\t\t\tSystem.out.println(movList.get(i));\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t\tif (x == 0) {\n\t\t\tSystem.out.println(\"Sorry, there are no movies in that category.\");\n\t\t}\n\t}", "public void listAllShowingMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tif (movie.getStatus().toString().equals(\"Now Showing\")) {\n\t\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tmovieExist = true;\n\t\t\t\t\t}\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (!movieExist) {\n\t\t\tSystem.out.println(\"There are no showing movies.\");\n\t\t}\n\t}", "private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "public void listAllMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.println(\"==================\");\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tif (showtimes == null)\n\t\t\t\treturn;\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t\tmovieExist = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "public static void printSeats() {\n for (boolean seat : movieTheater) {\n if (seat) {\n System.out.print(\"X \");\n } else {\n System.out.print(\"_ \");\n }\n }\n\n System.out.println();\n }", "private static void printMovieTab(Movie movie) {\n\t\tString title = movie.getTitle();\n\t\tint year = movie.getYear();\n\t\tString actors = formatActorsString(movie.getActors());\n\t\tprintln(padMovieTitle(title) + \" \" + year + \" \" + actors);\n\t}", "public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}", "private void printDiscardedAnswers(){\n\t\tSystem.out.println(\"\\nDiscarded Answers\");\n\t\tfor(Student student: discardedResponses){\n\t\t\tSystem.out.println(\"Student: \"+student.toString());\n\t\t}\n\t}", "public static void watchMovie(){\r\n System.out.println('\\n'+\"Which movie would you like to watch?\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n //Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //If movie is found in the list\r\n if (movieTitle.equals(names.getName())){\r\n names.timesWatched += 1;\r\n System.out.println(\"Times Watched for \"+ names.getName()+ \" has been increased to \"+ names.timesWatched);\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n\r\n // If movie not found do the other case\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "private void removeFilm(ArrayList<Movie> movies, String head)\n {\n for (Movie film : movies)\n {\n String title = film.getTitle();\n \n if (title.equalsIgnoreCase(head))\n {\n movies.remove(film);\n System.out.println(\"\\n\\t\\t >>>>> As you wish, \" + title.toUpperCase() + \" has DELETED <<<<<\");\n return;\n }\n }\n }", "private void showMovies() {\n mDisplayErrorTV.setVisibility(View.INVISIBLE);\n mDisplayMoviesRV.setVisibility(View.VISIBLE);\n }", "public void moviesForYear(String year) {\r\n\t\tboolean success = false;\r\n\t\tMovieListNode<m> cur = head;\r\n\t\twhile(cur!=null) {\r\n\t\t\tboolean part = cur.toString().toLowerCase().contains(year.toLowerCase());\t//REFERENCE: https://stackoverflow.com/questions/2275004/in-java-how-do-i-check-if-a-string-contains-a-substring-ignoring-case\r\n\t\t\t//^^checks if the year is in the current movie node\r\n\t\t\tif(part ==true) {\r\n\t\t\t\t//^^ if the year was in the node, then print the movie details\r\n\t\t\t\tsuccess = true;\r\n\t\t\t\tSystem.out.println(cur.toString());\r\n\t\t\t}\r\n\t\t\tcur=cur.next;\t//goes on to check if there were other movies with that year\r\n\t\t}\r\n\t\tif(cur==null && success!=true) {\r\n\t\t\tSystem.out.println(\"There were no movies for that year.\");\r\n\t\t\t//^^ if no movies with that year were found, then success stays false and the user is informed that there were no movies with the year\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tMovie coco = new Movie(\"Coco\", \"Animated\");\n\t\tmovList.add(coco);\n\t\tcoco.setCat(\"Supernatural\");\n\t\tcoco.setCat(\"Family\");\n\t\tMovie iHeart = new Movie(\"I <3 Huckabees\", \"Quirky\");\n\t\tmovList.add(iHeart);\n\t\tiHeart.setCat(\"Comedy\");\n\t\tiHeart.setCat(\"Drama\");\n\t\tMovie machGo = new Movie(\"Speed Racer\", \"Action\");\n\t\tmovList.add(machGo);\n\t\tmachGo.setCat(\"Comedy\");\n\t\tmachGo.setCat(\"Family\");\n\t\tMovie fightClub = new Movie(\"Fight Club\", \"Drama\");\n\t\tmovList.add(fightClub);\n\t\tfightClub.setCat(\"Thriller\");\n\t\tMovie scott = new Movie(\"Scott Pilgrim vs. The World\", \"Action\");\n\t\tmovList.add(scott);\n\t\tscott.setCat(\"Comedy\");\n\t\tscott.setCat(\"Coming of age\");\n\t\tscott.setCat(\"Teen\");\n\t\tMovie scream = new Movie(\"Scream\", \"Horror\");\n\t\tmovList.add(scream);\n\t\tscream.setCat(\"Thriller\");\n\t\tscream.setCat(\"Teen\");\n\t\tMovie nick = new Movie(\"Nick & Norah's Infinite Playlist\", \"Teen\");\n\t\tmovList.add(nick);\n\t\tnick.setCat(\"Romantic Comedy\");\n\t\tnick.setCat(\"Coming of age\");\n\t\tMovie fiveHun = new Movie(\"(500) Days of Summer\", \"Romantic Comedy\");\n\t\tmovList.add(fiveHun);\n\t\tfiveHun.setCat(\"Drama\");\n\t\tfiveHun.setCat(\"Coming of Age\");\n\t\tfiveHun.setCat(\"Quirky\");\n\t\tMovie nightMare = new Movie(\"The Nightmare Before Christmas\", \"Animated\");\n\t\tmovList.add(nightMare);\n\t\tnightMare.setCat(\"Family\");\n\t\tnightMare.setCat(\"Comedy\");\n\t\tMovie ferris = new Movie(\"Ferris Bueller's Day Off\");\n\t\tmovList.add(ferris);\n\t\tferris.setCat(\"Teen\");\n\t\tferris.setCat(\"Coming of age\");\n\t\tferris.setCat(\"Comedy\");\n//Menu is moved to it's own method for simplicity. \n\t\tSystem.out.println(\n\t\t\t\t\"Welcome to the movie list app! \\n \\nThere are currently \" + movList.size() + \" movies on the list.\");\n\t\tmenu();\n\t}", "public void print()\n/* */ {\n/* 226 */ boolean emptyTarget = true;\n/* 227 */ Iterator it; if ((this.subjects != null) && (this.subjects.size() > 0)) {\n/* 228 */ System.out.println(\"\\nSubjects ---->\");\n/* 229 */ emptyTarget = false;\n/* 230 */ for (it = this.subjects.iterator(); it.hasNext();)\n/* 231 */ ((MatchList)it.next()).print();\n/* */ }\n/* 234 */ if ((this.resources != null) && (this.resources.size() > 0)) {\n/* 235 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Resources ---->\");\n/* 236 */ emptyTarget = false;\n/* 237 */ for (it = this.resources.iterator(); it.hasNext();)\n/* 238 */ ((MatchList)it.next()).print();\n/* */ }\n/* 241 */ if ((this.actions != null) && (this.actions.size() > 0)) {\n/* 242 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Actions ---->\");\n/* 243 */ emptyTarget = false;\n/* 244 */ for (it = this.actions.iterator(); it.hasNext();)\n/* 245 */ ((MatchList)it.next()).print();\n/* */ }\n/* 248 */ if ((this.environments != null) && (this.environments.size() > 0)) {\n/* 249 */ System.out.println((emptyTarget ? \"\\n\" : \"\") + \"Environments ---->\");\n/* 250 */ emptyTarget = false;\n/* 251 */ for (it = this.environments.iterator(); it.hasNext();) {\n/* 252 */ ((MatchList)it.next()).print();\n/* */ }\n/* */ }\n/* 255 */ if (emptyTarget) System.out.print(\"EMPTY\");\n/* */ }", "public void showEmptySeats(){\n System.out.println(\"The following seats are empty: \");\n for (PlaneSeat seat:seat){\n if (! seat.isOccupied()){\n System.out.println(\"SeatID \" + seat.getSeatID());\n }\n }\n }", "public void mostrarDisponibles(ArrayList<parqueo> parking){\n try {\n System.out.println(\"Espacios Disponibles: \");//Recorremos la base de datos y vamos imprimiendo solo los que esten disponibles\n for (int num = 0; num < parking.size(); num++){\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n }\n }\n System.out.println(\"---------------------------------\");\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error en la impresion de los parqueos disponibles\");\n }\n }", "public void printSpayedOrNeutered(){\n System.out.println(\"Spayed or Neutered Dogs:\");\n ArrayList<Dog> dogsSpayedOrNeutered = dogsSpayedOrNeutered();\n for(Dog d : dogsSpayedOrNeutered){\n d.printInfo();\n }\n }", "public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }", "public List<Artist> getArtistsWhichHaveNoReleases();", "public String toString()\n\t{\n\t\tString temp = \"\";\n\t\tfor (int index = 0; index < peopleAct.size(); index++)\n\t\t{\n\t\t\tif (index == peopleAct.size() - 1 || peopleAct.get(index + 1) == null)\n\t\t\t{\n\t\t\t\ttemp += \"and \" + peopleAct.get(index).toString() + \".\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemp += peopleAct.get(index).toString() + \", \";\n\t\t\t}\n\t\t}\n\t\tString output = \"Movie Name: \" + name + \"\\nMovie Release Year: \" + year + \"\\nMovie Actors/Actressess: \" + temp;\n\t\treturn output;\n\t}", "public static void noSavingsPrinter() {\n System.out.println(line);\n System.out.println(NO_ACHIEVED_SAVINGS_MSG);\n System.out.println(line);\n }", "public void mostrarListaJugadores(){\n for (int i = 0; i < jugadores.length; i++) {\n \n if(jugadores[i]!=null){\n System.out.println(\" \"+jugadores[i].toString()+\" \");\n }\n \n }\n }", "public void setPrint(String yorn) {\n print = yorn.trim().equals(\"y\");\n }", "public void testOnlyPrint()\r\n {\r\n for ( int i =0; i < valid; i++)\r\n {\r\n System.out.println( cards[i] );\r\n }\r\n }", "private List<String> getMovieNames() {\n List<String> movieNames = new ArrayList<>();\n for (Movie movie: this.movies) {\n movieNames.add(movie.getName());\n }\n return movieNames;\n }", "void availableBooks(){\n\t\tSystem.out.println(\")))))Available books((((((\");\n\t\tfor(int i=0;i<books.length;i++){\n\t\t\tString book=books[i];\n\t\t\tif(book==null){\n\t\t\tcontinue;\n\t\t}\n\t\t\tSystem.out.println(\"*\"+books[i]);\n\t\t}\n\t\t\n\t}", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "static void printListOfWeapons(List<WeaponLM> weapons){\n for(WeaponLM weapon : weapons){\n System.out.print(weapon.getName());\n if(weapons.indexOf(weapon) != weapons.size()-1){\n System.out.print(\", \");\n }\n }\n }", "public void printMoveList() {\n \tint x = 1;\n \tfor(int i = 0; i < moveList.size(); ++i) {\n \t\tif(i%2 == 0) {\n \t\t\tSystem.out.print(\"\" + x + \". \" + moveList.get(i));\n \t\t\tx++;\n \t\t}\n \t\telse {\n \t\t\tSystem.out.print(\" \"+moveList.get(i));\n \t\t\tSystem.out.println();\n \t\t}\n \t}\n }", "public static void printMovieByCategory(String category) {\n System.out.println(\"View movies in the \" + category + \" category\");\n for (Movie movie : moviesList) {\n if (movie.getCategory().equalsIgnoreCase(category)) {\n System.out.println(movie.getName() + \" -- \" + movie.getCategory());\n }\n\n }\n\n\n }", "private void watched(boolean w){\n for (Movie temp:\n baseMovieList) {\n if(temp.isWatched() == w)\n movieList.add(temp);\n }\n }", "public void printMoveList(){\n\t\tString body = \"\";\n\t\tfor (int i = 0; i < moveList.size(); i++) {\n\t\t\tif (i % 2 == 0)\n\t\t\t\tbody += \"\\n\" + Integer.toString(i / 2 + 1) + \" \";\n\n\t\t\tbody += moveList.get(i).algebraicNotationPrint() + \" \";\n\t\t}\n\t\tSystem.out.println(body);\n\t}", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "public boolean listCineplexByMovie(int movieID) {\n\t\tBoolean printed = false;\n\t\tMovieManager mm = new MovieManager();\n\t\tboolean cineplexExist = false;\n\t\tSystem.out.println(\"\\nCineplex that contain the movie:\");\n\t\tfor (Cineplex cx: records) {\n\t\t\tprinted = false;\n\t\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\t\tfor (Cinema c: cinemas) {\n\t\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\t\tif (movieID == s.getMovieID() & !printed) {\n\t\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\t\tSystem.out.println(\"CineplexID: \" + cx.getId());\n\t\t\t\t\t\tcineplexExist = true;\n\t\t\t\t\t\tprinted = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cineplexExist;\n\t}", "@Override\n public String toString() {\n return super.toString() + \"{\"\n + \"film=\" + film\n + \",category=\" + category\n + \"}\";\n }", "void printFilteredItems();", "public void printMovieInfo() {\n println(\"Title : \" + this.movie.getTitle());\n println(\"Showing Status: \" + this.movie.getShowingStatus().toString());\n println(\"Content Rating: \" + this.movie.getContentRating().toString());\n println(\"Runtime : \" + this.movie.getRuntime() + \" minutes\");\n println(\"Director : \" + this.movie.getDirector());\n print(\"Cast : \");\n StringBuilder s = new StringBuilder();\n for (String r : movie.getCasts()) {\n s.append(r + \"; \");\n }\n println(s.toString());\n println(\"Language : \" + this.movie.getLanguage());\n println(\"Opening : \" + this.movie.getFormattedDate());\n\n print(\"Synopsis : \");\n println(this.movie.getSynopsis(), 16);\n\n if(movie.getRatingTimes() != 0 ){\n print(\"Overall Rating :\");\n printStars(movie.getOverAllRating());\n } else {\n println(\"Overall Rating: N/A\");\n }\n if (movie.getRatingTimes() != 0){\n for (Review r : movie.getReview()) {\n print(\"Review : \");\n println(r.getComment(), 16);\n print(\"Rating : \");\n printStars(r.getRating());\n }\n }\n }", "public void emptyMovieSelected(){\n //get empty movie item\n mMovie = mMovieStaff.getEmptyMovie();\n\n //show movie item\n showMovieInfo(mMovie);\n }", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "@Override\n protected ArrayList<String> generateExclusions()\n {\n ArrayList<String> retVal = new ArrayList<>();\n switch (monsterList.get(monsterList.size() - 1))\n {\n case \"Spheric Guardian\":\n retVal.add(\"Sentry and Sphere\");\n break;\n case \"3 Byrds\":\n retVal.add(\"Chosen and Byrds\");\n break;\n case \"Chosen\":\n retVal.add(\"Chosen and Byrds\");\n retVal.add(\"Cultist and Chosen\");\n break;\n }\n return retVal;\n }", "public void listarCarros() {\n System.err.println(\"Carros: \\n\");\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados\");\n } else {\n System.err.println(Arrays.toString(carrosCadastrados.toArray()));\n }\n }", "@Test\n public void testMovieConstructor() {\n final ArrayList<Actor> emptyMovieList = new ArrayList<>();\n assertEquals(karateMovie, movie1.getName());\n assertEquals(emptyMovieList, movie1.getActors());\n assertEquals(gloryMovie, movie2.getName());\n assertEquals(emptyMovieList, movie2.getActors());\n assertEquals(sevenMovie, movie3.getName());\n assertEquals(emptyMovieList, movie3.getActors());\n assertEquals(theShawshankRedemtionMovie, movie4.getName());\n assertEquals(emptyMovieList, movie4.getActors());\n }", "public void deleteMovie(String title) {\r\n\t\tMovieListNode<m> cur = head;\r\n\t\tboolean part=false;\r\n\t\twhile(cur!=null) {\r\n\t\t\tpart = cur.toString().toLowerCase().contains(title.toLowerCase());\t//REFERENCE: https://stackoverflow.com/questions/2275004/in-java-how-do-i-check-if-a-string-contains-a-substring-ignoring-case\r\n\t\t\t//^^checks if the year is in the current movie node\r\n\t\t\tif(part == true) {\r\n\t\t\t\tif(cur==head) {\t//deleting head node\r\n\t\t\t\t\thead = cur.next;\r\n\t\t\t\t}\r\n\t\t\t\tif(cur==tail) {\t//deleting tail node\r\n\t\t\t\t\ttail = cur.prev;\r\n\t\t\t\t}\r\n\t\t\t\tif(cur.next!=null && cur.prev!=null) {\t//deleting anything in middle **this doesn't work although the logic makes sense to me**\r\n\t\t\t\t\tcur.next.prev = cur.prev;\r\n\t\t\t\t\tcur.prev.next = cur.next;\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcur=cur.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(part==false) {\r\n\t\t\tSystem.out.println(\"Sorry, I could not find that movie....\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic ArrayList<String> allMovies()\r\n\t{\r\n\t\tArrayList<String> sortedMovieTitles = new ArrayList<String>();\r\n\t\t\r\n\t\tsortedMovieTitles = movieTitles;\r\n\t\t\r\n\t\tCollections.sort(movieTitles);\r\n\t\t\r\n\t\treturn sortedMovieTitles;\r\n\t}", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "public List<String> getMovieList(){\n Set<String> movieList= new HashSet<String>();\n List<MovieListing> showtimes= ListingManager.getShowtimes();\n for(int i=0;i<history.size();i++){\n CustomerTransaction curr= history.get(i);\n for(int j=0;j<showtimes.size(); j++){\n MovieListing show = showtimes.get(j);\n if (show.sameListing(curr.getListingID())){\n movieList.add(show.getTitle());\n\n }\n }\n }\n return new ArrayList<>(movieList);\n }", "@Override\n\tpublic List<String> getMovieName(String movieType) {\n\t\treturn null;\n\t}", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "public void printNotfullcourses() {\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tif (CourseManager.courses.get(i).checkFull() == false) {\n\t\t\t\tSystem.out.println(i + 1 + \". \" + CourseManager.courses.get(i).getName());\n\t\t\t}\n\t\t}\n\t}", "public void skipPrint()\n {\n skipPrint(0);\n }", "public void metodoSkip() {\n List<Dish> dishes = menu.stream()\n .filter(d -> d.getCalories() > 300)\n .skip(2)\n .collect(toList());\n\n List<Dish> dishes1 =\n menu.stream()\n .filter(dish -> dish.getType() == (Dish.Type.MEAT))\n .limit(2)\n .collect(toList());\n }", "public void print() {\n System.out.println(\"**List of books in the library.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }", "public static void main(String[] args) {\nint i =1;\r\nfor(i=1; i<=20; i++)\r\n{\r\n\tif(i % 2 == 1)\r\nSystem.out.println(i);\r\n}\r\nSystem.out.println(\"Printing only the odd numbers from 1 to 20\");\r\n\t}", "private static BookingFilm filmSelection()\n\t{\n\t\t//prints out the name of the movies\n\t\tSystem.out.println(\"Which film would you like to watch:\");\n\t\tSystem.out.println(\"1 Suicide Squad rating: (M)\");\n\t\tSystem.out.println(\"2 Batman vs Superman rating: (P)\");\n\t\tSystem.out.println(\"3 Zootopia rating: (G)\");\n\t\tSystem.out.println(\"4 Deadpool rating: (M)\");\n\t\t\n\t\t//new scanner\n\t\tScanner input = new Scanner(System.in);\n\t\t//variable to choose the moovie number on the list\n\t\t//-1 because the array starts on 0\n\t\tint movieNumber = input.nextInt() - 1;\n\t\t\n\t\t//constructor with all the information for the movie\n\t\tBookingFilm aMovie = new BookingFilm(films[movieNumber].getTitle(), films[movieNumber].getRating());\n\t\t\n\t\t//returns the correct movie\n\t\treturn\n\t\t\t\taMovie;\n\t}", "public void oddPrinter()\n {\n oddPrinter(0);\n }", "public void showAllSchedulesFiltered(ArrayList<Scheduler> schedulesToPrint) {\n ArrayList<String> filters = new ArrayList<>();\n while (yesNoQuestion(\"Would you like to filter for another class?\")) {\n System.out.println(\"What is the Base name of the class you want to filter for \"\n + \"(eg. CPSC 210, NOT CPSC 210 201)\");\n filters.add(scanner.nextLine());\n }\n for (int i = 0; i < schedulesToPrint.size(); i++) {\n for (String s : filters) {\n if (Arrays.stream(schedulesToPrint.get(i).getCoursesInSchedule()).anyMatch(s::equals)) {\n System.out.println(\" ____ \" + (i + 1) + \":\");\n printSchedule(schedulesToPrint.get(i));\n System.out.println(\" ____ \");\n }\n }\n }\n }", "private void testExternalIteration1() {\n\t\tfor(Movie m: movies){\n//\t\t\tSystem.out.println(\"Inside external iteration\");\n\t\t\tif(m.isClassic()){\n\t\t\t\ttop2Classics.add(m);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Top 2 classics (Ext Iteration): \" + top2Classics);\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 }", "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}", "public static void printodd() {\n for (int i = 0; i < 256; i++){\n if(i%2 != 0){\n System.out.println(i);\n }\n \n }\n }", "private void printMovieMiniMenu() throws IOException{\n\t\tprintMiniMenu(\"2.Back to Movie Menu\");\n\t\t//if we passed the printMiniMenu() call, we know the user chose to search again rather than going back to the login menu\n\t\tsearchMovies();\t\n\t}", "private List<MovieDetails> movieList() {\n List<MovieDetails> movieDetailsList = new ArrayList<>();\n movieDetailsList.add(new MovieDetails(1, \"Movie One\", \"Movie One Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two\", \"Movie Two Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two - 1 \", \"Movie Two Description - 1 \"));\n\n return movieDetailsList;\n }", "private void showMovies(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(true);\n recyclerView.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void showVehicles() {\n\t\tfor (Vehicle vehicle : vehicles) {\n\t\t\tSystem.out.println(vehicle);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n film f1[]= new film[5];\n int i=0;\n // nm,la,lng,cat;\n //int dur;\n for(i=0;i<5;i++)\n {\n System.out.println(\"Enter name, lead actor, language, category and duration\");\n f1[i] =new film();\n f1[i].name=br.readLine();\n f1[i].lead_actor=br.readLine();\n f1[i].language=br.readLine();\n f1[i].category=br.readLine();\n f1[i].duration= Integer.parseInt(br.readLine());\n \n }\n int p=0,d=0,k=0;\n System.out.println(\"All English Movies with Arnold:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].language).equalsIgnoreCase(\"English\") && (f1[i].lead_actor).equalsIgnoreCase(\"Arnold\")) {\n if(k==0)\n {\n d=f1[i].duration;\n p=i;\n }\n else\n {\n if(f1[i].duration<d)\n {\n d=f1[i].duration;\n p=i;\n }\n }\n \n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n else {\n System.out.println(f1[p]);\n }\n k=0;\n System.out.println(\"All Tamil Movies with Rajini:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].language).equalsIgnoreCase(\"Tamil\") && (f1[i].lead_actor).equalsIgnoreCase(\"Rajini\")) {\n System.out.println(f1[i]);\n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n k=0;\n System.out.println(\"All Comedy Movies:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].category).equalsIgnoreCase(\"comedy\")) {\n System.out.println(f1[i]);\n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n System.out.println(\"ALL MOVIES:\\n\");\n for(i=0;i<5;i++)\n {\n System.out.println(f1[i]);\n }\n }", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "public boolean removeMovie(String t)\n\t{\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getTitle().equals(t))\n\t\t\t{\n\t\t\t\treturn list_of_movies.remove(temp_movie);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void showMovieList(MovieResponse movieResponse) {\n setToolbarText(R.string.title_activity_list);\n showFavouriteIcon(true);\n buildList(movieResponse);\n }", "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void printRemoval() {\n System.out.println(\"\\n\" + \"=== Removed Files ===\");\n List<String> deleting = Utils.plainFilenamesIn(REMOVAL);\n for (String filesName: deleting) {\n System.out.println(filesName);\n }\n }", "public static void printOdd50() {\n\t\tfor(int i = 0; i < 50; i++) {\n\t\t\tif(i % 2 == 1) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "SList oddWords();", "public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }", "@Override\r\n public String toString(){\n \r\n for(Player player: players){\r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(player.toString());\r\n }\r\n return \"\";\r\n }", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "public void print() {\n\t\tif (cs213.isEmpty()) {\n\t\t\tSystem.out.println(\"List is empty!\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tcs213.print();\n\t\t}\n\t\treturn;\n\t\t}", "@Nullable\n MoviePage getMovies();", "@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}", "public static void wildPrintCities(List <? super Citi> citi) {\n\t\tfor(int i = 0; i < citi.size(); i++) {\n\t\t\tSystem.out.println(i + 1 + \":\" + citi.toString());\n\t\t}\n\t}", "public static void printMovieInformation(Movie movieObj) {\n\n System.out.print(\"The movie \"+movieObj.getName());\n System.out.print(\" is \"+movieObj.getLength() + \" hour long\");\n System.out.println(\" and it genre is \"+movieObj.getType());\n\n \n\n }", "private void searchedByDirectors(ArrayList<Movie> movies)\n {\n boolean valid = false;\n Scanner console = new Scanner(System.in);\n String dir1=\"\";\n ArrayList<String> dirSearch = new ArrayList<String>();\n ArrayList<Movie> filmByDir = new ArrayList<Movie>();\n ArrayList<Movie> listMovieNew = new ArrayList<Movie>();\n dir1 = insertDirector();\n dirSearch.add(dir1.toLowerCase());\n \n if (dir1.length() != 0)\n {\n for(int index = 2 ; index > 0 ; index++)\n {\n System.out.print(\"\\t\\tInsert the directors' name(\" + index + \")- press enter to leave blank: \");\n String dirs = console.nextLine().trim().toLowerCase();\n \n if (dirs.length() != 0)\n dirSearch.add(dirs);\n else\n if (dirs.length() == 0)\n break;\n }\n }\n \n for (int index = 0; index < movies.size(); index++)\n {\n listMovieNew.add(movies.get(index));\n }\n \n for (int order = 0; order < dirSearch.size() ; order++)\n {\n for (int sequence = 0; sequence < listMovieNew.size() ; sequence++)\n {\n if ((listMovieNew.get(sequence).getDirector().toLowerCase().contains(dirSearch.get(order).toLowerCase())))\n {\n filmByDir.add(listMovieNew.get(sequence)); \n listMovieNew.remove(sequence);\n }\n }\n }\n \n displayExistanceResultByDir(filmByDir);\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 }", "private void oops(){\n\t\tSystem.out.println(\"Oops! \" +getCandyName() +\" is delicious! I ate that one.\");\n\t}", "void printSeasonalFruit() { System.out.println( name() + \" : Mango\" ); }", "private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}", "public static void showAllRoomNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.ROOM);\n }", "static void examine( List pets){\n\t\tSystem.out.println(\"Your pets need urgent attention.\");\n\t}", "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 static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}", "private void exercise2() {\n List<String> list = asList(\n \"The\", \"Quick\", \"BROWN\", \"Fox\", \"Jumped\", \"Over\", \"The\", \"LAZY\", \"DOG\");\n\n final List<String> lowerOddLengthList = list.stream()\n .filter((string) -> string.length() % 2 != 0)\n .map(String::toLowerCase)\n .peek(System.out::println)\n .collect(toList());\n }", "boolean isHiddenFromList();", "private void convertToJson(Movie movie) {\n Gson gson = setExclusionStrategy();\n result = gson.toJson(movie);\n if (result.equals(\"null\")) {\n throw new IllegalArgumentException(\"No movie with such name\");\n }\n printJson();\n }", "public void outputPossibleMoves() {\n\t\tSystem.out.println(\"###########POSSIBLE MOVES ####################\");\n\t\tfor(Move move: AIPossibleMoves) {\n\t\t\tSystem.out.println(move.toString());\n\t\t}\n\t\tSystem.out.println(\"#############################################\");\n\t}", "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 }" ]
[ "0.61034495", "0.60122055", "0.5969728", "0.5951616", "0.59065074", "0.5888651", "0.57085603", "0.55655897", "0.5548812", "0.5477388", "0.5465659", "0.54617584", "0.54491276", "0.53764856", "0.53194356", "0.5292533", "0.5277613", "0.5277457", "0.5268469", "0.52237165", "0.5214709", "0.5205624", "0.5197502", "0.5181027", "0.5179617", "0.51776695", "0.5131777", "0.509551", "0.5092302", "0.5079746", "0.5075353", "0.5069235", "0.5063185", "0.504829", "0.50409716", "0.50353926", "0.50249535", "0.5019173", "0.5017399", "0.49965608", "0.49920234", "0.4987744", "0.49726143", "0.49405944", "0.49389604", "0.4937488", "0.4936421", "0.49350023", "0.49211293", "0.49206272", "0.49166825", "0.4913544", "0.49104685", "0.4909521", "0.4899185", "0.4885971", "0.48778844", "0.4876877", "0.4871329", "0.48649555", "0.48620513", "0.48545375", "0.4853732", "0.4843133", "0.4836867", "0.48352888", "0.48335403", "0.48304623", "0.48290393", "0.48274225", "0.482712", "0.48225307", "0.48205334", "0.48172122", "0.48000282", "0.47986048", "0.4798044", "0.479726", "0.4787077", "0.47855225", "0.4782053", "0.47754893", "0.47701564", "0.4760238", "0.47570565", "0.47562894", "0.47547534", "0.4753212", "0.47496784", "0.47482902", "0.47415936", "0.47396055", "0.4732433", "0.4726262", "0.47228283", "0.47047582", "0.47027647", "0.46994397", "0.4695794", "0.46928385", "0.46908727" ]
0.0
-1
method to check if the movie exists based on its id
public boolean checkExistenceId(int id) { for (int i=0; i<getDataLength(); i++) { if (this.dataList.get(i).getId()==id) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean exists(String id);", "public boolean isRatingGivenByUserExist(long movieId){\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n String query = \"SELECT \" + MoviesDetailsEntry.COLUMN_USER_RATING + \" FROM \" + MoviesDetailsEntry.TABLE_NAME + \" WHERE \" +\n MoviesDetailsEntry._ID + \" = \" + movieId;\n Cursor cursor = sqLiteDatabase.rawQuery(query,null);\n if (cursor.getCount()<=0){\n cursor.close();\n return false;\n } else {\n cursor.close();\n return true;\n }\n }", "Movie getMovieById(final int movieId);", "Movie findOne(@Param(\"id\") Long id);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Movie> findMovie(@PathVariable(\"id\") String id) {\n\t\tLOG.debug(\"Entering findMovie\");\n\t\tMovie movie = moviesRepo.findOne(id);\n\t\tif (null != movie) {\n\t\t\treturn ResponseEntity.ok(movie);\n\t\t}\n\t\treturn ResponseEntity.notFound().build();\n\n\t}", "public ResponseEntity<Movie> getMovieById(Long id) {\n if(movieRepository.existsById(id)){\n Movie movie = movieRepository.findById(id).get();\n return new ResponseEntity<>(movie, HttpStatus.OK);\n } else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }", "@Override\r\n\tpublic boolean exists(String id) {\n\t\treturn false;\r\n\t}", "public boolean isExist(Serializable id);", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Movie)) {\n return false;\n }\n return id != null && id.equals(((Movie) o).id);\n }", "boolean exists(Integer id);", "@Override\n\tpublic Movie findMovieById(String movieId) throws MovieNotFoundException {\n\t\tMovie movie=repository.findMovieById(movieId);\n\t\tif(movie==null){\n\t\t\tthrow new MovieNotFoundException();\n\t\t}\n\t\t\n\t\treturn movie;\n\t}", "public boolean isMovieIsFavorite(long movieId) {\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n String query = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME + \" WHERE \" + FavoriteMoviesEntry.COLUMN_MOVIE_ID + \" = \" + movieId;\n Cursor cursor = sqLiteDatabase.rawQuery(query, null);\n\n if (cursor.moveToFirst()) {\n cursor.close();\n return true;\n } else {\n cursor.close();\n return false;\n }\n }", "@Override\n\tpublic Movie searchMovieById(int movieid) {\n\t\tString sql=\"Select * from movie where MOVIE_ID=\"+movieid+\"\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> idMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(idMList==null||idMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn idMList.get(0);\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Movie)) {\n return false;\n }\n Movie other = (Movie) object;\n if ((this.idMovie == null && other.idMovie != null) || (this.idMovie != null && !this.idMovie.equals(other.idMovie))) {\n return false;\n }\n return true;\n }", "@Override\npublic boolean existsById(String id) {\n\treturn false;\n}", "public boolean exists(String id) {\n\t\treturn false;\n\t}", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Movie)) {\n return false;\n }\n Movie other = (Movie) object;\n if ((this.movieId == null && other.movieId != null) || (this.movieId != null && !this.movieId.equals(other.movieId))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean existsById(Integer id) {\n\t\treturn false;\n\t}", "boolean existsByNameAndId(String name, int id);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Movies)) {\r\n return false;\r\n }\r\n Movies other = (Movies) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existId(String id) {\n\t\treturn false;\n\t}", "public boolean exists(String id) {\r\n\t\tString sql = \"SELECT 1 from GAME_SET where \" + GameSet.DbField.ID + \"=?\";\r\n\r\n\t\tCursor cursor = getDatabase().rawQuery(sql, new String[] { id });\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean exists(Long id) {\n return false;\n }", "@Override\n public boolean exists(Long id) {\n return false;\n }", "boolean existeId(Long id);", "public static boolean doesTitleExists ( Context context, String title ){\n\n boolean exists = false;\n MovieSqlHelper movieDB = new MovieSqlHelper(context);\n Log.d(\"-fetchTitle\", title);\n Cursor MC = movieDB.getReadableDatabase().query(DBConstants.MOVIES_T,null,DBConstants.SUBJECT_C+\"=?\",new String[]{title},null,null,null);\n if ( MC.getCount() > 0 ) {\n exists=true;\n }\n else\n {\n exists=false;\n }\n\n MC.close();\n movieDB.close();\n return exists;\n }", "boolean existePorId(Long id);", "public boolean exists( Integer idConge ) ;", "@Override\n\tpublic boolean existsById(UUID id) {\n\t\treturn false;\n\t}", "public static boolean isExist(long id) {\n\t\tboolean exist = false;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tString sql = FavoriteColumns.ID + \"=\" + id;\n\n\t\t\tc = db.query(DBConst.TABLE_COURSE_FAVORITE, null, sql, null, null, null, null);\n\t\t\tif (c.moveToNext()) {\n\t\t\t\texist = true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\t\treturn exist;\n\t}", "public boolean exists(String namespace, String id);", "public Movie getMovie(String id)\r\n\t{\n\t\tMap<String,Object> constrains = new HashMap<String,Object>(1);\r\n\t\tconstrains.put(\"id\", id.trim());\r\n\t\tList<Movie> rets = mongo.search(null, null, constrains, null, -1, 1, Movie.class);\r\n\t\tif(rets!=null && rets.size() > 0)\r\n\t\t\treturn rets.get(0);\t\r\n\t\treturn null;\r\n\t}", "@RequestMapping(\n value = \"/getMovieId/{movieId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE\n\n )\n public ResponseEntity<Object> getMovieId(@PathVariable(\"movieId\") Long id) {\n Optional<MoviesEntity> moviesOptional = moviesService.findById(id);\n return new ResponseEntity<Object>(moviesOptional, HttpStatus.OK);\n }", "boolean hasPlayerId();", "public static boolean isMovieFavorite(Context context, String movieId) {\n String selection = MovieContract.FavoriteEntry.COLUMN_MOVIE_ID + \" = ?\";\n String[] selectionArgs = {movieId};\n\n Cursor cursor = context.getContentResolver().query(MovieContract.FavoriteEntry.CONTENT_URI,\n new String[]{MovieContract.FavoriteEntry._ID},\n selection,\n selectionArgs,\n null);\n\n if (cursor.moveToFirst())\n return true;\n\n return false;\n }", "@Transactional(readOnly = true)\n public Movie findOne(Long id) {\n log.debug(\"Request to get Movie : {}\", id);\n return movieRepository.findOne(id);\n }", "@Override\n\tpublic Boolean exists(Integer id) {\n\t\treturn null;\n\t}", "@GetMapping(\"/movies/{id}\")\n @Timed\n public ResponseEntity<Movie> getMovie(@PathVariable Long id) {\n log.debug(\"REST request to get Movie : {}\", id);\n Movie movie = movieRepository.findOne(id);\n return Optional.ofNullable(movie)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@ApiOperation(value = \"Find a movie by id\", notes = \"Find a movie by id\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Success\", response = MovieDto.class),\n @ApiResponse(code = 400, message = \"Bad request\"),\n @ApiResponse(code = 404, message = \"Not found\"),\n })\n @CrossOrigin\n @GetMapping(value = \"/find/{id}\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity findById(\n @ApiParam(value = \"A movie id\", defaultValue = \"2503\", required = true)\n @PathVariable(name = \"id\") Integer id) {\n MovieDto movie = movieService.findById(id);\n return new ResponseEntity<>(movie, HttpStatus.OK);\n }", "@Override\n public boolean contains(final String id) {\n return sidecarFile(id).exists();\n }", "public boolean existsById(Integer id) {\n\t\treturn false;\n\t}", "public Film getFilmById(Integer id);", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "boolean hasId();", "@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\tMovie findByMovieID(Long movieID);", "public boolean doesIDExist(String id)\n {\n return idReferences.containsKey(id);\n }", "@Override\n public boolean search(Movie movieToFind)\n {\n if(movieToFind == null)\n return false;\n else\n return this.search(movieToFind.getTitle()) != null;\n }", "boolean hasFromId();", "@Override\r\n\tpublic Film findFilmById(int id) {\n\t\treturn filmRepository.getOne(id);\r\n\t}", "public static void addMovie(String id, String title, MovieCode code) {\n\t\tif (movieList.stream().noneMatch(movie -> movie.getId().equals(id))) {\n\t\t\tmovieList.add(new Movie(id, title, code));\n\t\t}\n\t}", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "public boolean checkId(String id){\r\n\t\treturn motorCycleDao.checkId(id);\r\n\t}", "@Query(\"{id : ?0}\")\n Movie findMovieById(String id);", "private ArrayList<Movie> checkExistence(ArrayList<Movie> movies, String title)\n {\n ArrayList<Movie> result = new ArrayList<Movie>();\n \n for (Movie film : movies)\n {\n String head = film.getTitle().trim().toLowerCase();\n \n if (head.contains(title))\n result.add(film);\n }\n \n return result;\n }", "void checkNotFound(Integer id);", "public Movie findOne(long ID){\n\t\treturn theMoviewRepository.getOne(ID);\n\t}", "public boolean existsMember(final String id);", "MovieVideo getMovieVideoByVideoid(String videoid);", "boolean exists(PK id);", "public Cursor getMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n return getAnyRow(MOVIE_TABLE_NAME, null, selection, selectionArgs, null, null, null);\n }", "@SuppressWarnings(\"unused\")\n\tprivate int doesUnderlyingDataExistForId(long id) {\n \t\tassert(id != 0);\n\t\t\n\t\tboolean metadataExists = mVideoRepository.exists(id);\n\t\tVideo v;\n \t\tif (metadataExists) {\n \t\t\tv = mVideoRepository.findOne(id);\n\t\t} else {\n\t\t\t// Create a dummy Video to check if for orphan video data.\n\t\t\tv = new Video();\n\t\t\tv.setId(id);\n\t\t}\n \t\t\n \t\tboolean dataExists = mVideoDataRepository.hasVideoData(v);\n \t\t\n \t\tif (metadataExists && dataExists) {\n \t\t\treturn DATA_VIDEO_METADATA_PRESENT + DATA_VIDEO_DATA_PRESENT;\n \t\t} else if (metadataExists && !dataExists) {\n \t\t\treturn DATA_VIDEO_METADATA_PRESENT + DATA_VIDEO_DATA_MISSING;\n \t\t} else if (!metadataExists && dataExists) {\n \t\t\treturn DATA_VIDEO_METADATA_MISSING + DATA_VIDEO_DATA_PRESENT;\n \t\t} else {\n \t\t\treturn DATA_VIDEO_METADATA_MISSING + DATA_VIDEO_DATA_MISSING;\n \t\t}\n \t}" ]
[ "0.6915295", "0.6789345", "0.6653901", "0.6615706", "0.65835726", "0.65295655", "0.6522545", "0.6521446", "0.6501338", "0.6473628", "0.6456782", "0.63922447", "0.6389648", "0.6363381", "0.63522226", "0.63206774", "0.62987447", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6290888", "0.6254017", "0.6236493", "0.6228841", "0.62253505", "0.6201348", "0.6201348", "0.6197281", "0.6181538", "0.6168754", "0.6168754", "0.6163545", "0.6162431", "0.61503893", "0.6135968", "0.6134259", "0.61011386", "0.6072794", "0.60688084", "0.6068541", "0.6046735", "0.6036518", "0.603312", "0.60322744", "0.6030327", "0.60302806", "0.6008295", "0.60080224", "0.60049427", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59987885", "0.59971994", "0.59965396", "0.59713507", "0.59287834", "0.5913394", "0.58976674", "0.5894083", "0.58923215", "0.58889085", "0.58862495", "0.5873685", "0.5863276", "0.5863254", "0.5859059", "0.58502835", "0.5846748", "0.58445275" ]
0.5866167
94
method to create movie object with the parameters as its attributes
public void createMovie(int id, String title, int statusChoice, int typeChoice, int ratingChoice, String synopsis, String director, ArrayList<String> cast, int duration) { Movie movie = new Movie(id, title, statusChoice, typeChoice, ratingChoice, synopsis, director, cast, duration); this.create((T)movie); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Movie createNewMovie(String movieName, String directorName, String act1, String act2, String act3, int star)\n {\n Movie clip = new Movie(movieName, directorName, act1, act2, act3, star);\n return clip;\n }", "public Movie() {}", "public Movie() {}", "public Movie() {\n\n }", "public Movie() { }", "public Movie()\n {\n // initialise instance variables\n name = \"\";\n director = \"\";\n fileSize = 0;\n duration = 0;\n }", "public Movie()\n\t{\n\t\tsuper();\n\t}", "public Movie(String name)\n\t{\n\t\tthis(name, 0);\n\t}", "public Film() {\n\t}", "public Movie(int ID, String mTitle, String mGenre, int mRelease)\n {\n id = ID;\n title = mTitle;\n genre = mGenre;\n release = mRelease;\n }", "abstract public VideoDefinition createVideoDefinition(int width, int height);", "@Override\n\tpublic MovieDTO createMovie(CreateMovieRequest request) {\n\t\treturn null;\n\t}", "Movie addMovie(final Movie movie);", "interface MovieFactory2{\n public Movie create(int id, String s);\n }", "public Movie(String revenue, Person director, String movieReleasedYear) {\n this.revenue=revenue;\n this.director=director;\n this.movieReleasedYear=movieReleasedYear;\n }", "public Video( ) { \n\t\tsuper( );\n\t}", "public Movie(String title, String imdb_id, String image, String metascore, String plot, String rated, String year) {\n this.title = title;\n this.imdb_id = imdb_id;\n this.image = image;\n this.metascore = metascore;\n this.plot = plot;\n this.rated = rated;\n this.year = year;\n }", "private Movie mapMovie(final Record movieRecord) {\n return new Movie(\n movieRecord.get(\"title\").asString(),\n movieRecord.get(\"tagline\").asString(),\n movieRecord.get(\"released\").asInt()\n );\n }", "public Movie(int IDmovie) {\n super(IDmovie);\n }", "public Movie(String id, String title) {\n mId = id;\n mTitle = title;\n }", "public Movie(String title) {\n\t\tthis.title = title;\n\t\tthis.left = this.right = null;\n\t}", "@Override\n public Movie createFromParcel(Parcel in) {\n return new Movie(in);\n }", "void onLoadMovie(Movie movie);", "public Video( int arg1, int arg2 ) { \n\t\tsuper( );\n\t}", "public Movie(String gRated, pgRated, pg13Rated, rRated, IDNumber, movieTitle)\n\t{\n\t\tthis.gRated = gRated;\n\t\tthis.pgRated = pgRated;\n\t\tthis.pg13Rated = pg13Rated;\n\t\tthis.rRated = rRated;\n\t\tthis.IDNumber = IDNumber;\n\t\tthis.movieTitle = movieTitle;\n\t}", "public Video( int arg1 ) { \n\t\tsuper( );\n\t}", "public Film create(Film obj) {\n\t\t\n\t\tConnection.update(\"INSERT INTO film (codeFilm,nomFilm) VALUES('\"\n\t\t\t\t\t\t +obj.getCodeFilm() +\"','\"\n\t\t\t\t\t\t +obj.getNomFilm() +\"')\");\n\t\t\n\t\tResultSet result = \tConnection.selectFrom(\"SELECT idFilm \"\n\t\t\t\t+ \"FROM film \"\n\t\t\t\t+\";\");\n\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tresult.last();\n\t\t\ti = result.getInt(\"idFilm\");\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tobj.setId(i);\n\t\tConnection.close();\n\t\treturn obj;\n\t}", "public Movie(String name, int year)\n\t{\n\t\tthis.name = name;\n\t\tthis.year = year;\n\t\tpeopleAct = new ArrayList<CastMember>(10);\n\t}", "public Video() {\n\t}", "public Video(String nombre) {\n super(nombre);\n }", "public Movie(String title, MovieCategory category) {\n this.title = title;\n this.movieCategory = movieCategory;\n }", "private Movie(Parcel in) {\n id = in.readString();\n title = in.readString();\n overview = in.readString();\n posterUrl = in.readString();\n userRating = in.readString();\n releaseDate = in.readString();\n runtime = in.readInt();\n isFavorite = in.readByte() != 0;\n castList = in.createTypedArrayList(Cast.CREATOR);\n reviews = in.createTypedArrayList(Review.CREATOR);\n trailers = in.createTypedArrayList(Trailer.CREATOR);\n }", "public MovieModel(Parcel in) {\n backdropPath = in.readString();\n id = in.readInt();\n overview = in.readString();\n posterPath = in.readString();\n releaseDate = in.readString();\n title = in.readString();\n byte tmpVideo = in.readByte();\n video = tmpVideo == 0 ? null : tmpVideo == 1;\n voteAverage=in.readFloat();\n original_language=in.readString();\n }", "abstract public VideoDefinition createVideoDefinitionFromName(String name);", "private Film getFilmFromData(String[] line){\n \n Director director = this.getDirectorFromData(line); //Director object created using data from line array\n Actor actor = this.getActorFromData(line); //Actor object created using data from line array\n //filmID, filmName etc. give the index number for their respective values, NOT the values themselves\n Film film = new Film(line[AppVariables.filmID].trim(), \n line[AppVariables.filmName].trim(),\n line[AppVariables.imdbRating].trim(),\n line[AppVariables.filmYear].trim());\n film.directors.add(director);\n film.actors.add(actor);\n \n return film; \n }", "public static MovieDetailFragment newInstance(Movies param1) {\n MovieDetailFragment fragment = new MovieDetailFragment();\n Bundle args = new Bundle();\n args.putParcelable(ARG_ITEM_MOVIE, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public CMObject newInstance();", "public Film(String title, Date releaseDate, int length){\n this.title = title;\n this.releaseDate = releaseDate;\n this.length = length;\n }", "public VideoIntroduction() {\n\n }", "private MovieManager() {}", "public MovieObject(final SWFDecoder coder) throws IOException {\r\n type = coder.scanUnsignedShort() >>> Coder.LENGTH_FIELD_SIZE;\r\n length = coder.readUnsignedShort() & Coder.LENGTH_FIELD;\r\n if (length == Coder.IS_EXTENDED) {\r\n length = coder.readInt();\r\n }\r\n data = coder.readBytes(new byte[length]);\r\n }", "private Movie(Parcel in) {\n mId = in.readString();\n mTitle = in.readString();\n mOverview = in.readString();\n mReleaseDate = in.readString();\n mRate = in.readString();\n mPosterPath = in.readString();\n mRuntime = in.readString();\n mPosterImg = new byte[in.readInt()];\n in.readByteArray(mPosterImg);\n }", "public Movie(String title, int releaseYear, String[] genres) {\n\t\tsuper();\n\t\tthis.title = title;\n\t\tthis.releaseYear = releaseYear;\n\t\tthis.genres = genres;\n\t\tthis.left = this.right = null;\n\t}", "public Film(String name,String time,String screen){\n\t\tthis.name = name;\n\t\tthis.time = time;\n\t\tthis.screen = screen;\n\t}", "public MovieObject(final MovieObject object) {\r\n type = object.type;\r\n data = object.data;\r\n }", "public Movie(String title, int releaseYear, String[] genres, int movieId) {\n\t\tsuper();\n\t\tthis.title = title;\n\t\tthis.releaseYear = releaseYear;\n\t\tthis.genres = genres;\n\t\tthis.movieId = movieId;\n\t\tthis.left = this.right = null;\n\t}", "public Media(String title, String year){\n\t\tthis.title = title;\n\t\tthis.year = year;\n\t}", "public Movie(int IDmovie, String title, String synopsis, String genre, String director, int year, double priceMovie) {\n super(IDmovie, title, synopsis, genre, director, year, priceMovie);\n }", "@POST\r\n\t@Path(\"/createMovie\")\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n\tpublic void newMovie(@FormParam(\"name\") String name, @FormParam(\"rate\") String rate,\r\n\t\t\t@FormParam(\"type\") String type, @FormParam(\"actor\") String actor, @FormParam(\"producer\") String producer,\r\n\t\t\t@FormParam(\"length\") String length, @FormParam(\"country\") String country,\r\n\t\t\t@FormParam(\"on_screen_date\") Date on_screen_date, @FormParam(\"language\") String language,\r\n\t\t\t@FormParam(\"file\") String file,\r\n\t\t\t@FormParam(\"description\") String description, @Context HttpServletResponse servletResponse,\r\n\t\t\t@Context HttpServletRequest request) throws IOException, ServletException {\r\n\t\tSystem.out.println(\"name : \" + name);\r\n\t\tSystem.out.println(\"rate : \" + rate);\r\n\t\tSystem.out.println(\"type : \" + type);\r\n\t\tSystem.out.println(\"actor : \" + actor);\r\n\t\tSystem.out.println(\"producer : \" + producer);\r\n\t\tSystem.out.println(\"length : \" + length);\r\n\t\tSystem.out.println(\"country : \" + country);\r\n\t\tSystem.out.println(\"on_screen_date\" + on_screen_date);\r\n\t\tSystem.out.println(\"language : \" + language);\r\n\t\tSystem.out.println(\"file : \" + file);\r\n\t\tSystem.out.println(\"description : \" + description);\r\n\r\n\t\t//collect data from Database\r\n\t Connection con;\r\n\t\tString driver = Constants.driver;\r\n\t\tString url = Constants.url;\r\n\t\tString user = Constants.user;\r\n\t\tString password = Constants.password;\r\n\r\n\t\t//begin adding\r\n\t\ttry {\r\n\t\t\t //Load driver\r\n\t\t\t Class.forName(driver);\r\n\t\t\t //Connect to the MySQL database! !\r\n\t\t\t con = DriverManager.getConnection(url,user,password);\r\n\r\n\t\t\t PreparedStatement ps=con.prepareStatement(\"insert into movie(name,rate,type,actor,producer,length,country,on_screen_date,language,image,description) values(?,?,?,?,?,?,?,?,?,?,?)\");\r\n\t\t\t //ps.setInt(1,4);\r\n\t\t\t ps.setString(1,name);\r\n\t\t\t ps.setInt(2, Integer.parseInt(rate));\r\n\t\t\t ps.setString(3, type);\r\n\t\t\t ps.setString(4, actor);\r\n\t\t\t ps.setString(5, producer);\r\n\t\t\t ps.setInt(6, Integer.parseInt(length));\r\n\t\t\t ps.setString(7, country);\r\n\t\t\t //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\t ps.setDate(8,on_screen_date);\r\n\t\t\t ps.setString(9,language);\r\n\t\t\t ps.setString(10, file);\r\n\t\t\t ps.setString(11, description);\r\n\t\t\t ps.executeUpdate();\r\n\r\n\t\t\t con.close();\r\n\r\n\t //driver Exception & connection Exception\r\n\t\t}catch(ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Sorry,can`t find the Driver!\"); \r\n\t\t\te.printStackTrace(); \r\n\t\t}catch(SQLException e) {\r\n\t\t\t e.printStackTrace(); \r\n\t\t}catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t}finally{\r\n\t\t\t//System.out.println(\"Success access to Database£¡£¡\");\r\n\t\t}\r\n\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/administration.html\").forward(request, servletResponse);\r\n\t}", "Builder addVideo(VideoObject value);", "@Ignore\n public Movie(Parcel in) {\n overview = in.readString();\n title = in.readString();\n releaseDate = in.readString();\n posterPath = in.readString();\n rating = in.readDouble();\n movieID = in.readInt();\n genres = in.readString();\n isSaved = false;\n }", "public Movie(Movie other) {\n __isset_bitfield = other.__isset_bitfield;\n this.adult = other.adult;\n if (other.isSetBackdrop_path()) {\n this.backdrop_path = other.backdrop_path;\n }\n if (other.isSetBelongs_to_collection()) {\n this.belongs_to_collection = other.belongs_to_collection;\n }\n this.budget = other.budget;\n if (other.isSetGenres()) {\n List<Genre> __this__genres = new ArrayList<Genre>(other.genres.size());\n for (Genre other_element : other.genres) {\n __this__genres.add(other_element);\n }\n this.genres = __this__genres;\n }\n if (other.isSetHomepage()) {\n this.homepage = other.homepage;\n }\n this.id = other.id;\n if (other.isSetImdb_id()) {\n this.imdb_id = other.imdb_id;\n }\n if (other.isSetOriginal_language()) {\n this.original_language = other.original_language;\n }\n if (other.isSetOriginal_title()) {\n this.original_title = other.original_title;\n }\n if (other.isSetOverview()) {\n this.overview = other.overview;\n }\n this.popularity = other.popularity;\n if (other.isSetPoster_path()) {\n this.poster_path = other.poster_path;\n }\n if (other.isSetProduction_companies()) {\n List<ProductionCompany> __this__production_companies = new ArrayList<ProductionCompany>(other.production_companies.size());\n for (ProductionCompany other_element : other.production_companies) {\n __this__production_companies.add(other_element);\n }\n this.production_companies = __this__production_companies;\n }\n if (other.isSetProduction_countries()) {\n List<ProductionCountry> __this__production_countries = new ArrayList<ProductionCountry>(other.production_countries.size());\n for (ProductionCountry other_element : other.production_countries) {\n __this__production_countries.add(other_element);\n }\n this.production_countries = __this__production_countries;\n }\n if (other.isSetRelease_date()) {\n this.release_date = other.release_date;\n }\n this.revenue = other.revenue;\n this.runtime = other.runtime;\n if (other.isSetSpoken_languages()) {\n List<SpokenLanguage> __this__spoken_languages = new ArrayList<SpokenLanguage>(other.spoken_languages.size());\n for (SpokenLanguage other_element : other.spoken_languages) {\n __this__spoken_languages.add(other_element);\n }\n this.spoken_languages = __this__spoken_languages;\n }\n if (other.isSetStatus()) {\n this.status = other.status;\n }\n if (other.isSetTagline()) {\n this.tagline = other.tagline;\n }\n if (other.isSetTitle()) {\n this.title = other.title;\n }\n this.video = other.video;\n this.vote_average = other.vote_average;\n this.vote_count = other.vote_count;\n }", "public MultiMedia(String title,\n int year, List<Director> directorsList,\n List<Actors> actorsList) {\n\n this.title = title;\n this.year = year;\n this.directorsList = directorsList;\n this.actorsList = actorsList;\n\n }", "public static void main(String[] args) {\n\t\tMovie coco = new Movie(\"Coco\", \"Animated\");\n\t\tmovList.add(coco);\n\t\tcoco.setCat(\"Supernatural\");\n\t\tcoco.setCat(\"Family\");\n\t\tMovie iHeart = new Movie(\"I <3 Huckabees\", \"Quirky\");\n\t\tmovList.add(iHeart);\n\t\tiHeart.setCat(\"Comedy\");\n\t\tiHeart.setCat(\"Drama\");\n\t\tMovie machGo = new Movie(\"Speed Racer\", \"Action\");\n\t\tmovList.add(machGo);\n\t\tmachGo.setCat(\"Comedy\");\n\t\tmachGo.setCat(\"Family\");\n\t\tMovie fightClub = new Movie(\"Fight Club\", \"Drama\");\n\t\tmovList.add(fightClub);\n\t\tfightClub.setCat(\"Thriller\");\n\t\tMovie scott = new Movie(\"Scott Pilgrim vs. The World\", \"Action\");\n\t\tmovList.add(scott);\n\t\tscott.setCat(\"Comedy\");\n\t\tscott.setCat(\"Coming of age\");\n\t\tscott.setCat(\"Teen\");\n\t\tMovie scream = new Movie(\"Scream\", \"Horror\");\n\t\tmovList.add(scream);\n\t\tscream.setCat(\"Thriller\");\n\t\tscream.setCat(\"Teen\");\n\t\tMovie nick = new Movie(\"Nick & Norah's Infinite Playlist\", \"Teen\");\n\t\tmovList.add(nick);\n\t\tnick.setCat(\"Romantic Comedy\");\n\t\tnick.setCat(\"Coming of age\");\n\t\tMovie fiveHun = new Movie(\"(500) Days of Summer\", \"Romantic Comedy\");\n\t\tmovList.add(fiveHun);\n\t\tfiveHun.setCat(\"Drama\");\n\t\tfiveHun.setCat(\"Coming of Age\");\n\t\tfiveHun.setCat(\"Quirky\");\n\t\tMovie nightMare = new Movie(\"The Nightmare Before Christmas\", \"Animated\");\n\t\tmovList.add(nightMare);\n\t\tnightMare.setCat(\"Family\");\n\t\tnightMare.setCat(\"Comedy\");\n\t\tMovie ferris = new Movie(\"Ferris Bueller's Day Off\");\n\t\tmovList.add(ferris);\n\t\tferris.setCat(\"Teen\");\n\t\tferris.setCat(\"Coming of age\");\n\t\tferris.setCat(\"Comedy\");\n//Menu is moved to it's own method for simplicity. \n\t\tSystem.out.println(\n\t\t\t\t\"Welcome to the movie list app! \\n \\nThere are currently \" + movList.size() + \" movies on the list.\");\n\t\tmenu();\n\t}", "private void parseMovie(String url) {\n\t\tBoolean is3D = false;\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(WOLFF + url).get();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\t\t\n\n\t\tString movietitle = doc.select(\"#wrapper_left h2\").first().text().trim();\n\t\tSystem.out.println(\"Movie: \" + movietitle);\n\t\t\n\t\t// check if it is 3D movie\n\t\tif(url.contains(\"-3d\")) {\n\t\t\tis3D = true;\n\t\t}\n\n\t\t//create resource movie with the type 'Movie' and data property 'title'\n\t\tResource movie = m.createResource(MOVIE + url.replace(\"/film/\", \"\"));\n\t\tmovie.addProperty(RDF.type, m.getProperty(NS + \"Movie\"))\n\t\t\t .addProperty(m.getProperty(NS + \"title\"), movietitle);\n\n\t\t//if it is 3D movie..\n\t\tif(is3D)\n\t\t\tmovie.addProperty(m.getProperty(NS + \"hasPresentation\"), m.getResource(NS + \"3D\"));\n\n\t\t// does it have corresponding dbpedia resource?\n\t\tString mResult;\n\t\tif((mResult = SparqlQuery.movieInDbpediaEn(movietitle)) != null) {\n\t\t\ttemp = ResourceFactory.createResource(mResult);\n\t\t\tmovie.addProperty(OWL.sameAs, temp);\n\t\t} //else if((mResult = SparqlQuery.movieInDbpediaNl(movietitle)) != null) {\n//\t\t\ttemp = ResourceFactory.createResource(mResult);\n//\t\t\tmovie.addProperty(OWL.sameAs, temp);\n//\t\t}else if((mResult = SparqlQuery.movieInDbpediaDe(movietitle)) != null) {\n//\t\t\ttemp = ResourceFactory.createResource(mResult);\n//\t\t\tmovie.addProperty(OWL.sameAs, temp);\n//\t\t}\n//\t\t\n\t\t//parse sidebar information\n\t\tElements sidebar = doc.select(\".sidebar_container\").get(1).select(\".table_view tr td\");\n\t\t\n\t\tfor (Element element:sidebar) {\n\t\t\tswitch (element.select(\"strong\").text()) {\n\t\t\t//get all actors\n\t\t\tcase \"Acteurs\":\n\t\t\t\tString[] actors = element.text().substring(8).split(\", \"); //Remove \"Acteurs\" from string\n\t\t\t\tfor(String actor : actors) {\n\t\t\t\t\tResource person = m.createResource(PERSON + actor.replace(\" \", \"_\"));\n\t\t\t\t\tperson.addProperty(RDF.type, m.getProperty(NS + \"Person\"))\n\t\t\t\t\t\t .addProperty(m.getProperty(NS + \"name\"), actor.trim());\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasActor\"), person);\n\t\t\t\t\t\n\t\t\t\t\t//check if the actor has dbpedia page. Describe as sameAs if true\n\t\t\t\t\tString qResult;\n\t\t\t\t\tif((qResult = SparqlQuery.personInDbpediaEn(actor)) != null) { // in dbpedia.org\n\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n\t\t\t\t\t} //else if((qResult = SparqlQuery.personInDbpediaNl(actor)) != null) { // in nl.dbpedia.org\n//\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n//\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n//\t\t\t\t\t} else if((qResult = SparqlQuery.personInDbpediaDe(actor)) != null) { // in de.dbpedia.org\n//\t\t\t\t\t\ttemp = ResourceFactory.createResource(qResult);\n//\t\t\t\t\t\tperson.addProperty(OWL.sameAs, temp);\n//\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the director\n\t\t\tcase \"Regie\": //director\n\t\t\t\tString nameString = element.text().substring(6).toString().trim(); //Remove \"Regie\" from string\n\t\t\t\tResource person = m.createResource(PERSON + nameString.replace(\" \", \"_\"));\n\t\t\t\tperson.addProperty(m.getProperty(NS + \"name\"), nameString);\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasDirector\"), person);\n\t\t\t\t\n\t\t\t\t//check if the director has dbpedia page. Describe as sameAs if true \n\t\t\t\tString qResult;\n\t\t\t\tif((qResult = SparqlQuery.personInDbpediaEn(nameString)) != null) { // in dbpedia.org\n\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR + qResult);\n\t\t\t\t}// else if((qResult = SparqlQuery.personInDbpediaNl(nameString)) != null) { // in nl.dbpedia.org\n//\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR_NL + qResult);\n//\t\t\t\t} else if((qResult = SparqlQuery.personInDbpediaDe(nameString)) != null) { // in de.dbpedia.org\n//\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR_DE + qResult);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// a little bit cheating for JJ Abrams\n\t\t\t\tif(nameString.equals(\"Jeffrey (J.J.) Abrams\")) {\n\t\t\t\t\tperson.addProperty(OWL.sameAs, DBR + \"J._J._Abrams\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//get the duration\n\t\t\tcase \"Speelduur\":\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"duration\"), last(element).toString().trim().split(\" \")[0], XSDDatatype.XSDint);\n\t\t\t\tbreak;\n\n\t\t\t//get the genre\n\t\t\tcase \"Genre\":\n\t\t\t\tString[] genres = last(element).toString().toLowerCase().split(\", \");\n\t\t\t\tfor (String genreName:genres) {\n\t\t\t\t\tif(GENRE_MAP.containsKey(genreName))\n\t\t\t\t\t\tgenreName = GENRE_MAP.get(genreName);\n\t\t\t\t\telse { //unknown genre; report it and create new resource to acommodate\n\t\t\t\t\t\tSystem.out.println(\"*) another genre found: \" + genreName);\n\t\t\t\t\t\tm.createResource(GENRE + genreName)\n\t\t\t\t\t\t .addProperty(RDF.type, m.getProperty(NS + \"Genre\"));\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"hasGenre\"), m.getResource(GENRE + genreName));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the language presentation\n\t\t\tcase \"Taal\":\n\t\t\t\tString lang = last(element).toString().trim().toLowerCase();\n\t\t\t\tif(LANGUAGE.containsKey(lang)) {\n\t\t\t\t\tlang = LANGUAGE.get(lang);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"another language found: \" + lang);\n\t\t\t\t}\n\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"language\"), lang);\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the release date\n\t\t\tcase \"In de bioscoop sinds\":\n\t\t\t\tString[] releasedate = last(element).toString().trim().split(\" \");\n\t\t\t\tString day = releasedate[0];\n\t\t\t\tString month = String.valueOf((Arrays.asList(DUTCH_MONTH).indexOf(releasedate[1].toLowerCase()) + 1));\n\t\t\t\tString year = releasedate[2];\n\t\t\t\tString formatteddate = year + \"-\" + month + \"-\" + day + \"T00:00:00\";\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"releaseDate\"), formatteddate, XSDDatatype.XSDdateTime);\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t//get the local distributor\n\t\t\tcase \"Distributeur\":\n\t\t\t\tNode distributorLink = (Node) last(element);\n\t\t\t\tResource distributorResource;\n\t\t\t\tif (distributorLink instanceof Element) {\n\t\t\t\t\tdistributorResource = m.createResource(COMPANY + ((Element) distributorLink).text().replace(\" \", \"_\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyURL\"), distributorLink.attr(\"href\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyName\"), ((Element) distributorLink).text());\n\t\t\t\t\tmovie.addProperty(m.getProperty(NS + \"isDistributedBy\"), distributorResource);\n\t\t\t\t} else {\n\t\t\t\t\tdistributorResource = m.createResource(COMPANY + distributorLink.toString().replace(\" \", \"_\"));\n\t\t\t\t\tdistributorResource.addProperty(m.getProperty(NS + \"companyName\"), distributorLink.toString());\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tmovie.addProperty(m.getProperty(NS + \"isDistributedBy\"), distributorResource);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }", "public MovieManager(GenesisGetters genesisGetters)\r\n/* 151: */ {\r\n/* 152:150 */ setName(\"Video manager\");\r\n/* 153:151 */ this.gauntlet = genesisGetters;\r\n/* 154: */ }", "public static Movie getJokerMovieObject(){\n Movie j = new Movie(\"Joker\", 2.5, \"Drama\");\n return j;\n }", "protected Movie(Parcel in) {\n\n poster_path = in.readString();\n overview = in.readString();\n release_date = in.readString();\n id = in.readString();\n original_title = in.readString();\n popularity = in.readByte() == 0x00 ? null : in.readDouble();\n vote_avg = in.readByte() == 0x00 ? null : in.readDouble();\n }", "@Override\r\n public String getParamPostFix(){return \"Movie\";}", "MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {\n super(name, ItemType.Visual,manufacturer);\n\n this.screen = screen;\n this.monitorType = monitorType;\n }", "public VideoSprite( int width, int height, int attributes, GameShell gs )\n\t{\n\t\tsuper();\n\t\t\n\t\tgameShell = gs;\n\t\t\n\t\tvideoImageList = new Vector<VideoImage>();\n\t\tanimation = new Script();\n\t\t\n\t\tsetRealDimensions( width, height );\n\t\tsetDimensions( width, height );\n\t\tthis.attributes = attributes;\n\t\t\n\t\t// Set default state and specified attributes of sprite\n\t\tstate\t\t= SPRITE_STATE_ALIVE;\n\t\tthis.attributes\t= attributes;\n\t\n\t\t// Set attributes of the animation\n\t\tif( ( attributes & SPRITE_ATTR_SINGLE_FRAME ) > 0 )\n\t\t{\n\t\t\tanimation.setAttributes( Script.SCRIPT_ATTR_SINGLE_FRAME );\n\t\t}\n\t\telse\n\t\tif( ( attributes & SPRITE_ATTR_MULTI_FRAME ) > 0 )\n\t\t{\n\t\t\tanimation.setAttributes( Script.SCRIPT_ATTR_MULTI_FRAME );\n\t\t}\n\t\telse\n\t\tif( ( attributes & SPRITE_ATTR_MULTI_ANIM ) > 0 )\n\t\t{\n\t\t\tif( ( attributes & SPRITE_ATTR_ANIM_ONE_SHOT ) > 0 )\n\t\t\t{\n\t\t\t\tanimation.setAttributes( Script.SCRIPT_ATTR_MULTI_SEQUENCE & Script.SCRIPT_ATTR_ONE_SHOT );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tanimation.setAttributes( Script.SCRIPT_ATTR_MULTI_SEQUENCE );\n\t\t\t}\n\t\t}\n\t\t\n\t\tanimation.setNumberOfFrames( 0 );\n\t\t\n\t\t// Set default color and alpha levels;\n\t\tcolorWeight = new float[] {1.0f, 1.0f, 1.0f, 1.0f};// This must be called before any color/alpha changes.\n\t\tsetColor( colorWeight );\n\t\tsetAlpha( 1.0f );\n\n rotationAxis = new Point();\n setRotationAxis( width / 2, height / 2 ); // Default center rotation axis.\n\t}", "@POST\n public JsonMovie createUpdateOne(JsonMovie movie) {\n \tJsonMovie jmovie = movie;\n \tif (movie.getId() == null) {\n \t\tMovie m = new Movie();\n \t\tm.setTitle(movie.getTitle());\n \t\tm.setDescription(movie.getDescription());\n \t\tm.setReleasedate(movie.getReleaseDate());\n \t\tm.setLength(movie.getLength());\n \t\tm.setIscollector(movie.getIsCollector());\n \t\tm.setSupportBean(supportDAO.getSupport(movie.getSupportId()));\n \t\tm.setStorygenre(storygenreDAO.getStorygenre(movie.getGenreId()));\n \t\tmovieDao.saveMovie(m);\n\t \tjmovie.setId(m.getId());\n \t} else {\n \tMovie m = movieDao.getMovie(movie.getId());\n \t\tm.setTitle(movie.getTitle());\n \t\tm.setDescription(movie.getDescription());\n \t\tm.setReleasedate(movie.getReleaseDate());\n \t\tm.setLength(movie.getLength());\n \t\tm.setIscollector(movie.getIsCollector());\n \t\tm.setSupportBean(supportDAO.getSupport(movie.getSupportId()));\n \t\tm.setStorygenre(storygenreDAO.getStorygenre(movie.getGenreId()));\n \t\tmovieDao.updateMovie(m);\n \t}\n \treturn jmovie;\n }", "public Movie getMovie(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_MOVIE, new String[]{KEY_ID,\n KEY_NAME, KEY_DESC, KEY_VOTE_AVG, KEY_RELEASE_DATE, KEY_ADULT, KEY_POSTER_PATH, KEY_BACKDROP_PATH}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Movie movie = new Movie(cursor.getColumnName(1),\n cursor.getString(3), cursor.getString(4),cursor.getString(2),cursor.getString(6),cursor.getString(7),cursor.getString(5),cursor.getString(0));\n\n return movie;\n }", "private VideoMetadata createVideo(String name, String type, String category, String imageName, String imageDir,\n\t\t\tString videoName, String videoDir, String description) {\n\t\tVideoMetadata newVideo = new VideoMetadata();\n\t\tnewVideo.setName(name);\n\t\tnewVideo.setType(type);\n\t\tnewVideo.setCategory(category);\n\t\tnewVideo.setImageName(imageName);\n\t\tnewVideo.setImageDir(imageDir);\n\t\tnewVideo.setVideoName(videoName);\n\t\tnewVideo.setVideoDir(videoDir);\n\t\tnewVideo.setDescription(description);\n\t\tnewVideo.setTimestamp(System.currentTimeMillis());\n\t\treturn newVideo;\n\t}", "protected VideoData() {}", "public MovieComponent(WOContext context) {\n\t\tsuper(context);\n\t}", "void create(Artist artist);", "public Movie(String name, int year, List<Author> authors ){\n super(name, year, authors);\n rating = 0;\n }", "@Override\n public void onCreate(){\n super.onCreate();\n //initialize database manager\n MovieDB movieDB = new MovieDB(this);\n\n //will create database if necessary\n mDB = movieDB.getWritableDatabase();\n\n //set movie type init value\n mMovieType = -1;\n\n //instantiate MovieItem object\n mMovie = new MovieItem();\n\n //initialize Valet classes\n initValets();\n\n //initialize Staff classes\n initStaff();\n\n //initialize Butler classes\n initButlers();\n\n }", "public VideoDetails(VideoTeaser obj)\n {\n super(obj);\n }", "public Movie(String title, String directorsName, Genre genre, ArrayList<Actor> starring) {\r\n movieIsNotNull(title, directorsName, starring);\r\n\r\n this.title = title;\r\n this.directorsName = directorsName;\r\n this.genre = genre;\r\n\r\n this.starring = starring;\r\n sortCastByNames();\r\n }", "public StatusObj createMovieFlexEntry(MovieDetails md);", "public ThumbnailModel(MovieModel movieModel) {\n this.movie_id = movieModel.getMovie_id();\n this.title = movieModel.getTitle();\n this.backdrop_path = movieModel.getBackdrop_path();\n this.poster_path = movieModel.getPoster_path();\n }", "Builder addVideo(VideoObject.Builder value);", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "EMBED createEMBED();", "public Movie getMovie() {\n DBMovie movie = new DBMovie();\n movie.setId(this.movieID);\n return movie;\n }", "public Series (String t, String s){\n title = t;\n studio = s;\n rating = \"PG\";\n}", "public static void main(String[] args){\n Film adAstra = new Film(\"Ad Astra\", new Date(18, \"September\", 2019), 123);\n System.out.println(adAstra);\n }", "public Actor(final String name) {\n this.name = name;\n movies = new ArrayList<>();\n }", "public Show(Movie movie, CinemaDate dayAndTime, Cinema cinema, Theater theater) {\n this.movie = movie;\n this.dayAndTime = dayAndTime;\n this.cinema = cinema;\n this.theater = theater;\n this.uniqueID = UUID.randomUUID().toString();\n }", "private void addMovieToArray(ArrayList<Movie> movies, String movieName, String directorName, String act1, String act2, String act3, int star)\n {\n Movie clip = new Movie(movieName, directorName, act1, act2, act3, star);\n movies.add(clip);\n }", "PlayerBean create(String name);", "Motivo create(Motivo motivo);", "public static MovieDetailsFragment newInstance(MovieResponse m) {\n MovieDetailsFragment fragment = new MovieDetailsFragment();\n Bundle args = new Bundle();\n args.putParcelable(ARG_PARAM1,m);\n fragment.setArguments(args);\n return fragment;\n }", "public Movie serializeToMovie (JSONObject jsonObject, int ID) {\n try{\n if(ID >= 0){\n String name = jsonObject.getString(\"Title\");\n String genre = jsonObject.getString(\"Genre\");\n String format = jsonObject.getString(\"Format\");\n int year = Integer.parseInt(jsonObject.getString(\"Year\"));\n String director = jsonObject.getString(\"Director\");\n String writersLine = jsonObject.getString(\"Writers\");\n String[] writers = writersLine.split(\",\");\n String starsLine = jsonObject.getString(\"Stars\");\n String[] stars = starsLine.split(\",\");\n return new Movie(ID, name, genre, format, year, director, writers, stars);\n } else {\n throw new IllegalArgumentException(\"ID must be positive.\");\n }\n } catch(JSONException e){\n throw new JSONException(\"JSON is incorrect\");\n }\n }", "private Movie getMovie() {\n Gson gson = new Gson();\n return gson.fromJson(result, Movie.class);\n }", "public Movie(int movieId, float rating){\n\t \tthis.movieId = movieId;\n\t \tthis.rating = rating;\n\t }", "public MovieModel buildMovieModel(JSONObject jsonObject){\n try {\n MovieModel movieModel = new MovieModel();\n movieModel.setId(jsonObject.getString(\"m_id\"));\n movieModel.setName(jsonObject.getString(\"m_name\"));\n movieModel.setImage(context.getString(R.string.master_url) + context.getString(R.string.movie_image_portrait_url) + jsonObject.getString(\"m_id\") + \".jpg\");\n movieModel.setCensorRating(jsonObject.getString(\"censor\"));\n movieModel.setDuration(Integer.parseInt(jsonObject.getString(\"duration\")));\n movieModel.setRelease(jsonObject.getString(\"release\"));\n movieModel.setGenre(jsonObject.getString(\"genre\").replace(\"!~\", \",\"));\n movieModel.setStory(jsonObject.getString(\"story\"));\n movieModel.setTotalWatched(Integer.parseInt(jsonObject.getString(\"total_watched\")));\n movieModel.setTotalRatings(Integer.parseInt(jsonObject.getString(\"total_ratings\")));\n movieModel.setTotalReviews(Integer.parseInt(jsonObject.getString(\"total_reviews\")));\n movieModel.setRating(\"\" + (int)Float.parseFloat(jsonObject.getString(\"rating\")));\n movieModel.setDisplayDimension(jsonObject.getString(\"dimension\"));\n movieModel.setCast(buildCastString(jsonObject));\n movieModel.setWatched(jsonObject.getString(\"is_watched\").equals(\"1\"));\n movieModel.setAddedToWatchlist(jsonObject.getString(\"is_watchlist\").equals(\"1\"));\n movieModel.setRated(jsonObject.getString(\"is_rated\").equals(\"1\"));\n movieModel.setLanguage(jsonObject.getString(\"language\"));\n movieModel.setReviewed(jsonObject.getString(\"is_reviewed\").equals(\"1\"));\n return movieModel;\n }catch(Exception e){\n EmailHelper emailHelper = new EmailHelper(context, EmailHelper.TECH_SUPPORT, \"Error: ModelHelper\", e.getMessage() + \"\\n\" + StringHelper.convertStackTrace(e));\n emailHelper.sendEmail();\n }\n return new MovieModel();\n }", "MovieVideo getMovieVideoByVideoid(String videoid);", "public void movieEvent(Movie m) {\n m.read();\n}", "public void construct(Player player) throws IOException, URISyntaxException {\n builder.init();\n builder.buildTitle(player);\n builder.buildMapView(player);\n builder.buildMoves(player);\n builder.buildWinner(player);\n }", "public MovieDB()\n\t{\n\t\t//Create an empty list\n\t\tlist_of_movies = new ArrayList<Movie>();\n\t}", "public static ArrayList<Movie> createDataBase (int movieQt){ //utility function to read from stdin\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n for(int i=0; i < movieQt; i++){\n String movieInfo = readLn(200);\n //System.out.println(movieInfo);\n String[] parts = movieInfo.split(\" \");\n int movieDate = Integer.parseInt(parts[0]);\n //System.out.println(movieDate);\n int movieRent = Integer.parseInt(parts[1]);\n //System.out.println(movieRent);\n String movieName = String.join(\" \", Arrays.copyOfRange(parts, 2, parts.length));\n //System.out.println(movieName);\n Movie newMovie = new Movie(movieName, movieRent, movieDate);\n movieList.add(newMovie);\n }\n return movieList;\n }", "public static void main(String[] args) {\n //Added some awesome things to movie class\n // done with tc100\n }", "void createPlayer(Player player);", "private Hero createHeroObject(){\n return new Hero(\"ImageName\",\"SpiderMan\",\"Andrew Garfield\",\"6 feet 30 inches\",\"70 kg\",\n \"Webs & Strings\",\"Fast thinker\",\"Webs & Flexible\",\n \"200 km/hour\",\"Very fast\",\"Spiderman - Super Hero saves the world\",\n \"SuperHero saves the city from all the villians\");\n }", "public Music createMusic(String file);", "public void setMovie(Movie movie) {\n this.movie = movie;\n }" ]
[ "0.7180434", "0.69416577", "0.69416577", "0.6800658", "0.6781426", "0.65835613", "0.65774196", "0.6368596", "0.6294605", "0.62159044", "0.61758673", "0.6142051", "0.6122035", "0.6100587", "0.6087629", "0.60642743", "0.6058142", "0.5960854", "0.59518945", "0.593748", "0.59362257", "0.5922914", "0.590199", "0.5896062", "0.58800894", "0.5875203", "0.58577305", "0.58554834", "0.5832129", "0.5765617", "0.57620865", "0.57013917", "0.5699915", "0.56942654", "0.5690946", "0.5672681", "0.56627727", "0.56560147", "0.56470764", "0.56464577", "0.56205344", "0.5600014", "0.5596437", "0.55867225", "0.55861884", "0.55847895", "0.5581994", "0.55762476", "0.5547987", "0.5536047", "0.5519222", "0.54897416", "0.5483009", "0.5471306", "0.5456993", "0.54550505", "0.5451533", "0.54505974", "0.54346144", "0.53993946", "0.53793544", "0.53720933", "0.53710544", "0.5359909", "0.53489035", "0.5345085", "0.533037", "0.53291357", "0.53243667", "0.53228486", "0.5312857", "0.53096503", "0.529556", "0.5293026", "0.52899706", "0.5286783", "0.5277334", "0.5266572", "0.52522004", "0.5250281", "0.52452457", "0.524126", "0.5239457", "0.52370805", "0.5230095", "0.52295923", "0.5229245", "0.5216615", "0.5212141", "0.5211391", "0.52032393", "0.5179235", "0.5178497", "0.5173245", "0.5173008", "0.5170649", "0.5167137", "0.5159042", "0.51506686", "0.5146147" ]
0.6371472
7
method to update the tickets sold for each movie
public void updateTicketSales(int movieId, int sales) { for (int i=0; i<getDataLength(); ++i) { if (this.dataList.get(i).getId()==movieId) { this.dataList.get(i).updateTicketSales(sales); } } this.save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateTickets (int updateTickets)\n {\n this.unsoldTickets=this.unsoldTickets + updateTickets; \n }", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTickets.setText(getResources().getString(\n R.string.total_price_new_tickets,\n movieOrder.getTotalPriceAfterDiscount(),\n movieOrder.getNumberOfTicketsAfterOfferIsApplied())\n );\n\n tvSavingsNewTickets.setText(getResources().getString(\n R.string.today_saving_new_tickets,\n movieOrder.getTotalSaving()\n ));\n }", "private void updateReviews(){\r\n FetchReviewsTask reviewsTask = new FetchReviewsTask();\r\n reviewsTask.execute(MovieId);\r\n }", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblTickets.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblTickets.getValueAt(tblTickets.getSelectedRow(), 0).toString());\n\t\t\t\t\tFilmSessionModel session = (FilmSessionModel) cbSession.getSelectedItem();\n\t\t\t\t\tdouble priece = Double.parseDouble(txtPriece.getText().replace(',', '.'));\n\t\t\t\t\tint quantity = Integer.parseInt(tblTickets.getValueAt(tblTickets.getSelectedRow(), 3).toString());\n\t\t\t\t\t\n\t\t\t\t\tupdateTickets(id, session, priece, quantity);\n\t\t\t\t\t\n\t\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t\t}\n\t\t\t}", "public static void updateRating(){\r\n System.out.println('\\n'+\"Update Rating\");\r\n System.out.println(movies);\r\n System.out.println('\\n'+ \"Which movies ratings would you like to update\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n // Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //if the movie title is in teh list change rating\r\n if (movieTitle.equals(names.getName())){\r\n System.out.println(names.getName() + \" has a current rating of \"+ names.getRating()+'\\n'+ \"What would you like to change it to?\");\r\n double newRating = s.nextInt();\r\n s.nextLine();\r\n names.setRating(newRating);\r\n System.out.println(\"You have changed the rating of \"+ names.getName()+ \" to \"+ names.getRating());\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n //if movie titile not in the current list\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "public void doChangeTicketPrices();", "@Override\r\n\tpublic void updateFilm(Film film) {\n\r\n\t}", "private void updateReviews() {\n ArrayList<MovieReview> movieReviewArrayList = new ArrayList<>();\n reviewRecyclerView = findViewById(R.id.reviews_recycler_view);\n reviewRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n movieReviewAdapter = new MovieReviewAdapter(movieReviewArrayList, MovieDetailActivity.this);\n reviewRecyclerView.setAdapter(movieVideoAdapter);\n }", "@Override\n\tpublic int updateTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int updateFilm(Film film) {\n\t\treturn 0;\r\n\t}", "public void add(String t, int y, double r){\n\t//checks if all parameters are valid. If not, throws exception\n\ttry{\t\n\t//if needed increases then movie already exists and if statement to add movie won't be valid\n\tint needed = 0;\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y) {\n\tneeded=1;\n\t//get old quantity \n\tint newQuantity = list.get(x).getQuantity();\n\t//increase it's value by one\n\tnewQuantity++;\n\t//update quantity for that movie by one\n\tlist.get(x).setQuantity(newQuantity);\n\t//update rating of movie to new one\n\tlist.get(x).setRating(r);\n\t} \n\t}\n\t//if needed is still 0\n\tif(needed == 0){\t\n\t//add new movie with all the parameters provided\n\tMovie movie = new Movie(t,y,r,0);\t\n\tlist.add(movie);\n\t//since it's a new movie quantity is set to 1\n\tlist.get((list.size())-1).setQuantity(1);\n\t}\n\t}\n catch(IllegalArgumentException e){\n \tSystem.out.println(\"One of the parameters is invalid so the film was not added to the inventory! \\n\");\n }\n\n\t}", "private void setDispositionCode(Map<String, ExtTicketVO> tickets) throws Exception {\n\t\t//create a ledger entry for each ticket\n\t\tTicketLedgerVO vo;\n\t\tMap<String, TicketLedgerVO> ledgers = new HashMap<>(tickets.size());\n\t\tfor (ExtTicketVO tkt : tickets.values()) {\n\t\t\tvo = new TicketLedgerVO();\n\t\t\tvo.setLedgerEntryId(uuid.getUUID());\n\t\t\tvo.setTicketId(tkt.getTicketId());\n\t\t\tvo.setDispositionBy(SOHeader.LEGACY_USER_ID);\n\t\t\tvo.setSummary(\"Estatus de Tipo de Servicio Modificado : NONREPAIRABLE\");\n\t\t\tvo.setStatusCode(StatusCode.UNREPAIRABLE);\n\t\t\tvo.setCreateDate(stepTime(tkt.getClosedDate(), -60));\n\t\t\tledgers.put(\"disp-\" + tkt.getTicketId(), vo);\n\n\t\t\t//create one for the harvest, and preserve it's ID so we can bind it to ticket_data\n\t\t\tvo = new TicketLedgerVO();\n\t\t\tvo.setLedgerEntryId(uuid.getUUID());\n\t\t\tvo.setTicketId(tkt.getTicketId());\n\t\t\tvo.setDispositionBy(SOHeader.LEGACY_USER_ID);\n\t\t\tvo.setSummary(\"Equipo Listo para Canibalización\");\n\t\t\tvo.setStatusCode(StatusCode.HARVEST_APPROVED);\n\t\t\tvo.setCreateDate(stepTime(tkt.getClosedDate(),-30)); //30mins before close, allows for return shipping in-between\n\t\t\tledgers.put(\"harv-\" + tkt.getTicketId(), vo);\n\t\t}\n\t\twriteToDB(new ArrayList<>(ledgers.values()));\n\n\t\t//delete the existing dispositions from ticket_data - this is easier than trying to update some while inserting others\n\t\tString sql = StringUtil.join(DBUtil.DELETE, schema, \"wsla_ticket_data where attribute_cd='attr_dispositionCode' and ticket_id=?\");\n\t\tlog.debug(sql);\n\t\ttry (PreparedStatement ps = dbConn.prepareStatement(sql)) {\n\t\t\tfor (String ticketId : tickets.keySet()) {\n\t\t\t\tps.setString(1, ticketId);\n\t\t\t\tps.addBatch();\n\t\t\t}\n\t\t\tint[] cnt = ps.executeBatch();\n\t\t\tlog.info(String.format(\"deleted %d dispositions for %d tickets\", cnt.length, tickets.size()));\n\n\t\t} catch (SQLException sqle) {\n\t\t\tlog.error(\"could not delete dispositions\", sqle);\n\t\t}\n\n\t\t//insert ticket_data dispositions for each ticket - make sure to tie-in the ledger entry\n\t\tTicketDataVO dataVo;\n\t\tList<TicketDataVO> inserts = new ArrayList<>(tickets.size()*2);\n\t\tfor (Map.Entry<String, ExtTicketVO> entry : tickets.entrySet()) {\n\t\t\tExtTicketVO tkt = entry.getValue();\n\t\t\tdataVo = new TicketDataVO();\n\t\t\tdataVo.setTicketId(tkt.getTicketId());\n\t\t\tdataVo.setCreateDate(stepTime(tkt.getClosedDate(), -60));\n\t\t\tdataVo.setLedgerEntryId(ledgers.getOrDefault(\"disp-\" + tkt.getTicketId(), new TicketLedgerVO()).getLedgerEntryId());\n\t\t\tdataVo.setAttributeCode(\"attr_dispositionCode\");\n\t\t\tdataVo.setValue(\"NONREPAIRABLE\");\n\t\t\tinserts.add(dataVo);\n\n\t\t\t//also add one for harvest status\n\t\t\tdataVo = new TicketDataVO();\n\t\t\tdataVo.setTicketId(tkt.getTicketId());\n\t\t\tdataVo.setLedgerEntryId(ledgers.getOrDefault(\"harv-\" + tkt.getTicketId(), new TicketLedgerVO()).getLedgerEntryId());\n\t\t\tdataVo.setCreateDate(stepTime(tkt.getClosedDate(), -30));\n\t\t\tdataVo.setAttributeCode(\"attr_harvest_status\");\n\t\t\tdataVo.setValue(\"HARVEST_APPROVED\");\n\t\t\tinserts.add(dataVo);\n\t\t}\n\t\tlog.info(String.format(\"inserting %d new dispositions for %d tickets\", inserts.size(), tickets.size()));\n\t\twriteToDB(inserts);\n\t}", "public void setNoOfTicket(String noOfTickets) {\n \r\n }", "public void updateTicket(Ticket tkt) { \r\n ArrayList<Comment> comments = tkt.getComments();\r\n ArrayList<Task> tasks = tkt.getTasks();\r\n try{\r\n String catsql = \"setTicketCategory(\"+tkt.getTktNo()+\", '\"+tkt.getCategory()+\"')\";\r\n Connect.writeSp(catsql);\r\n String statsql = \"setTicketStatus(\"+tkt.getTktNo()+\", '\"+tkt.getStatus()+\"')\";\r\n Connect.writeSp(statsql);\r\n String persNosql = \"setPersNo(\"+tkt.getTktNo()+\", '\"+tkt.getPersonellNo()+\"')\";\r\n Connect.writeSp(persNosql);\r\n String processLeadNosql = \"setProcessLeadNo(\"+tkt.getTktNo()+\", '\"+tkt.getProcessLeadNo()+\"')\";\r\n Connect.writeSp(processLeadNosql);\r\n for (Comment comment : comments) {\r\n tkt.addComment(comment);\r\n }\r\n for (Task task : tasks) {\r\n tkt.deleteAllTasks();\r\n tkt.addTask(task);\r\n }\r\n \r\n \r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage( ));\r\n } \r\n }", "@Override\n\tpublic void updateFilm(com.dutproject.cinemaproject.model.bean.Film film) throws SQLException {\n\t\t\n\t}", "private void setVersionsFromJiraData(TicketJira ticket, ArrayList<ReleaseJira> releases, ProportionMovingWindow proportion) {\r\n\t\t\r\n\t\tint ivIndex = 0;\r\n\t\tint ovIndex = 0;\r\n\t\tint fvIndex = 0;\r\n\t\tint index = 1;\r\n\t\tfor (ReleaseJira release: releases) {\r\n\t\t\tif(release.getName().equalsIgnoreCase(iv)) {\r\n\t\t\t\tivIndex = release.getID();\r\n\t\t\t}\r\n\t\t\tif(release.getName().equalsIgnoreCase(ov)) {\r\n\t\t\t\tovIndex = release.getID();\r\n\t\t\t}\r\n\t\t\tif(release.getName().equalsIgnoreCase(fv)) {\r\n\t\t\t\tfvIndex = release.getID();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tindex = index + 1;\r\n\t\t}\r\n\t\t\r\n\t\tif (ovIndex > fvIndex) {\r\n\t\t\tString msg = ticket.getTicketID() + ERRORMESSAGE;\r\n\t\t\tmylogger.log(Level.SEVERE, msg);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tfor (int i = ivIndex; i< fvIndex; i++) {\r\n\t\t\tav.add(ReleaseJira.getReleaseByID(releases, i).getName());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(ovIndex != fvIndex) {\r\n\t\t\tproportion.updateWindow(ivIndex, ovIndex, fvIndex);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void watchMovie(){\r\n System.out.println('\\n'+\"Which movie would you like to watch?\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n //Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //If movie is found in the list\r\n if (movieTitle.equals(names.getName())){\r\n names.timesWatched += 1;\r\n System.out.println(\"Times Watched for \"+ names.getName()+ \" has been increased to \"+ names.timesWatched);\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n\r\n // If movie not found do the other case\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "public void updateData(List<Movie> movies) {\n mMovies = movies;\n notifyDataSetChanged();\n }", "public void runBook(int sales, int[] ageArray) {\n\t\t// Update ticket sales of movie\n\t\tMovieCRUD<Movie> movieCRUD = new MovieCRUD<>(Movie.class);\n\t\tmovieCRUD.updateTicketSales(this.showtimes.getMovieId(), sales);\n\t\tdouble totalPrice =0;\n\t\tfor (int i=0; i<sales; ++i) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ticket \"+(i+1)+\" : \");\n\t\t\ttotalPrice += this.runPrice(ageArray[i]);\n\t\t}\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"Total Price: \"+totalPrice);\n\t\tSystem.out.println(\"Transaction successful! Thank you for booking with MOBLIMA!\");\n\t\t\n\t\t// Create Booking History\n\t\tBookingCRUD<Booking> bookingCRUD = new BookingCRUD<>(Booking.class);\n\t\tbookingCRUD.createBooking(Cache.getUsername(), this.showtimes.getMovieId(), sales, \n\t\t\t\tDateTimeHelper.getTodayDate(), DateTimeHelper.getCurrentTime(), \n\t\t\t\tShowtimes.getCineplexId(), this.showtimes.getCinemaId());\n\t\t\n\t\tthis.home();\n\t\t\n\t}", "public void setDetails(){\n\n TextView moviename = (TextView) findViewById(R.id.moviename);\n TextView moviedate = (TextView) findViewById(R.id.moviedate);\n TextView theatre = (TextView) findViewById(R.id.theatre);\n\n TextView seats = (TextView) findViewById(R.id.seats);\n\n moviename.setText(ticket.movieName);\n moviedate.setText(ticket.getMovieDate());\n theatre.setText(ticket.theatreDetails);\n\n seats.setText(ticket.seats);\n }", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "public Boolean updateMovieDetails(String title, int year, String director, String actors, int rating, String review, int fav){\n SQLiteDatabase DB = this.getWritableDatabase();\n ContentValues cv = new ContentValues();\n\n cv.put(\"title\", title);\n cv.put(\"year\", year);\n cv.put(\"director\", director);\n cv.put(\"actors\", actors);\n cv.put(\"rating\", rating);\n cv.put(\"review\", review);\n cv.put(\"fav\", fav);\n\n DB.update(\"MovieDetails\", cv, \"title=?\", new String[]{title});\n return true;\n }", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "public static void main(String[] args) {\n TravelAgency Altayyar = new TravelAgency(20);\n \n //creating and storing object for processing using array\n Ticket[] ticketsToAdd = new Ticket[4];\n \n ticketsToAdd[0] = new BusTicket(\"Nora Ali\",\"Riyadh\",\"Jeddah\",\"28/02/2018\",\"Standard\",600);\n ticketsToAdd[1] = new AirlineTicket(\"Sara Saad\",\"Riyadh\",\"Khobar\",\"03/03/2018\",\"Business\",\"Flynas\");\n ticketsToAdd[2] = new AirlineTicket(\"Ahmad Ali\",\"Riyadh\",\"Dammam\",\"13/03/2018\",\"Economy\",\"Saudia\");\n ticketsToAdd[3] = new AirlineTicket(\"Maha Hamad\",\"Riyadh\",\"Jeddah\",\"20/04/2018\",\"Business\",\"Saudia\");\n \n //adding objects\n for (int i = 0; i < ticketsToAdd.length; i++) {\n \n boolean isAdded = Altayyar.addReservation(ticketsToAdd[i]);\n System.out.println((isAdded)?\"The Ticket was added successfully\":\"The Ticket was not added !\");\n }\n \n \n //display all the issued tickets \n Altayyar.display();\n \n\n //cancel a ticket\n boolean isCancelled = Altayyar.cancelReservation(0);\n System.out.println((isCancelled)?\"The ticket was found and cancelled successfully !\":\"Ticket was not found !\");\n \n \n \n \n \n //get and display all tickets belonging to Saudia \n Ticket[] saudiaTickets = Altayyar.allTickets(\"Saudia\");\n \n for (int i = 0; i < saudiaTickets.length; i++) {\n \n System.out.println(saudiaTickets[i].toString());\n }\n \n \n \n //display all the issued tickets after the update \n Altayyar.display();\n \n \n }", "public void Adding(String t, int y, int d, double r){\n\t//checks if all parameters are valid. If not, throws exception\n\ttry{\n\t//if needed increases then movie already exists and if statement to add movie won't be valid\n\tint needed = 0;\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y) {\n\tneeded=1;\n\t//get old quantity \n\tint newQuantity = list.get(x).getQuantity();\n\t//increase it's value by one\n\tnewQuantity++;\n\t//update quantity for that movie by one\n\tlist.get(x).setQuantity(newQuantity);\n\t//update rating of movie to new one\n\tlist.get(x).setRating(r);\n\t} \n\t}\n\t//if needed is still 0\n\tif(needed == 0){\n\t//add new movie with all the parameters provided\n\tMovie movie = new Movie(t,y,r,d);\t\n\t//location of arraylist where movie is added\n\tlist.add(list.size(),movie);\n\t//since it's a new movie quantity is set to 1\n\tlist.get((list.size())-1).setQuantity(1);\n\t}\n\t}\n\t// \n\tcatch(IllegalArgumentException e){\n \tSystem.out.println(\"One of the parameters is invalid so the film was not added to the inventory! \\n\");\n\t}\n\t}", "@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setName(value);\r\n \tmovieTable.redraw();\r\n }", "public void edit(ArrayList<Movie> movies)\n {\n String deleteMovie = \"\";\n String newact1 = \"\";\n String newact2 = \"\";\n String newact3 = \"\";\n int newrating = 0; \n String title = \"\";\n int movieIndex = 0; \n ArrayList<Movie> result = new ArrayList<Movie>();\n \n title = insertTitle();\n result = checkExistence(movies, title);\n boolean value = displayExistanceResult(result, title);\n \n if (value == false)\n return;\n \n int options = insertNumberOption(result, \"modify\");\n \n options = options - 1;\n String head = result.get(options).getTitle();\n String director = result.get(options).getDirector();\n String actor1 = result.get(options).getActor1();\n String actor2 = result.get(options).getActor2(); \n String actor3 = result.get(options).getActor3();\n int rating = result.get(options).getRating();\n \n newact1 = actor1;\n newact2 = actor2;\n newact3 = actor3;\n newrating = rating; \n \n int ans = insertEditMenuAnswer();\n \n if (ans == 1)\n {\n newact1 = insertActor(1);\n newact2 = insertActor(2);\n \n if (newact2.length() != 0)\n {\n newact3 = insertActor(3);\n \n if (newact3.length() == 0)\n newact3 = actor3;\n }\n else \n if (newact2.length() == 0)\n newact2 = actor2;\n }\n else \n if (ans == 2)\n newrating = insertRating();\n else\n if (ans == 3)\n {\n newact1 = insertActor(1);\n newact2 = insertActor(2);\n \n if (newact2.length() != 0)\n {\n newact3 = insertActor(3);\n \n if (newact3.length() == 0)\n newact3 = actor3;\n }\n else \n if (newact2.length() == 0)\n newact2 = actor2; \n newrating = insertRating();\n }\n else\n if (ans == 4)\n return;\n \n actor1 = newact1;\n actor2 = newact2;\n actor3 = newact3;\n rating = newrating;\n \n for (Movie film : movies)\n {\n String titles = film.getTitle();\n \n if (head.equalsIgnoreCase(titles))\n break;\n \n movieIndex = movieIndex + 1;\n }\n \n Movie film = new Movie(head,director,actor1,actor2,actor3,rating);\n movies.set(movieIndex, film);\n \n System.out.println(\"\\n\\t\\t >>>>> As you want, \" + head.toUpperCase() + \" has been UPDATED! <<<<<\");\n displayOneFilm(film);\n }", "public abstract void onUpdatePatchset(TicketModel ticket);", "private void purchaseTickets() throws IOException\n {\n toServer.writeInt(sectionsSelected);\n toServer.writeInt(numTicketsWanted);\n\n setChanged();\n notifyObservers(new Integer(sectionsSelected));\n notifyObservers(new Integer(numTicketsWanted));\n \n recieveInformationFromServer();\n\n \n }", "void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }", "public void updateReactionsMarketAndTreasures() {\r\n\t\t((TextChannel) gameChannel).clearReactionsById(marketAndTsID).queue();\r\n\t\tif (currentPlayer.getGold() >= 7) {\r\n\t\t\tif (marketItemCount[0] > 0) {\r\n\t\t\t\tgameChannel.addReactionById(marketAndTsID, GlobalVars.emojis.get(\"key\")).queue();\r\n\t\t\t}\r\n\t\t\tif (marketItemCount[1] > 0) {\r\n\t\t\t\tgameChannel.addReactionById(marketAndTsID, GlobalVars.emojis.get(\"briefcase\")).queue();\r\n\t\t\t}\r\n\t\t\tif (marketItemCount[2] > 0) {\r\n\t\t\t\tgameChannel.addReactionById(marketAndTsID, GlobalVars.emojis.get(\"crown\")).queue();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void update(TheatreMashup todo) {\n\t\t\n\t}", "private void actualizarInventarios() {\r\n\t\tfor (InventarioProducto inventarioProducto : inventariosEditar) {\r\n\t\t\tproductoEJB.editarInventarioProducto(inventarioProducto);\r\n\t\t}\r\n\t}", "private void updateMovies(){\n FetchMovieTask movieTask = new FetchMovieTask();\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String order_by = prefs.getString(getString(R.string.pref_order_by_key), getString(R.string.pref_order_by_default));\n movieTask.execute(order_by);\n\n }", "public void updateTicket(Tickets ticket, String contestName) {\n String hql = String.format(\"UPDATE Tickets SET CONTEST = '%s' WHERE USER_ID = '%s' AND TICKET_ID = '%s' \",\n contestName, ticket.getId(), ticket.getTicketId());\n entityManager.createNativeQuery(hql, Tickets.class).executeUpdate();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == mnuItemExit) {\n\t\t\tSystem.exit(0);} \n\n\t\t//Open ticket\t\n\t\telse if (e.getSource() == mnuItemOpenTicket) {\n\n\t\t\t// get ticket information\n\t\t\tString ticketName = JOptionPane.showInputDialog(null, \"Enter your name\");\n\t\t\tString ticketDesc = JOptionPane.showInputDialog(null, \"Enter a ticket description\");\n\n\t\t\t// insert ticket information to database\n\t\t\tint id = dao.insertRecords(ticketName, ticketDesc);\n\n\t\t\t// display results if successful or not to console / dialog box\n\t\t\tif (id != 0) {\n\t\t\t\tSystem.out.println(\"Ticket ID : \" + id + \" created successfully!!!\");\n\t\t\t\tdao.insertHistoryRecords(ticketName, ticketDesc); //If successful Ticket is added to History Records as well\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + id + \" created\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Ticket cannot be created!!!\");}\n\n\t\t//Admin View Ticket \n\t\telse if (e.getSource() == mnuItemViewTicket) {\n\t\t\t\n\t\t\t// retrieve all tickets details for viewing in JTable\n\t\t\ttry {\n\n\t\t\t\t// Use JTable built in functionality to build a table model and\n\t\t\t\t// display the table model off your result set!!!\n\t\t\t\tJTable jt = new JTable(ticketsJTable.buildTableModel(dao.readRecords()));\n\t\t\t\tjt.setBounds(30, 40, 200, 400);\n\t\t\t\tJScrollPane sp = new JScrollPane(jt);\n\t\t\t\tadd(sp);\n\t\t\t\tsetVisible(true); // refreshes or repaints frame on screen\n\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//User View Ticket\n\t\telse if (e.getSource() == mnuItemViewMyTicket) {\n\n\t\t\t// retrieve all tickets details for viewing in JTable\n\t\t\ttry {\n\n\t\t\t\t// Use JTable built in functionality to build a table model and\n\t\t\t\t// display the table model off your result set!!!\n\t\t\t\tJTable jt = new JTable(ticketsJTable.buildTableModel(dao.readMyRecords()));\n\t\t\t\tjt.setBounds(30, 40, 200, 400);\n\t\t\t\tJScrollPane sp = new JScrollPane(jt);\n\t\t\t\tadd(sp);\n\t\t\t\tsetVisible(true); // refreshes or repaints frame on screen\n\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//Admin View History\n\t\telse if (e.getSource() == mnuItemViewHistory) {\n\t\t\t\t\t\t// retrieve all tickets details for viewing in JTable\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t// Use JTable built in functionality to build a table model and\n\t\t\t\t\t\t\t// display the table model off your result set!!!\n\t\t\t\t\t\t\tJTable jt = new JTable(ticketsJTable.buildTableModel(dao.readHistory()));\n\t\t\t\t\t\t\tjt.setBounds(30, 40, 200, 400);\n\t\t\t\t\t\t\tJScrollPane sp = new JScrollPane(jt);\n\t\t\t\t\t\t\tadd(sp);\n\t\t\t\t\t\t\tsetVisible(true); // refreshes or repaints frame on screen\n\t\t\t\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();}\n\t\t}\n\n\t\t//Admin Update Record\n\t\telse if (e.getSource() == mnuItemUpdate){\n\t\t\t//Get Ticket ID to Update\n\t\t\tString ticketnum = JOptionPane.showInputDialog(null, \"Enter Ticket ID to Update\");\n\t\t\tint update = Integer.parseInt(ticketnum); //Turn ticket id to integer\n\t\t\t//Get new ticket issuer\n\t\t\tString upTicIssue = JOptionPane.showInputDialog(null, \"Enter New Ticket Issuer\");\n\t\t\t//Get new ticket description\n\t\t\tString upTicDesc = JOptionPane.showInputDialog(null, \"Enter New Ticket Description\");\n\n\t\t\t/*Check Value inputs\n\t\t\tSystem.out.println(update +\"tickets.java\");\n\t\t\tSystem.out.println(upTicIssue);\n\t\t\tSystem.out.println(upTicDesc); */\n\n\t\t\t//insert ticket info to database\n\t\t\tint id = dao.updateRecords(upTicIssue, upTicDesc, update);\n\n\t\t\t//display results if successful or not to console / dialog box\n\t\t\tif (id != 0) {\n\t\t\t\tdao.updateHRecords(upTicIssue, upTicDesc, update);//If successfull update history records too\n\t\t\t\tSystem.out.println(\"Ticket ID : \" + update + \" updated successfully!!!\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + update + \" updated\");\n\t\t\t\t} else\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + update + \" cannot be updated\");\n\t\t}\n\n\t\t//Admin Delete Record\n\t\telse if (e.getSource() == mnuItemDelete) {\n\t\t\t//Get Ticket ID to delete\n\t\t\tString ticketID = JOptionPane.showInputDialog(null, \"Enter Ticket ID to Delete\");\n\t\t\tint delid = Integer.parseInt(ticketID);\n\n\t\t\t//insert ticket info to database\n\t\t\tint id = dao.deleteRecords(delid); //To delete\n\t\t\t//display results if successful or not to console / dialog box\n\t\t\t\tif (id != 0) {\n\t\t\t\tSystem.out.println(\"Ticket ID : \" + delid + \" deleted successfully!!!\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + delid + \" deleted\");\n\t\t\t\tdao.edhistory(delid); //To add end date to history\n\t\t\t\t} else\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + delid + \" cannot be deleted\");\n\t\t\t\t} \n\n\t\t//Close ticket\n\t\telse if (e.getSource() == mnuItemCloseTicket) {\n\t\t\t//Get Ticket ID to close\n\t\t\tString ticketID = JOptionPane.showInputDialog(null, \"Enter Ticket ID to Close\");\n\t\t\tint cid = Integer.parseInt(ticketID);\n\t\t\t//insert ticket info to database\n\t\t\tint id = dao.closeTicket(cid); //To close (add end date) to Ticket\n\t\t\t\t\t//display results if successful or not to console / dialog box\n\t\t\t\t\t\tif (id != 0) {\n\t\t\t\t\t\tSystem.out.println(\"Ticket ID : \" + cid + \" closed successfully!!!\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + cid + \" closed\");\n\t\t\t\t\t\t} else\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket id: \" + cid+ \" cannot be closed\");\n\t\t\t\t\t\t} \n\t}", "@Override\n\tpublic void updateMovie(Movie movie) {\n\t\tString sql=\"Update movie set MOVIE_ID=?,MOVIE_NAME=?,LANGUAGE=?,GENERE=?,TYPE=?,DURATION=?\";\n\t\tObject[] params={movie.getMovieId(),movie.getMovieName(),movie.getLanguage(),movie.getGenere(),movie.getType(),movie.getDuration()};\n\t\tint[] types={Types.INTEGER,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.INTEGER};\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tjdbcTemplate.update(sql, params, types);\n\t}", "public void updateSpots(Spot... spots) { mRepository.updateSpots(spots); }", "public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}", "private void release(int ticket) {\n trackStatus[ticket].release();\n if (DEBUG) System.err.printf(\"Train: %d\\tReleased: %d\\n\", this.id, ticket);\n }", "public void updateData(String name,int year,String director,String cast,int rating , String reviews , boolean fav ){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues updateValues = new ContentValues();\n updateValues.put(MOVIE_NAME,name);\n updateValues.put(MOVIE_YEAR,year);\n updateValues.put(MOVIE_DIRECTOR,director);\n updateValues.put(MOVIE_CAST,cast);\n updateValues.put(MOVIE_RATING,rating);\n updateValues.put(MOVIE_REVIEWS,reviews);\n updateValues.put(FAVOURITES,fav);\n db.update(Db_Table,updateValues,\"movie_name = ?\",new String[]{ name });\n }", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tif (movies.size()!=0) {\n\t\t\t\t\t\t\ttimeCalendar.set((Integer)yearSpinner.getValue(),(Integer)monthSpinner.getValue()-1,(Integer)daySpinner.getValue(), (Integer)hourSpinner.getValue(), (Integer)minuteSpinner.getValue());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tOperation.addPlay(halls, place.getSelectedIndex(),timeCalendar,movies.get(filmName.getSelectedIndex()));\n\t\t\t\t\t\t\tplays.removeAll(plays);\n\t\t\t\t\t\t\tOperation.sort(sortIndex, halls, plays);\n\t\t\t\t\t\t\ttable.updateUI();\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void updateMovieData() {\n fetchMoviesDataTask = new FetchMoviesDataTask(this);\n fetchMoviesDataTask.execute(sortOrder);//get short method param using DefaultSharedPrefs\n }", "public void setMovies(List<Movies> mvoies)\n {\n for ( Movies movie: mvoies)\n {\n if (!mMovies.contains(movie))\n {\n mMovies.add(movie);\n moviesRViewAdapter.notifyItemInserted(mMovies.indexOf(movie));\n }\n }\n }", "void update(Seller obj);", "void update(Seller obj);", "public void actionPerformed(ActionEvent e) {\n\t\tfor(int i=0;i<companies.length;i++){\n\t\t\t\tdata[i][0] = companies[i];\n\t\t\t\tdata[i][1] = stockList.get(companies[i]).getName();\n\t\t\t\tdata[i][2] =stockList.get(companies[i]).getPrice();\n\t\t\t\tif(stockList.get(companies[i]).getBidder()!= null){\n\t\t\t\tdata[i][3]= stockList.get(companies[i]).getBidder().getName();\n\t\t\t\t}\n\t\t\t\telse data[i][3]=\"\";\n\t\t\t\tbids.setText(Server.bids.getText());\n\t\t} \n\t\tpanel.revalidate();\t//refresh jpanel\n\t\ttable.repaint();\t//refresh jtable\n\t\t\n }", "public static void updateTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"UPDATE bs_tickets SET username = ?, admin = ?, status = ?, question = ?, server = ?, date_created = ?, date_accepted = ?, date_resolved = ? WHERE id = ?\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n statement.setInt(9, ticket.id);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void update(Sale sale) {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\n\n\t\tdouble totalPrice = 0;\n\t\tfor(int i=0;i<sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(\"\"+sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\t\t\t\n\t\t}\n\t\ttotalPrice += sale.getTotal();\n\t\tlblNewLabel.setText(\"\"+totalPrice);\n\t}", "@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setPlace(value);\r\n \tmovieTable.redraw();\r\n }", "public static void updateMovie(Context context, MyMovie M) {\n\n String sqlStr = \"\";\n MovieSqlHelper movieDB = new MovieSqlHelper(context);\n ContentValues values = new ContentValues();\n\n values.put(DBConstants.SUBJECT_C, M.getSubject());\n values.put(DBConstants.BODY_C, M.getBody());\n values.put(DBConstants.IMAGE_URL_C, M.getImageUrl());\n\n if (AppConstants.saveImageLocaly)\n {\n values.put(DBConstants.MOVIE_IMAGE_C, M.getImageString64());\n }\n\n if ( M.getId() == AppConstants.EMPTY_ID || M.getId() == AppConstants.WEB_ID )\n {\n // New movie - do call insert instead of update\n Log.d(\"\",\"new movie: \" + M.getSubject());\n movieDB.getWritableDatabase().insert(DBConstants.MOVIES_T,null,values);\n\n } else\n {\n // Existing movie - call an update\n Log.d (\"-updateMovie\",\"id : \" + M.getId());\n movieDB.getWritableDatabase().update(DBConstants.MOVIES_T,values,DBConstants.ID_C+\"=?\",new String[]{\"\"+M.getId()});\n\n }\n\n // TODO verify successful completion\n movieDB.close();\n\n }", "boolean updateTicket(Ticket ticket, boolean createdByMe, boolean assignedToMe, boolean managedByMe);", "private void populateTicketDBData(Map<String, ExtTicketVO> tickets) {\n\t\tif (tickets == null || tickets.isEmpty()) return;\n\t\tString sql = StringUtil.join(\"select distinct t.ticket_id, t.ticket_no\",\n\t\t\t\tDBUtil.FROM_CLAUSE, schema, \"wsla_ticket t\",\n\t\t\t\tDBUtil.WHERE_CLAUSE, \"t.ticket_no in (\", DBUtil.preparedStatmentQuestion(tickets.size()), \")\");\n\t\tlog.debug(sql);\n\n\t\tint x = 0;\n\t\ttry (PreparedStatement ps = dbConn.prepareStatement(sql)) {\n\t\t\tfor (String ticketId : tickets.keySet())\n\t\t\t\tps.setString(++x, ticketId);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tExtTicketVO tkt = tickets.get(rs.getString(2));\n\t\t\t\tif (tkt == null) {\n\t\t\t\t\tlog.error(\"could not find ticket for \" + rs.getString(2));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttkt.setTicketId(rs.getString(1)); //these should be the same as ticketNo, but just in case\n\t\t\t\ttkt.setTicketIdText(rs.getString(2));\n\t\t\t}\n\n\t\t} catch (SQLException sqle) {\n\t\t\tlog.error(\"could not populate tickets from DB\", sqle);\n\t\t}\n\t}", "@Override\n\tpublic void updateTicketsTourDetail(TicketsTourDetail ticketsTourDetail) {\n\t\tthis.entityManager.merge(ticketsTourDetail);\n\t}", "public static void sendTicket(Ticket t) throws SQLException {\r\n\t\ttools.Search.deleteTicket(t.getMesa());\r\n\t\tif(t.getProductosComanda().size() == 0) {\r\n\t\t\tm.getTicketsFrame().setTicketOnTable(t);\r\n\t\t\tm.getTablesFrame().setTicketOnTable(t.getMesa());\r\n\t\t\tbbddManager.TicketDBManager.deleteComanda(t.getMesa());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tticketsBar.add(t);\r\n\t\t\r\n\r\n\t\tm.getTicketsFrame().setTicketOnTable(t);\r\n\t\tm.getTablesFrame().setTicketOnTable(t.getMesa());\r\n\t\tbbddManager.TicketDBManager.insertComanda(t);\r\n\t}", "public synchronized void stornoTicket(int seatNumber) throws SQLException {\n\t\tboolean isFree=false;\n\t\tboolean isReserved=false ;\n\t\tboolean isSold=false;\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\tPreparedStatement pstate1=con.prepareStatement(\"UPDATE statusderplätze SET freiePlätze=?, reserviertePlätze=?,verkauftePlätze=?\");\n\t\tPreparedStatement pstate2=con.prepareStatement(\"UPDATE sitzplatz SET status='frei', name='' WHERE id=?\");\t\t\n\t\tPreparedStatement pstate3=con.prepareStatement(\"SELECT * FROM statusderplätze\");\n\t\tPreparedStatement pstate4=con.prepareStatement(\"SELECT * FROM statusderplätze\");\n\t\tResultSet resSet=null;\n\t\t\n\t\tpstate.setInt(1, seatNumber);\n\t\tresSet=pstate.executeQuery();\n\t\tresSet.first();\n\t\tString status=resSet.getString(3);\n\t\tif(status.equals(\"frei\")){\n\t\t\tisFree=true;\n\t\t}else if(status.equals(\"reserviert\")){\n\t\t\tisReserved=true;\n\t\t}else if(status.equals(\"verkauft\")){\n\t\t\tisSold=true;\n\t\t}\n\t\tpstate.setInt(1, seatNumber);\n\t\tresSet=pstate.executeQuery();\n\t\tresSet.first();\n\t\tString nameSitz=resSet.getString(2);\n\t\tif (seatNumber > 0 && seatNumber <= allSeats) {\n\t\t\tif (!isFree) {\n\t\t\t\tif (isReserved) {\n\t\t\t\t\tresSet=pstate3.executeQuery();\n\t\t\t\t\tresSet.first();\n\t\t\t\t\tfreeSeats=resSet.getInt(1)+1;\n\t\t\t\t\tsoldSeats=resSet.getInt(3);\n\t\t\t\t\treservationSeats=resSet.getInt(2)-1;\n\t\t\t\t\t\n\t\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\t\tpstate1.setInt(1, freeSeats);\n\t\t\t\t\tpstate1.setInt(2, reservationSeats);\n\t\t\t\t\tpstate1.setInt(3, soldSeats);\n\t\t\t\t\tpstate1.execute();\n\t\t\t\t\tpstate2.setInt(1, seatNumber);\n\t\t\t\t\tpstate2.execute();\n\t\t\t\t\tcon.commit();\n\t\t\t\t\t\n\t\t\t\t\tsuccessMessage = \"Sie haben einen reservierten Platz\"\n\t\t\t\t\t\t\t+ seatNumber + \" erfolgreich storniert!\";\n\t\t\t\t} else if (isSold) {\n\t\t\t\t\t\n\t\t\t\t\tresSet=pstate4.executeQuery();\n\t\t\t\t\tresSet.first();\n\t\t\t\t\tfreeSeats=resSet.getInt(1)+1;\n\t\t\t\t\tsoldSeats=resSet.getInt(3)-1;\n\t\t\t\t\treservationSeats=resSet.getInt(2);\n\t\t\t\t\t\n\t\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\t\tpstate1.setInt(1, freeSeats);\n\t\t\t\t\tpstate1.setInt(2, reservationSeats);\n\t\t\t\t\tpstate1.setInt(3, soldSeats);\n\t\t\t\t\tpstate1.execute();\n\t\t\t\t\tpstate2.setInt(1, seatNumber);\n\t\t\t\t\tpstate2.execute();\n\t\t\t\t\tcon.commit();\n\t\t\t\n\t\t\t\t\tsuccessMessage = \"Sie haben einen verkauften Platz \"\n\t\t\t\t\t\t\t+ seatNumber + \" erfolgreich storniert!\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\t\t\"Fehler! Upps da ist ein Fehler bei der Stornierungen aufgetreten! Versuchen Sie es noch einmal! \");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthrow new KartenverkaufException(\n\t\t\t\t\t\t\"Fehler! Beim Platz \"\n\t\t\t\t\t\t\t\t+ seatNumber\n\t\t\t\t\t\t\t\t+ \" handelt sich um einen freien Platz! Dieser kann nicht storniert werden!\");\n\t\t\t}\n\t\t\t} else {\n\t\t\tthrow new KartenverkaufException(\"Fehler! Sitzplatz \" + seatNumber\n\t\t\t\t\t+ \" existiert nicht! Der Platz muss zwischen 1 und \"\n\t\t\t\t\t+ getAllSeats() + \" liegen! Versuchen Sie es noch einmal!\");\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}", "public void sellTicket(String buyer) {\n\t\t/* !!!! Complete the implementation for this method\n\t\t * by invoking the method of a Box object.\n\t\t */\n\t\tticketBox.put(new Ticket(buyer));\n\t\t\n\t}", "private void loadTickets() {\n\t\topenTickets.clear();\n\t\tclosedTickets.clear();\n\t\tArrayList<Ticket> tickets = jdbc.getTickets();\n\t\t\n\t\tfor (Ticket t : tickets) {\n\t\t\tUser u = jdbc.get_user(t.submittedBy);\n\t\t\tString submittedBy = \"Submitted By: \"+u.get_lastname()+\", \"+u.get_firstname();\n\t\t\tString id = \"Ticket ID: \"+t.ticketID;\n\t\t\tString title = \"Title: \"+t.title;\n\t\t\tif (t.isDone) {\n\t\t\t\tString status = \"Status: Closed\";\n\t\t\t\tString s = String.format(\"%-40s%-40s%-40s%-40s\", id, title, submittedBy, status);\n\t\t\t\tclosedTickets.addElement(s);\n\t\t\t} else {\n\t\t\t\tString status = \"Status: Open\";\n\t\t\t\tString s = String.format(\"%-30s%-30s%-30s%-30s\", id, title, submittedBy, status);\n\t\t\t\topenTickets.addElement(s);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void ticketing(User user, Seat seat, Performance pfm) {\n\t\t\r\n\t}", "public void notifyObserver() {\n\r\n for (Observer observer : observers) {\r\n\r\n observer.update(stockName, price);\r\n\r\n }\r\n }", "@Test\n public void testUpdateVehicleSold() {\n //Arrange\n Vehicle vehicle = new Vehicle();\n Model model = new Model();\n Make make = new Make();\n \n make.setMakeName(\"Ford\");\n \n Make createdMake = makeDao.addMake(make);\n \n model.setModelName(\"Explorer\");\n model.setMake(createdMake);\n \n Model createdModel = modelDao.addModel(model);\n \n vehicle.setYear(2018);\n vehicle.setTransmission(\"Automatic\");\n vehicle.setMileage(1000);\n vehicle.setColor(\"Blue\");\n vehicle.setInterior(\"Leather\");\n vehicle.setBodyType(\"SUV\");\n vehicle.setVin(\"W9D81KQ93N8Z0KS7\");\n vehicle.setSalesPrice(new BigDecimal(\"35000.00\"));\n vehicle.setMsrp(new BigDecimal(\"40000.00\"));\n vehicle.setDescription(\"A practical vehicle\");\n vehicle.setPicURL(\"http://www.sampleurl.com/samplepic\");\n vehicle.setModel(createdModel);\n\n Vehicle createdVehicle = vehicleDao.addVehicle(vehicle);\n\n createdVehicle.setSalesPrice(new BigDecimal (\"30000.00\"));\n createdVehicle.setInStock(false);\n \n //Act \n vehicleDao.updateVehicle(createdVehicle);\n \n //Assert\n Vehicle fetchedVehicle = vehicleDao.getVehicleById(createdVehicle.getVehicleId());\n \n assertEquals(vehicle.getSalesPrice(), fetchedVehicle.getSalesPrice());\n assertFalse(fetchedVehicle.isInStock());\n \n }", "public void actualizarInformacionTicket(Ticket ticket) {\n this.ticketFacade.edit(ticket);\n }", "void sell(String bookTitle, int numOfCopies){\n for(int i = 0;i<books.size();i++)\r\n {\r\n Book bk = books.get(i);\r\n if(bk.bookTitle == bookTitle)\r\n {\r\n bk.numOfCopies -= numOfCopies; \r\n }\r\n }\r\n \r\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\tfor (Entry<String, TreeMap<Integer, TradeObject>> entryObj : tradeStore.entrySet()) {\n\t\t\tList<TradeObject> expiredTrade = entryObj.getValue().values().parallelStream()\n\t\t\t\t\t.filter(t -> isTradeExpired(t)).map(t -> updatedExpired(t)).collect(Collectors.toList());\n\n\t\t\texpiredTrade.stream().collect(Collectors.toMap(TradeObject::getVersion, tradeObject -> tradeObject));\n\n\t\t\ttradeStore.put(entryObj.getKey(), new TreeMap<Integer, TradeObject>(expiredTrade.stream()\n\t\t\t\t\t.collect(Collectors.toMap(TradeObject::getVersion, tradeObject -> tradeObject))));\n\t\t}\n\t}", "public Ticket(String con, String place, String dat, String name, String surname, int admin1) {\n initComponents();\n concert = con;\n Hall = place;\n Date = dat;\n Name = name;\n Surname = surname;\n \n \n \n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n try (Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/database\", \"root\", \"12345\")) {\n PreparedStatement pst = conn.prepareStatement(\"Select Cost from concerts where Band=? and Place=? and Date=?\");\n PreparedStatement pst2 = conn.prepareStatement(\"Select Time from concerts where Band=? and Place=? and Date=?\");\n PreparedStatement pst3 = conn.prepareStatement(\"Select Remaining from concerts where Band=? and Place=? and Date=?\");\n pst.setString(1, concert);\n pst.setString(2, Hall);\n pst.setString(3, Date);\n pst2.setString(1, concert);\n pst2.setString(2, Hall);\n pst2.setString(3, Date);\n pst3.setString(1, concert);\n pst3.setString(2, Hall);\n pst3.setString(3, Date);\n ResultSet rs = pst.executeQuery();\n while(rs.next())\n {\n cost = rs.getInt(\"Cost\");\n }\n ResultSet rs2 = pst2.executeQuery();\n while(rs2.next())\n {\n hour = rs2.getTime(\"Time\").toString();\n }\n conn.close();\n ResultSet rs3 = pst.executeQuery();\n while (rs3.next())\n {\n newSeats = rs3.getInt(\"Remaining\");\n newSeats -=1;\n Statement st = conn.createStatement();\n String sql = \"UPDATE concerts \" + \"SET remaining = '+newSeats+' WHERE Band='+concert' and Place='+Hall+' and Date='+Date+'\";\n st.executeUpdate(sql);\n }\n }\n \n }\n \n catch(ClassNotFoundException | SQLException ex)\n {\n \n }\n \n cost2 = String.valueOf(cost);\n jLabel1.setText(concert);\n jLabel2.setText(Hall);\n jLabel3.setText(Date);\n jLabel4.setText(hour);\n jLabel5.setText(Name);\n jLabel6.setText(Surname);\n jLabel7.setText(cost2 + \" \" + \"Euro\");\n \n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n HttpSession session = request.getSession();\n CurrentUser cu2 = (CurrentUser) session.getAttribute(\"cu\");\n \n double totalAmountPurchased = 0.0;\n double totalCostOfPurchasedProducts = 0.0;\n \n \n DatabaseConnector dc = new DatabaseConnector();\n dc.setConnectionWithOracle();\n \n //update vegetable information\n for (int i=0;i<cu2.getVegCount();++i){\n \n String totalSold = dc.getColumn(\"vegetablelist\", \"total_sold\",cu2.vegNames[i]);\n String recentSold = dc.getColumn(\"vegetablelist\",\"recent_sold\" ,cu2.vegNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.vegAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.vegCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"vegetablelist\",\"total_sold\",cu2.vegNames[i],dFinalTotalSold);\n dc.updateColumn(\"vegetablelist\",\"recent_sold\",cu2.vegNames[i],dFinalRecentSold);\n }\n \n \n //update grocery information\n for (int i=0;i<cu2.getGroceryCount();++i){\n \n String totalSold = dc.getColumn(\"grocerylist\", \"total_sold\",cu2.groceryNames[i]);\n String recentSold = dc.getColumn(\"grocerylist\",\"recent_sold\" ,cu2.groceryNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.groceryAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.groceryCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"grocerylist\",\"total_sold\",cu2.groceryNames[i],dFinalTotalSold);\n dc.updateColumn(\"grocerylist\",\"recent_sold\",cu2.groceryNames[i],dFinalRecentSold);\n }\n \n \n //update liquids information\n for (int i=0;i<cu2.getLiquidsCount();++i){\n \n String totalSold = dc.getColumn(\"liquidslist\", \"total_sold\",cu2.liquidsNames[i]);\n String recentSold = dc.getColumn(\"liquidslist\",\"recent_sold\" ,cu2.liquidsNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.liquidsAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.liquidsCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"liquidslist\",\"total_sold\",cu2.liquidsNames[i],dFinalTotalSold);\n dc.updateColumn(\"liquidslist\",\"recent_sold\",cu2.liquidsNames[i],dFinalRecentSold);\n }\n \n \n //update chockolates information\n for (int i=0;i<cu2.getChockolatesCount();++i){\n \n String totalSold = dc.getColumn(\"chockolateslist\", \"total_sold\",cu2.chockolatesNames[i]);\n String recentSold = dc.getColumn(\"chockolateslist\",\"recent_sold\" ,cu2.chockolatesNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.chockolatesAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.chockolatesCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"chockolateslist\",\"total_sold\",cu2.chockolatesNames[i],dFinalTotalSold);\n dc.updateColumn(\"chockolateslist\",\"recent_sold\",cu2.chockolatesNames[i],dFinalRecentSold);\n }\n \n \n //update eggs information\n for (int i=0;i<cu2.getEggsCount();++i){\n \n String totalSold = dc.getColumn(\"eggslist\", \"total_sold\",cu2.eggsNames[i]);\n String recentSold = dc.getColumn(\"eggslist\",\"recent_sold\" ,cu2.eggsNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.eggsAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.eggsCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"eggslist\",\"total_sold\",cu2.eggsNames[i],dFinalTotalSold);\n dc.updateColumn(\"eggslist\",\"recent_sold\",cu2.eggsNames[i],dFinalRecentSold);\n }\n \n \n //update meats information\n for (int i=0;i<cu2.getMeatsCount();++i){\n \n String totalSold = dc.getColumn(\"meatslist\", \"total_sold\",cu2.meatsNames[i]);\n String recentSold = dc.getColumn(\"meatslist\",\"recent_sold\" ,cu2.meatsNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.meatsAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.meatsCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"meatslist\",\"total_sold\",cu2.meatsNames[i],dFinalTotalSold);\n dc.updateColumn(\"meatslist\",\"recent_sold\",cu2.meatsNames[i],dFinalRecentSold);\n }\n \n \n //update fishes information\n for (int i=0;i<cu2.getFishesCount();++i){\n \n String totalSold = dc.getColumn(\"fisheslist\", \"total_sold\",cu2.fishesNames[i]);\n String recentSold = dc.getColumn(\"fisheslist\",\"recent_sold\" ,cu2.fishesNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.fishesAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.fishesCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"fisheslist\",\"total_sold\",cu2.fishesNames[i],dFinalTotalSold);\n dc.updateColumn(\"fisheslist\",\"recent_sold\",cu2.fishesNames[i],dFinalRecentSold);\n }\n \n \n //update colddrinks information\n for (int i=0;i<cu2.getColddrinksCount();++i){\n \n String totalSold = dc.getColumn(\"colddrinkslist\", \"total_sold\",cu2.colddrinksNames[i]);\n String recentSold = dc.getColumn(\"colddrinkslist\",\"recent_sold\" ,cu2.colddrinksNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.colddrinksAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.colddrinksCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"colddrinkslist\",\"total_sold\",cu2.colddrinksNames[i],dFinalTotalSold);\n dc.updateColumn(\"colddrinkslist\",\"recent_sold\",cu2.colddrinksNames[i],dFinalRecentSold);\n }\n \n \n //update cosmeticss information\n for (int i=0;i<cu2.getCosmeticsCount();++i){\n \n String totalSold = dc.getColumn(\"cosmeticslist\", \"total_sold\",cu2.cosmeticsNames[i]);\n String recentSold = dc.getColumn(\"cosmeticslist\",\"recent_sold\" ,cu2.cosmeticsNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.cosmeticsAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.cosmeticsCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"cosmeticslist\",\"total_sold\",cu2.cosmeticsNames[i],dFinalTotalSold);\n dc.updateColumn(\"cosmeticslist\",\"recent_sold\",cu2.cosmeticsNames[i],dFinalRecentSold);\n }\n \n \n //update others information\n for (int i=0;i<cu2.getOthersCount();++i){\n \n String totalSold = dc.getColumn(\"otherslist\", \"total_sold\",cu2.othersNames[i]);\n String recentSold = dc.getColumn(\"otherslist\",\"recent_sold\" ,cu2.othersNames[i]);\n \n double dTotalSold = Double.parseDouble(totalSold);\n double dRecentSold = Double.parseDouble(recentSold);\n \n String amount = cu2.othersAmounts[i];\n \n double dAmount = Double.parseDouble(amount);\n \n totalAmountPurchased += dAmount;\n totalCostOfPurchasedProducts += cu2.othersCost[i];\n \n double dFinalTotalSold = dTotalSold + dAmount;\n double dFinalRecentSold = dRecentSold + dAmount;\n \n dc.updateColumn(\"otherslist\",\"total_sold\",cu2.othersNames[i],dFinalTotalSold);\n dc.updateColumn(\"otherslist\",\"recent_sold\",cu2.othersNames[i],dFinalRecentSold);\n }\n \n cu2.totalAmountPurchased = totalAmountPurchased;\n cu2.totalCostOfPurchasedProducts = totalCostOfPurchasedProducts;\n \n \n String previousBuys = dc.getColumn(\"userinfo\", \"total_purchased\",Integer.parseInt(cu2.getID()));\n totalCostOfPurchasedProducts+=Double.parseDouble(previousBuys);\n \n dc.updateColumn(\"userinfo\",\"total_purchased\",Integer.parseInt(cu2.getID()),totalCostOfPurchasedProducts);\n \n response.sendRedirect(\"UserOrderReceived.jsp\");\n }", "void update(Team team);", "@Override\n\tpublic int updateSpots(ScenicSpots spots) {\n\t\treturn mapper.updateByPrimaryKeySelective(spots);\n\t}", "public void remove(String t,int y){\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y){\n\t\t//quantity of that movie is gotten\n\t\tint oldQuantity = list.get(x).getQuantity();\n\t\t//new quantity of movie is created by subtracting the old one by one\n\t\tint newQuantity = oldQuantity-1;\n\t\t//if either the new or old quantity is one, the object movie is completely removed\n\t\tif(oldQuantity == 0 || newQuantity==0){\n\t\tlist.remove(x);\t\n\t\t}\n\t\t//else the new quantity is set\n\t\telse{\n\t\tlist.get(x).setQuantity(newQuantity);\n\n\t\t}\n\t}\n\t}\n}", "public void updateRating(String name, double newRating) {\n\t\tfor(Movie movie: this.movieList) {\n\t\t\tif(movie.getName().equals(name)) movie.setRating(newRating);\n\t\t}\n\t}", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "void setMovieId(int movieID) {\n this.movieID = movieID;\n }", "private void updateTokens(ArrayList<Player> winners) {\r\n // le joueur courant a-t-il été traité ? (gagné ou perdu)\r\n boolean done;\r\n for(Player player : players) {\r\n if( ! player.isDealer()) {\r\n done = false;\r\n for(Player winner : winners) {\r\n if(winner == player) {\r\n done = true;\r\n int gain = player.getStake();\r\n String txt = \"\";\r\n if(total(player).max() == 32) {\r\n gain = (int) (gain * 1.5);\r\n txt = \"avec un blackjack\";\r\n }\r\n player.addTokens(gain);\r\n Logger.write(player.getName() + \" a gagné \" + txt + \", il reçoit \" + gain + \" jetons [\" + player.getTokens() + \"]\");\r\n }\r\n }\r\n if(! done) {\r\n player.removeTokens(player.getStake());\r\n Logger.write(player.getName() + \" a perdu, il donne \" + player.getStake() + \" au croupier. [\" + player.getTokens() + \"]\");\r\n // si le joueur n'a plus de jetons, il quitte la partie.\r\n if(player.getTokens() <= 0) {\r\n players.remove(player);\r\n Logger.write(player.getName() + \" n'a plus de jetons, il quitte la partie.\");\r\n }\r\n }\r\n }\r\n }\r\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tOperation.addMovie(movies,name.getText(),Integer.parseInt(priceField.getText()),(Integer)length.getValue(),(String)kind.getSelectedItem());\n\t\t\t\t\t\t\tlistModel.removeAllElements();\n\t\t\t\t\t\t\tfor (int i = 0; i < movies.size(); i++) {\n\t\t\t\t\t\t\t\tlistModel.addElement(movies.get(i).name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}", "public TicketRes modifierTicket(int num ,TicketReq ticketreq){\n Ticket newTicket=mapp.map(ticketreq,Ticket.class);\n searchById(num);\n Optional<Ticket> opt=ticketRepository.findById(num);\n\n Ticket oldTicket= opt.isPresent()?opt.get():null;\n\n //generated auto\n if (newTicket.getNumero()!=0)\n oldTicket.setNumero(newTicket.getNumero());\n if(newTicket.getAddition()!=0)\n oldTicket.setAddition(newTicket.getAddition());\n \n if (newTicket.getNbCouvert()!=0)\n oldTicket.setNbCouvert(newTicket.getNbCouvert());\n \n\n ticketRepository.save(oldTicket);\n\n return mapp.map(oldTicket,TicketRes.class);\n }", "public boolean bookTicket(String movieName, String date, String UID){\n\t\tPreparedStatement psSeats = null;\n\t\tPreparedStatement psReserve = null;\n\t\t\n\t\t//SQL strings deduct 1 from value freeSeats and insert new reservation entry\n\t\tString deductSeat = \"UPDATE Performances \" + \"SET freeSeats = (freeSeats - 1) \" + \"WHERE movieName = ? and theDate = ?\";\n\t\tString makeReservation = \"INSERT into Reservations(perdate, movieName, userName) values(?, ?, ?)\";\n\t\tif(isReserved(movieName, date, UID)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(isUser(UID) && (remainingSeats(movieName, date) > 0)){\n\t\t\ttry {\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\n\t\t\t\tpsSeats = conn.prepareStatement(deductSeat);\t\n\t\t\t\tpsReserve = conn.prepareStatement(makeReservation);\n\t\t\t\t\n\t\t\t\tpsReserve.setString(1, date);\n\t\t\t\tpsReserve.setString(2, movieName);\n\t\t\t\tpsReserve.setString(3, UID);\n\t\t\t\t\n\t\t\t\tpsSeats.setString(1, movieName);\n\t\t\t\tpsSeats.setString(2, date);\n\t\t\t\t\n\t\t\t\tpsSeats.executeUpdate();\n\t\t\t\tpsReserve.executeUpdate();\n\t\t\t\t\n\t\t\t\t\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\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif(psSeats != null) psSeats.close(); // returnerar psSeats null?\n\t\t\t\t\tif(psReserve != null) psReserve.close();\n\t\t\t\t\tconn.setAutoCommit(true);\n\t\t\t\t} catch(SQLException e2) {\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t\tload(CustomersList.table);\n\t\t\t\tCustomersList.setTotalCompanyDemand();\n\t\t\t\tCustomersList.setTotalResive();\n\t\t\t\tCustomersList.setTotalShopping();\n\t\t\t\tCustomerPaidCheck();\n\t\t\t\tdispose();\n\n\t\t\t}", "public void clickMovie()\n\t{\n\n\t\t// code to change the displayed photo\n\t\tSystem.out.println(\"clicked on \" + movieList.getSelectionModel().getSelectedItem());\n\n\t\t// code to change the displayed description, available times and the displayed photo\n\t\tfor (int i = 0; i < movieListItems.size(); i++)\n\t\t{\n\t\t\tif (movieList.getSelectionModel().getSelectedItem().equals(movieListItems.get(i)))\n\t\t\t{ Image validImage = null;\n\t\t\tVariableTracker.movieTitle=movieListItems.get(i);\n\t\t\tVariableTracker.movieDescription=movieDescription.get(i);\n\t\t\t\tdescription.setText(movieDescription.get(i));\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(ImagesPath.get(i));\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tFile file = new File(\"assets/placeholder.png\");\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tVariableTracker.movieImage=validImage;\n\t\t\t\tiv.setImage(validImage);\n\t\t\t\tObservableList<String> movieTimesItems = FXCollections.observableArrayList();\n\t\t\t\tfor (int j = 0; j < movieTimesList.get(i).length; j++)\n\t\t\t\t{\n\t\t\t\t\tmovieTimesItems.add(movieTimesList.get(i)[j]);\n\t\t\t\t}\n\t\t\t\tmovieTimes.setItems(movieTimesItems);\n\t\t\t}\n\t\t}\n\n\t\t// code to change the available times\n\n\t}", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "private void updateStoryTable() {\n List<Story> stories = getModel().getAllStories();\n observableStories.setAll(stories);\n\n if (selectedStory.get() != null) {\n storyTable.getSelectionModel().select(selectedStory.get());\n }\n\n }", "@Override\n\tvoid timerPosting(Object obj) {\n\n\t\tEventList eventList = (EventList) obj;\n\t\tif (eventList.getLastOffsetRead() >= 0) {\n\t\t\tArrayList<AbstractEvent> events = eventList.getEvents();\n\t\t\tfor (AbstractEvent event : events) {\n\t\t\t\tProductPurchased pp = (ProductPurchased) event;\n\t\t\t\tString buyerId = pp.getBuyerId();\n\t\t\t\t//What was the Buyer's previous status?\n\t\t\t\tDouble prevTotal = purchases.get(buyerId);\n\t\t\t\tString prevStatus;\n\t\t\t\tif (prevTotal == null) {\n\t\t\t\t\tprevTotal = 0.0;\n\t\t\t\t\tprevStatus = \"None\";\n\t\t\t\t} else {\n\t\t\t\t\tprevStatus = getStatus(prevTotal);\n\t\t\t\t}\n\t\t\t\tint quantity = Integer.parseInt(pp.getQuantity());\n\t\t\t\tdouble price = Double.parseDouble(pp.getPrice());\n\t\t\t\tdouble total = prevTotal + (quantity * price);\n\t\t\t\tpurchases.put(buyerId, total);\n\t\t\t\t//What is the Buyer's new status\n\t\t\t\tString status = getStatus(total);\n\t\t\t\t//If status has changed, post the new status\n\t\t\t\tif (!status.equals(prevStatus)) {\n\t\t\t\t\teventStore.tell(new Put(new BuyerStatusChanged(buyerId, status)), getSelf());\n\t\t\t\t}\n\t\t\t}\n\t\t\tnextOffset = eventList.getLastOffsetRead() + 1;\n\t\t}\n\t}", "public void setTicketId(int value) {\r\n this.ticketId = value;\r\n }", "public void setUnsoldTickets(int ticketsWanted) \n {\n this.unsoldTickets = this.unsoldTickets - ticketsWanted;\n }", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n public boolean update(Actor newActor) {\n \tActor oldActor = this.get(newActor.getID());\n int i = actors.indexOf(oldActor);\n actors.remove(i);\n\n // add the updated product\n actors.add(i, newActor);\n\n return this.saveAll();\n }", "public void setTicketId(int value) {\n this.ticketId = value;\n }", "private void showMovieList(ArrayList<MovieItem> movies, int request){\n //instantiate HouseKeeper that is in charge of displaying the movie list\n SwipeKeeper swipe = (SwipeKeeper)mKeeperStaff.getHouseKeeper(SwipeHelper.NAME_ID);\n\n //notify houseKeeper to update movie list\n swipe.updateMovieList(movies, request);\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void displayReport() {\r\n\t\tint ticketsSold = 0;\r\n\t\tint aTicketsSold = 0;\r\n\t\tint cTicketsSold = 0;\r\n\t\tint sTicketsSold = 0;\r\n\t\tdouble totalSales = 0;\r\n\t\t\r\n\t\tTheaterSeat current = getFirst();\r\n\t\tif (current.getTicketType() == 'A') {\r\n\t\t\taTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 10;\r\n\t\t}\r\n\t\tif (current.getTicketType() == 'C') {\r\n\t\t\tcTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 5;\r\n\t\t}\r\n\t\tif (current.getTicketType() == 'S') {\r\n\t\t\tsTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 7.5;\r\n\t\t}\r\n\t\tfor (int i=0; i<numRows - 1; i++) {\r\n\t\t\t\r\n\t\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\t\tcurrent = current.getRight();\r\n\t\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\t\taTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 10;\r\n\t\t\t\t}\r\n\t\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\t\tcTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 5;\r\n\t\t\t\t}\r\n\t\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\t\tsTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 7.5;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int j=0; j<numCols - 1; j++) {\r\n\t\t\t\tcurrent = current.getLeft();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = current.getDown();\r\n\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\taTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 10;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\tcTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 5;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\tsTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 7.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\tcurrent = current.getRight();\r\n\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\taTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 10;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\tcTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 5;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\tsTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 7.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total seats in theater: \" + numRows*numCols);\r\n\t\tSystem.out.println(\"Total tickets sold: \" + ticketsSold);\r\n\t\tSystem.out.println(\"Adult tickets sold: \" + aTicketsSold);\r\n\t\tSystem.out.println(\"Child tickets sold: \" + cTicketsSold);\r\n\t\tSystem.out.println(\"Senior tickets sold: \" + sTicketsSold);\r\n\t\tSystem.out.println(\"Total ticket sales: $\" + String.format(\"%.2f\", totalSales));\r\n\t}", "private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }", "public ResponseEntity<Movie> updateMovie(Long id, Movie movieToUpdate) {\n if (movieRepository.existsById(id)) {\n if (id == movieToUpdate.getId()) {\n Movie movie = movieRepository.findById(id).get();\n\n if (movieToUpdate.getTitle() != null)\n movie.setTitle(movieToUpdate.getTitle());\n\n if (movieToUpdate.getDirector() != null)\n movie.setDirector(movieToUpdate.getDirector());\n\n if (movieToUpdate.getPicture() != null)\n movie.setPicture(movieToUpdate.getPicture());\n\n if (movieToUpdate.getFranchise() != null){\n Franchise franchise = movieToUpdate.getFranchise();\n if (franchiseRepository.existsById(franchise.getId()))\n movie.setFranchise(franchise);\n else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }\n\n if (movieToUpdate.getGenre() != null)\n movie.setGenre(movieToUpdate.getGenre());\n\n if (movieToUpdate.getReleaseYear() != 0)\n movie.setReleaseYear(movieToUpdate.getReleaseYear());\n\n if (movieToUpdate.getTrailer() != null)\n movie.setTrailer(movieToUpdate.getTrailer());\n\n if (movieToUpdate.getCharacters() != null) {\n List<Character> characters = movieToUpdate.getCharacters();\n List<Character> newCharacters = new ArrayList<>();\n for (Character character : characters) {\n if (characterRepository.existsById(character.getId()))\n newCharacters.add(character);\n else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }\n movie.setCharacters(newCharacters);\n }\n movieRepository.save(movie);\n return new ResponseEntity<>(movie,HttpStatus.OK);\n }\n return new ResponseEntity<>(null, HttpStatus.BAD_REQUEST);\n }\n return new ResponseEntity<>(null, HttpStatus.NO_CONTENT);\n }", "@Override\r\n\tpublic boolean updateFilm(Film film) {\n\t\treturn false;\r\n\t}", "public static void updateShareQuantity(){\r\n\r\n\tMap<String, ShareMarket> everyShareDetails = ShareMarketHashMap.getShareMarket();\r\n\tdisplayMap(everyShareDetails);\r\n\tShareMarket editUniqueSharePrice = new ShareMarket();\t\r\n\tSystem.out.println('\\n' + \"Enter Share Name for updating quantity: \");\r\n\tString shareName = input.next();\r\n\tif(!everyShareDetails.containsKey(shareName))\t{\r\n\t\tSystem.out.println(\"Share doesn't exist :( .You will be returned to main menu\" +'\\n');\r\n\t\treturn;\r\n\t}\r\n\tSystem.out.println(\"Enter Share Quantiy : \");\r\n\tif(!input.hasNextInt()) {\r\n\t\tSystem.out.println(\"Quantity entered in invalid, it should be a postive integer.You will be returned to main menu\" + '\\n');\r\n\t\treturn;\r\n\t}\t\r\n\tint updateshareQuantity = input.nextInt();\t\t\t\r\n\teditUniqueSharePrice.setShareName(shareName);\r\n\teditUniqueSharePrice.setShareQuantity(updateshareQuantity);\r\n\teditUniqueSharePrice.setSharePrice(everyShareDetails.get(shareName).getSharePrice());\r\n\teveryShareDetails.put(editUniqueSharePrice.getShareName(),editUniqueSharePrice);\r\n\tShareMarketHashMap.editShare();\r\n\tMap<String, ShareMarket> everyShareDetailsupdate = ShareMarketHashMap.getShareMarket();\r\n\tSystem.out.println(\" Share Name: \" + everyShareDetailsupdate.get(shareName).getShareName() +',' + \" Share Price: \" + everyShareDetailsupdate.get(shareName).getSharePrice() +',' + \" Share Quantity: \" + everyShareDetailsupdate.get(shareName).getShareQuantity());\r\n\r\n\tSystem.out.println(\"Successfully updated quantiy, Please find above available shares\" + '\\n');\r\n}", "@PutMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket updateTicket(@RequestBody Ticket ticket,@PathVariable(\"ticketId\") Integer ticketId){\n return ticketBookingService.updateTicket(ticket,ticketId);\t\t\n\t}", "public void update(DVDCollection model, int selectedDVD) {\n ArrayList<DVD> theList = model.getDvds();\n tList.setItems(FXCollections.observableArrayList(theList));\n\n DVD d = tList.getSelectionModel().getSelectedItem();\n if (d != null) {\n tField.setText(d.getTitle());\n yField.setText(\"\"+d.getYear());\n lField.setText(\"\"+d.getDuration());\n }\n else {\n tField.setText(\"\");\n yField.setText(\"\");\n lField.setText(\"\");\n }\n tList.getSelectionModel().select(selectedDVD);\n }", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }", "void updateBetsResults(ArrayList<Bet> allBetsOfMatch) throws DAOException;" ]
[ "0.653591", "0.6437261", "0.6362104", "0.6084088", "0.6046156", "0.5777086", "0.5667205", "0.5665861", "0.55494297", "0.55208355", "0.54927504", "0.5426963", "0.5384039", "0.5341894", "0.53324485", "0.5320096", "0.5290425", "0.52729553", "0.52574825", "0.52414656", "0.52354956", "0.5221691", "0.520204", "0.51994306", "0.5187763", "0.5172333", "0.5164078", "0.5163748", "0.5161309", "0.5146071", "0.51459783", "0.512036", "0.5120034", "0.5119319", "0.51016575", "0.50831026", "0.50795764", "0.5074989", "0.507268", "0.5071203", "0.5062969", "0.5062791", "0.5057823", "0.5043974", "0.5040219", "0.5039674", "0.5016669", "0.5016669", "0.50055504", "0.50002015", "0.4978287", "0.49712938", "0.4968734", "0.49569604", "0.4951479", "0.4938966", "0.49366176", "0.49365672", "0.49197757", "0.49165687", "0.4915935", "0.491329", "0.49092555", "0.49069458", "0.49002647", "0.48990533", "0.4898501", "0.48974806", "0.4896137", "0.48897395", "0.4885379", "0.48805758", "0.48752436", "0.4872611", "0.48726046", "0.48691335", "0.48677623", "0.48669884", "0.48643008", "0.48615718", "0.48554245", "0.48425522", "0.4841399", "0.48192847", "0.4818478", "0.4806972", "0.47917995", "0.47903404", "0.47895923", "0.47864267", "0.4778069", "0.47770816", "0.47755876", "0.47738546", "0.47694162", "0.4764166", "0.4761445", "0.47587183", "0.4756969", "0.4756871" ]
0.6924861
0
accessor method to get movie name
public Movie getMovie(int idx) { return (Movie)this.dataList.get(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getMovieName()\r\n\t{\r\n\t\treturn movieNameConnection;\t\r\n\t}", "public long getmovieName() {\n\t\treturn 0;\r\n\t}", "public String getMovieTitle() {\n return movieTitle;\n }", "public java.lang.String getVideoName() {\n return videoName;\n }", "public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}", "String getName(){\n\t\treturn playerName;\n\t}", "public Movie getMovie() {\r\n\t\treturn movie;\r\n\t}", "public String getPickedMovie() {\n return pickedMovie;\n }", "String getPlayerName();", "public String getName() {\n return monsterName;\n }", "String getName() {\n return getStringStat(playerName);\n }", "String getName() ;", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getReplacedMovie() {\n return replacedMovie;\n }", "public Movie getMovie() {\n return this.movie;\n }", "public String showName()\r\n {\r\n return name;\r\n }", "public java.lang.String getName();", "private List<String> getMovieNames() {\n List<String> movieNames = new ArrayList<>();\n for (Movie movie: this.movies) {\n movieNames.add(movie.getName());\n }\n return movieNames;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"dvd name\";\n\t}", "public String getName(){\r\n\t\treturn playerName;\r\n\t}", "public String getName() {\r\n\t\treturn this.title;\r\n\t}", "public Movie getMovie() {\n return mv;\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.79466665", "0.7343772", "0.73371166", "0.68594134", "0.6798926", "0.67895573", "0.67759436", "0.67564434", "0.6745809", "0.6702139", "0.66992533", "0.6691757", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.663996", "0.6623368", "0.66189253", "0.6611286", "0.65902966", "0.65704465", "0.65655744", "0.6554728", "0.6552516", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242", "0.6550242" ]
0.0
-1
accessor method to get movie name by id
public Movie getMovieById(int movieId) { for (int i=0; i<getDataLength(); ++i) { if (this.dataList.get(i).getId()==movieId) return (Movie)this.dataList.get(i); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemTitle(int id) {\n return mMovieInfoData[id].getTitle();\n }", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "Movie getMovieById(final int movieId);", "public String getMovieId() {\n return movieID;\n }", "@Override\r\n\tpublic String getNameById(int id) {\n\t\treturn null;\r\n\t}", "public String getIDName();", "public java.lang.String getMovieName()\r\n\t{\r\n\t\treturn movieNameConnection;\t\r\n\t}", "@Override\n\tpublic int getMovieID(String movieName) {\n\t\treturn movieID;\n\t}", "@Override\n\tpublic String getNameById(int id) {\n\t\treturn testDao.getNameById(id);\n\t}", "public Film getFilmById(Integer id);", "public Movie getMovie(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_MOVIE, new String[]{KEY_ID,\n KEY_NAME, KEY_DESC, KEY_VOTE_AVG, KEY_RELEASE_DATE, KEY_ADULT, KEY_POSTER_PATH, KEY_BACKDROP_PATH}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Movie movie = new Movie(cursor.getColumnName(1),\n cursor.getString(3), cursor.getString(4),cursor.getString(2),cursor.getString(6),cursor.getString(7),cursor.getString(5),cursor.getString(0));\n\n return movie;\n }", "public Movie getMovie(String id)\r\n\t{\n\t\tMap<String,Object> constrains = new HashMap<String,Object>(1);\r\n\t\tconstrains.put(\"id\", id.trim());\r\n\t\tList<Movie> rets = mongo.search(null, null, constrains, null, -1, 1, Movie.class);\r\n\t\tif(rets!=null && rets.size() > 0)\r\n\t\t\treturn rets.get(0);\t\r\n\t\treturn null;\r\n\t}", "public int getMovieID() {\n return movieID;\n }", "public long getmovieName() {\n\t\treturn 0;\r\n\t}", "int getMovieId() {\n return this.movieID;\n }", "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }", "public static String getName(int id) {\n return ACTION_DETAILS[id][NAME_DETAIL_INDEX];\n }", "public static String getArtNameByID(int id) {\n try {\n Statement statement = Connector.getConnection().createStatement();\n String query = \"SELECT * FROM Arts WHERE artId = \" + id + \"\";\n ResultSet rs = statement.executeQuery(query);\n if (rs.next()) {\n return rs.getString(2);\n } else {\n return null;\n }\n } catch (SQLException e) {\n Logger.getLogger(ArtDAO.class.getName()).log(Level.SEVERE, null, e);\n return null;\n }\n }", "public int getMovieID() {\n return this.movieID;\n }", "public String getFilmId() {\n return filmId;\n }", "public String getMovieTitle() {\n return movieTitle;\n }", "@Override\r\n\tpublic String getNameById() {\n\t\treturn null;\r\n\t}", "@GetMapping(\"/movieDetails/{id}\")\n public String showMovieDetails(@PathVariable(\"id\") long id, Model model) {\n\n Movie m = movieRepo.findOne(id);\n\n model.addAttribute(\"movie\", m);\n // model.addAttribute(\"directorname\", directorName);\n\n return \"movieDetails\";\n }", "@Override\n\tpublic String getMovieDescription(int movieID) {\n\t\treturn movieDescription;\n\t}", "public String getTeamNameById(int id) {\n\t\tString t = \"\";\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT name FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = rs.getString(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}", "public String getName() {\n if (mName == null) {\n mName = mId;\n int index = mName.lastIndexOf(WS_SEP);\n if (index != -1) {\n mName = mName.substring(index + 1);\n }\n }\n\n return mName;\n }", "@RequestMapping(\"/{mId}\")\r\n // Frequently we see ID are numbers mixed with chars...\r\n public Movie getMovieInfo(@PathVariable(\"mId\") String movieId) {\r\n\t \r\n \t// Hard coded movie name for every request.\r\n \t//return new Movie(movieId, \"Movie Name\");\r\n\t\t\r\n\t\t// Only pick the MovieSummary fields from so many fields supplied by the hard coded external API. \r\n MovieSummary movieSummary = restTemplate.getForObject(\"https://api.themoviedb.org/3/movie/\" + movieId + \"?api_key=\" + apiKey, MovieSummary.class);\r\n // Then use the obtained data to construct a Movie object.\r\n return new Movie(movieId, movieSummary.getTitle(), movieSummary.getOverview());\r\n\r\n }", "public int getMovieId() {\n\t\treturn movieId;\n\t}", "public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }", "public Cursor getMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n return getAnyRow(MOVIE_TABLE_NAME, null, selection, selectionArgs, null, null, null);\n }", "public String getItem(int id) {\n return mprimo.get(id);\n }", "String getPlayerName();", "List<Movie> getMovie(String movieId);", "@RequestMapping(\n value = \"/getMovieId/{movieId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE\n\n )\n public ResponseEntity<Object> getMovieId(@PathVariable(\"movieId\") Long id) {\n Optional<MoviesEntity> moviesOptional = moviesService.findById(id);\n return new ResponseEntity<Object>(moviesOptional, HttpStatus.OK);\n }", "String getName() ;", "public String getPlayerName(UUID id) {\n return playerRegistry.get(id);\n }", "Movie findOne(@Param(\"id\") Long id);", "MovieVideo getMovieVideoByVideoid(String videoid);", "@Override\r\n\tpublic Film getFilmById(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Film getFilmByName(String name) {\n\t\treturn null;\r\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "String getCustomerNameById(int customerId);", "public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}", "public Movie getMovie() { return movie; }", "@RequestMapping(value = \"/{name}\", method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic Movie getMovieByName(@PathVariable(\"name\") String name) throws IOException {\n\t\t\n\t\tfor (Movie movie : getMovieList()) {\n\t\t\tif (movie.getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn movie;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static String getEmployeeName(String id){\n return \"select e_fname from employee where e_id = '\"+id+\"'\";\n }", "@Override\n public String getPublisherNameById(long id) {\n return publisherRepository.findOne(id).getNameP();\n }", "public Identifier getName();", "@Query(\"{id : ?0}\")\n Movie findMovieById(String id);", "public ResponseEntity<Movie> getMovieById(Long id) {\n if(movieRepository.existsById(id)){\n Movie movie = movieRepository.findById(id).get();\n return new ResponseEntity<>(movie, HttpStatus.OK);\n } else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }" ]
[ "0.6992086", "0.68711466", "0.6801958", "0.6781333", "0.66954243", "0.66421235", "0.6640808", "0.66104025", "0.6509017", "0.6496973", "0.64855146", "0.64135695", "0.63503927", "0.6345932", "0.63363093", "0.6312295", "0.6299946", "0.62635654", "0.6262328", "0.61829036", "0.61797017", "0.6150092", "0.6145964", "0.6140797", "0.6119684", "0.6090446", "0.6090038", "0.6085035", "0.6051445", "0.60484666", "0.60444665", "0.60417724", "0.59806263", "0.59751743", "0.5971969", "0.59678763", "0.5964983", "0.5962928", "0.5947963", "0.5936772", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.59216356", "0.591531", "0.59135455", "0.59130293", "0.591229", "0.5910204", "0.5908209", "0.5906611", "0.5903268", "0.58880794" ]
0.0
-1
method to print out the list of movies by their id
public void printMovieListById(ArrayList<Integer> movieIdList) { ArrayList<Movie> movieList = new ArrayList<>(); Movie movie; for (int i=0; i<movieIdList.size(); ++i) { movie = this.getMovieById(movieIdList.get(i)); System.out.println(i+" : "+movie.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "public void displayMovie(ArrayList<Movie> movies)\n {\n int index = 1;\n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIES LIST::::::::::::::::::::::::::::**\");\n \n for(Movie film : movies)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\t\\t\\t Movie number : [\" + index +\"]\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n index = index + 1;\n }\n }", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "private static void showMovieDetails(){\n\t\t\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/getSize\");\n\t\t\tString listSize = getHTTPResponse(url);\n\t\t\tint size = Integer.parseInt(listSize);\n\t\t\t\n\t\t\tif (size==0)\n\t\t\t\tSystem.out.println(\"There are no movies on the list\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Select movie id 1-\"+size);\n\t\t\t\n\t\t\tint choice = Integer.parseInt(scanner.next());\n\t\t\t\n\t\t\turl = new URL(\"http://localhost:8080/getMovieDetails?id=\"+choice);\n\t\t\tString rawJSONObject = getHTTPResponse(url);\n\t\t\tJSONObject movieDetails = new JSONObject(rawJSONObject);\n\t\t\tStringBuilder details = new StringBuilder();\n\t\t\t\n\t\t\tdetails.append(\"ID: \");\n\t\t\tdetails.append(movieDetails.getInt(\"id\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Name: \");\n\t\t\tdetails.append(movieDetails.getString(\"name\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Year: \");\n\t\t\tdetails.append(movieDetails.getInt(\"year\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Directed by: \");\n\t\t\tdetails.append(movieDetails.getString(\"director\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Country: \");\n\t\t\tdetails.append(movieDetails.getString(\"country\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\t\n\t\t\tSystem.out.println(details.toString());\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error - wrong input or service down\");\n\t\t}\n\t\t\n\t}", "@Override\n public List<Movie> findAllById(Iterable<Integer> id) {\n return movieRepository.findAllById(id);\n }", "public void listAllShowingMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tif (movie.getStatus().toString().equals(\"Now Showing\")) {\n\t\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tmovieExist = true;\n\t\t\t\t\t}\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (!movieExist) {\n\t\t\tSystem.out.println(\"There are no showing movies.\");\n\t\t}\n\t}", "public Cursor getMoviesInList(int id) {\n String selection = ColumnMoviesList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n String columns[] = new String[]{ColumnMoviesList.ID_MOVIE};\n return getAnyRow(MOVIESLIST_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n }", "public List<Movie> getMovie_Actor(final int Actor_id) {\n List<Movie> actor_mov = new ArrayList<Movie>();\n if (actors_movies.size()!=NULL) {\n actor_mov = actors_movies.entrySet().stream().filter(x->x.getValue().getId()==Actor_id).map(x -> x.getKey()).collect(Collectors.toList());\n System.out.println( actor_mov);\n System.out.println(\"LENGTH:\" + actor_mov.size());\n\n }else{\n System.out.println(\"Tiene que dar valor al ID para buscar por ID\");\n\n }\n return actor_mov;\n }", "public void listAllMovies(String cineplexID) {\n\t\tMovieManager mm = new MovieManager();\n\t\tArrayList <Integer> printedMovieID = new ArrayList<Integer>();\n\t\tCineplex cx = getCineplexByID(cineplexID);\n\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\tSystem.out.println(\"==================\");\n\t\tSystem.out.print(\"Cinemas: \");\n\t\tfor (Cinema c: cinemas) {\n\t\t\tSystem.out.print(c.getId() + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tboolean movieExist = false;\n\t\tfor (Cinema c: cinemas) {\n\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\tif (showtimes == null)\n\t\t\t\treturn;\n\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\tint movieID = s.getMovieID();\n\t\t\t\tif(!printedMovieID.contains(movieID)) {\n\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\tPrinter.printMovieInfo(movie);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tprintedMovieID.add(movieID);\n\t\t\t\t\tmovieExist = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "List<Movie> getMovie(String movieId);", "List<Movie> getAllMovies(String name, String director, String movieId);", "private void printLibrary() {\n dao.listAll().stream().forEach((dvd) -> {\n //for every dvd print the title plus \" id #\" and the actual id\n System.out.println(dvd.getTitle() + \" id #\" + dvd.getId());\n });\n\n }", "@GetMapping(\"/getShows/{movieId}\")\r\n\tResponseEntity<List<Show>> findShows(@PathVariable(\"movieId\") int movieId){\r\n\t\tList<Show> selectedShows = new ArrayList<Show>();\r\n\t\tString movieName=\"\";\r\n\t\tList<Movie> selectedMovies = getMovies();\r\n\t\tfor(Movie movie:selectedMovies){\r\n\t\t\tif(movie.getMovieId()==movieId){\r\n\t\t\t\tmovieName=movie.getMovieName();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<Show> showList = getShows();\r\n\t\tfor (Show show : showList) {\r\n\t\t\tif(show.getMovieName().equals(movieName)) {\r\n\t\t\t\tselectedShows.add(show);\r\n\t\t\t}\r\n\t\t}\r\n\t\tResponseEntity<List<Show>> response = new ResponseEntity<List<Show>>(selectedShows,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "private static void printMovieTab(Movie movie) {\n\t\tString title = movie.getTitle();\n\t\tint year = movie.getYear();\n\t\tString actors = formatActorsString(movie.getActors());\n\t\tprintln(padMovieTitle(title) + \" \" + year + \" \" + actors);\n\t}", "private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "public void printMovieInfo() {\n println(\"Title : \" + this.movie.getTitle());\n println(\"Showing Status: \" + this.movie.getShowingStatus().toString());\n println(\"Content Rating: \" + this.movie.getContentRating().toString());\n println(\"Runtime : \" + this.movie.getRuntime() + \" minutes\");\n println(\"Director : \" + this.movie.getDirector());\n print(\"Cast : \");\n StringBuilder s = new StringBuilder();\n for (String r : movie.getCasts()) {\n s.append(r + \"; \");\n }\n println(s.toString());\n println(\"Language : \" + this.movie.getLanguage());\n println(\"Opening : \" + this.movie.getFormattedDate());\n\n print(\"Synopsis : \");\n println(this.movie.getSynopsis(), 16);\n\n if(movie.getRatingTimes() != 0 ){\n print(\"Overall Rating :\");\n printStars(movie.getOverAllRating());\n } else {\n println(\"Overall Rating: N/A\");\n }\n if (movie.getRatingTimes() != 0){\n for (Review r : movie.getReview()) {\n print(\"Review : \");\n println(r.getComment(), 16);\n print(\"Rating : \");\n printStars(r.getRating());\n }\n }\n }", "@Override\n\tpublic List<Movie> findByDirector(long id) {\n\t\treturn null;\n\t}", "public Cursor getMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n return getAnyRow(MOVIE_TABLE_NAME, null, selection, selectionArgs, null, null, null);\n }", "public List<Movie> getMovies();", "public static void printMovieInformation(Movie movieObj) {\n\n System.out.print(\"The movie \"+movieObj.getName());\n System.out.print(\" is \"+movieObj.getLength() + \" hour long\");\n System.out.println(\" and it genre is \"+movieObj.getType());\n\n \n\n }", "@Override\n\tpublic List<Movie> findByActor(long id) {\n\t\treturn null;\n\t}", "public void printProduct(int id)\n {\n Product product = findProduct(id);\n \n if(product != null) \n {\n System.out.println(product.toString());\n }\n }", "public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }", "Movie getMovieById(final int movieId);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Movie> findMovie(@PathVariable(\"id\") String id) {\n\t\tLOG.debug(\"Entering findMovie\");\n\t\tMovie movie = moviesRepo.findOne(id);\n\t\tif (null != movie) {\n\t\t\treturn ResponseEntity.ok(movie);\n\t\t}\n\t\treturn ResponseEntity.notFound().build();\n\n\t}", "@GetMapping(\"/movies\")\n public List<Movie> getAllMovies() {\n movies = new ArrayList<Movie>();\n movies.add(new Movie(1,\"The Godfather\",\"Crime/Thriller\"));\n movies.add(new Movie(2,\"Star Wars\",\"Sci-Fi\"));\n movies.add(new Movie(3,\"The Mask\",\"Comedy\"));\n movies.add(new Movie(4,\"Die Hard\",\"Action\"));\n movies.add(new Movie(5,\"The Exorcist\",\"Horror\"));\n movies.add(new Movie(6,\"The Silence of the Lambs\",\"Drama\"));\n\n return movies;\n }", "@GetMapping(\"/\")\n\tpublic List<Movie> getListMovie(){\n\t\tList<Movie> list = repo.findAll();\n\t\t\n\t\treturn list;\n\t}", "public String getMovieId() {\n return movieID;\n }", "@RequestMapping(\"/{mId}\")\r\n // Frequently we see ID are numbers mixed with chars...\r\n public Movie getMovieInfo(@PathVariable(\"mId\") String movieId) {\r\n\t \r\n \t// Hard coded movie name for every request.\r\n \t//return new Movie(movieId, \"Movie Name\");\r\n\t\t\r\n\t\t// Only pick the MovieSummary fields from so many fields supplied by the hard coded external API. \r\n MovieSummary movieSummary = restTemplate.getForObject(\"https://api.themoviedb.org/3/movie/\" + movieId + \"?api_key=\" + apiKey, MovieSummary.class);\r\n // Then use the obtained data to construct a Movie object.\r\n return new Movie(movieId, movieSummary.getTitle(), movieSummary.getOverview());\r\n\r\n }", "public static List<List<String>> getFilmography(String actorID) throws IOException{\n\t\t\n\t\tList<List<String>> filmography = new ArrayList<List<String>>();\n\t\t\n\t\tURL url = new URL(\"https://api.themoviedb.org/3/person/\" + actorID + \"/movie_credits?api_key=cc10b91ab6be4842679242b80c13bb31&language=en-US\");\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setRequestMethod(\"GET\");\n con.setRequestProperty(\"Content-Type\", \"application/json\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader((con.getInputStream())));\n\n String filmResults = br.readLine(); //the raw results of all movies listed for that actor\n \n String beg = \"\\\"title\\\":\";\n String end = \"}\";\n String x = Pattern.quote(beg) + \"(.*?)\" + Pattern.quote(end); //returns just the titles in quotes\n //from the raw results\n String begChar = \",\\\"character\\\":\";\n String endChar = \",\\\"credit_id\";\n String xChar = Pattern.quote(begChar) + \"(.*?)\" + Pattern.quote(endChar);//returns character played\n \n String begJob = \",\\\"job\\\":\";\n String endJob = \",\\\"original_title\";\n String xJob = Pattern.quote(begJob) + \"(.*?)\" + Pattern.quote(endJob);//returns job title on film\n \n String begYR = \"release_date\\\":\";\n String endYR = \",\\\"title\";\n String xYR = Pattern.quote(begYR) + \"(.*?)\" + Pattern.quote(endYR);//returns just the release yrs\n //from the raw results\n String begID = \"\\\"id\\\":\";\n String endID = \",\";//\\\"original_title\\\":\";\n String xID = Pattern.quote(begID) + \"(.*?)\" + Pattern.quote(endID); //returns just the movie ID#s \n //from the raw results\n \n Pattern patternTitle = Pattern.compile(x);\n Pattern patternID = Pattern.compile(xID);\n Pattern patternYR = Pattern.compile(xYR);\n Pattern patternChar = Pattern.compile(xChar);\n Pattern patternJob = Pattern.compile(xJob);\n \n Matcher matcher = patternTitle.matcher(filmResults);\n Matcher matcherID = patternID.matcher(filmResults);\n Matcher matcherYR = patternYR.matcher(filmResults);\n Matcher matcherChar = patternChar.matcher(filmResults);\n Matcher matcherJob = patternJob.matcher(filmResults);\n \n List<String> filmArray = new ArrayList<String>();\n List<String> idArray = new ArrayList<String>(); \n List<String> yrArray = new ArrayList<String>(); \n List<String> charArray = new ArrayList<String>(); \n \n \n while (matcher.find()) { \t \n \tString titlesFound = matcher.group(1);\n \tfilmArray.add(titlesFound);\n }\n while(matcherID.find()){\t\n \tString IDsFound = matcherID.group(1);\n \tidArray.add(IDsFound);\n }\n while(matcherYR.find()){\n \tString yrsFound = matcherYR.group(1);\n \tyrArray.add(yrsFound);\t\n }\n while(matcherChar.find()){ \n \tString charsFound = matcherChar.group(1); //character names and job titles\n \tString chars2 = charsFound.replace(\"\\\\\", \"\"); //both get added to charArray\n \tcharArray.add(chars2);\t //because the raw results always\n } //print out crew credits after all\n while(matcherJob.find()){ // the acting credits\n \tString jobsFound = matcherJob.group(1);\n \tcharArray.add(jobsFound);\t\n }\n \n\t\tfor(int i = 0; i < filmArray.size(); i++){\n\t\t\tif(filmArray.get(i).length() > 40){\n\t\t\t\tString q = filmArray.get(i).substring(0, 30); \n\t\t\t\tfilmArray.set(i, q);\n\t\t\t}\n\t\t\tif(charArray.get(i).length() > 40){\n\t\t\t\tString z = charArray.get(i).substring(0, 30); \n\t\t\t\tcharArray.set(i, z);\n\t\t\t}\n\t\t}\n \n String chars = \"\";\n String yrss = \"\";\n String film = \"\";\n String ids = \"\";\n for(int i = 0; i < filmArray.size(); i++){\n\n \tString yrs = yrArray.get(i).replace(\"\\\"\", \"0\");\n \tString yrs2 = yrs.replace(\"-\", \"0\");\n\n \tif(yrArray.get(i).equals(\"null\") || yrArray.get(i) == null){\n \t\tyrss = yrArray.get(i) + \";000000000000\";\n \t\tfilm = filmArray.get(i) + \";000000000000\";\n \t\tchars = charArray.get(i) + \";000000000000\";\n \t\tids = idArray.get(i) + \";000000000000\";\n \t} else {\n \t\tyrss = yrArray.get(i) + \";\" + yrs2;\n \t\tfilm = filmArray.get(i) + \";\" + yrs2;\n \t\tchars = charArray.get(i) + \";\" + yrs2;\n \t\tids = idArray.get(i) + \";\" + yrs2;\n \t}\n \t\n \tfilmArray.set(i, film);\n \tcharArray.set(i, chars);\n \tyrArray.set(i, yrss);\n \tidArray.set(i, ids);\n }\n \n Collections.sort(filmArray, Comparator.comparing(s -> s.split(\";\")[1]));\n Collections.sort(charArray, Comparator.comparing(s -> s.split(\";\")[1]));\n Collections.sort(yrArray, Comparator.comparing(s -> s.split(\";\")[1]));\n Collections.sort(idArray, Comparator.comparing(s -> s.split(\";\")[1]));\n \n Collections.reverse(filmArray);\n Collections.reverse(charArray);\n Collections.reverse(yrArray);\n Collections.reverse(idArray);\n \n\t\tfor(int j = 0; j < filmArray.size(); j ++){\n\t\t\tString xx = filmArray.get(j);\n\t\t\tfilmArray.set(j, xx.substring( 0, xx.length() - 13));\n\t\t\tString y = yrArray.get(j);\n\t\t\tyrArray.set(j, y.substring( 0, y.length() - 13));\n\t\t\tString z = charArray.get(j);\n\t\t\tcharArray.set(j, z.substring( 0, z.length() - 13));\n\t\t\tString zz = idArray.get(j);\n\t\t\tidArray.set(j, zz.substring( 0, zz.length() - 13));\n\t\t}\t\n \n filmography.add(filmArray);\n filmography.add(idArray);\n filmography.add(yrArray);\n filmography.add(charArray);\n \n return filmography;\n\t\t\n\t}", "public List<Object[]> getMovieByTheaterId(long ID){\n\t\treturn theMoviewRepository.getMovieByTheateID(ID);\n\t}", "private static void idProblem() {\n\t\tsetSql(\"select movieID, Title from Movie\");\t\t// SQL Abfrage für MovieID und Title eines Films speichern\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und im ResultSet speichern\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" ID | Film\");\t\t\t\t// 3 Zeilen Ausgabe: Tabellenkopf\n\t\tSystem.out.println(\"-----------------------------------------------\");\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t/*\n\t\t\t * Aufbau des ResultSet s \"rs\":\n\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t * movieID | TITLE\n\t\t\t * (1) (2) \n\t\t\t */\n\t\t\twhile(rs.next()) {\t\t\t\t\t\t\t\t\t\t\t\t// Solange es Daten im Resultset gibt, \n\t\t\t\tSystem.out.println(rs.getString(1)+\" | \"+rs.getString(2)); \t// gib Zeilenweise Spalte 1 und 2 aus\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@RequestMapping(\n value = \"/getMovieId/{movieId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE\n\n )\n public ResponseEntity<Object> getMovieId(@PathVariable(\"movieId\") Long id) {\n Optional<MoviesEntity> moviesOptional = moviesService.findById(id);\n return new ResponseEntity<Object>(moviesOptional, HttpStatus.OK);\n }", "@GetMapping(\"/movieDetails/{id}\")\n public String showMovieDetails(@PathVariable(\"id\") long id, Model model) {\n\n Movie m = movieRepo.findOne(id);\n\n model.addAttribute(\"movie\", m);\n // model.addAttribute(\"directorname\", directorName);\n\n return \"movieDetails\";\n }", "public static void printMovieByCategory(String category) {\n System.out.println(\"View movies in the \" + category + \" category\");\n for (Movie movie : moviesList) {\n if (movie.getCategory().equalsIgnoreCase(category)) {\n System.out.println(movie.getName() + \" -- \" + movie.getCategory());\n }\n\n }\n\n\n }", "private String getStoredMovieCollectionList(ArrayList<Movie> movies)\n {\n StringBuilder linesOfMovieDetails = new StringBuilder();\n \n for (int line = 0; line < (movies.size() - 1); line++)\n {\n linesOfMovieDetails.append(movies.get(line).getTitle() + \",\" + movies.get(line).getDirector() + \",\" + movies.get(line).getActor1() + \",\" \n + movies.get(line).getActor2() + \",\" + movies.get(line).getActor3() + \",\" + movies.get(line).getRating() + \";\");\n }\n \n return linesOfMovieDetails.toString();\n }", "private void showMovieList(ArrayList<MovieItem> movies, int request){\n //instantiate HouseKeeper that is in charge of displaying the movie list\n SwipeKeeper swipe = (SwipeKeeper)mKeeperStaff.getHouseKeeper(SwipeHelper.NAME_ID);\n\n //notify houseKeeper to update movie list\n swipe.updateMovieList(movies, request);\n }", "private void showMovieList(MovieResponse movieResponse) {\n setToolbarText(R.string.title_activity_list);\n showFavouriteIcon(true);\n buildList(movieResponse);\n }", "public Film getFilmById(Integer id);", "private List<MovieDetails> movieList() {\n List<MovieDetails> movieDetailsList = new ArrayList<>();\n movieDetailsList.add(new MovieDetails(1, \"Movie One\", \"Movie One Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two\", \"Movie Two Description\"));\n movieDetailsList.add(new MovieDetails(2, \"Movie Two - 1 \", \"Movie Two Description - 1 \"));\n\n return movieDetailsList;\n }", "public static ArrayList<Movie> getMoviesList(){\n\t\treturn movieInfo;\n\t}", "@GET(\"movie_details.json?with_cast=true&with_images=true\")\n Call<MovieDetailsResponse> getMovieDetails(@Query(\"movie_id\") String id);", "@GetMapping(\"/movies/{id}\")\n @Timed\n public ResponseEntity<Movie> getMovie(@PathVariable Long id) {\n log.debug(\"REST request to get Movie : {}\", id);\n Movie movie = movieRepository.findOne(id);\n return Optional.ofNullable(movie)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }", "public ArrayList<String> getMovies() {\n ArrayList<String> movies = new ArrayList<String>();\n\n try {\n // Prepare a new SQL Query & Set a timeout\n Statement statement = connection.createStatement();\n statement.setQueryTimeout(30);\n\n // The Query\n String query = \"SELECT *\" + \"\\n\" +\n \"FROM member\";\n\n // Get Result\n ResultSet results = statement.executeQuery(query);\n\n // Process all of the results\n // The \"results\" variable is similar to an array\n // We can iterate through all of the database query results\n while (results.next()) {\n // We can lookup a column of the a single record in the\n // result using the column name\n // BUT, we must be careful of the column type!\n // int id = results.getInt(\"mvnumb\");\n String movieName = results.getString(\"email\");\n // int year = results.getInt(\"yrmde\");\n // String type = results.getString(\"mvtype\");\n\n // For now we will just store the movieName and ignore the id\n movies.add(movieName);\n // members.add();\n }\n\n // Close the statement because we are done with it\n statement.close();\n } catch (SQLException e) {\n // If there is an error, lets just print the error\n System.err.println(e.getMessage());\n }\n\n // Finally we return all of the movies\n return movies;\n }", "public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}", "@Override\n\tpublic List<Movie> findAllMovie() {\n\t\treturn repository.findAllMovie();\n\t}", "@Override\r\n\tpublic Movie selectByPrimaryKey(String id) {\n\t\treturn this.movieMapper.selectByPrimaryKey(id);\r\n\t}", "@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\tMovie findByMovieID(Long movieID);", "public ResponseEntity<Movie> getMovieById(Long id) {\n if(movieRepository.existsById(id)){\n Movie movie = movieRepository.findById(id).get();\n return new ResponseEntity<>(movie, HttpStatus.OK);\n } else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }", "public Movie getMovie(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_MOVIE, new String[]{KEY_ID,\n KEY_NAME, KEY_DESC, KEY_VOTE_AVG, KEY_RELEASE_DATE, KEY_ADULT, KEY_POSTER_PATH, KEY_BACKDROP_PATH}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Movie movie = new Movie(cursor.getColumnName(1),\n cursor.getString(3), cursor.getString(4),cursor.getString(2),cursor.getString(6),cursor.getString(7),cursor.getString(5),cursor.getString(0));\n\n return movie;\n }", "public List<Movie> dVD() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/new_releases.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public int getMovieId() {\n\t\treturn movieId;\n\t}", "public String deleteMovie(String id)\r\n\t{\n\t\treturn null;\r\n\t}", "public Movie getMovie(String id)\r\n\t{\n\t\tMap<String,Object> constrains = new HashMap<String,Object>(1);\r\n\t\tconstrains.put(\"id\", id.trim());\r\n\t\tList<Movie> rets = mongo.search(null, null, constrains, null, -1, 1, Movie.class);\r\n\t\tif(rets!=null && rets.size() > 0)\r\n\t\t\treturn rets.get(0);\t\r\n\t\treturn null;\r\n\t}", "public String getItemTitle(int id) {\n return mMovieInfoData[id].getTitle();\n }", "public void printMovieWL(){\n\t\tfor (int i = 0; i < numMP; i++){\n\t\t\tSystem.out.println(\"Rank \" +(i+1)+ \": \" + moviePref[i].getName() + \", Availible: \" + moviePref[i].getHasMovie());\t\n\t\t} \n\t}", "public GetSimilarMoviesResponse getSimilarMovies(int movieId) {\n return getSimilarMovies(movieId, null, null);\n }", "@Transactional(readOnly=true)\n\tpublic List<Film> getFilmInfoAboveId(int id) {\n\t\tList<Film> films = filmRepository.findByFilmIdGreaterThan(id);\n\t\t\n\t\tfor(Film film : films) {\n\t\t\t// call the getter to load the data to cache\n\t\t\tfor(FilmActor actor : film.getFilmActors()) {\n\t\t\t\t// do nothing here\n\t \t}\n\t\t}\n\t\n\t\treturn films;\n\t}", "void setMovieId(int movieID) {\n this.movieID = movieID;\n }", "Movie findOne(@Param(\"id\") Long id);", "public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}", "int getMovieId() {\n return this.movieID;\n }", "void display() {\n System.out.println(id + \" \" + name);\n }", "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}", "@GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);", "public String getFullInfo(String id){\n\t\tString command = \"\";\r\n\t\t\r\n\t\tString Return = \"\";\r\n\t\tString TypeOfReturn = \"FullMovie>\\n\";\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tStatement dbStatement = conn.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\tResultSet.CONCUR_READ_ONLY );\r\n\r\n\t\t\tResultSet dbResults = dbStatement.executeQuery( command );\r\n\t\t\t\r\n\t\t\t// TODO: Add whatever data comes out of query\r\n\r\n\t\t\twhile( dbResults.next()){\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\tReturn += \"\\t<title></title>\\n\";\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\tReturn += \"\\t<movieid></movieid>\\n\";\r\n\t\t\t\t// very simple results processing...\r\n\t\t\t}\r\n\t\t}catch( Exception x ){\r\n\t\t\tReturn = x.toString();\r\n\t\t\tError = x.toString();\r\n\t\t\tTypeOfReturn = \"Error>\";\r\n\t\t}\r\n\t\treturn \"<\" + TypeOfReturn + Return + \"</\" + TypeOfReturn + \"\\0\";\r\n\t\t\r\n\t}", "@Override\n\tpublic List<MovieBean> listOfMovies() {\n\n\t\treturn dao.listOfMovies();\n\t}", "public List<Rating> findRatingByMovie(String movieID);", "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"+ movie.getName()+'\\n'+\"Times Watched: \"+ movie.getTimesWatched()+'\\n');\r\n }\r\n }", "@GetMapping(\"random-list/{id}\")\n\tpublic List<Movie> getRandomList(@PathVariable(\"id\") int limit){\n\t\tRandom rand = new Random();\n\t\tList<Movie> list1 = repo.findAll();\n\t\tList<Movie> list = new ArrayList<Movie>();\n\t\tfor (int i = 0; i <= limit; i++) {\n\t\t\tint num1 = rand.nextInt(list1.size()) + 1;\n\t\t\tlist.add(repo.findById(num1));\n\t\t\t\n\t\t}\n\t\treturn list;\n\t}", "public int getMovieID() {\n return movieID;\n }", "@Override\n public List<Movie> getAllMovie() {\n return movieRepository.findAll();}", "public void movieDetailes (Movie movie) throws IOException, JSONException{\n\t\t\n\t MovieImages poster= movie.getImages(movie.getID());\n\t System.out.println(poster.posters);\n\t \n\t Set<MoviePoster> temp = new HashSet<MoviePoster>();\n\t for(MoviePoster a: poster.posters) {\n\t \t \n\t \t posterurl = \"\";\n\t \t largerposterurl = \"\";\n\t \t if(a.getSmallestImage() != null){\n\t \t\t posterurl = a.getSmallestImage().toString();\n\t \t }\n\t \t if(a.getImage(Size.MID) != null){\n\t \t\t largerposterurl = a.getImage(Size.MID).toString();\n\t \t }\n\t \t //System.out.println(a.getSmallestImage());\n\t \t break;\n\t }\n\n\t System.out.println(\"Cast:\");\n\t // Get the full decsription of the movie.\n\t Movie moviedetail = Movie.getInfo(movie.getID());\n\t if(moviedetail != null){\n\t \tmovieName = moviedetail.getOriginalName();\n\t\t overview = moviedetail.getOverview();\n\t\t if(moviedetail.getTrailer() != null){\n\t\t \ttrailerURL = moviedetail.getTrailer().toString();\n\t\t }\n\t\t if(moviedetail.getReleasedDate() != null){\n\t\t \treleaseDate = moviedetail.getReleasedDate().toString();\n\t\t }\n\t\t rating = moviedetail.getRating();\n\t\t cast = \"\\n\\nCast: \\n\";\n\t\t for (CastInfo moviecast : moviedetail.getCast()) {\n\t\t\t System.out.println(\" \" + moviecast.getName() + \" as \"\n\t\t\t + moviecast.getCharacterName()\t);\n\t\t\t cast = cast + \" \" + moviecast.getName() + \"\\n\";\n\t\t\t }\n\t\t \n\t\t ID = moviedetail.getID();\n\t }\n\t \n\t}", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "public void getMovieDetails(@NonNull final String imdbId, final MovieDetailsTask.onShowDetails listener) {\n MovieDetailsTask movieDetailsTask = new MovieDetailsTask();\n movieDetailsTask.addListener(listener);\n movieDetailsTask.execute(imdbId);\n }", "public void moviesForYear(String year) {\r\n\t\tboolean success = false;\r\n\t\tMovieListNode<m> cur = head;\r\n\t\twhile(cur!=null) {\r\n\t\t\tboolean part = cur.toString().toLowerCase().contains(year.toLowerCase());\t//REFERENCE: https://stackoverflow.com/questions/2275004/in-java-how-do-i-check-if-a-string-contains-a-substring-ignoring-case\r\n\t\t\t//^^checks if the year is in the current movie node\r\n\t\t\tif(part ==true) {\r\n\t\t\t\t//^^ if the year was in the node, then print the movie details\r\n\t\t\t\tsuccess = true;\r\n\t\t\t\tSystem.out.println(cur.toString());\r\n\t\t\t}\r\n\t\t\tcur=cur.next;\t//goes on to check if there were other movies with that year\r\n\t\t}\r\n\t\tif(cur==null && success!=true) {\r\n\t\t\tSystem.out.println(\"There were no movies for that year.\");\r\n\t\t\t//^^ if no movies with that year were found, then success stays false and the user is informed that there were no movies with the year\r\n\t\t}\r\n\t}", "public static ArrayList<MovieInfoObject> getMoviesToDisplay() {\n return mMovies;\n }", "public boolean listCineplexByMovie(int movieID) {\n\t\tBoolean printed = false;\n\t\tMovieManager mm = new MovieManager();\n\t\tboolean cineplexExist = false;\n\t\tSystem.out.println(\"\\nCineplex that contain the movie:\");\n\t\tfor (Cineplex cx: records) {\n\t\t\tprinted = false;\n\t\t\tArrayList<Cinema> cinemas = cx.getCinemas();\n\t\t\tfor (Cinema c: cinemas) {\n\t\t\t\tArrayList<Showtime> showtimes = c.getShowtimes();\n\t\t\t\tfor (Showtime s: showtimes) {\n\t\t\t\t\tif (movieID == s.getMovieID() & !printed) {\n\t\t\t\t\t\tMovie movie = mm.getMovieByID(movieID);\n\t\t\t\t\t\tSystem.out.println(\"CineplexID: \" + cx.getId());\n\t\t\t\t\t\tcineplexExist = true;\n\t\t\t\t\t\tprinted = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cineplexExist;\n\t}", "public void setMovieId(int movieId) {\n\t\tthis.movieId = movieId;\n\t}", "public static ArrayList<String> getOpeningMovies() throws IOException {\n\t\tString sURL = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?apikey=\" + API_KEY; //just a string\n\n\t\t// Connect to the URL using java's native library\n\t\tURL url = new URL(sURL);\n\t\tHttpURLConnection request = (HttpURLConnection) url.openConnection();\n\t\trequest.connect();\n\n\t\t// Convert to a JSON object to print data\n\t\tJsonParser jp = new JsonParser(); //from gson\n\t\tJsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent())); //Convert the input stream to a json element\n\t\tJsonObject rootobj = root.getAsJsonObject(); //May be an array, may be an object. \n\t\tJsonArray arr = rootobj.get(\"movies\").getAsJsonArray();\n\t\tArrayList<String> moviesList = new ArrayList<String>();\n\t\tfor (JsonElement movie : arr) {\n\t\t\tString id = movie.getAsJsonObject().get(\"id\").getAsString();\n\t\t\tString title = movie.getAsJsonObject().get(\"title\").getAsString();\n\t\t\tmoviesList.add(id);\n\t\t\tmovieMap.put(id, title);\n\t\t}\n\n\t\treturn moviesList;\n\t}", "public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}", "public List<Movie> getMovies() {\n return movies;\n }", "void display() {\n System.out.println(id + \" \" + name + \" \" + age);\n }", "public ArrayList<Movie> getMoviesByDirector(String director){\n String query = \"SELECT id, title, year, rtAudienceScore, rtPictureURL, \"\n + \"imdbPictureURL FROM movies, movie_directors \"\n + \"WHERE id=movieID AND directorName LIKE '%\" + director + \"%' \"\n + \"GROUP BY title \"\n + \"ORDER BY year, title\";\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String movie_title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, movie_title,year,imdbPictureURL,\n rtPictureURL,rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "public int getMovieID() {\n return this.movieID;\n }", "@Override\n\tpublic Movie searchMovieById(int movieid) {\n\t\tString sql=\"Select * from movie where MOVIE_ID=\"+movieid+\"\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> idMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(idMList==null||idMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn idMList.get(0);\n\t}", "public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }", "public void removeAllMoviesInList(int id) {\n String selection = ColumnMoviesList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n\n deleteAnyRow(MOVIESLIST_TABLE_NAME, selection, selectionArgs);\n }", "public void showMovieInfo(MovieItem movie){\n //get houseKeeper in charge of displaying movie item info\n DetailKeeper keeper = (DetailKeeper)mKeeperStaff.getHouseKeeper(DetailHelper.NAME_ID);\n //update View with movie item data\n keeper.updateDetails(movie);\n }", "@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesHTML() {\r\n\t\tListMovies movies = new ListMovies();\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}", "@Query(\"{id : ?0}\")\n Movie findMovieById(String id);", "@Override\n\tpublic List<Object> getMovie(JSONObject param) {\n\t\tString type = StringUtil.ToString(param.getString(\"type\"));\n\t\tString tip = StringUtil.ToString(param.getString(\"tip\"));\n\t\tint number = Integer.parseInt(param.getString(\"number\"));\n\t\t\n\t\tMap<String, Object> message = new HashMap<String, Object>();\n\t\tList<Object> result = new ArrayList<Object>();\n\t\t\n\t\tmessage.put(\"recommand\", type);\n\t\tmessage.put(\"number\", number);\n\t\tif(!tip.equals(\"\")){\n\t\t System.out.println(tip);\n\t\t\tmessage.put(\"tip\", tip);\n\t\t}\n\t\t\n\t\tList<Object> movie = (List<Object>) this.queryForList(\"Movie.selectByCondition\",message);\n\t\t\n\t\treturn movie;\n\t}", "private void fetchMovieDetails() {\n Stream.of(movieListings).forEach(movieListing -> {\n Picasso.with(MoviesApplication.getApp()).load(movieListing.getPosterUrl()).fetch();\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieDetails(movieListing.getId()).enqueue(movieDetailCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieVideos(movieListing.getId()).enqueue(movieVideoCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieReviews(movieListing.getId()).enqueue(movieReviewCallback);\n });\n }", "public Optional<GetMovieDetailsResponse> getMovieDetails(int movieId) {\n return getMovieDetails(movieId, null, null);\n }", "private void showMovies() {\n mDisplayErrorTV.setVisibility(View.INVISIBLE);\n mDisplayMoviesRV.setVisibility(View.VISIBLE);\n }" ]
[ "0.7231179", "0.71526057", "0.714216", "0.7140363", "0.7086457", "0.6876227", "0.685396", "0.6815073", "0.6811124", "0.67933", "0.6712352", "0.66572464", "0.65505636", "0.6507893", "0.64533293", "0.6371362", "0.6309769", "0.62878025", "0.62847626", "0.6246198", "0.6237393", "0.6202353", "0.6177139", "0.6176471", "0.61240906", "0.61104023", "0.61038774", "0.60952157", "0.59943634", "0.599009", "0.5980091", "0.59752756", "0.5949564", "0.5949481", "0.59412116", "0.5939935", "0.591427", "0.5906416", "0.5898447", "0.5889052", "0.5868698", "0.5851973", "0.58303094", "0.58194584", "0.5805282", "0.57898754", "0.5786323", "0.57857335", "0.5782126", "0.5778955", "0.5777873", "0.5758174", "0.57560396", "0.5746864", "0.574208", "0.57263803", "0.56998336", "0.5698049", "0.56920373", "0.5681172", "0.56800663", "0.5672236", "0.56655663", "0.5663375", "0.5658901", "0.5652102", "0.56487674", "0.5636252", "0.56343865", "0.5627636", "0.5621401", "0.5621132", "0.56175303", "0.5616141", "0.5605852", "0.5601878", "0.56011665", "0.5599898", "0.5589959", "0.5588668", "0.5586893", "0.55825883", "0.55759287", "0.5573242", "0.55710495", "0.5565992", "0.5564265", "0.5559403", "0.5558568", "0.5557557", "0.55497074", "0.5541508", "0.5536632", "0.5536105", "0.55309993", "0.5524868", "0.5505832", "0.550402", "0.55033493", "0.5496498" ]
0.718018
1
accessor method to get the search result of the movie based on its availability in the cinema
public ArrayList<Movie> getSearchResult(String search) { ArrayList<Movie> res = new ArrayList<>(); for (int i=0; i<getDataLength(); ++i) { boolean check = false; check = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase()); boolean checkEndShowing = this.dataList.get(i).isEndShowing(); if (check&&!checkEndShowing) res.add((Movie)this.dataList.get(i)); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }", "@Override\n public Movie search(String title)\n {\n if(this.titles.get(title) != null)\n return this.movies.get((this.titles.get(title)).getKey());\n else\n return null;\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "List<MovieListing> searchMovieListingByCineplex(String cineplexName, List<MovieListing> allMoviesListing);", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "@GET(\"list_movies.json\")\n Call<MoviesResponse> searchMovie(@Query(\"query_term\") String queryTerm);", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "void getSearchSeasonData();", "public void searchFlights();", "boolean getSearchable();", "public Cursor searchMovie(String search){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+search+\"%' OR \"+MOVIE_DIRECTOR+\" LIKE '%\"+search+\"%' OR \"+MOVIE_CAST+\" LIKE '%\"+search+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "public static ArrayList<Movie> getMoviesBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Movie> movieList = gson.fromJson(\n moviesJson.get(\"movies\"),\n new TypeToken<ArrayList<Movie>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);", "private Movie getMovie() {\n Gson gson = new Gson();\n return gson.fromJson(result, Movie.class);\n }", "@Override\n public ArrayList<Movie> loadInBackground() {\n\n\n URL movieRequestUrl = JsonUtils.createUrl(searchUrl);\n String movieSearchResults = null;\n ArrayList<Movie> movieResultData = new ArrayList<>();\n\n try {\n movieSearchResults = JsonUtils\n .getResponseFromHttpUrl(movieRequestUrl);\n movieResultData.addAll(OpenMovieJsonUtils.parseMovieJson(movieSearchResults));\n\n return movieResultData;\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n\n }", "private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchParam = br.readLine();\n\t\t//more complicated boolean logic: if the currentSearch is 1, search by actor, else, if the currentSearch is 3, search by genre, else, search by title\n\t\tSet<Movie> results = (currentSearch == 1 ? searchByActor(searchParam) : \n\t\t\t(currentSearch == 3 ? searchByGenre(searchParam) : searchByTitle(searchParam)));\n\t\t\n\t\t//printResults() returns a boolean as to whether there is at least one title returned. If it returns true, print out the results\n\t\tif (printResults(results)) for (Movie mov : results) print(mov.getTitle());\n\t\t//print the menu that allows a user to search again or return to the login menu\n\t\tprintMovieMiniMenu();\n\t}", "ArtistCommunitySearch getArtistSearch();", "void searchMovie(@NonNull String movieTitle) {\n getView().showLoading();\n\n if (!movieTitle.equals(mCurrentMovieTitle)) {\n // inject in order to create new instance each time that the query changes.\n UseCase.getDependencyInyectionComponent().inject(this);\n mCurrentMovieTitle = movieTitle;\n mMoviesListItems = new ArrayList<>();\n }\n\n mUseCase.execute(mCurrentMovieTitle, this);\n }", "public List<Movie> getMovies();", "public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}", "Search getSearch();", "List<Corretor> search(String query);", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "@Test\r\n public void testSearchMovie() throws MovieDbException {\r\n LOG.info(\"searchMovie\");\r\n \r\n // Try a movie with less than 1 page of results\r\n List<MovieDb> movieList = tmdb.searchMovie(\"Blade Runner\", 0, \"\", true, 0);\r\n // List<MovieDb> movieList = tmdb.searchMovie(\"Blade Runner\", \"\", true);\r\n assertTrue(\"No movies found, should be at least 1\", movieList.size() > 0);\r\n \r\n // Try a russian langugage movie\r\n movieList = tmdb.searchMovie(\"О чём говорят мужчины\", 0, \"ru\", true, 0);\r\n assertTrue(\"No 'RU' movies found, should be at least 1\", movieList.size() > 0);\r\n \r\n // Try a movie with more than 20 results\r\n movieList = tmdb.searchMovie(\"Star Wars\", 0, \"en\", false, 0);\r\n assertTrue(\"Not enough movies found, should be over 15, found \" + movieList.size(), movieList.size() >= 15);\r\n }", "public abstract S getSearch();", "List<Cemetery> search(String query);", "@Override\n protected Flowable<Resource<List<Movie>>> buildUseCaseObservable() {\n return covertObservableToFlowable(searchQuery.getQuery())\n .switchMap(new Function<String, Publisher<Resource<List<Movie>>>>() {\n @Override\n public Publisher<Resource<List<Movie>>> apply(String s) throws Exception {\n searchQuery.setStringQuery(s);\n return repository.getSearch(searchQuery)\n .map(movieApiResponse -> Resource.success(movieApiResponse.getResults()));\n }\n }).startWith(Resource.loading(\"Write something to search films\"));\n }", "public Cursor displaySelectedMovie(String movie){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+movie+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "public static ArrayList<Movie> getMoviesFromCollectionSearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n if (term != null) {\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n } // end if\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_COLLECTION_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_COLLECTION_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\n .setDateFormat(\"yyyy-MM-dd HH:mm\")\n .create();\n\n ArrayList<Movie> movieList = gson.fromJson(\n moviesJson.get(\"movies\"),\n new TypeToken<ArrayList<Movie>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }", "public void search() {\r\n \t\r\n }", "@Override\n\tpublic Movie searchMovieByName(String name) {\n\t\tString sql=\"Select * from movie where MOVIE_NAME='\"+name+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> nameMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(nameMList==null||nameMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn nameMList.get(0);\n\t}", "@Override\n public <K extends Comparable<K>> Movie[] searchContains(String title)\n {\n if(title == null)\n return null;\n\n Movie[] moviesWithTitle = new Movie[this.movies.length];\n\n for(int i = 0; i < this.movies.length; i++)\n {\n if(this.movies.get(i) != null)\n if(((this.movies.get(i)).getTitle()).contains(title) == true)\n moviesWithTitle[i] = this.movies.get(i);\n }\n\n return moviesWithTitle;\n }", "List<Media> search(double latitude, double longitude, int distance);", "List<Reservation> findByMovie(Movie movie);", "Boolean getSearchObjective();", "abstract public void search();", "public GameList getSearchResult(){ return m_NewSearchResult;}", "public void search(String movie) {\r\n\t\tlong timestamp = System.currentTimeMillis();\r\n\t\tString searchString = \"0047 SER \" + ip + \" \" + port + \" \" + timestamp + \" \" + movie + \" 0\";\r\n\r\n\t\tint forwardMsgCount = 0;\r\n\t\t// send query to all peers\r\n\t\tfor (NodeInfo info : peerList) {\r\n\t\t\tsend(searchString, info.getIp(), info.getPort());\r\n\t\t\tforwardMsgCount++;\r\n\t\t}\r\n\r\n\t\tList<String> results = movieList.search(movie);\r\n\r\n\t\tString resultString = \"0114 SEROK \" + results.size() + \" \" + ip + \" \" + port + \" \" + 0 + \" \" + timestamp;\r\n\t\tfor (int i = 0; i < results.size(); i++) {\r\n\t\t\tresultString += \" \" + results.get(i);\r\n\t\t}\r\n\t\tonRequest(new Request(ip, port, resultString));\r\n\r\n\t\tSystem.out.println(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t\tapp.printInfo(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public List<Movie> search(String title, Genre genre, WatchStatus status) {\n CriteriaBuilder cb = this.em.getCriteriaBuilder();\n \n // SELECT t FROM Serie s\n CriteriaQuery<Movie> query = cb.createQuery(Movie.class);\n Root<Movie> from = query.from(Movie.class);\n query.select(from);\n\n // ORDER BY dueDate, dueTime\n query.orderBy(cb.desc(from.get(\"releaseDate\")));\n \n // WHERE s.title LIKE :title\n Predicate p = cb.conjunction();\n \n if (title != null && !title.trim().isEmpty()) {\n p = cb.and(p, cb.like(from.get(\"title\"), \"%\" + title + \"%\"));\n query.where(p);\n }\n \n // WHERE s.genre = :genre\n if (genre != null) {\n p = cb.and(p, cb.isMember(genre,from.get(\"genres\")));\n query.where(p);\n }\n \n // WHERE s.status = :status\n if (status != null) {\n p = cb.and(p, cb.equal(from.get(\"status\"), status));\n query.where(p);\n }\n \n return em.createQuery(query).getResultList();\n }", "LazyDataModel<ReagentResult> getSearchResults();", "public Movie getMovie() { return movie; }", "@Override\n public boolean search(Movie movieToFind)\n {\n if(movieToFind == null)\n return false;\n else\n return this.search(movieToFind.getTitle()) != null;\n }", "void search();", "void search();", "public void searchMovie(ArrayList<Movie> movies)\n {\n int answer = insertSearchMenuAnswer();\n \n if (answer == 1)\n searchedByTitle(movies);\n else\n if (answer == 2)\n searchedByDirectors(movies);\n else\n if (answer == 3)\n return;\n }", "@Override\n public <K extends Comparable<K>> Movie[] searchByKey(K input)\n {\n if(input == null)\n return null;\n else\n {\n Array<Movie> moviesByKey = new Array<Movie>(this.getLength());\n int i = 0;\n\n if(input instanceof Integer) // YEAR CASE\n {\n Array<Integer> indexes = new Array(this.years.getAll((Integer)input));\n\n for(i = 0; i < indexes.length; i++)\n if(indexes.get(i) != null)\n moviesByKey.set(i, this.movies.get(indexes.get(i)));\n }\n else if(input instanceof String) // DIRECTOR CASE\n {\n Array<Integer> indexes = new Array(this.director.getAll((String)input));\n\n for(i = 0; i < indexes.length; i++)\n if(indexes.get(i) != null)\n moviesByKey.set(i, this.movies.get(indexes.get(i)));\n }\n else\n {\n return null;\n }\n\n Movie[] moviesByKeyArray = new Movie[this.getLength()];\n\n for(int j = 0; j < this.getLength(); j++)\n moviesByKeyArray[j] = moviesByKey.get(j);\n\n return moviesByKeyArray;\n }\n }", "List<Movie> getMovie(String movieId);", "abstract public boolean performSearch();", "public List<Ve> searchVe(String maSearch);", "@Override\n\tpublic Movie searchMovieById(int movieid) {\n\t\tString sql=\"Select * from movie where MOVIE_ID=\"+movieid+\"\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> idMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(idMList==null||idMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn idMList.get(0);\n\t}", "List<Movie> getAllMovies(String name, String director, String movieId);", "public static String findMovie (String data,boolean cautare)\n\t{\n\t\tString host = \"http://www.omdbapi.com/\";\n\t\tString charset = \"UTF-8\";\n\t\tString x_rapidapi_host = \"www.omdbapi.com\";\n\t String x_rapidapi_key = \"bc1d12f1\";\n\t // Params\n\t \n\t String querryType = null;\n\t if(cautare)\n\t {\n\t \tquerryType=\"s\";\n\t }\n\t else\n\t {\n\t \tquerryType=\"i\";\n\t }\n\t// Format query for preventing encoding problems\n\t \n\t String query;\n\t\ttry {\n\t\t\tquery = String.format(querryType +\"=%s\", URLEncoder.encode(data, charset));\n\t \tHttpResponse <JsonNode> response = Unirest.get(host + \"?\" + query + \"&apikey=\"+x_rapidapi_key)\n\t \t .header(\"x-rapidapi-host\", x_rapidapi_host)\n\t \t .header(\"x-rapidapi-key\", x_rapidapi_key)\n\t \t .asJson();\n\t \t Gson gson = new GsonBuilder().setPrettyPrinting().create();\n\t \t JsonParser jp = new JsonParser();\n\t \t JsonElement je = jp.parse(response.getBody().toString());\n\t \t String prettyJsonString = gson.toJson(je);\n\t \t //System.out.print(prettyJsonString);\n\t \t return prettyJsonString;\n\t }catch (UnirestException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return null;\n\t}", "public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}", "public MovieItem getMovieSelected(){\n //return movie item data\n return mMovie;\n }", "public Object getResult(String term) throws ExecutionException, InterruptedException {\n CompletableFuture<HashMap<String, Object>> responseApple = getMovieAndSongsFromApple(term);\n CompletableFuture<HashMap<String, Object>> responseTvMaze = getShowsFromTvMaze(term);\n CompletableFuture.allOf(responseApple,responseTvMaze).join();\n SearchResult responses = new SearchResult();\n HashMap<String, Object> providers = new HashMap<>();\n providers.put(\"Apple\", responseApple.get());\n providers.put(\"TvMaze\", responseTvMaze.get());\n responses.setProviders(providers);\n\n return responses;\n }", "java.lang.String getSearchValue();", "List<Revenue> search(String query);", "public Movie getMovie() {\n return movie;\n }", "@Override\n\tpublic List<Movie> searchMovieByGen(String genere) {\n\t\tString sql=\"Select * from movie where GENERE='\"+genere+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> genMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(genMList==null||genMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn genMList;\n\t}", "public void search() {\n }", "public List<MovieMinimal> busca(String title){\n return this.listaInformacaoSalva.stream()\n .filter(cr -> cr.getTitle().equalsIgnoreCase(title) && cr.getResponse())\n .map(SalvaCsv::getMovieMinimal)\n .collect(Collectors.toList());\n }", "List<DataTerm> search(String searchTerm);", "public static ArrayList<MovieList> getMovieListsBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_LISTS_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_LISTS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<MovieList> movieList = gson.fromJson(\n moviesJson.get(\"lists\"),\n new TypeToken<ArrayList<MovieList>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }", "public String search() {\r\n currentRoom = player.getCurrentRoom();\r\n String res = \"You start searching the room....\";\r\n if (currentRoom.getChestSize() > 0) {\r\n res += \"You find a treasure chest in the corner...\" + System.lineSeparator();\r\n res += \"You pick up the following items from the chest and put them in your backpack\" + System.lineSeparator();\r\n res += currentRoom.getItemsInChest();\r\n } else {\r\n res = \"You find nothing of intrest in the room...\";\r\n }\r\n return res;\r\n }", "List<Media> search(double latitude, double longitude);", "List<SongVO> searchSong(String searchText) throws Exception;", "public Movie getMovie() {\n return this.movie;\n }", "@Override\n public List<Movie> loadInBackground() {\n\n // obtain the Url, used for the http request\n URL url = AppUtilities.buildUrl(pageNumberBeingQueried, sortOrderOfResults,\n searchQuerySubmitted, preferredMovieGenre, preferredStartYear,\n preferredEndYear, preferenceValuesAreDefault);\n\n // perform the url request\n String jsonResponseString = null;\n try {\n jsonResponseString = AppUtilities.getResponseFromHttpUrl(url);\n } catch (IOException io_exception) {\n io_exception.printStackTrace();\n }\n\n // initialise the return object\n List<Movie> movieList = null;\n\n // if the response String is not null - parse it\n if (jsonResponseString != null) {\n // call helper method to parse JSON\n Pair<List<Movie>, Integer> result = JsonUtilities.extractFromJSONString(jsonResponseString);\n movieList = result.first;\n jsonResponseCode = result.second;\n }\n return movieList;\n }", "public String[] movieDetails(String movie_name) {\r\n\t\tString[] none = {\"No Movies Found\"};\r\n\t\tString cast_list = \"\";\r\n\t\tString producer =\"\";\r\n\t\tString director =\"\";\r\n\t\tString synopsis =\"\";\r\n\t\tString picture =\"\";\r\n\t\tint rating =-1;\r\n\t\tString currently_showing=\"\";\r\n\t\tString trailer=\"\";\r\n\t\tString query = \"select movie_id as id, cast_list as c, producer as p, director as d, synopsis as s, picture as pic, rating as r, currently_showing as cs, trailer as t from cinema.movie WHERE movie_name=\"+movie_name;\r\n\t\tint movie_id=-1;\r\n\t\ttry{\r\n\t\t\tConnection con = MysqlCon.connect();\r\n\t\t\tStatement st = con.createStatement();\r\n\t\t\tResultSet rs;\r\n\t\t\trs=st.executeQuery(query);\r\n\t\t\tif(rs.next()){\r\n\t\t\t\tmovie_id = rs.getInt(\"id\");\r\n\t\t\t\tcast_list = rs.getString(\"c\");\r\n\t\t\t\tproducer = rs.getString(\"p\");\r\n\t\t\t\tdirector = rs.getString(\"d\");\r\n\t\t\t\tsynopsis = rs.getString(\"s\");\r\n\t\t\t\tpicture = rs.getString(\"pic\");\r\n\t\t\t\trating = rs.getInt(\"r\");\r\n\t\t\t\tcurrently_showing = rs.getString(\"cs\");\r\n\t\t\t\ttrailer = rs.getString(\"t\");\r\n\t\t\t}\t\r\n\t\t\tString [] movie_info = {movie_name, cast_list, producer, director, synopsis, picture, currently_showing, trailer};\r\n\t\t\treturn movie_info;\r\n\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t\treturn none;\r\n\t\t}\r\n\t}", "public Show search(String title){\n return super.search(title);\n }", "List<MovieCinema> findAllByCinemaLocationName(String location);", "private Resource lookForMovieResource(String movieName) {\n\t\t// initialize foundPlace by null.\n\t\tResource foundPlace = null;\n\t\tfoundPlace = searchMovieOnLinkedMDB(movieName);\n\t\tif (foundPlace == null) {\n\t\t\tfoundPlace = searchSimilarityByLabel(movieName,\n\t\t\t\t\tgetAllMovieQuerySolutions(), \"movie\");\n\t\t}\n\t\treturn foundPlace;\n\t}", "List<Card> search(String searchString) throws PersistenceCoreException;", "public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }", "@Override\n public boolean compareMovie(Movie movie, Search search) {\n boolean[] tokenMatch = new boolean[search.getTitleTokens().size()];\n\n for (int i = 0; i < search.getTitleTokens().size(); i++){\n tokenMatch[i] = movie.getTitle().toLowerCase().contains(search.getTitleTokens().get(i));\n }\n boolean match = true;\n\n // If any filterToken does not match, false is returned.\n for(boolean bool : tokenMatch){\n if(!bool){\n match = bool;\n }\n }\n return match;\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "boolean hasSearchResponse();", "entities.Torrent.SearchResponse getSearchResponse();", "public ArrayList<String> getMovies() {\n ArrayList<String> movies = new ArrayList<String>();\n\n try {\n // Prepare a new SQL Query & Set a timeout\n Statement statement = connection.createStatement();\n statement.setQueryTimeout(30);\n\n // The Query\n String query = \"SELECT *\" + \"\\n\" +\n \"FROM member\";\n\n // Get Result\n ResultSet results = statement.executeQuery(query);\n\n // Process all of the results\n // The \"results\" variable is similar to an array\n // We can iterate through all of the database query results\n while (results.next()) {\n // We can lookup a column of the a single record in the\n // result using the column name\n // BUT, we must be careful of the column type!\n // int id = results.getInt(\"mvnumb\");\n String movieName = results.getString(\"email\");\n // int year = results.getInt(\"yrmde\");\n // String type = results.getString(\"mvtype\");\n\n // For now we will just store the movieName and ignore the id\n movies.add(movieName);\n // members.add();\n }\n\n // Close the statement because we are done with it\n statement.close();\n } catch (SQLException e) {\n // If there is an error, lets just print the error\n System.err.println(e.getMessage());\n }\n\n // Finally we return all of the movies\n return movies;\n }", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "@Override\n public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n\n final EditText etInput = view.findViewById(R.id.etInput);\n Button searchBtn = view.findViewById(R.id.searchBtn);\n RecyclerView rvSearchRes = view.findViewById(R.id.rvSearchResults);\n\n searchResults = new ArrayList<>();\n\n // Create the adapter\n final MovieSearchAdapter movieAdapter = new MovieSearchAdapter(getContext(), searchResults);\n\n // Set the adapter on the recycler view\n rvSearchRes.setAdapter(movieAdapter);\n\n // Set a Layout Manager\n rvSearchRes.setLayoutManager(new LinearLayoutManager(getContext()));\n\n searchBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String query = etInput.getText().toString();\n if (query.isEmpty()) {\n Toast.makeText(getContext(), \"Empty Field\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Toast.makeText(getContext(), query, Toast.LENGTH_SHORT).show();\n\n String URL = String.format(\"https://api.themoviedb.org/3/search/movie?api_key=%s&language=en-US&query=%s&page=1&include_adult=false\", KEY, query);\n\n final AsyncHttpClient client = new AsyncHttpClient();\n client.get(URL, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n Log.d(TAG, \"onSuccess\");\n JSONObject jsonObject = json.jsonObject;\n try {\n JSONArray results = jsonObject.getJSONArray(\"results\");\n Log.i(TAG, \"Releases: \" + results.toString());\n\n searchResults.addAll(Movie.fromJsonArray(results));\n movieAdapter.notifyDataSetChanged();\n Log.i(TAG, \"Movies: \" + searchResults.size());\n } catch (JSONException e) {\n Log.e(TAG, \"Hit JSON Exception\", e);\n }\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n Log.d(TAG, \"onFailure\" + i);\n }\n });\n }\n });\n\n }", "@Override\r\n\tpublic Optional<TVSeriesDefinition> scrapeData(TheMovieDBSeriesSearchEntry parameter) {\n\t\ttry {\r\n\t\t\tfinal StringBuilder builder = new StringBuilder();\r\n\t\t\tScanner scanner = new Scanner(new File(\"./data/test/themoviedbtest/tvseries/tv series page.html\"));\r\n\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\tbuilder.append(scanner.nextLine());\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\r\n\t\t\tfinal String parsing = builder.toString();\r\n\t\t\t\r\n\t\t\tDocument doc = Jsoup.parse(parsing);\r\n\t\t\tElements elements = doc.select(\"div.item-poster-card\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn Optional.empty();\r\n\t}", "public interface ICustomerMovieListingDAO extends IMovieListingDAO {\n /**\n * Return all movie listings that show a film\n *\n * @param movieName Name of movie\n * @param allMoviesListing List of movie listings in database\n * @return List of movie listings\n */\n List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);\n\n /**\n * Return all movie listings in the cineplex according to the cineplex's name\n *\n * @param cineplexName Name of cineplex\n * @param allMoviesListing List of movie listings in database\n * @return List of movie listings\n */\n List<MovieListing> searchMovieListingByCineplex(String cineplexName, List<MovieListing> allMoviesListing);\n\n}", "@Path(\"search/{query}\")\n @GET\n public Response getMovies(@PathParam(\"query\") String query){\n return movieBean.getMovies(query);\n }", "default List<SearchResult> search(String tvShowName, int season, int episode, Quality quality) {\n return search(new SearchQuery(tvShowName, season, episode, quality));\n }", "public void searchMovieApi(String query, int pageNumber){\n movieListViewModel.searchMovieApi(query, pageNumber);\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public ArrayList<Flight> SearchPreferFlight1(double maxprice,Date date, String depar,String arriv){\n ArrayList<Flight> result= new ArrayList<>();\n //System.out.println(\"in_search1\\n\");\n System.out.print(maxprice + \" \");\n System.out.print(date + \" \");\n System.out.print(depar + \" \");\n System.out.print(arriv + \"\\n\");\n for(Airliners airliner:airlDir.getAirlinersList()){\n //System.out.printf(\"result of if airls eaquals is:\"+airliner.equals(airls)+\"\\n\");\n for(Flight flyt:airliner.getFleetlist()){\n System.out.print(flyt.getPrice() + \" \");\n System.out.print(flyt.getDate() + \" \");\n System.out.print(flyt.getFromlocaltion() + \" \");\n System.out.print(flyt.getTolocation() + \"\\n\");\n if( (flyt.getPrice()<=maxprice || maxprice==-1) \n &&(depar.equals(\"\")||depar.equals(flyt.getFromlocaltion()))\n &&(arriv.equals(\"\")||arriv.equals(flyt.getTolocation()))\n &&(date==null || date.equals(flyt.getDate())) ) \n {\n result.add(flyt);\n }\n } \n \n }\n System.out.printf(\"resultlist size:%d\",result.size());\n return result;\n \n }", "public Movie getMovie() {\r\n\t\treturn movie;\r\n\t}", "public ArrayList<Movie> getMoviesByDirector(String director){\n String query = \"SELECT id, title, year, rtAudienceScore, rtPictureURL, \"\n + \"imdbPictureURL FROM movies, movie_directors \"\n + \"WHERE id=movieID AND directorName LIKE '%\" + director + \"%' \"\n + \"GROUP BY title \"\n + \"ORDER BY year, title\";\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String movie_title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, movie_title,year,imdbPictureURL,\n rtPictureURL,rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "List<SearchResult> search(SearchQuery searchQuery);", "Match getResultMatch();", "public MovieInfo findMovie(String key) {\n\t\t\treturn findMovie(this.root, key);\n\t\t}", "@Nullable\n MoviePage getMovies();", "@Override\n public boolean onQueryTextChange(String query) {\n presenter.getMovies(query);\n return false;\n }", "@In String search();" ]
[ "0.66322654", "0.63521224", "0.6236351", "0.6219011", "0.6128015", "0.60561913", "0.60038257", "0.59866065", "0.5978051", "0.5952159", "0.5929198", "0.5878933", "0.58600867", "0.5845874", "0.58439016", "0.58425665", "0.5832162", "0.58273494", "0.5820245", "0.5807086", "0.58068204", "0.5805528", "0.57986575", "0.5793156", "0.57781947", "0.5767689", "0.57512206", "0.5744548", "0.5738857", "0.5729839", "0.5714842", "0.5712016", "0.57104003", "0.567231", "0.5653768", "0.5632046", "0.5626246", "0.5620136", "0.56158376", "0.560739", "0.5604147", "0.55957615", "0.5592794", "0.5592246", "0.5582187", "0.55727464", "0.55727464", "0.55685353", "0.55491203", "0.55322343", "0.55296814", "0.5527527", "0.5518124", "0.551205", "0.55003715", "0.5495312", "0.54904777", "0.54828984", "0.5482891", "0.5477248", "0.54765993", "0.5472288", "0.54715997", "0.54712856", "0.54582113", "0.5450832", "0.54422396", "0.5436023", "0.5433589", "0.5432198", "0.54157054", "0.54134285", "0.5409604", "0.5405571", "0.5397718", "0.53951776", "0.53835136", "0.5368685", "0.5357624", "0.53562486", "0.5353796", "0.5337463", "0.5330877", "0.53212935", "0.53202695", "0.5318204", "0.53171724", "0.53134733", "0.53079414", "0.5307367", "0.5299302", "0.52982455", "0.5296248", "0.5286169", "0.52794266", "0.5278427", "0.5274643", "0.52635175", "0.52619183", "0.52552146" ]
0.6354794
1
method to print the movies with the 5 highest ratings
public void printTopRatingMovies() { Collections.sort(this.dataList, new SortByRating()); int top = Math.min(5, getDataLength()); for (int i=0; i<top; ++i) { System.out.println(this.dataList.get(i).toString()); } Collections.sort(this.dataList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"+ movie.getName()+'\\n'+\"Times Watched: \"+ movie.getTimesWatched()+'\\n');\r\n }\r\n }", "public void printAverageRatings(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n \n int minRatings = 35;\n ArrayList<Rating> aveRat = sr.getAverageRatings(minRatings);\n System.out.println(\"Number of ratings at least \" + minRatings + \": \" + aveRat.size());\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \" : \" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n// Filter f = new AllFilters();\n// f.addFilter(new YearsAfterFilter(2001));\n ArrayList<String> movies = MovieDatabase.filterBy(new YearAfterFilter(2001)); \n int c = 0;\n for(Rating r: aveRat){\n if(movies.contains(r.getItem())){c++;}\n }\n System.out.println(\"Number of ratings at least \" + minRatings + \" and made on or after 2001 : \" + c);\n System.out.println(\"-------------------------------------\");\n \n \n \n }", "public void printRatings() {\n // print the ratings\n // get the sparse matrix class\n // get the movie singly linked list\n // to string on each entry of the lists\n // Print out the reviewers and their count first\n ReviewerList rL = matrix.getReviewers();\n MSLList mL = matrix.getMovies();\n if (movieTable.getNumEntries() == 0 || reviewerTable\n .getNumEntries() == 0) {\n System.out.println(\"There are no ratings in the database\");\n return;\n }\n rL.printListAndCount();\n System.out.print(mL.printListAndReviews());\n }", "public void printAverageRatings(int minimalRaters) {\n String shortMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmovies_short.csv\";\n //String shortRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n String shortRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n\n //String bigMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigMovieCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n\n SecondRatings secondRatings = new SecondRatings(shortMovieCsv, shortRatingsCsv);\n //SecondRatings secondRatings = new SecondRatings(bigMovieCsv, bigRatingsCsv);\n\n System.out.println(\"Number of movies loaded from file: \" + secondRatings.getMovieSize());\n System.out.println(\"Number of raters loaded from file: \" + secondRatings.getRaterSize());\n\n ArrayList<Rating> ratingArrayList = secondRatings.getAverageRatings(minimalRaters);\n ratingArrayList.sort(Comparator.naturalOrder());\n System.out.println(\"Total of movies with at least \" + minimalRaters + \" raters: \" + ratingArrayList.size());\n for (Rating rating : ratingArrayList) {\n System.out.println(rating.getValue() + \" \" + secondRatings.getTitle(rating.getItem()));\n }\n }", "public void printTopSalesMovies() {\n\t\tCollections.sort(this.dataList, new SortBySales());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public void printAverageRatings(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatings(3);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "Movie mostPopularMovieReviewedByKUsers(final int numOfUsers) {\n // similar to getTopKMoviesAverage only filter by numOfUsers to be as specified\n List<Movie> popularMovieFiltered = movieReviews\n .mapToPair(s-> new Tuple2<>(s.getMovie().getProductId(), new Tuple2<>(s.getMovie().getScore(), 1)))\n .reduceByKey((a, b)-> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .filter(s -> s._2._2 >= numOfUsers)\n .map(s -> new Movie(s._1, roundFiveDecimal(s._2._1 / s._2._2)))\n .top(1);\n // return null if empty\n return popularMovieFiltered.isEmpty()? null : popularMovieFiltered.get(0);\n }", "public void printAverageRatingsByYear(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n Filter f = new YearAfterFilter(2000); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void displayFavourite(ArrayList<Movie> movies)\n {\n int rate = 0;\n ArrayList<Movie> rateResult = new ArrayList<Movie>();\n Scanner console = new Scanner(System.in);\n boolean valid = false;\n String answer = \"\";\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease insert the least rating you want to display (1-10): \");\n answer = console.nextLine().trim();\n valid = validation.integerValidation(answer,1,10);\n }\n \n rate = Integer.parseInt(answer);\n for (Movie film : movies)\n {\n int rating = film.getRating();\n \n if (rating >= rate)\n rateResult.add(film);\n }\n \n Collections.sort(rateResult);\n displayMovie(rateResult);\n }", "public String vote5(){\n String vote5MovieTitle = \" \";\n for(int i = 0; *i < results.length; i++){\n if(results[i].voteAve()) {\n vote5MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(vote5MovieTitle);\n return vote5MovieTitle;\n }", "public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new MinutesFilter(105, 135); \n int minRatings = 5;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByDirectors(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Martin Scorsese,Roman Polanski,Nora Ephron,Ridley Scott,Sydney Pollack\"); \n int minRatings = 4;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public String getBestMovie() {\n\t\tdouble highestRating = 0;\n\t\tString bestMovie = \"\";\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getRating() > highestRating) {\n\t\t\t\thighestRating = movie.getRating();\n\t\t\t\tbestMovie = movie.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestMovie;\n\t}", "public void displayMovie(ArrayList<Movie> movies)\n {\n int index = 1;\n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIES LIST::::::::::::::::::::::::::::**\");\n \n for(Movie film : movies)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\t\\t\\t Movie number : [\" + index +\"]\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n index = index + 1;\n }\n }", "public void printAverageRatingsByYearAfterAndGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 1980;\n String genre = \"Romance\";\n \n AllFilters all_filter = new AllFilters();\n GenreFilter gf = new GenreFilter(genre);\n YearAfterFilter yf = new YearAfterFilter(year);\n \n all_filter.addFilter(yf);\n all_filter.addFilter(gf);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" + mov_year + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "public void printAverageRatingsByDirectorsAndMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n MinutesFilter m = new MinutesFilter(90, 180);\n DirectorsFilter d = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Tim Burton,Ron Howard,Nora Ephron,Sydney Pollack\");\n f.addFilter(m);\n f.addFilter(d);\n int minRatings = 3;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" \n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void makeRecommendations()\r\n\t{\r\n\r\n\t\tSystem.out.print(\"Do you want the recommendations based on ratings or scores?\\n\" + \"1. Ratings\\n\" + \"2. Scores\\n\" + \"Please choose 1 or 2:\");\r\n\t\tint choose = scan.nextInt();\r\n\r\n\t\twhile (!(choose >= 1 && choose <= 2))\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a valid input:\");\r\n\t\t\tchoose = scan.nextInt();\r\n\r\n\t\t}\r\n\t\tif (choose == 1)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a rating:\");\r\n\t\t\tString rate = scan.next();\r\n\r\n\t\t\tMovie[] temp = new Movie[actualSize];\r\n\t\t\tint tempCount = 0;\r\n\r\n\t\t\tfor (int i = 0; i < actualSize; i++)\r\n\t\t\t{\r\n\r\n\t\t\t\tif (data[i].getRating().equals(rate.toUpperCase()))\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp[tempCount] = data[i];\r\n\t\t\t\t\ttempCount++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (tempCount > 0)\r\n\t\t\t{\r\n\t\t\t\tsort(temp, 5);\r\n\t\t\t\tint counter = 0;\r\n\r\n\t\t\t\tPrintWriter p = null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tp = new PrintWriter(new FileWriter(\"top_5_movies.txt\"));\r\n\r\n\t\t\t\t\twhile (counter < 5)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tp.println(temp[counter]);\r\n\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"File not found\");\r\n\t\t\t\t}\r\n\t\t\t\tp.close();\r\n\t\t\t\tSystem.out.println(\"Recommendations made successfully! Top 5 movies found!\");\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\tSystem.out.println(\"The rating does not match any of the movies.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (choose == 2)\r\n\t\t{\r\n\r\n\t\t\tint counter = 0;\r\n\t\t\tsort(data, 20);\r\n\t\t\tPrintWriter p = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tp = new PrintWriter(new FileWriter(\"top_20_movies.txt\"));\r\n\r\n\t\t\t\twhile (counter < 20)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tp.println(data[counter]);\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t\t}\r\n\t\t\tp.close();\r\n\t\t\tSystem.out.println(\"Recommendations made successfully! Top 20 movies found!\");\r\n\t\t}\r\n\r\n\t}", "public void printAverageRatingsByYear(){\n ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings.csv\");\r\n //ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings_short.csv\");\r\n \r\n // to oad movies\r\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\r\n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\r\n \r\n // to check equality of the size of the HashMap and files readed\r\n System.out.println(\"Movie size : \" + MovieDatabase.size());\r\n System.out.println(\"Rater size: \"+ MoviesRated.getRaterSize());\r\n \r\n //System.out.println(\"title: \"+ MoviesRated.getTitle(\"68646\"));\r\n //System.out.println(\"avg by ID: \"+ MoviesRated.getAverageByID(\"68646\",10));\r\n \r\n // to get avg ratings for the movies rated by \"n\" tarets: MoviesRated.getAverageRatings(n);\r\n ArrayList<Rating> avgMovieRatings = MoviesRated.getAverageRatingsByFilter(20,new YearAfterFilter(2000));\r\n \r\n // to print how many movies are get avg rating\r\n System.out.println(\"The # of movies with avg rating: \"+avgMovieRatings.size());\r\n \r\n //HashMap<String, Double> avgMovieRatings = MoviesRated.getAverageRatings(12);\r\n \r\n // to sort movies by ratings ascending\r\n Collections.sort(avgMovieRatings);\r\n \r\n // to print rating and title of each movie in the list\r\n for (Rating movie:avgMovieRatings){\r\n if (movie.getValue()>0){\r\n System.out.println(movie.getValue()+\": \"+ MovieDatabase.getTitle(movie.getItem()));} \r\n }\r\n \r\n //for (String movie:avgMovieRatings.keySet()){\r\n // if (avgMovieRatings.get(Movie)>0){\r\n // System.out.println(avgMovieRatings.get(Movie)+\": \"+ MoviesRated.getTitle(movie.getItem()));} \r\n //}\r\n \r\n \r\n }", "private void sortRating()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getRating().compareTo(b.getRating());\n if(result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public void displayMostWatchedMovie(List<Movie> mostWatchedMovies) {\n\t\tfor(Movie movie:mostWatchedMovies)\n\t\t\tSystem.out.println(movie.getTitle());\n\t}", "public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "public void printAverageRatingsByYear(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 2000;\n \n YearAfterFilter year_filter = new YearAfterFilter(year);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, year_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_year + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n \n }", "public void printAverageRatingsByDirectorsAndMinutes(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String[] directors = {\"Spike Jonze\",\"Michael Mann\",\"Charles Chaplin\",\"Francis Ford Coppola\"};\n int min = 30;\n int max = 170;\n \n AllFilters all_filter = new AllFilters();\n MinutesFilter mins_filter = new MinutesFilter(min, max);\n DirectorsFilter dir_filter = new DirectorsFilter(directors);\n \n all_filter.addFilter(mins_filter);\n all_filter.addFilter(dir_filter);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_dirs = database.getDirector(rating.getItem());\n \n int mov_mins = database.getMinutes(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_dirs + \"\\t\" + mov_mins + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public void printAverageRatingsByMinutes(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int min = 110;\n int max = 170;\n \n MinutesFilter mins_filter = new MinutesFilter(min, max);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, mins_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n int mov_time = database.getMinutes(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_time + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void printAverageRatingsByDirectors(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String[] directors = {\"Charles Chaplin\",\"Michael Mann\",\"Spike Jonze\"};\n \n DirectorsFilter dir_filter = new DirectorsFilter(directors);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, dir_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_dir = database.getDirector(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_dir + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }", "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "public static void main(String[] args) {\n\t\tStack<Integer> stack = new Stack<>();\n\n\t\tMovie movie1 = new Movie(1, 1.2f);//A\n\t\tMovie movie2 = new Movie(2, 3.6f);//B\n\t\tMovie movie3 = new Movie(3, 2.4f);//C\n\t\tMovie movie4 = new Movie(4, 4.8f);//D\n\t\tmovie1.getSimilarMovies().add(movie2);\n\t\tmovie1.getSimilarMovies().add(movie3);\n\t\t\n\t\tmovie2.getSimilarMovies().add(movie1);\n\t\tmovie2.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie3.getSimilarMovies().add(movie1);\n\t\tmovie3.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie4.getSimilarMovies().add(movie2);\n\t\tmovie4.getSimilarMovies().add(movie3);\n\n\t\tSet<Movie> set = getMovieRecommendations (movie4, 3);\n\t\tfor(Movie m : set){\n\t\t\tSystem.out.println(\"\"+m.getId() +\", \"+ m.getRating());\t\n\t\t}\n\t\t\n\t}", "public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }", "public void testLoadRaters () {\n ArrayList<Rater> raters = loadRaters(\"ratings\"); \n System.out.println(\"Número total de evaluadores: \" + raters.size()); \n HashMap<String, HashMap<String, Double>> hashmap = new HashMap<String, HashMap<String, Double>> ();\n \n for (Rater rater : raters) {\n HashMap<String, Double> ratings = new HashMap<String, Double> ();\n ArrayList<String> itemsRated = rater.getItemsRated();\n \n for (int i=0; i < itemsRated.size(); i++) {\n String movieID = itemsRated.get(i);\n double movieRating = rater.getRating(movieID);\n \n ratings.put(movieID, movieRating);\n }\n \n hashmap.put(rater.getID(), ratings);\n }\n \n String raterID = \"193\"; // rater_id\n int ratingsSize = hashmap.get(raterID).size();\n System.out.println(\"Número de calificaciones para el evaluador \" + raterID + \" : \" + ratingsSize); \n int maxNumOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (currAmountOfRatings > maxNumOfRatings) {\n maxNumOfRatings = currAmountOfRatings;\n }\n }\n \n System.out.println(\"Número máximo de calificaciones por cualquier evaluador: \" + maxNumOfRatings); \n ArrayList<String> raterWithMaxNumOfRatings = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (maxNumOfRatings == currAmountOfRatings) {\n raterWithMaxNumOfRatings.add(key);\n }\n }\n \n System.out.println(\"Evaluador (es) con la mayor cantidad de películas calificadas: \" + raterWithMaxNumOfRatings); \n String movieID = \"1798709\";\n int numOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n if(hashmap.get(key).containsKey(movieID)) {\n numOfRatings +=1;\n }\n }\n \n System.out.println(\"Número de clasificaciones de la película \" + movieID + \" tiene : \" + numOfRatings); \n ArrayList<String> uniqueMovies = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n for (String currMovieID : hashmap.get(key).keySet()) {\n if (! uniqueMovies.contains(currMovieID)) {\n uniqueMovies.add(currMovieID);\n }\n }\n }\n \n System.out.println(\"Número total de películas unicas calificadas: \" + uniqueMovies.size());\n }", "public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }", "public String getTop5() {\n\t\tboolean boo = false;\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getConfig().getConfigurationSection(\"player.\").getKeys(false));\n\t\tArrayList<Integer> serious = new ArrayList<Integer>();\n\t\tHashMap<Integer, String> seriousp = new HashMap<Integer, String>();\n\t\tfor (int i = 0; i < keys.size(); i++) {\n\t\t\tserious.add(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"));\n\t\t\tseriousp.put(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"), keys.get(i));\n\t\t}\n\t\tComparator<Integer> comparator = Collections.<Integer> reverseOrder();\n\t\tCollections.sort(serious, comparator);\n\t\tString retstr = \"\";\n\t\tfor (int i = 0; i < serious.size(); i++) {\n\t\t\tretstr += serious.get(i).toString() + \" - \" + seriousp.get(serious.get(i)) + \"\\n\";\n\t\t\tif (i == 6) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn retstr;\n\t}", "private static void top5itemsLastMonth(List<Inventory> inventoryList) {\n\n System.out.println(\"\\nTop 5 items last month\");\n\n inventoryList.stream()\n .filter(p2)\n .collect(Collectors.groupingBy(Inventory::getName, LinkedHashMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .limit(5)\n .forEach(System.out::println);\n }", "public void printMovieWL(){\n\t\tfor (int i = 0; i < numMP; i++){\n\t\t\tSystem.out.println(\"Rank \" +(i+1)+ \": \" + moviePref[i].getName() + \", Availible: \" + moviePref[i].getHasMovie());\t\n\t\t} \n\t}", "private static void printMostRetweetedTweets() throws Exception{\n\t\t\n\t\tString max_retweeted_tweet[] = new String[3];\t//string containing tweets\n\t\tint max_counts[] = new int[3];\t//string containing their retweet count\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tif(!status.isRetweet() && status.getURLEntities().length != 0){\n\t\t\t\tint count = status.getRetweetCount();\n\t\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\tif(count>max_counts[index]){\n\t\t\t\t\tmax_counts[index] = count;\n\t\t\t\t\tmax_retweeted_tweet[index] = status.getText();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most retweeted tweets with links in them */\n\t\tSystem.out.println(\"the top 3 most retweeted tweets with links in them : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Tweet : \" + max_retweeted_tweet[i] + \" retweeted \"+ max_counts[i] + \" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public void getAverageRatingOneMovie() {\n String shortMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmovies_short.csv\";\n //String shortRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n String shortRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n //String bigMovieCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_file_test.csv\";\n\n SecondRatings secondRatings = new SecondRatings(shortMovieCsv, shortRatingsCsv);\n //SecondRatings secondRatings = new SecondRatings(bigMovieCsv, bigRatingsCsv);\n\n String movieId = secondRatings.getID(\"Vacation\");\n ArrayList<Rating> ratingArrayList = secondRatings.getAverageRatings(1);\n for (Rating rating : ratingArrayList) {\n if (rating.getItem().contains(movieId)) {\n System.out.println(secondRatings.getTitle(movieId) + \" has average rating: \" + rating.getValue());\n }\n }\n }", "public ArrayList<String> getTopActors(int minMovies){\n String query = \"SELECT actorName, AVG(rtAudienceScore) \"\n + \"FROM movie_actors, movies \"\n + \"WHERE id=movieID \"\n + \"GROUP BY actorName \"\n + \"HAVING COUNT(id) >= \" + minMovies + \" \"\n + \"ORDER BY AVG(rtAudienceScore) DESC \"\n + \"LIMIT 10\";\n ResultSet rs = null;\n ArrayList<String> actorList = new ArrayList<String>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n String actorName = rs.getString(\"actorName\").trim();\n double avgScore = rs.getDouble(\"AVG(rtAudienceScore)\");\n actorList.add(actorName + \"\\t\" + avgScore);\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return actorList;\n }", "public void printScores(String currentPlayerName) {\n System.out.println(\"SCORE BOARD:\");\n System.out.print(\"--------------------\");\n\n System.out.println(\"\\nTOP 5 SCORES OF CURRENT QUIZ TAKER\");\n\n // prints out the current quiz taker's name and top 5 highest scores in\n // descending order\n for (int i = 0; i < allQuizTakers.size() && allQuizTakers.size() > 0; i++) {\n if (allQuizTakers.get(i).getName().equals(currentPlayerName)) {\n System.out.println(allQuizTakers.get(i).toString());\n break;\n }\n }\n\n System.out.println(\"\\nHIGHEST SCORE EVER (\" + findHighestScore() + \") WAS ACHIEVED BY\");\n System.out.println(findHighestScorers());\n\n }", "public static void main(String[] args) {\n readFile(moviesFile, movies);\n movies.forEach((key, value) -> {\n int[] ratings = (int[])value;\n double average = ratings[1]/(double)ratings[0];\n System.out.println(key);\n System.out.println(\"Reviews \" + ratings[0] + \" Average Rating \" +average +\"/5\");\n });\n\n }", "private static void classifyMovies(String method) {\n\n XMLParser parser = new XMLParser();\n\n MovieList parsedMovieList = parser.getMovieListFromFile(\"movies.xml\");\n\n System.out.println(\"Original movie list:\");\n parsedMovieList.print();\n\n ArrayList<MovieList> playLists = null;\n\n if (method.equalsIgnoreCase(\"popularity\"))\n playLists = classifyByPopularity(parsedMovieList);\n else if (method.equalsIgnoreCase(\"mixed\"))\n classifyMixed(parsedMovieList);\n else if (method.equalsIgnoreCase(\"director\"))\n classifyByDirector(parsedMovieList);\n else \n System.out.println(\"Set sorting the criteria: [popularity],[mixed], [director]\");\n\n System.out.println(\"\\nGreat Movies: \");\n playLists.get(0).print();\n\n System.out.println(\"\\nMediocre Movies: \");\n playLists.get(1).print();\n\n System.out.println(\"\\nBad Movies: \");\n playLists.get(2).print();\n }", "public static void main(String[] args) {\n\t\tMovie Movie1 = new Movie(\"Grown Ups 2\", 2);\n\t\tMovie Movie2 = new Movie(\"Jack Jill\", 1);\n\t\tMovie Movie3 = new Movie(\"Battleship\", 1);\n\t\tMovie Movie4 = new Movie(\"Pixels\", 1);\n\t\tMovie Movie5 = new Movie(\"Smosh: The Movie\", 3);\n\t\tSystem.out.println(Movie1.getTicketPrice());\n\t\tSystem.out.println(Movie2.getTicketPrice());\n\t\tSystem.out.println(Movie3.getTicketPrice());\n\t\tSystem.out.println(Movie4.getTicketPrice());\n\t\tSystem.out.println(Movie5.getTicketPrice());\n\t\tNetflixQueue queue = new NetflixQueue();\n\t\tqueue.addMovie(Movie1);\n\t\tqueue.addMovie(Movie2);\n\t\tqueue.addMovie(Movie3);\n\t\tqueue.addMovie(Movie4);\n\t\tqueue.addMovie(Movie5);\n\t\tqueue.printMovies();\n\t\tqueue.sortMoviesByRating();\n\t\tqueue.printMovies();\n\t}", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public void list(String tableName, String name) {\n if (tableName.equals(\"reviewer\")) {\n // make sure the name exists in the table\n // if the return is null or a tombstone then it does not exist\n int val = reviewerTable.search(name);\n if (reviewerTable.getHashTable()[val] == null || reviewerTable\n .getHashTable()[val].getTombstone()) {\n System.out.println(\"Cannot list, reviewer |\" + name\n + \"| not found in the database.\");\n }\n else {\n // We will use the sparse matrix object for this\n RDLList<Integer> rL = (matrix.getReviewers().getList(name));\n\n String s = \"Ratings for reviewer |\" + name + \"|:\";\n if (rL == null) {\n return;\n }\n Node<Integer> n = rL.getHead();\n\n System.out.println(s);\n\n while (n != null) {\n System.out.println(n.getMovieName() + \": \" + n.getValue());\n n = n.getNextMovie();\n }\n\n }\n\n }\n\n else {\n // then it is the movie\n // make sure the name exists in the table\n // if the return is null or a tombstone then it does not exist\n int val = movieTable.search(name);\n if (movieTable.getHashTable()[val] == null || movieTable\n .getHashTable()[val].getTombstone()) {\n System.out.println(\"Cannot list, movie |\" + name\n + \"| not found in the database.\");\n }\n else {\n // We will use the sparse matrix object for this\n MDLList<Integer> mL = (matrix.getMovies().getList(name));\n String s = \"Ratings for movie |\" + name + \"|:\";\n if (mL == null) {\n return;\n }\n System.out.println(s);\n Node<Integer> n = mL.getHead();\n\n while (n != null) {\n System.out.println(n.getReviewerName() + \": \" + n\n .getValue());\n n = n.getNextReviewer();\n }\n }\n }\n }", "public static void printHotelWithRating (HotelReviews hr) throws IndexOutOfBoundsException {\n System.out.printf(\"%-42s\", \"Hotels\"); //a \"magic number\" 42 is used here to format the length of String\n //to get rid of the magic number, we can get the longest length of hotel names\n //and plus 2 or 3 to define the length of String\n System.out.println(\"Rating\");\n int row = hr.getHotelCount();\n for(int i = 0; i < row; i++) {\n System.out.printf(\"%-42s\", hr.getHotel(i));\n System.out.println(hr.getAvgRank(i));\n }\n System.out.println();\n }", "public Iterable<DBObject> mostGrumpy(DBCollection collection) {\n Iterable<DBObject> ai = collection.aggregate(Arrays.asList(\n new BasicDBObject(\"$match\", new BasicDBObject(\"polarity\", new BasicDBObject(\"$eq\", 0))),\n new BasicDBObject(\"$group\", new BasicDBObject(\"_id\", \"$user\").append(\"count\", new BasicDBObject(\"$sum\", 1))),\n new BasicDBObject(\"$sort\", new BasicDBObject(\"count\", -1)),\n new BasicDBObject(\"$limit\", 5)\n )).results();\n return ai;\n }", "int getPopularity();", "public void printStars(double rating) {\n String s = String.format(\"%.1f\", rating);\n if(rating <= 1)\n println(\"★☆☆☆☆(\" + s + \")\");\n else if(rating <= 2)\n println(\"★★☆☆☆(\" + s + \")\");\n else if(rating <= 3)\n println(\"★★★☆☆(\" + s + \")\");\n else if(rating <= 4)\n println(\"★★★★☆(\" + s + \")\");\n else\n println(\"★★★★★(\" + s + \")\");\n println();\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "List<Movie> getTopKMoviesAverage(int topK) {\n List<Movie> list = new ArrayList<Movie>();\n // check k validity\n int k = getRealTopK(topK, moviesCount());\n if ( k > 0) {\n // map to pairs of pID and and a pair of movie score and 1\n // then reduce by key to count scores and reviews together\n // then map to pairs of pID and AVG\n // and get the topK from this RDD to a list (collect)\n list = movieReviews\n .mapToPair(s-> new Tuple2<>(s.getMovie().getProductId(), new Tuple2<>(s.getMovie().getScore(), 1)))\n .reduceByKey((a, b)-> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .map(s -> new Movie(s._1, roundFiveDecimal(s._2._1 / s._2._2)))\n .top(k);\n }\n return list;\n }", "private ArrayList<Rating> getSimilarities(String id){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n RaterDatabase database = new RaterDatabase();\n database.initialize(ratingsfile);\n \n ArrayList<Rating> dot_list = new ArrayList<Rating>();\n \n Rater me = database.getRater(id);\n \n for (Rater rater : database.getRaters()){\n \n if(rater != me){\n \n double dot_product = dotProduct(me, rater);\n \n if (dot_product >= 0.0){\n \n Rating new_rating = new Rating(rater.getID() , dot_product);\n \n dot_list.add(new_rating);\n }\n \n }\n \n }\n \n Collections.sort(dot_list , Collections.reverseOrder());\n \n return dot_list;\n \n }", "public void printMovieInfo() {\n println(\"Title : \" + this.movie.getTitle());\n println(\"Showing Status: \" + this.movie.getShowingStatus().toString());\n println(\"Content Rating: \" + this.movie.getContentRating().toString());\n println(\"Runtime : \" + this.movie.getRuntime() + \" minutes\");\n println(\"Director : \" + this.movie.getDirector());\n print(\"Cast : \");\n StringBuilder s = new StringBuilder();\n for (String r : movie.getCasts()) {\n s.append(r + \"; \");\n }\n println(s.toString());\n println(\"Language : \" + this.movie.getLanguage());\n println(\"Opening : \" + this.movie.getFormattedDate());\n\n print(\"Synopsis : \");\n println(this.movie.getSynopsis(), 16);\n\n if(movie.getRatingTimes() != 0 ){\n print(\"Overall Rating :\");\n printStars(movie.getOverAllRating());\n } else {\n println(\"Overall Rating: N/A\");\n }\n if (movie.getRatingTimes() != 0){\n for (Review r : movie.getReview()) {\n print(\"Review : \");\n println(r.getComment(), 16);\n print(\"Rating : \");\n printStars(r.getRating());\n }\n }\n }", "public static void main(String[] args) {\n\t\tMovie movie = new Movie(\"Ocean nut\", 0);\n\t\tMovie good = new Movie(\"Justin Zhang\", 5);\n\t\tMovie garbage = new Movie(\"Fortnite\", 4);\n\t\tMovie yeet = new Movie(\"Yeet Yeet\", 3);\n\t\tMovie yes = new Movie(\"garbage movie\", 1);\n\t\t\n\t\tNetflixQueue noob = new NetflixQueue();\n\t\t\n\t\tSystem.out.println(movie.getTicketPrice());\n\t\t\n\t\tnoob.addMovie(movie);\n\t\tnoob.addMovie(yes);\n\t\tnoob.addMovie(yeet);\n\t\tnoob.addMovie(garbage);\n\t\tnoob.addMovie(good);\n\t\tnoob.printMovies();\n\t\t\n\t\tSystem.out.println(\"The best movie is \" + noob.getBestMovie());\n\t\tnoob.sortMoviesByRating();\n\t\tSystem.out.println(\"The second best movie is \"+ noob.getMovie(1));\n\t}", "public ArrayList<Movie> getTopMovies(int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "private static ArrayList<MovieList> classifyByPopularity(MovieList mvList) {\n\n ArrayList<MovieList> playLists = new ArrayList<MovieList>();\n\n MovieList greatMovies = new MovieList();\n MovieList mediocreMovies = new MovieList();\n MovieList badMovies = new MovieList();\n\n // We sort because want to show the movies in that order\n // This makes sense since the user asked for popularity distinguished lists. \n // We suppose must be interested in this feature.\n // Also in the future we might want arbitrary categories\n Collections.sort(mvList, new Movie.OrderByPopularity());\n\n for(Movie mv : mvList) {\n if (mv.getPopularity() < 5.0) \n badMovies.add(mv);\n else if (mv.getPopularity() >= 5 && mv.getPopularity() <= 8.0) \n mediocreMovies.add(mv);\n else if (mv.getPopularity() > 8.0 && mv.getPopularity() <= 10.0) \n greatMovies.add(mv);\n else\n System.out.println(\"Warning wrong popularity for movie: \" + mv.getId() + \" \" + mv.getTitle() );\n }\n\n playLists.add(greatMovies);\n playLists.add(mediocreMovies);\n playLists.add(badMovies);\n\n return playLists;\n }", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "@Override\r\n\tpublic int compare(Movie o1, Movie o2) {\n\t\t\r\n\t\tif(o1.getRating()<o2.getRating()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif(o1.getRating()>o2.getRating()) {\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "List<Product> getTop5ProductsByQuantitySold();", "public int getNoOfratings() {\n\treturn noofratings;\n}", "@Test\n public void testGetRating() {\n final double expectedRating = 0.0;\n assertEquals(expectedRating, movie1.getRating(), expectedRating);\n assertEquals(expectedRating, movie2.getRating(), expectedRating);\n assertEquals(expectedRating, movie3.getRating(), expectedRating);\n assertEquals(expectedRating, movie4.getRating(), expectedRating);\n }", "@Min(0)\n @Max(5)\n public int getRating() {\n return rating;\n }", "public int getMovieFlexRatings(String uuid);", "public ArrayList<String> getTopDirectors(int minMovies){\n String query = \"SELECT directorName, AVG(rtAudienceScore) \"\n + \"FROM movie_directors, movies \"\n + \"WHERE id=movieID \"\n + \"GROUP BY directorName \"\n + \"HAVING COUNT(id) >= \" + minMovies + \" \"\n + \"ORDER BY AVG(rtAudienceScore) DESC \"\n + \"LIMIT 10\";\n ResultSet rs = null;\n ArrayList<String> directorList = new ArrayList<String>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n String dirName = rs.getString(\"directorName\").trim();\n double avgScore = rs.getDouble(\"AVG(rtAudienceScore)\");\n directorList.add(dirName + \"\\t\" + avgScore);\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return directorList;\n }", "private static List<String> getTopNCompetitors(int numCompetitors,\n int topNCompetitors, \n List<String> competitors,\n int numReviews,\n List<String> reviews) {\n\t\t\n\t\t HashMap<String, Integer> map = new HashMap<>();\n\t\t for(String comp : competitors){\n\t map.put(comp.toLowerCase(),0);\n\t }\n\t\t\n\t for(String sentence : reviews){\n\t String[] words = sentence.split(\" \"); // get all the words in one sentence and put them in a String array \n\t for(String word : words){\n\t if(map.containsKey(word.toLowerCase())) { // check if map has any of the words (competitor name). if yes increase its value\n\t map.put(word.toLowerCase(), map.get(word.toLowerCase()) + 1);\n\t }\n\t }\n\t }\n\t \n\t PriorityQueue<String> pq =new PriorityQueue<>((String i1,String i2)->{ \n\t return map.get(i1)-map.get(i2); \n\t });\n\t for(String key:map.keySet()){\n\t pq.add(key);\n\t if(pq.size()>topNCompetitors) pq.poll();\n\t }\n\t List<String> result=new ArrayList<>();\n\t while(!pq.isEmpty())\n\t result.add(pq.poll());\n\t \n\t Collections.reverse(result);\n\t \n\t return result; \n\t \n}", "public static void main(String[] args){\n ArrayList<Record> test = new ArrayList<>();\n test.add(new Record(1,91));\n test.add(new Record(1,92));\n test.add(new Record(2,93));\n test.add(new Record(2,99));\n test.add(new Record(2,98));\n test.add(new Record(2,97));\n test.add(new Record(1,60));\n test.add(new Record(1,58));\n test.add(new Record(2,100));\n test.add(new Record(1,61));\n\n System.out.print(firstFiveAverage.highFive(10,test));\n }", "public static Set<Movie> getMovieRecommendations (Movie movie, int N) \n\t{\n\t\tSet<Movie> set = new HashSet<>();\n\t\tSet<Movie> visited = new HashSet<>();\n\t\tif(movie == null || N <=0 ) return set;\n\t\tQueue<Movie> pq = new PriorityQueue<>((Movie m1, Movie m2) -> { \n\t\t float val1 = m1.getRating();\n\t\t float val2 = m2.getRating();\n\t\t if(val1 == val2){\n\t\t return 0;\n\t\t }else if(val1 > val2){\n\t\t return 1;\n\t\t }else{\n\t\t return -1;\n\t\t }\n\t\t} );\n\t\tQueue<Movie> queue = new LinkedList<>();\n\t\tqueue.offer(movie);\n\t\tvisited.add(movie);\n\t\twhile(!queue.isEmpty()){\n\t\t int size = queue.size();\n\t\t for(int i = 0; i < size; i++){\n\t\t Movie temp = queue.poll();\n\t\t if(!temp.equals(movie)){\n \t\t if(pq.size() < N){\n \t\t pq.offer(temp);\n \t\t }else if(temp.getRating() > pq.peek().getRating()){\n \t\t pq.poll();\n \t\t pq.offer(temp);\n \t\t }\n\t\t }\n\t\t for(Movie m : temp.getSimilarMovies()){\n\t\t \tif(!visited.contains(m)){\n\t\t \t\tqueue.offer(m);\n\t\t \t\tvisited.add(m);\n\t\t \t}\n\t\t }\n\t\t }\n\t\t}\n\t\tset.addAll(pq);\n\t\treturn set;\n\t}", "public String findHighestScorers() {\n ArrayList<String> names = new ArrayList<String>();\n String theirNames = \"\";\n int highest = findHighestScore();\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) == 0) {\n //note that each quiz taker's arraylist of scores is already sorted in descending order post-constructor\n boolean alreadyThere = false;\n for(String name: names) {\n if(name.equals(allQuizTakers.get(i).getName())) {\n alreadyThere = true;\n }\n }\n if (!alreadyThere) {\n theirNames += allQuizTakers.get(i).getName() + \" \";\n names.add(allQuizTakers.get(i).getName());\n }\n }\n }\n return theirNames;\n }", "public GetPopularMoviesResponse getPopularMovies() {\n return getPopularMovies(null, null, null);\n }", "public static URL buildTopRatedMoviesUrl()\n {\n return buildMovieDbUrl(\"movie/top_rated\");\n }", "private void getBest()\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(bestTour + \" \" + bestScore);\n\t}", "public ArrayList<Movie> getTopMovies(String genre, int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies, movie_genres \"\n + \"WHERE movieID=id AND genre LIKE '%\" + genre + \"%' \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "public static void updateRating(){\r\n System.out.println('\\n'+\"Update Rating\");\r\n System.out.println(movies);\r\n System.out.println('\\n'+ \"Which movies ratings would you like to update\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n // Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //if the movie title is in teh list change rating\r\n if (movieTitle.equals(names.getName())){\r\n System.out.println(names.getName() + \" has a current rating of \"+ names.getRating()+'\\n'+ \"What would you like to change it to?\");\r\n double newRating = s.nextInt();\r\n s.nextLine();\r\n names.setRating(newRating);\r\n System.out.println(\"You have changed the rating of \"+ names.getName()+ \" to \"+ names.getRating());\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n //if movie titile not in the current list\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "public ArrayList<Song> topTen(Integer rating) {\n return (ArrayList<Song>) songRepo.findTop10SongsByRatingOrderByRatingDesc(rating);\n }", "protected void printBest(int n) {\n for (int i = 0; i < n; i++) {\n System.out.printf(\"%.5f\", individuals[i].score);\n if (i < n - 1)\n System.out.print(\", \");\n // forwardPropagate(i, input).printMatrix();\n // System.out.println();\n }\n }", "public int compare(Movie a, Movie b) {\n\t\tdouble aRating = a.computeRating();\n\t\tdouble bRating = b.computeRating();\n\t\tif (aRating>bRating)\n\t\t\treturn -1;\n\t\telse if (aRating<bRating)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }", "public ArrayList<Map.Entry<String, Double>> recommendations(int number){\r\n\t\tArrayList<Map.Entry<String, Double>> res = new ArrayList<Map.Entry<String, Double>>();\r\n\t\t//Create a heap for storing the movies and sorting them by the predict rates.\r\n\t\tPriorityQueue<Map.Entry<String, Double>> heap = new PriorityQueue<Map.Entry<String, Double>>(read.rateMap.get(userID).size(), new Comparator<Map.Entry<String, Double>>() {\r\n\t\t\tpublic int compare(Map.Entry<String, Double> a, Map.Entry<String, Double> b){\r\n\t\t\t\treturn -1 * (a.getValue().compareTo(b.getValue()));\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(int i = 0; i < read.rateMap.get(userID).size(); i++){\r\n\t\t\theap.add(read.rateMap.get(userID).get(i));\r\n\t\t}\r\n\t\tfor(Integer i : read.rateMap.keySet()){\r\n\t\t\tfor(int j = 0; j < read.rateMap.get(i).size(); j++){\r\n\t\t\t\tif(!ratedID.contains(read.rateMap.get(i).get(j).getKey())){\r\n\t\t\t\t\tdouble predict = this.prediction(read.rateMap.get(i).get(j).getKey());\r\n\t\t\t\t\tMap.Entry<String, Double> newest = new AbstractMap.SimpleEntry(read.rateMap.get(i).get(j).getKey(), predict);\r\n\t\t\t\t\t//Optimization starts here....\r\n\t\t\t\t\tif(fuckUser){\r\n\t\t\t\t\t\tres.add(newest);\r\n\t\t\t\t\t\tif(res.size() == number){\r\n\t\t\t\t\t\t\treturn res;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif(predict > read.maxScore - 1){\r\n\t\t\t\t\t\t\theap.add(newest);\r\n\t\t\t\t\t\t\tif(heap.size() >= (number + read.rateMap.get(userID).size())){\r\n\t\t\t\t\t\t\t\tfor(int k = 0; k < number; k++){\r\n\t\t\t\t\t\t\t\t\tres.add(heap.poll());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn res;\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\treturn res;\r\n\t}", "@Test\r\n public void testGetTopRatedMovies() throws MovieDbException {\r\n LOG.info(\"getTopRatedMovies\");\r\n List<MovieDb> results = tmdb.getTopRatedMovies(LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No top rated movies found\", !results.isEmpty());\r\n }", "public void mainTest()\n {\n \tprintSimilarRatingsByYearAfterAndMinutes();\n }", "public void setMaxRating(int maxRating) {\n this.maxRating = maxRating;\n }", "private void getMostPopularDesigners(){\n System.out.println(this.ctrl.getMostPopularDesigner().getKey() + \" \" + this.ctrl.getMostPopularDesigner().getValue().toString() + \" items\");\n }", "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_string[index] = str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most frequently used words */\n\t\tSystem.out.println(\"top 3 most frequently used words : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Word : \\\"\" + max_count_string[i] + \"\\\" is used \"+ max_counts[i] +\" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t}", "List<MovieCountedReview> reviewCountPerMovieTopKMovies(final int topK) {\n\n List<MovieCountedReview> list = new ArrayList<>();\n // check k validity\n int k = getRealTopK(topK, moviesCount());\n if (k > 0) {\n // map to pair of pID and 1\n // then reduce by key to count the reviews\n // then map to an RDD of a new CLASS that has a review comparator of it's own\n // get the topK from the RDD (collect)\n list = movieReviews\n .mapToPair(s -> new Tuple2<>(s.getMovie().getProductId(), 1))\n .reduceByKey((a, b) -> a + b)\n .map(s -> new MovieCountedReview(s._1(), s._2()))\n .top(k);\n }\n return list;\n }", "List<PersonHelpfulness> topKHelpfullUsers(final int k) {\n // map to pairs of uID and helpfulness, then cut the helpfulness to 2 parts\n // filter out 0s, then sum both parts using reduce by key\n // then, map to PersonHelpfulness CLASS that has it's own comparator\n // then, return topK (validity checked) list (collect)\n JavaRDD<PersonHelpfulness> helpfulUsers = movieReviews\n .mapToPair(a -> new Tuple2<>(a.getUserId(), a.getHelpfulness()))\n .mapToPair(s -> new Tuple2<>(s._1, new Tuple2<>(Double.parseDouble(s._2.substring(0,s._2.lastIndexOf('/'))),\n Double.parseDouble(s._2.substring(s._2.lastIndexOf('/') + 1, s._2.length())))))\n .filter(s -> s._2._2 != 0)\n .reduceByKey((a,b) -> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .map(s -> new PersonHelpfulness(s._1, roundFiveDecimal(s._2._1/s._2._2)));\n return helpfulUsers.top(getRealTopK(k,helpfulUsers.count() ));\n }", "public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }", "public String getBestActor() {\n\t\tdouble max = 0;\n\t\tString bestActor = \"\";\n\t\tfor(Actor actor : this.actorList) {\n\t\t\tdouble averageRating = 0;\n\t\t\tfor(Movie movie : actor.getMovies()) {\n\t\t\t\taverageRating += movie.getRating() / actor.getMovies().size();\n\t\t\t}\n\t\t\tif(averageRating > max) {\n\t\t\t\tmax = averageRating;\n\t\t\t\tbestActor = actor.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestActor;\n\t}", "@Override\r\n\tpublic ArrayList<MatchPO> getLatest5Matches(PlayerPO player) {\n\t\tArrayList<MatchPO> allMatches = player.getMatches(Config.LASTEST_SEASON) ;\r\n\t\tif(allMatches.size()<5){\r\n\t return allMatches ;\r\n\t\t}\r\n\t\tArrayList<MatchPO> latest5Matches = new ArrayList<>(allMatches.subList(allMatches.size()-5, \r\n\t\t\t\tallMatches.size())) ;\r\n\t\treturn latest5Matches ;\r\n\t}", "public int getRatings() {\n return ratings;\n }", "public double getActorRating(String n)\n\t{\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\tdouble actor_rating = 0;\n\t\tint num = 0;\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes accumulate the movie rating \n\t\t\t{\n\t\t\t\tactor_rating += temp_movie.getRating();\n\t\t\t\tnum++;\n\t\t\t}\t\t\n\t\t}\t\n\t\t//if yes accumulate the movie rating\n\t\t//divie by the number of of accumulated values\n\t\tactor_rating = actor_rating/num;\n\t\treturn actor_rating;\n\t}", "public Iterable<DBObject> mostHappy(DBCollection collection) {\n Iterable<DBObject> ai = collection.aggregate(Arrays.asList(\n new BasicDBObject(\"$match\", new BasicDBObject(\"polarity\", new BasicDBObject(\"$eq\", 4))),\n new BasicDBObject(\"$group\", new BasicDBObject(\"_id\", \"$user\").append(\"count\", new BasicDBObject(\"$sum\", 1))),\n new BasicDBObject(\"$sort\", new BasicDBObject(\"count\", -1)),\n new BasicDBObject(\"$limit\", 5)\n )).results();\n return ai;\n }", "public List<Rating> findRatingByMovie(String movieID);", "public static void addMovie(){\r\n System.out.println('\\n'+\"Please enter the name of the Movie you would like to add \");\r\n String name = s.nextLine();\r\n System.out.println(\"Please enter the rating between 1 and 5 \");\r\n int r = s.nextInt();\r\n s.nextLine();\r\n if (r >= 1 && r <= 5){\r\n m = new Movie(name,r);\r\n movies.add(m);\r\n System.out.println(m.name +\" has been added\"+ '\\n');\r\n }\r\n else{\r\n System.out.println(\"That rating is not between 1 and 5. Please try again\");\r\n }\r\n }", "public int getMaxRating() {\n return maxRating;\n }", "@Override\n\tpublic List<Movie> getMovieByRate(Ratings rating) {\n\t\treturn movieRepository.getMovieByRating(rating);\n\t}", "public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}" ]
[ "0.71010995", "0.7083653", "0.68456125", "0.6734531", "0.67082125", "0.6639107", "0.65964514", "0.65725034", "0.65656966", "0.65500945", "0.6535082", "0.65120137", "0.6492447", "0.64811945", "0.6455383", "0.64248365", "0.6375078", "0.6355581", "0.6350767", "0.6325404", "0.62998503", "0.6275124", "0.62528294", "0.62067026", "0.62034386", "0.61984444", "0.6162556", "0.6162556", "0.6162556", "0.61068434", "0.60416275", "0.6036456", "0.6021824", "0.601503", "0.5885827", "0.58823496", "0.5758145", "0.57555187", "0.5701832", "0.56951386", "0.56765395", "0.56744313", "0.5658491", "0.5643342", "0.5640971", "0.563649", "0.5591528", "0.55644655", "0.5559915", "0.55269295", "0.5493349", "0.5491705", "0.5491507", "0.54882884", "0.5476912", "0.5473948", "0.547256", "0.5462728", "0.54471666", "0.5445021", "0.54438514", "0.5441293", "0.54353225", "0.5422865", "0.5420515", "0.5410754", "0.5408053", "0.5398933", "0.53876543", "0.53843987", "0.53826845", "0.53759277", "0.5363526", "0.5355265", "0.53048086", "0.5288673", "0.5271315", "0.527", "0.5267293", "0.5266074", "0.52571183", "0.52542335", "0.5249534", "0.5248596", "0.5245854", "0.52317536", "0.52200484", "0.5217593", "0.5206066", "0.52058756", "0.5196208", "0.5193404", "0.5189587", "0.51868016", "0.51847315", "0.51846796", "0.51820296", "0.51662636", "0.5162705", "0.51549584" ]
0.82889634
0
method to print the movies with the 5 highest tickets sold
public void printTopSalesMovies() { Collections.sort(this.dataList, new SortBySales()); int top = Math.min(5, getDataLength()); for (int i=0; i<top; ++i) { System.out.println(this.dataList.get(i).toString()); } Collections.sort(this.dataList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "Movie mostPopularMovieReviewedByKUsers(final int numOfUsers) {\n // similar to getTopKMoviesAverage only filter by numOfUsers to be as specified\n List<Movie> popularMovieFiltered = movieReviews\n .mapToPair(s-> new Tuple2<>(s.getMovie().getProductId(), new Tuple2<>(s.getMovie().getScore(), 1)))\n .reduceByKey((a, b)-> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .filter(s -> s._2._2 >= numOfUsers)\n .map(s -> new Movie(s._1, roundFiveDecimal(s._2._1 / s._2._2)))\n .top(1);\n // return null if empty\n return popularMovieFiltered.isEmpty()? null : popularMovieFiltered.get(0);\n }", "public void displayMostWatchedMovie(List<Movie> mostWatchedMovies) {\n\t\tfor(Movie movie:mostWatchedMovies)\n\t\t\tSystem.out.println(movie.getTitle());\n\t}", "public void displayMovie(ArrayList<Movie> movies)\n {\n int index = 1;\n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIES LIST::::::::::::::::::::::::::::**\");\n \n for(Movie film : movies)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\t\\t\\t Movie number : [\" + index +\"]\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n index = index + 1;\n }\n }", "private static void top5itemsLastMonth(List<Inventory> inventoryList) {\n\n System.out.println(\"\\nTop 5 items last month\");\n\n inventoryList.stream()\n .filter(p2)\n .collect(Collectors.groupingBy(Inventory::getName, LinkedHashMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .limit(5)\n .forEach(System.out::println);\n }", "List<Product> getTop5ProductsByQuantitySold();", "private static List<String> getTopNCompetitors(int numCompetitors,\n int topNCompetitors, \n List<String> competitors,\n int numReviews,\n List<String> reviews) {\n\t\t\n\t\t HashMap<String, Integer> map = new HashMap<>();\n\t\t for(String comp : competitors){\n\t map.put(comp.toLowerCase(),0);\n\t }\n\t\t\n\t for(String sentence : reviews){\n\t String[] words = sentence.split(\" \"); // get all the words in one sentence and put them in a String array \n\t for(String word : words){\n\t if(map.containsKey(word.toLowerCase())) { // check if map has any of the words (competitor name). if yes increase its value\n\t map.put(word.toLowerCase(), map.get(word.toLowerCase()) + 1);\n\t }\n\t }\n\t }\n\t \n\t PriorityQueue<String> pq =new PriorityQueue<>((String i1,String i2)->{ \n\t return map.get(i1)-map.get(i2); \n\t });\n\t for(String key:map.keySet()){\n\t pq.add(key);\n\t if(pq.size()>topNCompetitors) pq.poll();\n\t }\n\t List<String> result=new ArrayList<>();\n\t while(!pq.isEmpty())\n\t result.add(pq.poll());\n\t \n\t Collections.reverse(result);\n\t \n\t return result; \n\t \n}", "private static void printMostRetweetedTweets() throws Exception{\n\t\t\n\t\tString max_retweeted_tweet[] = new String[3];\t//string containing tweets\n\t\tint max_counts[] = new int[3];\t//string containing their retweet count\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tif(!status.isRetweet() && status.getURLEntities().length != 0){\n\t\t\t\tint count = status.getRetweetCount();\n\t\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\tif(count>max_counts[index]){\n\t\t\t\t\tmax_counts[index] = count;\n\t\t\t\t\tmax_retweeted_tweet[index] = status.getText();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most retweeted tweets with links in them */\n\t\tSystem.out.println(\"the top 3 most retweeted tweets with links in them : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Tweet : \" + max_retweeted_tweet[i] + \" retweeted \"+ max_counts[i] + \" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tMovie Movie1 = new Movie(\"Grown Ups 2\", 2);\n\t\tMovie Movie2 = new Movie(\"Jack Jill\", 1);\n\t\tMovie Movie3 = new Movie(\"Battleship\", 1);\n\t\tMovie Movie4 = new Movie(\"Pixels\", 1);\n\t\tMovie Movie5 = new Movie(\"Smosh: The Movie\", 3);\n\t\tSystem.out.println(Movie1.getTicketPrice());\n\t\tSystem.out.println(Movie2.getTicketPrice());\n\t\tSystem.out.println(Movie3.getTicketPrice());\n\t\tSystem.out.println(Movie4.getTicketPrice());\n\t\tSystem.out.println(Movie5.getTicketPrice());\n\t\tNetflixQueue queue = new NetflixQueue();\n\t\tqueue.addMovie(Movie1);\n\t\tqueue.addMovie(Movie2);\n\t\tqueue.addMovie(Movie3);\n\t\tqueue.addMovie(Movie4);\n\t\tqueue.addMovie(Movie5);\n\t\tqueue.printMovies();\n\t\tqueue.sortMoviesByRating();\n\t\tqueue.printMovies();\n\t}", "public String vote5(){\n String vote5MovieTitle = \" \";\n for(int i = 0; *i < results.length; i++){\n if(results[i].voteAve()) {\n vote5MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(vote5MovieTitle);\n return vote5MovieTitle;\n }", "public static void main(String[] args) {\n\t\tMovie movie = new Movie(\"Ocean nut\", 0);\n\t\tMovie good = new Movie(\"Justin Zhang\", 5);\n\t\tMovie garbage = new Movie(\"Fortnite\", 4);\n\t\tMovie yeet = new Movie(\"Yeet Yeet\", 3);\n\t\tMovie yes = new Movie(\"garbage movie\", 1);\n\t\t\n\t\tNetflixQueue noob = new NetflixQueue();\n\t\t\n\t\tSystem.out.println(movie.getTicketPrice());\n\t\t\n\t\tnoob.addMovie(movie);\n\t\tnoob.addMovie(yes);\n\t\tnoob.addMovie(yeet);\n\t\tnoob.addMovie(garbage);\n\t\tnoob.addMovie(good);\n\t\tnoob.printMovies();\n\t\t\n\t\tSystem.out.println(\"The best movie is \" + noob.getBestMovie());\n\t\tnoob.sortMoviesByRating();\n\t\tSystem.out.println(\"The second best movie is \"+ noob.getMovie(1));\n\t}", "public String getBestMovie() {\n\t\tdouble highestRating = 0;\n\t\tString bestMovie = \"\";\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getRating() > highestRating) {\n\t\t\t\thighestRating = movie.getRating();\n\t\t\t\tbestMovie = movie.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestMovie;\n\t}", "private static void printMostFrequentHashTags(){\n\t\t\n\t\tMap<String, Integer> hashtags = getHashTags();\n\t\tString max_count_hashtag[] = new String[3];\t//stores top 3 most frequent hashtags\n\t\tint max_counts[] = new int[3];\t//stores their count\n\t\t\n\t\tfor(String hashtag : hashtags.keySet()){\n\t\t\tint count = hashtags.get(hashtag);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_hashtag[index] = hashtag;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most freqent hashtags */\n\t\tSystem.out.println(\"top 3 most frequently used hashtags : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Hashtag : #\" + max_count_hashtag[i] + \" is used \"+ max_counts[i] + \" times.\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public String getTop5() {\n\t\tboolean boo = false;\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getConfig().getConfigurationSection(\"player.\").getKeys(false));\n\t\tArrayList<Integer> serious = new ArrayList<Integer>();\n\t\tHashMap<Integer, String> seriousp = new HashMap<Integer, String>();\n\t\tfor (int i = 0; i < keys.size(); i++) {\n\t\t\tserious.add(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"));\n\t\t\tseriousp.put(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"), keys.get(i));\n\t\t}\n\t\tComparator<Integer> comparator = Collections.<Integer> reverseOrder();\n\t\tCollections.sort(serious, comparator);\n\t\tString retstr = \"\";\n\t\tfor (int i = 0; i < serious.size(); i++) {\n\t\t\tretstr += serious.get(i).toString() + \" - \" + seriousp.get(serious.get(i)) + \"\\n\";\n\t\t\tif (i == 6) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn retstr;\n\t}", "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_string[index] = str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most frequently used words */\n\t\tSystem.out.println(\"top 3 most frequently used words : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Word : \\\"\" + max_count_string[i] + \"\\\" is used \"+ max_counts[i] +\" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void printAverageRatings(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n \n int minRatings = 35;\n ArrayList<Rating> aveRat = sr.getAverageRatings(minRatings);\n System.out.println(\"Number of ratings at least \" + minRatings + \": \" + aveRat.size());\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \" : \" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n// Filter f = new AllFilters();\n// f.addFilter(new YearsAfterFilter(2001));\n ArrayList<String> movies = MovieDatabase.filterBy(new YearAfterFilter(2001)); \n int c = 0;\n for(Rating r: aveRat){\n if(movies.contains(r.getItem())){c++;}\n }\n System.out.println(\"Number of ratings at least \" + minRatings + \" and made on or after 2001 : \" + c);\n System.out.println(\"-------------------------------------\");\n \n \n \n }", "public void makeRecommendations()\r\n\t{\r\n\r\n\t\tSystem.out.print(\"Do you want the recommendations based on ratings or scores?\\n\" + \"1. Ratings\\n\" + \"2. Scores\\n\" + \"Please choose 1 or 2:\");\r\n\t\tint choose = scan.nextInt();\r\n\r\n\t\twhile (!(choose >= 1 && choose <= 2))\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a valid input:\");\r\n\t\t\tchoose = scan.nextInt();\r\n\r\n\t\t}\r\n\t\tif (choose == 1)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a rating:\");\r\n\t\t\tString rate = scan.next();\r\n\r\n\t\t\tMovie[] temp = new Movie[actualSize];\r\n\t\t\tint tempCount = 0;\r\n\r\n\t\t\tfor (int i = 0; i < actualSize; i++)\r\n\t\t\t{\r\n\r\n\t\t\t\tif (data[i].getRating().equals(rate.toUpperCase()))\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp[tempCount] = data[i];\r\n\t\t\t\t\ttempCount++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (tempCount > 0)\r\n\t\t\t{\r\n\t\t\t\tsort(temp, 5);\r\n\t\t\t\tint counter = 0;\r\n\r\n\t\t\t\tPrintWriter p = null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tp = new PrintWriter(new FileWriter(\"top_5_movies.txt\"));\r\n\r\n\t\t\t\t\twhile (counter < 5)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tp.println(temp[counter]);\r\n\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"File not found\");\r\n\t\t\t\t}\r\n\t\t\t\tp.close();\r\n\t\t\t\tSystem.out.println(\"Recommendations made successfully! Top 5 movies found!\");\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\tSystem.out.println(\"The rating does not match any of the movies.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (choose == 2)\r\n\t\t{\r\n\r\n\t\t\tint counter = 0;\r\n\t\t\tsort(data, 20);\r\n\t\t\tPrintWriter p = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tp = new PrintWriter(new FileWriter(\"top_20_movies.txt\"));\r\n\r\n\t\t\t\twhile (counter < 20)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tp.println(data[counter]);\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t\t}\r\n\t\t\tp.close();\r\n\t\t\tSystem.out.println(\"Recommendations made successfully! Top 20 movies found!\");\r\n\t\t}\r\n\r\n\t}", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "public void displayFavourite(ArrayList<Movie> movies)\n {\n int rate = 0;\n ArrayList<Movie> rateResult = new ArrayList<Movie>();\n Scanner console = new Scanner(System.in);\n boolean valid = false;\n String answer = \"\";\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease insert the least rating you want to display (1-10): \");\n answer = console.nextLine().trim();\n valid = validation.integerValidation(answer,1,10);\n }\n \n rate = Integer.parseInt(answer);\n for (Movie film : movies)\n {\n int rating = film.getRating();\n \n if (rating >= rate)\n rateResult.add(film);\n }\n \n Collections.sort(rateResult);\n displayMovie(rateResult);\n }", "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"+ movie.getName()+'\\n'+\"Times Watched: \"+ movie.getTimesWatched()+'\\n');\r\n }\r\n }", "public String top10Filmes() {\r\n\t\tString top10 = \"Nenhum ingresso vendido ate o momento\";\r\n\t\tint contador = 0;\r\n\t\tif (listaIngresso.isEmpty() == false) {\r\n\t\tfor (int i = 0; i < listaIngresso.size(); i++) {\r\n\t\tcontador = 0;\r\n\t\tfor(int j = 0; j < listaIngresso.size() - 1; j++){\r\n\t\tif(listaIngresso.get(i).getSessao().getFilme() == listaIngresso.get(j).getSessao().getFilme()){\r\n\t\tcontador++;\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\r\n\t\t\t\r\n\t\t}\r\n\t\treturn top10;\r\n\t}", "public ArrayList<String> getTopActors(int minMovies){\n String query = \"SELECT actorName, AVG(rtAudienceScore) \"\n + \"FROM movie_actors, movies \"\n + \"WHERE id=movieID \"\n + \"GROUP BY actorName \"\n + \"HAVING COUNT(id) >= \" + minMovies + \" \"\n + \"ORDER BY AVG(rtAudienceScore) DESC \"\n + \"LIMIT 10\";\n ResultSet rs = null;\n ArrayList<String> actorList = new ArrayList<String>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n String actorName = rs.getString(\"actorName\").trim();\n double avgScore = rs.getDouble(\"AVG(rtAudienceScore)\");\n actorList.add(actorName + \"\\t\" + avgScore);\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return actorList;\n }", "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }", "public void mostarProductos() {\n System.out.println(\"Codigo \\tNombre \\t\\t\\tDescripcion \\t\\t\\t\\t\\t\\t Precio\");\n for (Producto producto1 : productos) {\n var codigo1 = producto1.getCodigo();\n var nombre = producto1.getNombre();\n var descripcion = producto1.getDescripcion();\n var precio = producto1.getPrecio();\n System.out.printf(\"%-10d %-25s %-60s %.2f \\n\", codigo1, nombre, descripcion, precio);\n\n }\n System.out.println(\"\");\n\n }", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "private void getBest()\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(bestTour + \" \" + bestScore);\n\t}", "public static String getMostFrequentToy() {\n\t\tString name = \"\";\n\t\tint max = 0;\n\t\tfor (int i = 0; i < toyList.size(); i++) {\n\t\t\tif (max < toyList.get(i).getCount()) {\n\t\t\t\tmax = toyList.get(i).getCount();\n\t\t\t\tname = toyList.get(i).getName();\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void getFiveMostLikedComment() {\n Map<Integer, Comment> comments = DataStore.getInstance().getComments();\n List<Comment> commentList = new ArrayList<>(comments.values());\n \n Collections.sort(commentList, new Comparator<Comment>() {\n @Override \n public int compare(Comment o1, Comment o2) {\n return o2.getLikes() - o1.getLikes();\n }\n });\n \n System.out.println(\"5 most likes comments: \");\n for (int i = 0; i < commentList.size() && i < 5; i++) {\n System.out.println(commentList.get(i));\n }\n }", "public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "private void getMostPopularDesigners(){\n System.out.println(this.ctrl.getMostPopularDesigner().getKey() + \" \" + this.ctrl.getMostPopularDesigner().getValue().toString() + \" items\");\n }", "public List<PlayerTeam> display6() {\n List<PlayerTeam> l = new List<PlayerTeam>();\n List<PlayerTeam> all = build();\n int max = 0;\n PlayerTeam curr = all.first();\n while (curr != null) {\n int c = curr.getWinninggoals();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = all.next();\n }\n return l;\n }", "public void displayList() {\n salesNumber.stream().map((_item) -> {\r\n //establishes a for loop to search for the top seller\r\n if (salesMax == salesNumber.get((int) displayIteration)) { //identifies and displays a message for the top seller, (you are welcome for the beer)\r\n System.out.println(\"Congratulations \" + topSeller + \" you are the current sales leader with \"\r\n + newFormat.format(salesNumber.get((int) displayIteration)) + \" in sales, and \"\r\n + newFormat.format(salesCommission.get((int) displayIteration)) + \" in compensation. You are also responsible for \"\r\n + \"the first round of beer!\");\r\n } else {\r\n if (salesMax > salesNumber.get((int) displayIteration)) { //identifies values that missed the top sales position and \r\n salesDeficiency = salesMax - salesNumber.get((int) displayIteration); //displays a message stating how far off from top sdales value the seller was.\r\n System.out.println(salesName.get((int) displayIteration) + \", you are \" + newFormat.format(salesDeficiency)\r\n + \" behind the sales leader with \" + newFormat.format(salesNumber.get((int) displayIteration))\r\n + \" in sales and \" + newFormat.format(salesCommission.get((int) displayIteration)) + \" in compensation.\");\r\n }\r\n }\r\n return _item;\r\n }).forEach((_item) -> {\r\n displayIteration = displayIteration + 1; //counts the iteration for the for loop\r\n });\r\n }", "public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }", "public void printScores(String currentPlayerName) {\n System.out.println(\"SCORE BOARD:\");\n System.out.print(\"--------------------\");\n\n System.out.println(\"\\nTOP 5 SCORES OF CURRENT QUIZ TAKER\");\n\n // prints out the current quiz taker's name and top 5 highest scores in\n // descending order\n for (int i = 0; i < allQuizTakers.size() && allQuizTakers.size() > 0; i++) {\n if (allQuizTakers.get(i).getName().equals(currentPlayerName)) {\n System.out.println(allQuizTakers.get(i).toString());\n break;\n }\n }\n\n System.out.println(\"\\nHIGHEST SCORE EVER (\" + findHighestScore() + \") WAS ACHIEVED BY\");\n System.out.println(findHighestScorers());\n\n }", "public String findHighestScorers() {\n ArrayList<String> names = new ArrayList<String>();\n String theirNames = \"\";\n int highest = findHighestScore();\n for (int i = 0; i < allQuizTakers.size(); i++) {\n\n if (allQuizTakers.get(i).getScore(0).compareTo(highest) == 0) {\n //note that each quiz taker's arraylist of scores is already sorted in descending order post-constructor\n boolean alreadyThere = false;\n for(String name: names) {\n if(name.equals(allQuizTakers.get(i).getName())) {\n alreadyThere = true;\n }\n }\n if (!alreadyThere) {\n theirNames += allQuizTakers.get(i).getName() + \" \";\n names.add(allQuizTakers.get(i).getName());\n }\n }\n }\n return theirNames;\n }", "public void printAverageRatingsByYearAfterAndGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 1980;\n String genre = \"Romance\";\n \n AllFilters all_filter = new AllFilters();\n GenreFilter gf = new GenreFilter(genre);\n YearAfterFilter yf = new YearAfterFilter(year);\n \n all_filter.addFilter(yf);\n all_filter.addFilter(gf);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" + mov_year + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "void printMax(){\r\n\t\tSystem.out.printf(\"\\nThe stock with the highest value is \" + maxNode.stockName + \" with a value of $%.2f%n\",maxNode.stockValue);\r\n\t}", "public static void main(String[] args) {\n TopKStocksByVolume topKStocksByVolume = new TopKStocksByVolume();\n topKStocksByVolume.addStocksVolume(\"INTC\", 12);\n topKStocksByVolume.addStocksVolume(\"CSCO\", 20);\n topKStocksByVolume.addStocksVolume(\"AA\", 10);\n topKStocksByVolume.addStocksVolume(\"INTC\", 18);\n topKStocksByVolume.addStocksVolume(\"UAL\", 4);\n topKStocksByVolume.addStocksVolume(\"BOE\", 2);\n topKStocksByVolume.addStocksVolume(\"BOA\", 16);\n topKStocksByVolume.addStocksVolume(\"BOA\", 24);\n\n List<String> ans = topKStocksByVolume.topKstocks(5);\n\n System.out.println(\"Top 5 stocks are as follows: \");\n for (String stock : ans) {\n System.out.println(stock);\n }\n\n // BOA, INTC, CSCO, AA, UAL, BOE\n }", "public void printAverageRatingsByYear(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n Filter f = new YearAfterFilter(2000); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void showLargestComponent()\n {\n System.out.println(\"The most sociable community: \");\n\n Iterable<User> usersList = service.getLargestComponent();\n for(User u : usersList)\n System.out.println(u.toString());\n }", "private static void sortMovies(MovieSort movieSort) {\n\t\tList<Movie> movies = null;\n\t\t// Check the sorting method to see which comparator to use.\n\t\tif(movieSort == MovieSort.TA || movieSort == MovieSort.TD) {\n\t\t\tmovies = movieManager.getSortedMovies(new TitleComparator());\n\t\t} else if(movieSort == MovieSort.YA || movieSort == MovieSort.YD) {\n\t\t\tmovies = movieManager.getSortedMovies(new YearComparator());\n\t\t}\n\t\t// Make sure movies isn't null.\n\t\tif(movies != null) {\n\t\t\tprintln(\"Title Year Actors\");\n\t\t\tprintln(\"------------------------------------------------\"\n\t\t\t + \"-------------------------------------------\");\n\t\t\t// Check if we need to print in decrementing order.\n\t\t\tif(movieSort == MovieSort.TD || movieSort == MovieSort.YD) {\n\t\t\t\tfor(int i = movies.size() - 1; i >= 0; i--) {\n\t\t\t\t\tMovie movie = movies.get(i);\n\t\t\t\t\tprintMovieTab(movie);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor(Movie movie : movies) {\n\t\t\t\t\tprintMovieTab(movie);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private Artist[] getTop10(List<User> users){\n\t\tArtist[] top=new Artist[10];\n\t\tHashMap<Artist, Integer> rank=new HashMap<Artist,Integer>();\n\t\tfor(User u:users) {\n\t\t\tfor(int i=0;i<u.artists.size();i++) {\n\t\t\t\tArtist a=u.artists.get(i);\n\t\t\t\tInteger weight=rank.getOrDefault(a, 0);\n\t\t\t\trank.put(a, weight+u.artistsWeights.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<Artist>ranking=new ArrayList<Artist>();\n\t\tranking.addAll(rank.keySet());\n\t\tranking.sort((a1,a2)->rank.get(a2)-rank.get(a1));\n\t\tfor(int i=0;i<10;i++) {\n\t\t\ttop[i]=ranking.get(i);\n\t\t}\n\t\treturn top;\n\t\t\n\t}", "public static void printTopNItems(ArrayList<Item> items, int n) {\n for (Item item : getTopNItems(items, n)) {\n System.out.println(item);\n }\n }", "public void printAndDeleteHighestItem(){\n RankedItem highestItem = new RankedItem();\n\n //find the highest ranked item\n for (RankedItem rankedItem: rankedResults){\n if(rankedItem.getWin() >= highestItem.getWin()){\n highestItem = rankedItem;\n }\n }\n //print the highest ranked item if the item doesn't have all 0 values\n if(highestItem.getWin() != 0 || highestItem.getLoss() != 0 || highestItem.getTie() != 0) {\n resultList.append(highestItem.getItemText() + \"\\t\" +\n highestItem.getWin() + \"\\t\" +\n highestItem.getLoss() + \"\\t\" +\n highestItem.getTie() + \"\\n\");\n }\n //remove the highest ranked item from the list\n rankedResults.remove(highestItem);\n }", "public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public static void main(String [] args) {\n int[] ticket = fillTicket(TICKET_SIZE, MIN, MAX);\n Arrays.sort(ticket);\n int[] lotto = new int [TICKET_SIZE];\n int best = 0;\n long weeks = 0;\n boolean win = false;\n boolean showAllInput = Console.twoOptions(\"Yes\", \"No\", \"Do you want to see your ticket next to the winning numbers\\nevery time you get a bigger win than before?\", ERROR_MESSAGE_NOT_AN_OPTION);\n while(!win) {\n lotto = calculateLotto(TICKET_SIZE, MIN, MAX);\n weeks++;\n if(Arrays.containsSameValues(ticket, lotto) > best) {\n if(showAllInput) {\n System.out.print(\"\\nYour numbers: \");\n Arrays.printFilled(ticket, 2, '0');\n Arrays.sort(lotto);\n System.out.print(\"The winning numbers: \");\n Arrays.printFilled(lotto, 2, '0');\n System.out.println(); \n }\n best = Arrays.containsSameValues(ticket, lotto);\n int years = (int)(weeks / 52);\n String yearString = Integers.formatIntToString(years, 3);\n System.out.println(\"You got \" + best + \" right! It only took \" + yearString + \" years!\");\n if(Arrays.containsSameValues(ticket, lotto) == TICKET_SIZE && years <= 120) {\n win = true;\n } else if(Arrays.containsSameValues(ticket, lotto) == TICKET_SIZE) {\n System.out.println(\"\\nYou won!\\nIt's still more than a lifetime though, so let's try again!\\n\");\n best = 0;\n weeks = 0;\n }\n }\n }\n }", "public String tally (List<String> votes){\n\n int mostVotes = 0;\n String winner = \"\";\n\n //iterate each voting option\n for (String x : votes){\n //get frequency of each item.\n int freq = Collections.frequency(votes, x);\n // if greater, assign new winner and count\n if (freq > mostVotes) {\n mostVotes = freq;\n winner = x;\n }\n }\n //format output\n String output = winner + \" received the most votes!\";\n return output;\n }", "List<WordCount> topYMoviesReviewTopXWordsCount(final int topMovies, final int topWords) {\n List<String> topYMovies = new ArrayList<>();\n reviewCountPerMovieTopKMovies(topMovies).forEach(movie -> topYMovies.add(movie.getProductId()));\n // similar to moviesReviewWordsCount only filtered by pID\n JavaRDD<WordCount> wordCounts = movieReviews\n .filter(s-> topYMovies.contains(s.getMovie().getProductId()))\n .map(MovieReview::getReview)\n .flatMap(s-> Arrays.asList(s.split(\" \")))\n .mapToPair(s->new Tuple2<>(s, 1))\n .reduceByKey((a, b)-> a + b)\n .map(s->new WordCount(s._1(), s._2()));\n return wordCounts.top(getRealTopK(topWords, wordCounts.count()));\n }", "static void displayMaxProfitableStock(ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max profitable stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif((temp.valueInDollars()-temp.costInDollars()) < (array[i].valueInDollars()-array[i].costInDollars()))\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum profitable stock\r\n\t\tSystem.out.println(\"Maximum Profitable Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}", "public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n film f1[]= new film[5];\n int i=0;\n // nm,la,lng,cat;\n //int dur;\n for(i=0;i<5;i++)\n {\n System.out.println(\"Enter name, lead actor, language, category and duration\");\n f1[i] =new film();\n f1[i].name=br.readLine();\n f1[i].lead_actor=br.readLine();\n f1[i].language=br.readLine();\n f1[i].category=br.readLine();\n f1[i].duration= Integer.parseInt(br.readLine());\n \n }\n int p=0,d=0,k=0;\n System.out.println(\"All English Movies with Arnold:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].language).equalsIgnoreCase(\"English\") && (f1[i].lead_actor).equalsIgnoreCase(\"Arnold\")) {\n if(k==0)\n {\n d=f1[i].duration;\n p=i;\n }\n else\n {\n if(f1[i].duration<d)\n {\n d=f1[i].duration;\n p=i;\n }\n }\n \n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n else {\n System.out.println(f1[p]);\n }\n k=0;\n System.out.println(\"All Tamil Movies with Rajini:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].language).equalsIgnoreCase(\"Tamil\") && (f1[i].lead_actor).equalsIgnoreCase(\"Rajini\")) {\n System.out.println(f1[i]);\n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n k=0;\n System.out.println(\"All Comedy Movies:\");\n for(i=0;i<5;i++)\n {\n if((f1[i].category).equalsIgnoreCase(\"comedy\")) {\n System.out.println(f1[i]);\n k++;\n }\n }\n if(k==0)\n {\n System.out.println(\"None Found\\n\");\n }\n System.out.println(\"ALL MOVIES:\\n\");\n for(i=0;i<5;i++)\n {\n System.out.println(f1[i]);\n }\n }", "List<MovieCountedReview> reviewCountPerMovieTopKMovies(final int topK) {\n\n List<MovieCountedReview> list = new ArrayList<>();\n // check k validity\n int k = getRealTopK(topK, moviesCount());\n if (k > 0) {\n // map to pair of pID and 1\n // then reduce by key to count the reviews\n // then map to an RDD of a new CLASS that has a review comparator of it's own\n // get the topK from the RDD (collect)\n list = movieReviews\n .mapToPair(s -> new Tuple2<>(s.getMovie().getProductId(), 1))\n .reduceByKey((a, b) -> a + b)\n .map(s -> new MovieCountedReview(s._1(), s._2()))\n .top(k);\n }\n return list;\n }", "public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }", "public void printBestIndividual() {\n\t\tSystem.out.println(\"Finalizing\");\n\t\tQuoridorBoard board;\n\t\tfor (int t = 0; t < (Math.log(individuals.length) / Math.log(2)); t++) {\n\t\t\tfor (int i = 0; i < individuals.length - 1; i++) {\n\t\t\t\tif (individuals[i].fitness == t) {\n\t\t\t\t\tfor (int j = i + 1; j < individuals.length; j++) {\n\t\t\t\t\t\tif (individuals[j].fitness == t) {\n\t\t\t\t\t\t\tboard = new QuoridorBoard(individuals[i],\n\t\t\t\t\t\t\t\t\tindividuals[j]);\n\t\t\t\t\t\t\tboard.play();\n\t\t\t\t\t\t\tif (board.getWinner() != null) {\n\t\t\t\t\t\t\t\tAI winner = board.getWinner();\n\t\t\t\t\t\t\t\tAI loser = board.getLoser();\n\t\t\t\t\t\t\t\twinner.fitness++;\n\t\t\t\t\t\t\t\tindividuals[i] = winner;\n\t\t\t\t\t\t\t\tindividuals[j] = loser;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tFileWriter fstream = new FileWriter(\"evoOutput.txt\");\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\t\tint max1 = 0;\n\t\t\tint max2 = 0;\n\t\t\tAI best1 = new AI();\n\t\t\tAI best2 = new AI();\n\t\t\tfor (AI ai : individuals) {\n\t\t\t\tif (ai.fitness > max1) {\n\t\t\t\t\tmax1 = ai.fitness;\n\t\t\t\t\tbest1 = ai.clone();\n\t\t\t\t} else if (ai.fitness > max2) {\n\t\t\t\t\tmax2 = ai.fitness;\n\t\t\t\t\tbest2 = ai.clone();\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.write(best1.outputString() + \"\\r\\n\" + best2.outputString()\n\t\t\t\t\t+ \"\\r\\n\");\n\t\t\tout.close();\n\t\t\tSystem.out.println(\"Done\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t}", "public void printAverageRatingsByYear(){\n ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings.csv\");\r\n //ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings_short.csv\");\r\n \r\n // to oad movies\r\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\r\n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\r\n \r\n // to check equality of the size of the HashMap and files readed\r\n System.out.println(\"Movie size : \" + MovieDatabase.size());\r\n System.out.println(\"Rater size: \"+ MoviesRated.getRaterSize());\r\n \r\n //System.out.println(\"title: \"+ MoviesRated.getTitle(\"68646\"));\r\n //System.out.println(\"avg by ID: \"+ MoviesRated.getAverageByID(\"68646\",10));\r\n \r\n // to get avg ratings for the movies rated by \"n\" tarets: MoviesRated.getAverageRatings(n);\r\n ArrayList<Rating> avgMovieRatings = MoviesRated.getAverageRatingsByFilter(20,new YearAfterFilter(2000));\r\n \r\n // to print how many movies are get avg rating\r\n System.out.println(\"The # of movies with avg rating: \"+avgMovieRatings.size());\r\n \r\n //HashMap<String, Double> avgMovieRatings = MoviesRated.getAverageRatings(12);\r\n \r\n // to sort movies by ratings ascending\r\n Collections.sort(avgMovieRatings);\r\n \r\n // to print rating and title of each movie in the list\r\n for (Rating movie:avgMovieRatings){\r\n if (movie.getValue()>0){\r\n System.out.println(movie.getValue()+\": \"+ MovieDatabase.getTitle(movie.getItem()));} \r\n }\r\n \r\n //for (String movie:avgMovieRatings.keySet()){\r\n // if (avgMovieRatings.get(Movie)>0){\r\n // System.out.println(avgMovieRatings.get(Movie)+\": \"+ MoviesRated.getTitle(movie.getItem()));} \r\n //}\r\n \r\n \r\n }", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "protected void printBest(int n) {\n for (int i = 0; i < n; i++) {\n System.out.printf(\"%.5f\", individuals[i].score);\n if (i < n - 1)\n System.out.print(\", \");\n // forwardPropagate(i, input).printMatrix();\n // System.out.println();\n }\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "public void printAverageRatings(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatings(3);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public static void main(String[] args) {\n\t\tStack<Integer> stack = new Stack<>();\n\n\t\tMovie movie1 = new Movie(1, 1.2f);//A\n\t\tMovie movie2 = new Movie(2, 3.6f);//B\n\t\tMovie movie3 = new Movie(3, 2.4f);//C\n\t\tMovie movie4 = new Movie(4, 4.8f);//D\n\t\tmovie1.getSimilarMovies().add(movie2);\n\t\tmovie1.getSimilarMovies().add(movie3);\n\t\t\n\t\tmovie2.getSimilarMovies().add(movie1);\n\t\tmovie2.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie3.getSimilarMovies().add(movie1);\n\t\tmovie3.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie4.getSimilarMovies().add(movie2);\n\t\tmovie4.getSimilarMovies().add(movie3);\n\n\t\tSet<Movie> set = getMovieRecommendations (movie4, 3);\n\t\tfor(Movie m : set){\n\t\t\tSystem.out.println(\"\"+m.getId() +\", \"+ m.getRating());\t\n\t\t}\n\t\t\n\t}", "int getPopularity();", "public List<Integer> findTopGenesByPaperCnt( Integer n ) throws DAOException;", "public void printMovieWL(){\n\t\tfor (int i = 0; i < numMP; i++){\n\t\t\tSystem.out.println(\"Rank \" +(i+1)+ \": \" + moviePref[i].getName() + \", Availible: \" + moviePref[i].getHasMovie());\t\n\t\t} \n\t}", "public ArrayList<Movie> getTopMovies(int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "public void printAverageRatings(int minimalRaters) {\n String shortMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmovies_short.csv\";\n //String shortRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n String shortRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n\n //String bigMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigMovieCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n\n SecondRatings secondRatings = new SecondRatings(shortMovieCsv, shortRatingsCsv);\n //SecondRatings secondRatings = new SecondRatings(bigMovieCsv, bigRatingsCsv);\n\n System.out.println(\"Number of movies loaded from file: \" + secondRatings.getMovieSize());\n System.out.println(\"Number of raters loaded from file: \" + secondRatings.getRaterSize());\n\n ArrayList<Rating> ratingArrayList = secondRatings.getAverageRatings(minimalRaters);\n ratingArrayList.sort(Comparator.naturalOrder());\n System.out.println(\"Total of movies with at least \" + minimalRaters + \" raters: \" + ratingArrayList.size());\n for (Rating rating : ratingArrayList) {\n System.out.println(rating.getValue() + \" \" + secondRatings.getTitle(rating.getItem()));\n }\n }", "public static void main(String[] args) {\n\n int offerCnt = 3 ;\n\n int corollaMileage ;\n corollaMileage = 5000;\n\n int TVsize = 67;\n System.out.println(TVsize);\n\n\n System.out.println(offerCnt);\n System.out.println( corollaMileage );\n\n\n // name your favorite number\n // name your classmate count\n\n\n int my$FavoriteNumber = 4;\n int myClassmate_Count =270;\n\n System.out.println(my$FavoriteNumber );\n System.out.println(myClassmate_Count );\n\n\n int my$FolderCount = 6;\n my$FolderCount = 10;\n my$FolderCount = 100; // the last value win\n\n System.out.println(my$FolderCount); // poluchitsya 100\n\n\n\n\n }", "public void printAverageRatingsByDirectorsAndMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n MinutesFilter m = new MinutesFilter(90, 180);\n DirectorsFilter d = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Tim Burton,Ron Howard,Nora Ephron,Sydney Pollack\");\n f.addFilter(m);\n f.addFilter(d);\n int minRatings = 3;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" \n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "private void printMostVisited()\r\n\t{\r\n\t\tint greatestIndex = 0;\r\n\t\tint greatest = (int)webVisited[1][greatestIndex];\r\n\t\t\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif ((int)webVisited[1][i] > greatest)\r\n\t\t\t{\r\n\t\t\t\tgreatestIndex = i;\r\n\t\t\t\tgreatest = (int)webVisited[1][greatestIndex];\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Most visited website is: \" + webVisited[0][greatestIndex]);\r\n\t}", "public void printAverageRatingsByDirectors(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Martin Scorsese,Roman Polanski,Nora Ephron,Ridley Scott,Sydney Pollack\"); \n int minRatings = 4;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void makeTop()\n {\n top250 = new Movie[TOP_LENGTH];\n for (final Movie m : this)\n {\n final int rank = m.getRank();\n if (rank > 0 && rank <= TOP_LENGTH)\n {\n top250[rank - 1] = m;\n }\n }\n }", "public void printRatings() {\n // print the ratings\n // get the sparse matrix class\n // get the movie singly linked list\n // to string on each entry of the lists\n // Print out the reviewers and their count first\n ReviewerList rL = matrix.getReviewers();\n MSLList mL = matrix.getMovies();\n if (movieTable.getNumEntries() == 0 || reviewerTable\n .getNumEntries() == 0) {\n System.out.println(\"There are no ratings in the database\");\n return;\n }\n rL.printListAndCount();\n System.out.print(mL.printListAndReviews());\n }", "public void printAverageRatingsByMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new MinutesFilter(105, 135); \n int minRatings = 5;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "public void printAverageRatingsByYear(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 2000;\n \n YearAfterFilter year_filter = new YearAfterFilter(year);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, year_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_year + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n \n }", "public static void main(String[] args) {\n\n\t\tMovie[] hitMovies = new Movie[5];\n\t\thitMovies[0] = new Movie(\"명량\", 2014);\n\t\thitMovies[1] = new Movie(\"극한직업\", 2019);\n\t\thitMovies[2] = new Movie(\"신과함께\", 2017);\n\t\thitMovies[3] = new Movie(\"국제시장\", 2014);\n\t\thitMovies[4] = new Movie(\"베테랑\", 2015);\n\n\t\t// 이름\n\t\tInsertion.sort(hitMovies);\n\t\tfor (Movie e : hitMovies) {\n\t\t\tSystem.out.println(e);\n\t}\n\n\t\t// 연도\n\t\tInsertion.sort(hitMovies, new Movie.YearOrder());\n\t\tfor (Movie e : hitMovies) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t// 연도 - > 이름\n\t\tInsertion.sort(hitMovies, new Movie.YearNameOrder());\n\t\tfor (Movie e : hitMovies) {\n\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "@Override\n public Movie[] searchMostOf(Integer num, String type)\n {\n if(type == null || num < 1)\n return null;\n else if(num > this.getLength())\n num = this.getLength();\n\n Array<Movie> moviesByKey = new Array<Movie>(num);\n Movie[] moviesByKeyArray = new Movie[num];\n Array<Integer> indexes;\n int i = 0;\n\n switch(type)\n {\n case \"year\":\n indexes = new Array<Integer>(this.years.getNumMax(num));\n for(i = 0; i < num; i++)\n moviesByKey.set(i, this.movies.get(indexes.get(i)));\n break;\n\n case \"votes\":\n indexes = new Array<Integer>(this.votes.getNumMax(num));\n for(i = 0; i < num; i++)\n moviesByKey.set(i, this.movies.get(indexes.get(i)));\n break;\n\n default:\n }\n\n for(i = 0; i < num; i++)\n moviesByKeyArray[i] = moviesByKey.get(i);\n\n return moviesByKeyArray;\n }", "public void testLoadRaters () {\n ArrayList<Rater> raters = loadRaters(\"ratings\"); \n System.out.println(\"Número total de evaluadores: \" + raters.size()); \n HashMap<String, HashMap<String, Double>> hashmap = new HashMap<String, HashMap<String, Double>> ();\n \n for (Rater rater : raters) {\n HashMap<String, Double> ratings = new HashMap<String, Double> ();\n ArrayList<String> itemsRated = rater.getItemsRated();\n \n for (int i=0; i < itemsRated.size(); i++) {\n String movieID = itemsRated.get(i);\n double movieRating = rater.getRating(movieID);\n \n ratings.put(movieID, movieRating);\n }\n \n hashmap.put(rater.getID(), ratings);\n }\n \n String raterID = \"193\"; // rater_id\n int ratingsSize = hashmap.get(raterID).size();\n System.out.println(\"Número de calificaciones para el evaluador \" + raterID + \" : \" + ratingsSize); \n int maxNumOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (currAmountOfRatings > maxNumOfRatings) {\n maxNumOfRatings = currAmountOfRatings;\n }\n }\n \n System.out.println(\"Número máximo de calificaciones por cualquier evaluador: \" + maxNumOfRatings); \n ArrayList<String> raterWithMaxNumOfRatings = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (maxNumOfRatings == currAmountOfRatings) {\n raterWithMaxNumOfRatings.add(key);\n }\n }\n \n System.out.println(\"Evaluador (es) con la mayor cantidad de películas calificadas: \" + raterWithMaxNumOfRatings); \n String movieID = \"1798709\";\n int numOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n if(hashmap.get(key).containsKey(movieID)) {\n numOfRatings +=1;\n }\n }\n \n System.out.println(\"Número de clasificaciones de la película \" + movieID + \" tiene : \" + numOfRatings); \n ArrayList<String> uniqueMovies = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n for (String currMovieID : hashmap.get(key).keySet()) {\n if (! uniqueMovies.contains(currMovieID)) {\n uniqueMovies.add(currMovieID);\n }\n }\n }\n \n System.out.println(\"Número total de películas unicas calificadas: \" + uniqueMovies.size());\n }", "public static void topXSimpleLTVCustomer(int x,Data data){\n ArrayList<OutPut> outputlist = new ArrayList<OutPut>();\n HashMap<String, HashMap<Long, ArrayList<Order>>> hashmap = data.getOrderdata();;\n\n //getting all customers output and storing them in the arraylist\n for(String customers: hashmap.keySet()){\n //System.out.println(\"customers : \"+customers);\n HashMap<Long, ArrayList<Order>> hashmapweeknumber = hashmap.get(customers);\n double sum =0;\n double a = 0;\n int weekNumbersSize = hashmapweeknumber.size();\n double sumCustomerExpenditurePerVisit = 0;\n for(long weeknumbers: hashmapweeknumber.keySet()){\n //System.out.println(\"weeknumbers : \"+weeknumbers);\n ArrayList<Order> orders = hashmapweeknumber.get(weeknumbers);\n int size = orders.size();\n int i=0;\n double customerExpendituresPerVisit = 0;\n int totalNumberOfVisits= size;\n while(i<size) {\n sum = sum + orders.get(i).getTotal_amount();\n i++;\n }\n customerExpendituresPerVisit = sum/size;\n sumCustomerExpenditurePerVisit = sumCustomerExpenditurePerVisit + customerExpendituresPerVisit;\n //System.out.println(sum/size);\n }\n //a contains the average customer value per week\n a = sumCustomerExpenditurePerVisit/weekNumbersSize;\n //simpleLTF contains the life time customer value\n double simpleLTF = (52*a)*10;\n OutPut output = new OutPut();\n output.setCustomer_id(customers);\n output.setCustomer_ltf(simpleLTF);\n outputlist.add(output);\n }\n\n //Sorts all the custoemrs in the arraylist.\n Collections.sort(outputlist, new OutputSorter());\n //getting the top x customers from all the customers\n if(outputlist.size()<x){\n System.out.println(\"number of of customers in the data are less than x value, please provide smaller x value\");\n }else{\n System.out.println(\"\");\n System.out.println(\"Top \"+x+\" customers with highest Simple LTV are : \");\n\n for(int i=0; i<x;i++){\n System.out.println(outputlist.get(i).getCustomer_id()+\" : \"+outputlist.get(i).getCustomer_ltf());\n }\n }\n\n }", "private String printTopKLabels() {\n for (int i = 0; i < labelList.size(); ++i) {\n sortedLabels.add(\n new AbstractMap.SimpleEntry<>(labelList.get(i), labelProbArray[0][i]));\n if (sortedLabels.size() > RESULTS_TO_SHOW) {\n sortedLabels.poll();\n }\n }\n String textToShow = \"\";\n final int size = sortedLabels.size();\n for (int i = 0; i < size; ++i) {\n Map.Entry<String, Float> label = sortedLabels.poll();\n textToShow = String.format(\"\\n%s: %4.2f\",label.getKey(),label.getValue()) + textToShow;\n }\n return textToShow;\n }", "public ArrayList<Movie> getTopMovies(String genre, int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies, movie_genres \"\n + \"WHERE movieID=id AND genre LIKE '%\" + genre + \"%' \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }", "public Artist[] getTop10() {\n\t\tArrayList<User> users=new ArrayList<User>();\n\t\tusers.addAll(this.users.values());\n\t\treturn getTop10(users);\n\t}", "private void print() {\r\n // Print number of survivors and zombies\r\n System.out.println(\"We have \" + survivors.length + \" survivors trying to make it to safety (\" + childNum\r\n + \" children, \" + teacherNum + \" teachers, \" + soldierNum + \" soldiers)\");\r\n System.out.println(\"But there are \" + zombies.length + \" zombies waiting for them (\" + cInfectedNum\r\n + \" common infected, \" + tankNum + \" tanks)\");\r\n }", "public String getBestActor() {\n\t\tdouble max = 0;\n\t\tString bestActor = \"\";\n\t\tfor(Actor actor : this.actorList) {\n\t\t\tdouble averageRating = 0;\n\t\t\tfor(Movie movie : actor.getMovies()) {\n\t\t\t\taverageRating += movie.getRating() / actor.getMovies().size();\n\t\t\t}\n\t\t\tif(averageRating > max) {\n\t\t\t\tmax = averageRating;\n\t\t\t\tbestActor = actor.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestActor;\n\t}", "public ArrayList<Double> getFiveHighestScore() {\n int size = scoreList.size();\n ArrayList<Double> fiveHighestList = new ArrayList<>();\n if (size <= 5) {\n for (Double score: scoreList) {\n fiveHighestList.add(score);\n }\n } else {\n for (int i = 0; i < 5; i++)\n fiveHighestList.add(scoreList.get(i));\n }\n return fiveHighestList;\n }", "public void printAverageRatingsByDirectorsAndMinutes(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String[] directors = {\"Spike Jonze\",\"Michael Mann\",\"Charles Chaplin\",\"Francis Ford Coppola\"};\n int min = 30;\n int max = 170;\n \n AllFilters all_filter = new AllFilters();\n MinutesFilter mins_filter = new MinutesFilter(min, max);\n DirectorsFilter dir_filter = new DirectorsFilter(directors);\n \n all_filter.addFilter(mins_filter);\n all_filter.addFilter(dir_filter);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_dirs = database.getDirector(rating.getItem());\n \n int mov_mins = database.getMinutes(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_dirs + \"\\t\" + mov_mins + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0;\n int x = scores.size();\n if (x > max) {\n x = max;\n } \n while (i < x) {\n \t str += (i + 1) + \".\\t \" + scores.get(i).getNaam() + \"\\t\\t \" + scores.get(i).getScore() + \"\\n\";\n i++;\n }\n if(x == 0) str = \"No scores for \"+SlidePuzzleGUI.getRows()+\"x\"+SlidePuzzleGUI.getCols()+ \" puzzle!\";\n return str;\n }", "static void displayMaxValue (ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max value stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif(temp.valueInDollars() < array[i].valueInDollars())\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum value stock\r\n\t\tSystem.out.println(\"Maximum Value Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}", "private int getGenreDownloadedMostByAllUsers(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query query = session.createQuery(\"SELECT mvd, mvd.musicVideo.genre.id, count(*) FROM MusicVideoDownload mvd JOIN FETCH mvd.musicVideo GROUP BY mvd.musicVideo.genre.id ORDER BY count(*) DESC\") ;\n query.setMaxResults(1) ;\n List resultSet = query.list() ;\n session.close() ;\n //if there is no result set, it means there are no downloads so return -1\n if(resultSet.isEmpty())\n return -1 ;\n //else return the genre id field of the first tuple since the result set has been sorted in desc order\n Object[] tupleFields = (Object[])resultSet.get(0) ;\n return (int)tupleFields[1] ;\n }", "private void sortRating()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getRating().compareTo(b.getRating());\n if(result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public void printVotingQuestions(){\n int i=0;\n System.out.println(\"Question\");\n for (Voting v:votingList) {\n System.out.println(i+\":\"+v.getQuestion());\n i++ ;\n }\n }", "public static void main(String[] args)\r\n {\n List<Film> films = getFilms();\r\n //Gets list of days starting from today\r\n List<String> days = getDays();\r\n //set scanner\r\n Scanner input = new Scanner(System.in);\r\n //gets film selection, end code if they pick (q)uit\r\n int film = whichFilm(input, films);\r\n if (film == -1)\r\n return;\r\n else\r\n System.out.println(\"You selected to watch \" + films.get(film) + \"\\n\");\r\n //gets day selection, end code if they pick (q)uit\r\n int day = whichDay(input, days, films.get(film));\r\n if (day == -1)\r\n return;\r\n else\r\n System.out.println(\"You selected \" + days.get(films.get(film).getShowingDays()[day]) + \"\\n\");\r\n //gets time selection, end code if they pick (q)uit\r\n int showingTime = whichTime(input, films.get(film));\r\n if (showingTime == -1)\r\n return;\r\n else\r\n System.out.println(\"You selected the time \" + films.get(film).getShowingTimes().get(showingTime) + \"\\n\");\r\n //gets number of tickets for each ticket type\r\n int[] numberOfTickets = whichTickets(input);\r\n //gets list of tickets with ticket type, ticket price, film name, showing day, showing time\r\n List<Ticket> order = assignTickets(numberOfTickets, films.get(film).getFilmName(), days.get(day), films.get(film).getShowingTimes().get(showingTime));\r\n\r\n orderSummery(order);\r\n }", "public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}", "@Test\n\tpublic void mostPopularBike()\n\t{\t\t\n\t\tassertEquals(controller.getReport().getMostPopularBike(), \"BIKE1\");\n\t}", "private static void printMovieTab(Movie movie) {\n\t\tString title = movie.getTitle();\n\t\tint year = movie.getYear();\n\t\tString actors = formatActorsString(movie.getActors());\n\t\tprintln(padMovieTitle(title) + \" \" + year + \" \" + actors);\n\t}", "public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}" ]
[ "0.7383868", "0.6462457", "0.6451904", "0.64252186", "0.6367487", "0.62219787", "0.6156567", "0.6143282", "0.6095761", "0.6085492", "0.6065349", "0.5886168", "0.5880396", "0.585224", "0.5838022", "0.5819576", "0.5799105", "0.5793464", "0.5784106", "0.5754854", "0.5752323", "0.5751653", "0.5721304", "0.5696445", "0.5690012", "0.5655518", "0.56446546", "0.56371003", "0.5619011", "0.5619011", "0.5619011", "0.55880636", "0.55828196", "0.55514866", "0.55444795", "0.5542586", "0.55404794", "0.553518", "0.55302477", "0.5514511", "0.54890907", "0.5478134", "0.547733", "0.54739887", "0.54610234", "0.5459391", "0.5442473", "0.5415217", "0.5413473", "0.54128873", "0.54102457", "0.54014605", "0.5396208", "0.5389457", "0.5374955", "0.5374232", "0.53730214", "0.5370244", "0.5367143", "0.5365951", "0.53632516", "0.5361878", "0.5361496", "0.53496414", "0.5342731", "0.53416336", "0.5310559", "0.530869", "0.5300913", "0.53004587", "0.52960294", "0.5295988", "0.5291896", "0.5287062", "0.52743334", "0.52710694", "0.5263342", "0.52567375", "0.52535325", "0.52504635", "0.52326524", "0.52265644", "0.5219891", "0.5216518", "0.5216442", "0.5211193", "0.52022296", "0.5201907", "0.51938003", "0.5192421", "0.5191203", "0.518292", "0.51731503", "0.5171545", "0.5170216", "0.51675165", "0.51621217", "0.5149651", "0.51449573", "0.5143553" ]
0.7273191
1
method to compare the ratings of 2 movies
public int compare(Movie a, Movie b) { double aRating = a.computeRating(); double bRating = b.computeRating(); if (aRating>bRating) return -1; else if (aRating<bRating) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int compare(Movie o1, Movie o2) {\n\t\t\r\n\t\tif(o1.getRating()<o2.getRating()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif(o1.getRating()>o2.getRating()) {\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "@Test\n public void testGetRating() {\n final double expectedRating = 0.0;\n assertEquals(expectedRating, movie1.getRating(), expectedRating);\n assertEquals(expectedRating, movie2.getRating(), expectedRating);\n assertEquals(expectedRating, movie3.getRating(), expectedRating);\n assertEquals(expectedRating, movie4.getRating(), expectedRating);\n }", "private void sortRating()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getRating().compareTo(b.getRating());\n if(result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public int compareTo(Movie m)\n\t{\n\t\treturn this.year - m.year; //by year\n\t\t//return (int)this.name - m.name; //by name\n\t\t//return (int)(10*(this.rating - m.rating)); //by rating\n\t}", "public void getAverageRatingOneMovie() {\n String shortMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmovies_short.csv\";\n //String shortRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n String shortRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n //String bigMovieCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_file_test.csv\";\n\n SecondRatings secondRatings = new SecondRatings(shortMovieCsv, shortRatingsCsv);\n //SecondRatings secondRatings = new SecondRatings(bigMovieCsv, bigRatingsCsv);\n\n String movieId = secondRatings.getID(\"Vacation\");\n ArrayList<Rating> ratingArrayList = secondRatings.getAverageRatings(1);\n for (Rating rating : ratingArrayList) {\n if (rating.getItem().contains(movieId)) {\n System.out.println(secondRatings.getTitle(movieId) + \" has average rating: \" + rating.getValue());\n }\n }\n }", "public void printAverageRatings(int minimalRaters) {\n String shortMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmovies_short.csv\";\n //String shortRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n String shortRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings_short.csv\";\n\n //String bigMovieCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigMovieCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratedmoviesfull.csv\";\n //String bigRatingsCsv = \"C:/Users/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n //String bigRatingsCsv = \"/home/greg/IdeaProjects/capstone-coursera/data/ratings.csv\";\n\n SecondRatings secondRatings = new SecondRatings(shortMovieCsv, shortRatingsCsv);\n //SecondRatings secondRatings = new SecondRatings(bigMovieCsv, bigRatingsCsv);\n\n System.out.println(\"Number of movies loaded from file: \" + secondRatings.getMovieSize());\n System.out.println(\"Number of raters loaded from file: \" + secondRatings.getRaterSize());\n\n ArrayList<Rating> ratingArrayList = secondRatings.getAverageRatings(minimalRaters);\n ratingArrayList.sort(Comparator.naturalOrder());\n System.out.println(\"Total of movies with at least \" + minimalRaters + \" raters: \" + ratingArrayList.size());\n for (Rating rating : ratingArrayList) {\n System.out.println(rating.getValue() + \" \" + secondRatings.getTitle(rating.getItem()));\n }\n }", "public int compare(Photograph a, Photograph b) {\n int returnVal = a.getCaption().compareTo(b.getCaption());\n if (returnVal != 0) {\n return returnVal;\n }\n returnVal = b.getRating() - a.getRating();\n return returnVal; \n }", "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"+ movie.getName()+'\\n'+\"Times Watched: \"+ movie.getTimesWatched()+'\\n');\r\n }\r\n }", "public void similar(String tableName, String name) {\n String simName = null;\n float score = 11;\n float val = 0;\n int simCount = 0;\n if (tableName.equals(\"reviewer\")) {\n if (matrix.getReviewers().contains(name) != null) {\n // Node with the reference to the list we are comparing other\n // lists to\n ReviewerList.Node n = matrix.getReviewers().contains(name);\n // Gets the head to the DLList that we are comparing other lists\n // to\n Node<Integer> node = n.getList().getHead();\n // The first node in the reviewer list\n ReviewerList.Node n1 = matrix.getReviewers().getHead();\n // Iterates through the lists we are comparing to this list\n while (n1 != null) {\n if (n.equals(n1)) {\n n1 = n1.getNext();\n }\n else {\n RDLList<Integer> simList = n1.getList();\n Node<Integer> simNode = null;\n node = n.getList().getHead();\n // Going through this list to find matching movies in\n // simList\n while (node != null) {\n simNode = simList.containsMovie(node\n .getMovieName());\n if (simNode != null) {\n simCount++;\n // Compute the score\n // Add the name and score to the array\n val += Math.abs(simNode.getValue() - node\n .getValue());\n }\n node = node.getNextMovie();\n }\n if (simCount != 0 && (val / simCount) < score) {\n simName = simList.getHead().getReviewerName();\n score = val / simCount;\n }\n val = 0;\n simCount = 0;\n n1 = n1.getNext();\n }\n }\n\n printSimilar(\"reviewer\", name, simName, score);\n }\n else {\n System.out.println(\"Reviewer |\" + name\n + \"| not found in the database.\");\n }\n }\n else {\n if (matrix.getMovies().contains(name) != null) {\n // Node with the reference to the list we are comparing\n // other lists to\n MSLList.Node n = matrix.getMovies().contains(name);\n // Gets the head to the DLList that we are comparing other\n // lists\n // to\n Node<Integer> node = n.getList().getHead();\n // The first node in the reviewer list\n MSLList.Node n1 = matrix.getMovies().getHead();\n // Iterates through the lists we are comparing to this list\n while (n1 != null) {\n if (n.equals(n1)) {\n n1 = n1.getNext();\n }\n else {\n MDLList<Integer> simList = n1.getList();\n Node<Integer> simNode = null;\n // Going through this list to find matching movies\n // in simList\n node = n.getList().getHead();\n while (node != null) {\n simNode = simList.containsReviewer(node\n .getReviewerName());\n if (simNode != null) {\n simCount++;\n // Compute the score\n // Add the name and score to the array\n val += Math.abs(simNode.getValue() - node\n .getValue());\n }\n node = node.getNextReviewer();\n }\n if (simCount != 0 && (val / simCount) < score) {\n simName = simList.getHead().getMovieName();\n score = val / simCount;\n }\n val = 0;\n simCount = 0;\n n1 = n1.getNext();\n }\n }\n printSimilar(\"movie\", name, simName, score);\n }\n else {\n System.out.println(\"Movie |\" + name\n + \"| not found in the database.\");\n }\n }\n }", "@Test\n public void testSetRating() {\n final double delta = 0.0;\n final double expectedRating1 = 70.0;\n final double expectedRating2 = 65.0;\n final double expectedRating3 = 85.5;\n movie1.setRating(expectedRating1);\n movie2.setRating(expectedRating2);\n movie3.setRating(expectedRating1);\n movie4.setRating(expectedRating3);\n movie1.setRating(expectedRating2);\n assertEquals(expectedRating2, movie1.getRating(), delta);\n assertEquals(expectedRating2, movie2.getRating(), delta);\n assertEquals(expectedRating1, movie3.getRating(), delta);\n assertEquals(expectedRating3, movie4.getRating(), delta);\n }", "public int compareTo(Review other) {\n if (this.rating < other.rating) {\n return -1;\n } else if (this.rating > other.rating) {\n return 1;\n } else {\n return 0;\n }\n }", "public int compare(Movie a, Movie b) {\n\t\tif (a.getTicketSales()>b.getTicketSales())\n\t\t\treturn -1;\n\t\telse if (a.getTicketSales()<b.getTicketSales())\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int compare(identified_crystal a, identified_crystal b) \n\t { \n\n\t \treturn a.rating - b.rating; \n\t }", "public void printAverageRatingsByYearAfterAndGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 1980;\n String genre = \"Romance\";\n \n AllFilters all_filter = new AllFilters();\n GenreFilter gf = new GenreFilter(genre);\n YearAfterFilter yf = new YearAfterFilter(year);\n \n all_filter.addFilter(yf);\n all_filter.addFilter(gf);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" + mov_year + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "@Override\r\n\t\tpublic int compare(Details d1, Details d2) {\n\t\t\tif (d1.rating == d2.rating)\r\n\t\t\t\treturn 0;\r\n\t\t\telse if (d1.rating < d2.rating)\r\n\t\t\t\treturn 1;\r\n\t\t\telse\r\n\t\t\t\treturn -1;\r\n\t\t}", "public void printAverageRatings(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n \n int minRatings = 35;\n ArrayList<Rating> aveRat = sr.getAverageRatings(minRatings);\n System.out.println(\"Number of ratings at least \" + minRatings + \": \" + aveRat.size());\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \" : \" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n// Filter f = new AllFilters();\n// f.addFilter(new YearsAfterFilter(2001));\n ArrayList<String> movies = MovieDatabase.filterBy(new YearAfterFilter(2001)); \n int c = 0;\n for(Rating r: aveRat){\n if(movies.contains(r.getItem())){c++;}\n }\n System.out.println(\"Number of ratings at least \" + minRatings + \" and made on or after 2001 : \" + c);\n System.out.println(\"-------------------------------------\");\n \n \n \n }", "public void printAverageRatingsByDirectorsAndMinutes(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String[] directors = {\"Spike Jonze\",\"Michael Mann\",\"Charles Chaplin\",\"Francis Ford Coppola\"};\n int min = 30;\n int max = 170;\n \n AllFilters all_filter = new AllFilters();\n MinutesFilter mins_filter = new MinutesFilter(min, max);\n DirectorsFilter dir_filter = new DirectorsFilter(directors);\n \n all_filter.addFilter(mins_filter);\n all_filter.addFilter(dir_filter);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_dirs = database.getDirector(rating.getItem());\n \n int mov_mins = database.getMinutes(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_dirs + \"\\t\" + mov_mins + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public void getSimilarity(){\r\n\t\tfor(Integer i : read.rateMap.keySet()){\r\n\t\t\tif(i != this.userID){\r\n\t\t\t\t//Calculate the average rate.\r\n\t\t\t\tdouble iAverage = average.get(i);\r\n\t\t\t\tdouble a = 0.0;\r\n\t\t\t\tdouble b = 0.0;\r\n\t\t\t\tdouble c = 0.0;\r\n\t\t\t\t//Set a flag by default meaning the user does not have common rate with this user.\r\n\t\t\t\tboolean intersection = false;\r\n\t\t\t\tArrayList<Map.Entry<String, Double>> list = read.rateMap.get(i);\r\n\t\t\t\tfor(int j = 0; j < list.size(); j++){\r\n\t\t\t\t\tdouble userRate = 0;\r\n\t\t\t\t\tif(ratedID.contains(list.get(j).getKey())){\r\n\t\t\t\t\t\t//The user has common rated movies with this user\r\n\t\t\t\t\t\tintersection = true;\r\n\t\t\t\t\t\tfor(int k = 0; k < read.rateMap.get(userID).size(); k++){\r\n\t\t\t\t\t\t\tif(read.rateMap.get(userID).get(k).getKey().equals(list.get(j).getKey())){\r\n\t\t\t\t\t\t\t\tuserRate = read.rateMap.get(userID).get(k).getValue();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ta += (list.get(j).getValue() - iAverage) * (userRate- this.userAverageRate);\r\n\t\t\t\t\t\tb += (list.get(j).getValue() - iAverage) * (list.get(j).getValue() - iAverage);\r\n\t\t\t\t\t\tc += (userRate - this.userAverageRate) * (userRate - this.userAverageRate);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//Check if this user rated all the movies with the same rate.\r\n\t\t\t\tif(intersection && c == 0){\r\n\t\t\t\t\tfuckUser = true;//really bad user.\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} \r\n\t\t\t\t//Check if current user rated all the movies with the same rate. If so, just set similarity as 0.\r\n\t\t\t\tif(intersection && b != 0){\r\n\t\t\t\t\tdouble s = a / (Math.sqrt(b) * Math.sqrt(c));\r\n\t\t\t\t\tsimilarity.put(i, s);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdouble s = 0;\r\n\t\t\t\t\tsimilarity.put(i, s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Create a heap storing the similarity pairs in a descending order.\r\n\t\tthis.heap = new ArrayList<Map.Entry<Integer, Double>>();\r\n\t\tIterator<Map.Entry<Integer, Double>> it = similarity.entrySet().iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tMap.Entry<Integer, Double> newest = it.next();\r\n\t\t\theap.add(newest);\r\n\t\t}\r\n\t\tCollections.sort(this.heap, new Comparator<Map.Entry<Integer, Double>>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Map.Entry<Integer, Double> a, Map.Entry<Integer, Double> b){\r\n\t\t\t\treturn -1 * (a.getValue().compareTo(b.getValue()));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void printAverageRatings(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatings(3);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "public double guessRating(int userID, int movieID) {\n\t\tMovie movie = null;\n\t\tUser user = null;\n\t\tdouble avgRating = 0;\n\t\tfor(Rating r : ratings) {\n\t\t\tavgRating += r.getRating();\n\t\t}\n\t\tavgRating /= ratings.size();\n\t\tfor(Movie m : movies) {\n\t\t\tif(m.getId() == movieID) {\n\t\t\t\tmovie = m;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor(User m : users) {\n\t\t\tif(m.getId() == userID) {\n\t\t\t\tuser = m;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tdouble movieAvg = movie.getAverageRating();\n\t\tdouble userAvg = user.getAverageRating();\n\t\tdouble userStdDeviationFromAvg = user.standardDeviationFromAvg();\n\n\t\tdouble userGenreAvg = 0;\n\t\tint count = 0;\n\t\tfor(Genre g : movie.getGenres()) {\n\t\t\tdouble x = user.genreAvgRating(g);\n\t\t\tif(x != 0) {\n\t\t\t\tuserGenreAvg += x;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count != 0)\n\t\t\tuserGenreAvg /= count;\n\t\telse\n\t\t\tuserGenreAvg = userAvg;\n\n\n\t\tArrayList<User> similar = findSimilarUsers(user);\n\t\tif(similar.size() > 20) {\n\t\t\tdouble similarAvg = 0;\n\t\t\tint divisor = 0;\n\t\t\tfor(User u : similar) {\n\t\t\t\tArrayList<Rating> rates = u.getRatings();\n\t\t\t\tint ind = Collections.binarySearch(rates, new Rating(u.getId(), movie.getId()));\n\t\t\t\tif(ind >= 0) {\n\t\t\t\t\tsimilarAvg += rates.get(ind).getRating();\n\t\t\t\t\tdivisor++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(divisor > 20) {\n\t\t\t\t//\t\t\t\t0.7101228845726688\n\t\t\t\tsimilarAvg /= divisor;\n\t\t\t\treturn similarAvg;\n\t\t\t}\n\t\t}\n\n\t\tdouble rating1 = userStdDeviationFromAvg + movieAvg;\n\t\tdouble rating2 = userGenreAvg;\n\n\t\tif(rating1 < 1)\n\t\t\trating1 = 1;\n\t\telse if(rating1 > 5)\n\t\t\trating1 = 5;\n\n\t\tdouble finalRating = 0.3 * rating1 + 0.7 * rating2;\n\t\t//\t\tSystem.out.println(finalRating);\n\n\n\t\treturn finalRating;\n\t}", "public void printAverageRatingsByDirectors(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String[] directors = {\"Charles Chaplin\",\"Michael Mann\",\"Spike Jonze\"};\n \n DirectorsFilter dir_filter = new DirectorsFilter(directors);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, dir_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_dir = database.getDirector(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_dir + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }", "private ArrayList<Rating> getSimilarities(String id){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n RaterDatabase database = new RaterDatabase();\n database.initialize(ratingsfile);\n \n ArrayList<Rating> dot_list = new ArrayList<Rating>();\n \n Rater me = database.getRater(id);\n \n for (Rater rater : database.getRaters()){\n \n if(rater != me){\n \n double dot_product = dotProduct(me, rater);\n \n if (dot_product >= 0.0){\n \n Rating new_rating = new Rating(rater.getID() , dot_product);\n \n dot_list.add(new_rating);\n }\n \n }\n \n }\n \n Collections.sort(dot_list , Collections.reverseOrder());\n \n return dot_list;\n \n }", "@Override\n\tpublic int compare(Movie o1, Movie o2) {if (o1.getYear() > o2.getYear())\n//\t\t\treturn 1;\n//\t\tif (o1.getYear() < o2.getYear()) \n//\t\t\treturn -1;\n//\t\telse \n//\t\t\treturn 0;\n//\t\t\n\t\treturn o1.getYear() - o2.getYear();\n\t}", "public void printAverageRatingsByYear(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 2000;\n \n YearAfterFilter year_filter = new YearAfterFilter(year);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, year_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_year + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n \n }", "private double dotProduct(Rater me,Rater other) {\n double p=0;\n //int count=Math.min(me.numRatings(), other.numRatings());//this approach failed instead now i search all the ratings done by 'me' rater object\n ArrayList<String> myRatedMovieID=me.getItemsRated();//here string in arraylist represents movie id\n for(int k=0;k<myRatedMovieID.size();k++)\n {\n String myMovieID=myRatedMovieID.get(k);\n if(other.hasRating(myMovieID))//agar mera movie id dusra ka paas hai to \n {\n double myrating=me.getRating(myMovieID)-5;//mera rating lo usme 5 ghatao\n double otherrating=other.getRating(myMovieID)-5;//dusra ka wahi movie ka rating lo aur 5 ghatao\n p=p+(myrating*otherrating);//uske baad dot product kar do\n }\n }\n return p;\n }", "@Override\n\t//o1 > o2 如果返回正数则 升序。\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tint ret = 1;\n\t\tif(o1.getRatingNum() > o2.getRatingNum()){\n\t\t\t//键入中文的负号,竟然是一个运行时错误。\n\t\t\tret = -1;\n\t\t}else if(o1.getRatingNum() == o2.getRatingNum()){\n\t\t\tret = 0;\n\t\t}\n\t\treturn ret;\n\t\t//下一句有double类型的舍入误差。\n\t\t//return (int) (o1.getRatingNum() - o2.getRatingNum());\n\t}", "public void compareRating (List<Doctor> dl, Doctor d)\n\t{\n\t\tfor(Doctor ld: dl)\n\t\t{\n\t\t\trnkMap.put(ld,ld.getRating());\n\t\t}\n\t\t\n\t}", "public boolean updateRating(String t, int r)\n\t{\n\t\tif(r<0 || r>100 || !containsMovie(t))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t//update rating\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getTitle().equals(t))\n\t\t\t{\n\t\t\t\ttemp_movie.setRating(r);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public Double calculateSimilarity(OWLObject a, OWLObject b);", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "@Override\n public int compare(AbstractMovie o1, AbstractMovie o2) {\n return o1.getAwardMap().size() - o2.getAwardMap().size();\n }", "@RequestMapping(value = \"get_items_similarity\",headers=\"Accept=*/*\", method={RequestMethod.GET},produces=\"application/json\")\n\t@ResponseBody\n\tpublic double getItemsSimilarity(@RequestParam(\"title1\") String title1,\n\t\t\t@RequestParam(\"title2\") String title2){\n\t\t//:TODO your implementation\n\t\tdouble ret = 0.0;\n\t\t\n\t\tUser[] usersObj1 = getUsersByItem(title1);\n\t\tUser[] usersObj2 = getUsersByItem(title2);\n\t\t\n\t\tArrayList<String> users1 = new ArrayList<String>();\n\t\tArrayList<String> users2 = new ArrayList<String>();\n\t\t\n\t\t// get usernames to arrays of string names\n\t\tfor (User user : usersObj1){\n\t\t\tusers1.add(user.getUsername());\n\t\t}\n\t\t\n\t\tfor (User user : usersObj2){\n\t\t\tusers2.add(user.getUsername());\n\t\t}\n\t\t\n\t\t// Intersection list\n\t\tSet<String> intersectionSet = users1.stream()\n\t\t\t\t .distinct()\n\t\t\t\t .filter(users2::contains)\n\t\t\t\t .collect(Collectors.toSet());\n\t\t\n\t\t// get sets of users by two titles \n\t\tSet<String> U1 = new HashSet<String>(users1);\n\t\tSet<String> U2 = new HashSet<String>(users2);\n\t\t\n\t\tU1.addAll(U2); // union\n\t\t\n\t\tif(U1.size() == 0) {\n\t\t\treturn ret;\n\t\t}\n\t\t\n\t\tret = ((double) intersectionSet.size()) / ((double) U1.size());\n\t\t\n\t\treturn ret;\n\t}", "public void testLoadRaters () {\n ArrayList<Rater> raters = loadRaters(\"ratings\"); \n System.out.println(\"Número total de evaluadores: \" + raters.size()); \n HashMap<String, HashMap<String, Double>> hashmap = new HashMap<String, HashMap<String, Double>> ();\n \n for (Rater rater : raters) {\n HashMap<String, Double> ratings = new HashMap<String, Double> ();\n ArrayList<String> itemsRated = rater.getItemsRated();\n \n for (int i=0; i < itemsRated.size(); i++) {\n String movieID = itemsRated.get(i);\n double movieRating = rater.getRating(movieID);\n \n ratings.put(movieID, movieRating);\n }\n \n hashmap.put(rater.getID(), ratings);\n }\n \n String raterID = \"193\"; // rater_id\n int ratingsSize = hashmap.get(raterID).size();\n System.out.println(\"Número de calificaciones para el evaluador \" + raterID + \" : \" + ratingsSize); \n int maxNumOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (currAmountOfRatings > maxNumOfRatings) {\n maxNumOfRatings = currAmountOfRatings;\n }\n }\n \n System.out.println(\"Número máximo de calificaciones por cualquier evaluador: \" + maxNumOfRatings); \n ArrayList<String> raterWithMaxNumOfRatings = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n int currAmountOfRatings = hashmap.get(key).size();\n \n if (maxNumOfRatings == currAmountOfRatings) {\n raterWithMaxNumOfRatings.add(key);\n }\n }\n \n System.out.println(\"Evaluador (es) con la mayor cantidad de películas calificadas: \" + raterWithMaxNumOfRatings); \n String movieID = \"1798709\";\n int numOfRatings = 0;\n \n for (String key : hashmap.keySet()) {\n if(hashmap.get(key).containsKey(movieID)) {\n numOfRatings +=1;\n }\n }\n \n System.out.println(\"Número de clasificaciones de la película \" + movieID + \" tiene : \" + numOfRatings); \n ArrayList<String> uniqueMovies = new ArrayList<String> ();\n \n for (String key : hashmap.keySet()) {\n for (String currMovieID : hashmap.get(key).keySet()) {\n if (! uniqueMovies.contains(currMovieID)) {\n uniqueMovies.add(currMovieID);\n }\n }\n }\n \n System.out.println(\"Número total de películas unicas calificadas: \" + uniqueMovies.size());\n }", "public List<Rating> findRatingByMovie(String movieID);", "public void printAverageRatingsByYear(){\n ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings.csv\");\r\n //ThirdRatings MoviesRated = new ThirdRatings(\"data/ratings_short.csv\");\r\n \r\n // to oad movies\r\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\r\n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\r\n \r\n // to check equality of the size of the HashMap and files readed\r\n System.out.println(\"Movie size : \" + MovieDatabase.size());\r\n System.out.println(\"Rater size: \"+ MoviesRated.getRaterSize());\r\n \r\n //System.out.println(\"title: \"+ MoviesRated.getTitle(\"68646\"));\r\n //System.out.println(\"avg by ID: \"+ MoviesRated.getAverageByID(\"68646\",10));\r\n \r\n // to get avg ratings for the movies rated by \"n\" tarets: MoviesRated.getAverageRatings(n);\r\n ArrayList<Rating> avgMovieRatings = MoviesRated.getAverageRatingsByFilter(20,new YearAfterFilter(2000));\r\n \r\n // to print how many movies are get avg rating\r\n System.out.println(\"The # of movies with avg rating: \"+avgMovieRatings.size());\r\n \r\n //HashMap<String, Double> avgMovieRatings = MoviesRated.getAverageRatings(12);\r\n \r\n // to sort movies by ratings ascending\r\n Collections.sort(avgMovieRatings);\r\n \r\n // to print rating and title of each movie in the list\r\n for (Rating movie:avgMovieRatings){\r\n if (movie.getValue()>0){\r\n System.out.println(movie.getValue()+\": \"+ MovieDatabase.getTitle(movie.getItem()));} \r\n }\r\n \r\n //for (String movie:avgMovieRatings.keySet()){\r\n // if (avgMovieRatings.get(Movie)>0){\r\n // System.out.println(avgMovieRatings.get(Movie)+\": \"+ MoviesRated.getTitle(movie.getItem()));} \r\n //}\r\n \r\n \r\n }", "public void printAverageRatingsByMinutes(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int min = 110;\n int max = 170;\n \n MinutesFilter mins_filter = new MinutesFilter(min, max);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, mins_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n int mov_time = database.getMinutes(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_time + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n }", "@Override\n\tpublic int compare(Movie1 o1, Movie1 o2) {\n\t\treturn o1.getName().compareTo(o2.getName());\n\t}", "private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "public static void updateRating(){\r\n System.out.println('\\n'+\"Update Rating\");\r\n System.out.println(movies);\r\n System.out.println('\\n'+ \"Which movies ratings would you like to update\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n // Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //if the movie title is in teh list change rating\r\n if (movieTitle.equals(names.getName())){\r\n System.out.println(names.getName() + \" has a current rating of \"+ names.getRating()+'\\n'+ \"What would you like to change it to?\");\r\n double newRating = s.nextInt();\r\n s.nextLine();\r\n names.setRating(newRating);\r\n System.out.println(\"You have changed the rating of \"+ names.getName()+ \" to \"+ names.getRating());\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n //if movie titile not in the current list\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "@Override\r\n\tpublic int compare(Moviesda o1, Moviesda o2) {\n\t\treturn 0;\r\n\t}", "double getRating();", "public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }", "public void displayFavourite(ArrayList<Movie> movies)\n {\n int rate = 0;\n ArrayList<Movie> rateResult = new ArrayList<Movie>();\n Scanner console = new Scanner(System.in);\n boolean valid = false;\n String answer = \"\";\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease insert the least rating you want to display (1-10): \");\n answer = console.nextLine().trim();\n valid = validation.integerValidation(answer,1,10);\n }\n \n rate = Integer.parseInt(answer);\n for (Movie film : movies)\n {\n int rating = film.getRating();\n \n if (rating >= rate)\n rateResult.add(film);\n }\n \n Collections.sort(rateResult);\n displayMovie(rateResult);\n }", "public abstract double calcAvRating();", "@Override\n public boolean compareMovie(Movie movie, Search search) {\n boolean[] tokenMatch = new boolean[search.getTitleTokens().size()];\n\n for (int i = 0; i < search.getTitleTokens().size(); i++){\n tokenMatch[i] = movie.getTitle().toLowerCase().contains(search.getTitleTokens().get(i));\n }\n boolean match = true;\n\n // If any filterToken does not match, false is returned.\n for(boolean bool : tokenMatch){\n if(!bool){\n match = bool;\n }\n }\n return match;\n }", "public float uGetAvgRating(ArrayList<Integer> movies) {\n\t\tfloat sum = 0;\n\t\tint n = 0;\n\t\t\n\t\tfor (int m : movies) {\n\t\t\t// lookup in ratings\n\t\t\tsum += ((float)ratings.get(m) / 10f);\n\t\t\tn++;\n\t\t}\n\t\t\n\t\treturn sum / n;\n\t}", "public void printAverageRatingsByDirectorsAndMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n MinutesFilter m = new MinutesFilter(90, 180);\n DirectorsFilter d = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Tim Burton,Ron Howard,Nora Ephron,Sydney Pollack\");\n f.addFilter(m);\n f.addFilter(d);\n int minRatings = 3;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" \n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "private int scoreAuthorMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 100;\n \n // Don't do prefix scanning on short titles.\n String str1 = data.tags.getString(tag1);\n String str2 = data.tags.getString(tag2);\n if (str1.length() < 5 || str2.length() < 5)\n return 0;\n \n // If either is a prefix of the other, we have a match.\n if (str1.startsWith(str2) || str2.startsWith(str1))\n return 100;\n \n // All other cases: fail for now at least.\n return 0;\n }", "@Test\r\n public void testGetSimilarMovies() throws MovieDbException {\r\n LOG.info(\"getSimilarMovies\");\r\n List<MovieDb> results = tmdb.getSimilarMovies(ID_MOVIE_BLADE_RUNNER, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No similar movies found\", !results.isEmpty());\r\n }", "public void makeRecommendations()\r\n\t{\r\n\r\n\t\tSystem.out.print(\"Do you want the recommendations based on ratings or scores?\\n\" + \"1. Ratings\\n\" + \"2. Scores\\n\" + \"Please choose 1 or 2:\");\r\n\t\tint choose = scan.nextInt();\r\n\r\n\t\twhile (!(choose >= 1 && choose <= 2))\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a valid input:\");\r\n\t\t\tchoose = scan.nextInt();\r\n\r\n\t\t}\r\n\t\tif (choose == 1)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please provide a rating:\");\r\n\t\t\tString rate = scan.next();\r\n\r\n\t\t\tMovie[] temp = new Movie[actualSize];\r\n\t\t\tint tempCount = 0;\r\n\r\n\t\t\tfor (int i = 0; i < actualSize; i++)\r\n\t\t\t{\r\n\r\n\t\t\t\tif (data[i].getRating().equals(rate.toUpperCase()))\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp[tempCount] = data[i];\r\n\t\t\t\t\ttempCount++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (tempCount > 0)\r\n\t\t\t{\r\n\t\t\t\tsort(temp, 5);\r\n\t\t\t\tint counter = 0;\r\n\r\n\t\t\t\tPrintWriter p = null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tp = new PrintWriter(new FileWriter(\"top_5_movies.txt\"));\r\n\r\n\t\t\t\t\twhile (counter < 5)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tp.println(temp[counter]);\r\n\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tSystem.out.println(\"File not found\");\r\n\t\t\t\t}\r\n\t\t\t\tp.close();\r\n\t\t\t\tSystem.out.println(\"Recommendations made successfully! Top 5 movies found!\");\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\tSystem.out.println(\"The rating does not match any of the movies.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (choose == 2)\r\n\t\t{\r\n\r\n\t\t\tint counter = 0;\r\n\t\t\tsort(data, 20);\r\n\t\t\tPrintWriter p = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tp = new PrintWriter(new FileWriter(\"top_20_movies.txt\"));\r\n\r\n\t\t\t\twhile (counter < 20)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tp.println(data[counter]);\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t\t}\r\n\t\t\tp.close();\r\n\t\t\tSystem.out.println(\"Recommendations made successfully! Top 20 movies found!\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n RatingRegister ratings = new RatingRegister();\n\n Film goneWithTheWind = new Film(\"Gone with the Wind\");\n Film theBridgesOfMadisonCounty = new Film(\"The Bridges of Madison County\");\n Film eraserhead = new Film(\"Eraserhead\");\n// Film saksiKasi = new Film(\"saksiKasi\");\n// Film haifisch = new Film(\"haifisch\");\n\n Person matti = new Person(\"Matti\");\n Person pekka = new Person(\"Pekka\");\n Person mikke = new Person(\"Mikke\");\n \n// Person jukka = new Person(\"Jukka\");\n\n ratings.addRating(matti, goneWithTheWind, Rating.BAD);\n ratings.addRating(matti, theBridgesOfMadisonCounty, Rating.GOOD);\n ratings.addRating(matti, eraserhead, Rating.FINE);\n\n ratings.addRating(pekka, goneWithTheWind, Rating.FINE);\n ratings.addRating(pekka, theBridgesOfMadisonCounty, Rating.BAD);\n ratings.addRating(pekka, eraserhead, Rating.MEDIOCRE);\n\n// ratings.addRating(pekka, eraserhead, Rating.FINE);\n// ratings.addRating(pekka, saksiKasi, Rating.FINE);\n// ratings.addRating(saksiKasi, Rating.FINE);\n// ratings.addRating(saksiKasi, Rating.GOOD);\n// ratings.addRating(haifisch, Rating.BAD);\n// ratings.addRating(haifisch, Rating.BAD);\n\n Reference ref = new Reference(ratings);\n \n Film recommended = ref.recommendFilm(mikke);\n System.out.println(\"The film recommended to Michael is: \" + recommended);\n//*/\n }", "private boolean compareIntAttribute(String rating, Integer minRating) {\n\t\treturn false;\r\n\t}", "public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByDirectors(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new DirectorsFilter(\"Clint Eastwood,Joel Coen,Martin Scorsese,Roman Polanski,Nora Ephron,Ridley Scott,Sydney Pollack\"); \n int minRatings = 4;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getDirector(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public void printAverageRatingsByYear(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"raters: \" + raters);\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"movies: \" + MovieDatabase.size());\n System.out.println(\"-------------------------------------\");\n \n Filter f = new YearAfterFilter(2000); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public double getActorRating(String n)\n\t{\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\tdouble actor_rating = 0;\n\t\tint num = 0;\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes accumulate the movie rating \n\t\t\t{\n\t\t\t\tactor_rating += temp_movie.getRating();\n\t\t\t\tnum++;\n\t\t\t}\t\t\n\t\t}\t\n\t\t//if yes accumulate the movie rating\n\t\t//divie by the number of of accumulated values\n\t\tactor_rating = actor_rating/num;\n\t\treturn actor_rating;\n\t}", "@Override\n public double score(Map<BasedMining, Map<BasedMining, RateEvent>> preferences,\n BasedMining item1,\n BasedMining item2) {\n var sharedInnerItems = new ArrayList<BasedMining>();\n\n preferences.get(item1).forEach((innerItem, rateEvent) -> {\n if (preferences.get(item2).get(innerItem) != null) {\n sharedInnerItems.add(innerItem);\n }\n });\n\n// If they have no rating in common, return 0\n if (sharedInnerItems.size() > 0)\n return 0;\n\n// Add up the square of all the differences\n var sumOfSquares = preferences.get(item1).entrySet()\n .stream()\n .filter(entry -> preferences.get(item2).get(entry.getKey()) != null)\n .mapToDouble(entry -> Math.pow((entry.getValue().getRating() - preferences.get(item2).get(entry.getKey()).getRating()), 2.0))\n .sum();\n\n return 1 / (1 + sumOfSquares);\n }", "public void recommendMovie()\n {\n r.recommendMovie();\n }", "@Override\n\tpublic int compare(Product p1, Product p2) {\n\t\t\n\t\treturn p2.getReviewCount()*p2.getSaleCount()-p1.getReviewCount()*p1.getSaleCount();\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Rating)) return false;\n Rating rating = (Rating) o;\n return Double.compare(rating.getAverageRating(), getAverageRating()) == 0 &&\n getCount() == rating.getCount() &&\n getMaxRating() == rating.getMaxRating() &&\n getMinRating() == rating.getMinRating();\n }", "public void printRatings() {\n // print the ratings\n // get the sparse matrix class\n // get the movie singly linked list\n // to string on each entry of the lists\n // Print out the reviewers and their count first\n ReviewerList rL = matrix.getReviewers();\n MSLList mL = matrix.getMovies();\n if (movieTable.getNumEntries() == 0 || reviewerTable\n .getNumEntries() == 0) {\n System.out.println(\"There are no ratings in the database\");\n return;\n }\n rL.printListAndCount();\n System.out.print(mL.printListAndReviews());\n }", "public int getMovieFlexRatings(String uuid);", "private double getAverageByID(String id, int minimalRaters){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n RaterDatabase database = new RaterDatabase();\n database.initialize(ratingsfile);\n \n double avg_rating = 0.0;\n double running_total = 0.0;\n int count = 0;\n \n for (Rater rater : database.getRaters()){ \n \n if(rater.getItemsRated().contains(id)){\n \n double movie_rating = rater.getRating(id);\n \n running_total += movie_rating;\n \n count += 1;\n \n //System.out.println(movie_rating);\n\n }\n }\n\n if(count >= minimalRaters){\n avg_rating = running_total / count;\n }\n\n \n return avg_rating; \n \n }", "public static Set<Movie> getMovieRecommendations (Movie movie, int N) \n\t{\n\t\tSet<Movie> set = new HashSet<>();\n\t\tSet<Movie> visited = new HashSet<>();\n\t\tif(movie == null || N <=0 ) return set;\n\t\tQueue<Movie> pq = new PriorityQueue<>((Movie m1, Movie m2) -> { \n\t\t float val1 = m1.getRating();\n\t\t float val2 = m2.getRating();\n\t\t if(val1 == val2){\n\t\t return 0;\n\t\t }else if(val1 > val2){\n\t\t return 1;\n\t\t }else{\n\t\t return -1;\n\t\t }\n\t\t} );\n\t\tQueue<Movie> queue = new LinkedList<>();\n\t\tqueue.offer(movie);\n\t\tvisited.add(movie);\n\t\twhile(!queue.isEmpty()){\n\t\t int size = queue.size();\n\t\t for(int i = 0; i < size; i++){\n\t\t Movie temp = queue.poll();\n\t\t if(!temp.equals(movie)){\n \t\t if(pq.size() < N){\n \t\t pq.offer(temp);\n \t\t }else if(temp.getRating() > pq.peek().getRating()){\n \t\t pq.poll();\n \t\t pq.offer(temp);\n \t\t }\n\t\t }\n\t\t for(Movie m : temp.getSimilarMovies()){\n\t\t \tif(!visited.contains(m)){\n\t\t \t\tqueue.offer(m);\n\t\t \t\tvisited.add(m);\n\t\t \t}\n\t\t }\n\t\t }\n\t\t}\n\t\tset.addAll(pq);\n\t\treturn set;\n\t}", "@Override\r\n\tpublic int compareTo(MovieEdge o)\r\n\t{\r\n\t\t// If the current edge weight is less than the other edge weight that is being compared, then return -1\r\n\t\tif(this.getWeight() < o.getWeight())\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t// If the current edge weight is equal to the other edge weight that is being compared, then return 0\r\n\t\telse if(this.getWeight() == o.getWeight())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// return a 1 in all other scenarios, which will signify that the current edge weight is greater than the other edge weight that is being compared \r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "public Recommendation(Movie movie) {\n this.movie = movie;\n }", "public int compareTo(ProductWritable o) {\n\t\tint result = -1;\n\t\t if(rating > o.rating) {\n\t\t\t result = 1;\n\t\t }\n\t\t if(rating == o.rating) {\n\t\t\t result = 0;\n\t\t }\n\t\t if(result == 0) {\n\t\t\tresult = productTitle.compareTo(o.productTitle);\n\t\t }\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tStack<Integer> stack = new Stack<>();\n\n\t\tMovie movie1 = new Movie(1, 1.2f);//A\n\t\tMovie movie2 = new Movie(2, 3.6f);//B\n\t\tMovie movie3 = new Movie(3, 2.4f);//C\n\t\tMovie movie4 = new Movie(4, 4.8f);//D\n\t\tmovie1.getSimilarMovies().add(movie2);\n\t\tmovie1.getSimilarMovies().add(movie3);\n\t\t\n\t\tmovie2.getSimilarMovies().add(movie1);\n\t\tmovie2.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie3.getSimilarMovies().add(movie1);\n\t\tmovie3.getSimilarMovies().add(movie4);\n\t\t\n\t\tmovie4.getSimilarMovies().add(movie2);\n\t\tmovie4.getSimilarMovies().add(movie3);\n\n\t\tSet<Movie> set = getMovieRecommendations (movie4, 3);\n\t\tfor(Movie m : set){\n\t\t\tSystem.out.println(\"\"+m.getId() +\", \"+ m.getRating());\t\n\t\t}\n\t\t\n\t}", "public double similarity(REPOverlap rep2) {\r\n\t\tdouble p = 0;\r\n\t\tint i = 0;\r\n\t\tfor (i=0;i<dist.length;i++) {\r\n\t\t\tp += Math.sqrt(dist[i]*rep2.dist[i]);\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public boolean setMovieRating(Movie movie, RatingEnum rating){\n if(movie == null) return false;\n movie.rating = rating;\n return true;\n }", "@RequestMapping(value = \"get_items_similarity\",headers=\"Accept=*/*\", method={RequestMethod.GET},produces=\"application/json\")\n\t@ResponseBody\n\tpublic double getItemsSimilarity(@RequestParam(\"title1\") String title1,\n\t\t\t@RequestParam(\"title2\") String title2){\n\t\t//:TODO your implementation\n\t\tdouble ret = 0.0;\n\t\treturn ret;\n\t}", "private int scoreIdMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 100;\n \n // Fail for now.\n return 0;\n }", "public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }", "@Override\r\n\tpublic double getTwoDiseaseSimilarity(String omimId1, String omimId2) {\r\n\t\tdouble similarity = (1 - alpha) * firstDiseaseSimilarity.getTwoDiseaseSimilarity(omimId1, omimId2);\r\n\t\tsimilarity += alpha * secondDiseaseSimilarity.getTwoDiseaseSimilarity(omimId1, omimId2);\r\n\t\t\r\n\t\treturn similarity;\r\n\t}", "public ArrayList<Rating> getAverageRating(int minimalRaters)\n {\n ArrayList<Rating> ans=new ArrayList<>();//this a new syntax of defining arraylist\n ArrayList<String> movies=MovieDatabase.filterBy(new TrueFilter());\n double sum=0.0;\n int numOfRaters=0;\n for(int k=0;k<movies.size();k++)\n {\n String moviID=movies.get(k);\n double curr=getAverageByID(moviID,minimalRaters);\n if(curr!=0.0)\n {\n ans.add(new Rating(moviID,curr));\n }\n }\n return ans;\n }", "public List<MovieDTO> getRecommendations(final long thisUserId, final int maxSize) {\n\n\t\tisTrue(thisUserId >= 0, \"The user id cannot be negative.\");\n\t\tisTrue(maxSize >= 0, \"The maximum recommendations size cannot be negative.\");\n\n\n\t\tfinal Map<Long, Double> otherSimilarUsers = userProfiler.getSimilarUsers(thisUserId);\n\n\t\tLOGGER.debug(\"Found [\" + otherSimilarUsers.size() +\"] similar users ...\");\n\n\n\t\tfinal double thisUserAverageRating = ratingRepository.findAverageByUserId(thisUserId);\n\n\t\tfinal Map<Long, MovieEntity> movieEntities = movieRepository.findAllNotViewedByThisUserButViewedByOtherUsers(thisUserId, newLinkedList(otherSimilarUsers.keySet()))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.parallelStream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.collect(toMap(MovieEntity::getId, identity()));\n\n\t\tLOGGER.debug(\"Found [\" + movieEntities.size() +\"] candidate recommended movies ...\");\n\n\n\t\tfinal Map<Long, Double> predictedRatings = newHashMap();\n\n\n\t\tfor (final Long movieId : movieEntities.keySet()) {\n\n\t\t\tdouble numerator = 0D;\n\t\t\tdouble denominator = 0D;\n\n\n\t\t\tfor (final Long otherUserId : otherSimilarUsers.keySet()) {\n\n\t\t\t\tdouble matchScore = otherSimilarUsers.get(otherUserId);\n\n\n\t\t\t\tfinal Optional<RatingEntity> optionalRatingEntity = ratingRepository.findByUserIdAndMovieId(otherUserId, movieId);\n\n\t\t\t\tif (optionalRatingEntity.isPresent()) {\n\n\t\t\t\t\tfinal double otherUserMovieRating = optionalRatingEntity.get().getRating();\n\n\t\t\t\t\tfinal double otherUserAverageRating = ratingRepository.findAverageByUserId(otherUserId);\n\n\n\t\t\t\t\tnumerator += matchScore * (otherUserMovieRating - otherUserAverageRating);\n\n\t\t\t\t\tdenominator += abs(matchScore);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tdouble predictedRating = 0D;\n\n\t\t\tif (denominator > 0D) {\n\n\t\t\t\tpredictedRating = thisUserAverageRating + (numerator / denominator);\n\n\n\t\t\t\tif (predictedRating > MAX_RATING_SCORE) {\n\n\t\t\t\t\tpredictedRating = MAX_RATING_SCORE;\n\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tLOGGER.debug(\"MovieId: [\" + movieId + \"] - predicted rating: [\" + predictedRating + \"]\");\n\n\t\t\tpredictedRatings.put(movieId, predictedRating);\n\t\t}\n\n\n\t\tfinal Map<Long, Double> recommendationsSorted = newTreeMap(new MapValueComparator(predictedRatings));\n\n\t\trecommendationsSorted.putAll(predictedRatings);\n\n\n\t\tLOGGER.debug(\"Returning the top-most [\" + maxSize + \"] recommended movies ...\");\n\n\t\treturn recommendationsSorted\n\t\t\t\t\t\t\t\t.entrySet()\n\t\t\t\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t\t\t\t\t.limit(maxSize)\n\t\t\t\t\t\t\t\t\t\t.map(entry -> new MovieDTO( movieEntities.get(entry.getKey()).getPlainTitle(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetMovieDescription(theMovieDBClient, movieEntities.get(entry.getKey())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPlainTitle()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.replaceAll(\".*?\\\\(.*?\\\\).*?\",\"\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(\",\", \"\")),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmovieEntities.get(entry.getKey()).getYear(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmovieEntities.get(entry.getKey()).getRating()))\n\t\t\t\t\t\t\t\t\t\t.collect(toList());\n\t}", "public RatingAndReview(double rating, String review){\t\t\n this.rating = rating;\n this.review = review;\n\t}", "@Override\r\n\tpublic String getSimilarityExplained(String string1, String string2) {\r\n //todo this should explain the operation of a given comparison\r\n return null; //To change body of implemented methods use File | Settings | File Templates.\r\n }", "public int predictRating(User theUser, Video theVideo) throws NullPointerException;", "@Override\n\tpublic int compare(Restaurant_Info o1, Restaurant_Info o2) {\n\t\tint value = (int) (o2.getRate_rest() - o1.getRate_rest());\n\t\treturn value;\n\t}", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "public int getRating();", "public Boolean updateMovieDetails(String title, int year, String director, String actors, int rating, String review, int fav){\n SQLiteDatabase DB = this.getWritableDatabase();\n ContentValues cv = new ContentValues();\n\n cv.put(\"title\", title);\n cv.put(\"year\", year);\n cv.put(\"director\", director);\n cv.put(\"actors\", actors);\n cv.put(\"rating\", rating);\n cv.put(\"review\", review);\n cv.put(\"fav\", fav);\n\n DB.update(\"MovieDetails\", cv, \"title=?\", new String[]{title});\n return true;\n }", "public void printAverageRatingsByMinutes(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new MinutesFilter(105, 135); \n int minRatings = 5;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + \"Time: \" \n + MovieDatabase.getMinutes(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }", "public ArrayList<Rating> getAverageRatings(int minimalRaters) {\n\n ArrayList<String> movies = MovieDatabase.filterBy(new TrueFilter());\n\n ArrayList<Rating> output = new ArrayList<>();\n for (String id : movies) {\n double curAverage = getAverageByID(id, minimalRaters);\n if (curAverage > 0) {\n Rating curRating = new Rating(id, curAverage);\n output.add(curRating);\n }\n }\n return output;\n }", "public int compareTo(Object o){\r\n Recommendation r = (Recommendation)o;\r\n //System.out.println(\"Recommendation.compareTo: compare \" + itemID + \" and \" + r.getItemID());\r\n\r\n int retval = 0;\r\n float ss1 = similarityScore;\r\n float ss2 = r.getSimilarityScore();\r\n if (ss1 < ss2 ) {\r\n retval = -1;\r\n } else if (ss1 > ss2) {\r\n retval = 1;\r\n } else {\r\n retval = Float.compare(prediction,r.getPrediction());\r\n if (0 == retval) {\r\n // Tie-break to be consistent-with-equals\r\n retval = getItemID() - r.getItemID();\r\n }\r\n }\r\n // The natural order for recommendation lists is in reverse so...\r\n return -retval;\r\n }", "public double movieRatingAverage() {\n return movies.stream()\n .collect(Collectors.averagingDouble(Movie::getRating));\n }", "public void calcMatch() {\n if (leftResult == null || rightResult == null) {\n match_score = 0.0f;\n } else {\n match_score = FaceLockHelper.Similarity(leftResult.getFeature(), rightResult.getFeature(), rightResult.getFeature().length);\n match_score *= 100.0f;\n tvFaceMatchScore1.setText(Float.toString(match_score));\n llFaceMatchScore.setVisibility(View.VISIBLE);\n\n }\n }", "void addRating(Rating2 rating2);", "public static boolean compare (TreeMap<Character, Integer> m1, TreeMap<Character, Integer> m2) {\n if (m1.keySet().size() != m2.keySet().size()) {\n return false; // Words do not contain the same number of variants of characters\n } else {\n for (char c : m1.keySet()) {\n if (!m2.containsKey(c)) {\n return false; // Words do not have the same characters\n } else {\n if (m1.get(c) != m2.get(c)) {\n return false; // Words do not have the same number of the same characters\n }\n }\n }\n }\n\n return true; // The word is an anagram\n }", "public String getBestMovie() {\n\t\tdouble highestRating = 0;\n\t\tString bestMovie = \"\";\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getRating() > highestRating) {\n\t\t\t\thighestRating = movie.getRating();\n\t\t\t\tbestMovie = movie.getName();\n\t\t\t}\n\t\t}\n\t\treturn bestMovie;\n\t}", "double totalMoviesAverageScore() {\n // call totalMovieAverage with no movie name\n // so filter will filter nothing and we'll get all the movies\n return totalMovieAverage(\"\");\n }", "private float calculateSimilarityScore(int numOfSuspiciousNodesInA, int numOfSuspiciousNodesInB) {\n\t\t// calculate the similarity score\n\t\treturn (float) (numOfSuspiciousNodesInA + numOfSuspiciousNodesInB) \n\t\t\t\t/ (programANodeList.size() + programBNodeList.size()) * 100;\n\t}", "private int scoreTitleMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 100;\n \n // Don't do prefix scanning on short titles.\n String str1 = data.tags.getString(tag1);\n String str2 = data.tags.getString(tag2);\n if (str1.length() < 5 || str2.length() < 5)\n return 0;\n \n // If either is a prefix of the other, we have a match.\n if (str1.startsWith(str2) || str2.startsWith(str1))\n return 100;\n \n // All other cases: fail for now at least.\n return 0;\n }", "public static double getMatchScore(String obj1, String obj2) {\n\tint distance = getLevenshteinDistance(obj1, obj2);\n\tSystem.out.println(\"distance = \" + distance);\n\tdouble match = 1.0 - ((double)distance / (double)(Math.max(obj1.length(), obj2.length())));\n\t\n\tSystem.out.println(\"match is \" + match);\n\treturn match;\n }", "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "private int scoreDateMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 50;\n \n // Parse the years\n String str1 = data.tags.getString(tag1);\n String str2 = data.tags.getString(tag2);\n int year1 = -99;\n int year2 = -99;\n try { year1 = Integer.parseInt(str1); }\n catch (NumberFormatException e) { }\n try { year2 = Integer.parseInt(str2); }\n catch (NumberFormatException e) { }\n \n // If either is missing, no match.\n if (year1 < 0 || year2 < 0)\n return 0;\n \n // If within 2 years, consider that a partial match.\n if (Math.abs(year1 - year2) <= 2)\n return 25;\n \n // All other cases: fail for now at least.\n return 0;\n }" ]
[ "0.69957423", "0.65069395", "0.6441992", "0.6348227", "0.62884015", "0.6227374", "0.6210153", "0.6201202", "0.61971885", "0.6183189", "0.6139757", "0.6136547", "0.61161345", "0.6063475", "0.59681606", "0.59680307", "0.59302664", "0.5905397", "0.5896923", "0.5882369", "0.582898", "0.58011717", "0.5774448", "0.57593125", "0.5745805", "0.57457465", "0.5723573", "0.57143617", "0.57136256", "0.5666944", "0.5657123", "0.56491166", "0.5633393", "0.56278366", "0.5623899", "0.56195474", "0.55853707", "0.5577983", "0.55761343", "0.5558901", "0.5535829", "0.5515379", "0.5506521", "0.5496667", "0.5491871", "0.54911655", "0.546806", "0.54588693", "0.54556715", "0.5447308", "0.54390115", "0.54117745", "0.54063576", "0.5390986", "0.5379802", "0.53758365", "0.53699815", "0.5362807", "0.53617245", "0.53483963", "0.53368825", "0.53352314", "0.5309171", "0.53040045", "0.53007376", "0.52886534", "0.5284748", "0.52789605", "0.5272252", "0.5261587", "0.526129", "0.52610254", "0.52518153", "0.5247442", "0.5244926", "0.52356017", "0.52310723", "0.52274895", "0.5224873", "0.52169156", "0.52168334", "0.52118844", "0.5205936", "0.5156544", "0.5148291", "0.5137556", "0.51236564", "0.51226056", "0.51205987", "0.51134163", "0.510555", "0.5105177", "0.51039964", "0.51015264", "0.50800186", "0.5078017", "0.50690633", "0.5068823", "0.5060644", "0.50559336" ]
0.7494238
0
method to compare the tickets sold between 2 movies
public int compare(Movie a, Movie b) { if (a.getTicketSales()>b.getTicketSales()) return -1; else if (a.getTicketSales()<b.getTicketSales()) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compare(Movie a, Movie b) {\n\t\tdouble aRating = a.computeRating();\n\t\tdouble bRating = b.computeRating();\n\t\tif (aRating>bRating)\n\t\t\treturn -1;\n\t\telse if (aRating<bRating)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int compareTo(Movie m)\n\t{\n\t\treturn this.year - m.year; //by year\n\t\t//return (int)this.name - m.name; //by name\n\t\t//return (int)(10*(this.rating - m.rating)); //by rating\n\t}", "@Override\n\tpublic int compare(Movie o1, Movie o2) {if (o1.getYear() > o2.getYear())\n//\t\t\treturn 1;\n//\t\tif (o1.getYear() < o2.getYear()) \n//\t\t\treturn -1;\n//\t\telse \n//\t\t\treturn 0;\n//\t\t\n\t\treturn o1.getYear() - o2.getYear();\n\t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "private boolean compareBookedTicketsMap(Map<Integer, BookTickets> actualBookingTicketHashMap,Map<Integer, BookTickets> expectedBookingTicketHashMap) {\t\t\n\t\tboolean compareFlag = false;\n\t\tif(!actualBookingTicketHashMap.isEmpty()) {\n\t\t\tfor (int eachEntry : actualBookingTicketHashMap.keySet()) {\n\t\t\t\tBookTickets actualBookTicketObject = actualBookingTicketHashMap.get(eachEntry);\n\t\t\t\t\n\t\t\t\tBookTickets expectedBookTicketObject = expectedBookingTicketHashMap.get(eachEntry);\n\t\t\t\t\n\t\t\t\tif(actualBookTicketObject.getRefNumber() == expectedBookTicketObject.getRefNumber() && actualBookTicketObject.getNumbOfSeats() == expectedBookTicketObject.getNumbOfSeats()) {\n\t\t\t\t\tif(actualBookTicketObject.getSeats().equals(expectedBookTicketObject.getSeats()) && actualBookTicketObject.isBookingConfirmed() == expectedBookTicketObject.isBookingConfirmed()){\n\t\t\t\t\t\tcompareFlag = true;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tcompareFlag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcompareFlag = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n return compareFlag; \n\t}", "@Override\r\n\tpublic int compare(Movie o1, Movie o2) {\n\t\t\r\n\t\tif(o1.getRating()<o2.getRating()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif(o1.getRating()>o2.getRating()) {\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int compare(identified_crystal a, identified_crystal b) \n\t { \n\n\t \treturn a.rating - b.rating; \n\t }", "@Override\n public boolean compareMovie(Movie movie, Search search) {\n boolean[] tokenMatch = new boolean[search.getTitleTokens().size()];\n\n for (int i = 0; i < search.getTitleTokens().size(); i++){\n tokenMatch[i] = movie.getTitle().toLowerCase().contains(search.getTitleTokens().get(i));\n }\n boolean match = true;\n\n // If any filterToken does not match, false is returned.\n for(boolean bool : tokenMatch){\n if(!bool){\n match = bool;\n }\n }\n return match;\n }", "@Override\r\n\tpublic int compare(Moviesda o1, Moviesda o2) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int compare(Movie1 o1, Movie1 o2) {\n\t\treturn o1.getName().compareTo(o2.getName());\n\t}", "@Override\n public int compare(AbstractMovie o1, AbstractMovie o2) {\n return o1.getAwardMap().size() - o2.getAwardMap().size();\n }", "public int compareTo(Actor actor1, Actor actor2) {\n\n List<Event> actorEvents1 = actor1.getEventList();\n List<Event> actorEvents2 = actor2.getEventList();\n\n // it's the same number of events,therefore order further by timestamp\n List<Timestamp> timestampsOfActor1 = DateUtil.getInstance().getTimeStampsOfEventList(actorEvents1);\n Timestamp maxTimestampOfActor1 = DateUtil.getInstance().getMaxTimestamp(timestampsOfActor1);\n\n List<Timestamp> timestampsOfActor2 = DateUtil.getInstance().getTimeStampsOfEventList(actorEvents2);\n Timestamp maxTimestampOfActor2 = DateUtil.getInstance().getMaxTimestamp(timestampsOfActor2);\n\n int resultOfComparingMaxTimestampsOfBothActors = maxTimestampOfActor1.compareTo(maxTimestampOfActor2);\n\n //now since comparing both maximum timestamps and they are the same,we use the login names to compare\n if (resultOfComparingMaxTimestampsOfBothActors == 0) {\n\n String loginNameActor1 = actor1.getLogin().trim();\n String loginNameActor2 = actor2.getLogin().trim();\n\n //finally we compare the strings ignoring case and since the login name is unique,\n // we can be sure that the list will be sorted alphabetically perfectly\n return loginNameActor1.compareToIgnoreCase(loginNameActor2);\n }\n //it will be greater than or equal so we return it,\n // but we need to go vice versa because we need it in ascending order not desceding\n return (resultOfComparingMaxTimestampsOfBothActors == -1) ? 1 : -1;\n }", "public static void watchMovie(){\r\n System.out.println('\\n'+\"Which movie would you like to watch?\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n //Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //If movie is found in the list\r\n if (movieTitle.equals(names.getName())){\r\n names.timesWatched += 1;\r\n System.out.println(\"Times Watched for \"+ names.getName()+ \" has been increased to \"+ names.timesWatched);\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n\r\n // If movie not found do the other case\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }", "@Override\r\n\tpublic int compareTo(Venue o) {\r\n\t\treturn o.getAvailableTickets() - this.getAvailableTickets();\r\n\t}", "Collection<MovieEarned> moviesEarned();", "@Test \n\tpublic void testbookticket(){\n\t\tboolean check =theater.bookTicket( \"Regal_Jack\",\"Star Wars\", 80, \"1500\");\t\t\n\t\tassertEquals(false,check);\n\t\tboolean check1 =theater.bookTicket( \"Regal_Jack\",\"Star Wars\", 40, \"1500\");\n\t\tassertEquals(false,check1);\n\t}", "public void similar(String tableName, String name) {\n String simName = null;\n float score = 11;\n float val = 0;\n int simCount = 0;\n if (tableName.equals(\"reviewer\")) {\n if (matrix.getReviewers().contains(name) != null) {\n // Node with the reference to the list we are comparing other\n // lists to\n ReviewerList.Node n = matrix.getReviewers().contains(name);\n // Gets the head to the DLList that we are comparing other lists\n // to\n Node<Integer> node = n.getList().getHead();\n // The first node in the reviewer list\n ReviewerList.Node n1 = matrix.getReviewers().getHead();\n // Iterates through the lists we are comparing to this list\n while (n1 != null) {\n if (n.equals(n1)) {\n n1 = n1.getNext();\n }\n else {\n RDLList<Integer> simList = n1.getList();\n Node<Integer> simNode = null;\n node = n.getList().getHead();\n // Going through this list to find matching movies in\n // simList\n while (node != null) {\n simNode = simList.containsMovie(node\n .getMovieName());\n if (simNode != null) {\n simCount++;\n // Compute the score\n // Add the name and score to the array\n val += Math.abs(simNode.getValue() - node\n .getValue());\n }\n node = node.getNextMovie();\n }\n if (simCount != 0 && (val / simCount) < score) {\n simName = simList.getHead().getReviewerName();\n score = val / simCount;\n }\n val = 0;\n simCount = 0;\n n1 = n1.getNext();\n }\n }\n\n printSimilar(\"reviewer\", name, simName, score);\n }\n else {\n System.out.println(\"Reviewer |\" + name\n + \"| not found in the database.\");\n }\n }\n else {\n if (matrix.getMovies().contains(name) != null) {\n // Node with the reference to the list we are comparing\n // other lists to\n MSLList.Node n = matrix.getMovies().contains(name);\n // Gets the head to the DLList that we are comparing other\n // lists\n // to\n Node<Integer> node = n.getList().getHead();\n // The first node in the reviewer list\n MSLList.Node n1 = matrix.getMovies().getHead();\n // Iterates through the lists we are comparing to this list\n while (n1 != null) {\n if (n.equals(n1)) {\n n1 = n1.getNext();\n }\n else {\n MDLList<Integer> simList = n1.getList();\n Node<Integer> simNode = null;\n // Going through this list to find matching movies\n // in simList\n node = n.getList().getHead();\n while (node != null) {\n simNode = simList.containsReviewer(node\n .getReviewerName());\n if (simNode != null) {\n simCount++;\n // Compute the score\n // Add the name and score to the array\n val += Math.abs(simNode.getValue() - node\n .getValue());\n }\n node = node.getNextReviewer();\n }\n if (simCount != 0 && (val / simCount) < score) {\n simName = simList.getHead().getMovieName();\n score = val / simCount;\n }\n val = 0;\n simCount = 0;\n n1 = n1.getNext();\n }\n }\n printSimilar(\"movie\", name, simName, score);\n }\n else {\n System.out.println(\"Movie |\" + name\n + \"| not found in the database.\");\n }\n }\n }", "@Test\r\n public void testGetSimilarMovies() throws MovieDbException {\r\n LOG.info(\"getSimilarMovies\");\r\n List<MovieDb> results = tmdb.getSimilarMovies(ID_MOVIE_BLADE_RUNNER, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No similar movies found\", !results.isEmpty());\r\n }", "@Override\n\tpublic int compareTo(MovieBean m) {\n\t\treturn moviename.compareTo(m.moviename);\n\t}", "public int compare(Photograph a, Photograph b) {\n int returnVal = a.getCaption().compareTo(b.getCaption());\n if (returnVal != 0) {\n return returnVal;\n }\n returnVal = b.getRating() - a.getRating();\n return returnVal; \n }", "public boolean equals(Object m) \r\n\t{\n\t\tFilm m2 =(Film)m; \r\n\t\t/*Die if Bedingung prüft, ob die Einzelnen bestandteile gleich sind.\r\n\t\t * Titel muss mit .equals verglichen werden, weil Tiel String(Objekt) ist\r\n\t\t */\r\n\t\tif(this.titelDE.equals(m2.getTitelDE()) && this.titelEN.equals(m2.getTitelEN()) \r\n\t\t && this.laenge == m2.getLaenge() && this.jahr == m2.getJahr())\r\n\t\t \treturn true;\r\n\t\t\treturn false;\r\n\t}", "@Override\n\tpublic int compare(Product p1, Product p2) {\n\t\t\n\t\treturn p2.getReviewCount()*p2.getSaleCount()-p1.getReviewCount()*p1.getSaleCount();\n\t}", "@Override\r\n\tpublic String getMovie(String actor1, String actor2)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\t\r\n\t\t\r\n\t\tif(graph.containsEdge(act1,act2 ))\r\n\t\t{\r\n\t\t\tMovieEdge movieName = graph.getEdge(act1, act2);\r\n\t\t\t\r\n\t\t\treturn movieName.getMovieName();\t\r\n\t\t}\t\r\n\t\treturn null;\t\r\n\t}", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Movie)) {\n return false;\n }\n Movie other = (Movie) object;\n if ((this.idMovie == null && other.idMovie != null) || (this.idMovie != null && !this.idMovie.equals(other.idMovie))) {\n return false;\n }\n return true;\n }", "@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }", "public int compare(Expense ideaVal1, Expense ideaVal2) {\n Long val1 = ideaVal1.getCurrentDate();\n Long val2 = ideaVal2.getCurrentDate();\n return val2.compareTo(val1);\n }", "@Test\n\tpublic void testConfirmationOfSeats() throws Exception {\n\t\tScreen testScreen = new Screen(5,5);\n\t\tTicketBookingSystem ticketBookingSystemObj = new TicketBookingSystem(testScreen);\n\t\tMap<Integer, BookTickets> actualBookingTicketHashMap = new ConcurrentHashMap<Integer, BookTickets>();\n\t\t//ticketBookingSystemObj.toBePrinted = true;\n\t\tMap<Integer, BookTickets> expectedBookingTicketHashMap = new ConcurrentHashMap<Integer, BookTickets>();\n\t\t\n\t\tticketBookingSystemObj.screenForTicketBooking = testScreen;\n\t\tMap<String, SeatAvailabilityPerRow> testHashMap = new HashMap<String, SeatAvailabilityPerRow>();\n\t\ttestHashMap = testScreen.getHashmapMaxConsecutiveSeatAvailablitity();\n\t\t\n\t\t//Test Case 01: Trying to hold 3 tickets - A1,A2,A3 seats shall be assigned. We also confirm the booking.\n\t\tint numberOfSeatsRequested = 3;\n\t\tBookTickets actualBookTicketsObj = new BookTickets(numberOfSeatsRequested,\"\");\n\t\t\t\n\t\t// setting the expiration time as 2 seconds\n\t\tticketBookingSystemObj.setExpirationTime(2);\n\t\tint referenceId = ticketBookingSystemObj.findAndHoldSeatsForUser(numberOfSeatsRequested,actualBookTicketsObj,numberOfSeatsRequested);\n\t\tticketBookingSystemObj.bookAndConfirmSeats(referenceId);\n\t\tactualBookingTicketHashMap = ticketBookingSystemObj.getHashMapBookedTickets();\n\t\tThread.sleep(3000);\n\t\tBookTickets expectedBookTicketsObj = new BookTickets(referenceId, numberOfSeatsRequested, \"A1,A2,A3\", true, LocalDateTime.now());\n\t\texpectedBookingTicketHashMap.put(referenceId, expectedBookTicketsObj);\n\t\t\n\t\tboolean testCase1 = compareBookedTicketsMap(actualBookingTicketHashMap, expectedBookingTicketHashMap);\n\t\t\n\t\tif(!testCase1) {\n\t\t\tthrow new Exception(\"Test Case 1 failed because Actual HashMap is : \\n\" + actualBookingTicketHashMap.toString() + \"\"\n\t\t\t\t\t+ \"\\n and Expected HashMap is : \\n\" + expectedBookingTicketHashMap.toString() + \"\\n Note : We are not comparing \"\n\t\t\t\t\t\t\t+ \"time of hold parameter.\");\n\t\t}\n\t\t\n\t\t\n\t\t//Test Case 02: Trying to book 4 tickets - B1,B2,B3,B4 seats shall be assigned. We also confirm the booking.\n\t\tnumberOfSeatsRequested = 4;\n\t\tactualBookTicketsObj = new BookTickets(numberOfSeatsRequested,\"\");\n\t\t\t\t\t\n\t\t// setting the expiration time as 2 seconds\n\t\tticketBookingSystemObj.setExpirationTime(2);\n\t\treferenceId = ticketBookingSystemObj.findAndHoldSeatsForUser(numberOfSeatsRequested,actualBookTicketsObj,numberOfSeatsRequested);\n\t\tticketBookingSystemObj.bookAndConfirmSeats(referenceId);\n\t\tactualBookingTicketHashMap = ticketBookingSystemObj.getHashMapBookedTickets();\n\t\t\t\n\t\tThread.sleep(3000);\n\t\texpectedBookTicketsObj = new BookTickets(referenceId, numberOfSeatsRequested, \"B1,B2,B3,B4\", true, LocalDateTime.now());\n\t\texpectedBookingTicketHashMap.put(referenceId, expectedBookTicketsObj);\n\t\t\n\t\tboolean testCase2 = compareBookedTicketsMap(actualBookingTicketHashMap, expectedBookingTicketHashMap);\n\t\t\t\t\n\t\tif(!testCase2) {\n\t\t\tthrow new Exception(\"Test Case 2 failed because Actual HashMap is : \\n\" + actualBookingTicketHashMap.toString() + \"\"\n\t\t\t\t+ \"\\n and Expected HashMap is : \\n\" + expectedBookingTicketHashMap.toString() + \"\\n Note : We are not comparing \"\n\t\t\t\t\t\t\t\t\t+ \"time of hold parameter.\");\n\t\t}\n\t\t\t\t\n\t\t//Test Case 03: Trying to book 9 tickets - C1,C2,C3,C4,C5,D1,D2,D3,A4 seats shall be assigned. We also confirm the booking.\n\t\tnumberOfSeatsRequested = 9;\n\t\tactualBookTicketsObj = new BookTickets(numberOfSeatsRequested,\"\");\n\t\t\t\t\t\n\t\t// setting the expiration time as 2 seconds\n\t\tticketBookingSystemObj.setExpirationTime(2);\n\t\treferenceId = ticketBookingSystemObj.findAndHoldSeatsForUser(numberOfSeatsRequested,actualBookTicketsObj,numberOfSeatsRequested);\n\t\tticketBookingSystemObj.bookAndConfirmSeats(referenceId);\n\t\tactualBookingTicketHashMap = ticketBookingSystemObj.getHashMapBookedTickets();\n\t\t\t\n\t\tThread.sleep(3000);\n\t\texpectedBookTicketsObj = new BookTickets(referenceId, numberOfSeatsRequested, \"C1,C2,C3,C4,C5,D1,D2,D3,A4\", true, LocalDateTime.now());\n\t\texpectedBookingTicketHashMap.put(referenceId, expectedBookTicketsObj);\n\t\t\n\t\tboolean testCase3 = compareBookedTicketsMap(actualBookingTicketHashMap, expectedBookingTicketHashMap);\n\t\t\t\t\n\t\tif(!testCase3) {\n\t\t\tthrow new Exception(\"Test Case 3 failed because Actual HashMap is : \\n\" + actualBookingTicketHashMap.toString() + \"\"\n\t\t\t\t+ \"\\n and Expected HashMap is : \\n\" + expectedBookingTicketHashMap.toString() + \"\\n Note : We are not comparing \"\n\t\t\t\t\t\t\t\t\t+ \"time of hold parameter.\");\n\t\t}\n\t\t\n\t\t//Test Case 04: Trying to book 4 tickets but not confirming the booking. Hence the booktickets object will not be found in the hashmap.\n\t\tnumberOfSeatsRequested = 4;\n\t\tactualBookTicketsObj = new BookTickets(numberOfSeatsRequested,\"\");\n\t\t\t\t\t\n\t\t// setting the expiration time as 10 seconds\n\t\tticketBookingSystemObj.setExpirationTime(2);\n\t\treferenceId = ticketBookingSystemObj.findAndHoldSeatsForUser(numberOfSeatsRequested,actualBookTicketsObj,numberOfSeatsRequested);\n\t\t//ticketBookingSystemObj.bookAndConfirmSeats(referenceId);\n\t\tThread.sleep(7000);\n\t\tactualBookingTicketHashMap = ticketBookingSystemObj.getHashMapBookedTickets();\n\t\t\t\t\t\n\t\tboolean testCase4 = compareBookedTicketsMap(actualBookingTicketHashMap, expectedBookingTicketHashMap);\n\t\t\t\t\n\t\tif(!testCase4) {\n\t\t\tthrow new Exception(\"Test Case 4 failed because Actual HashMap is : \\n\" + actualBookingTicketHashMap.toString() + \"\"\n\t\t\t\t+ \"\\n and Expected HashMap is : \\n\" + expectedBookingTicketHashMap.toString() + \"\\n Note : We are not comparing \"\n\t\t\t\t\t\t\t\t\t+ \"time of hold parameter.\");\n\t\t}\n\n\n\t}", "@Test\r\n public void testGetMovieCasts() throws MovieDbException {\r\n LOG.info(\"getMovieCasts\");\r\n List<Person> people = tmdb.getMovieCasts(ID_MOVIE_BLADE_RUNNER);\r\n assertTrue(\"No cast information\", people.size() > 0);\r\n \r\n String name1 = \"Harrison Ford\";\r\n String name2 = \"Charles Knode\";\r\n boolean foundName1 = Boolean.FALSE;\r\n boolean foundName2 = Boolean.FALSE;\r\n \r\n for (Person person : people) {\r\n if (!foundName1 && person.getName().equalsIgnoreCase(name1)) {\r\n foundName1 = Boolean.TRUE;\r\n }\r\n \r\n if (!foundName2 && person.getName().equalsIgnoreCase(name2)) {\r\n foundName2 = Boolean.TRUE;\r\n }\r\n }\r\n assertTrue(\"Couldn't find \" + name1, foundName1);\r\n assertTrue(\"Couldn't find \" + name2, foundName2);\r\n }", "public boolean DEBUG_compare(Alphabet other) {\n System.out.println(\"now comparing the alphabets this with other:\\n\"+this+\"\\n\"+other);\n boolean sameSlexic = true;\n for (String s : other.slexic.keySet()) {\n if (!slexic.containsKey(s)) {\n sameSlexic = false;\n break;\n }\n if (!slexic.get(s).equals(other.slexic.get(s))) {\n sameSlexic = false;\n break;\n }\n slexic.remove(s);\n }\n System.out.println(\"the slexic attributes are the same : \" + sameSlexic);\n boolean sameSlexicinv = true;\n for (int i = 0, limit = other.slexicinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = slexicinv.size() + i; j < limit2; j++) {\n int k = j % slexicinv.size();\n if (other.slexicinv.get(i).equals(slexicinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSlexicinv = false;\n break;\n }\n\n }\n boolean sameSpair = true;\n System.out.println(\"the slexicinv attributes are the same : \" + sameSlexicinv);\n for (IntegerPair p : other.spair.keySet()) {\n if(!spair.containsKey(p)) {\n //if (!containsKey(spair, p)) {\n sameSpair = false;\n break;\n }\n //if (!(get(spair, p).equals(get(a.spair, p)))) {\n if (!spair.get(p).equals(other.spair.get(p))) {\n sameSpair = false;\n break;\n }\n }\n System.out.println(\"the spair attributes are the same : \" + sameSpair);\n boolean sameSpairinv = true;\n for (int i = 0, limit = other.spairinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = spairinv.size() + i; j < limit2; j++) {\n int k = j % spairinv.size();\n if (other.spairinv.get(i).equals(spairinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSpairinv = false;\n break;\n }\n }\n System.out.println(\"the spairinv attributes are the same : \" + sameSpairinv);\n return (sameSpairinv && sameSpair && sameSlexic && sameSlexicinv);\n }", "public String[] moviesby(String[] actors) {\n\t\tString[] results;\n\t\tString[] movie;\n\t\tArrayList<String> movies = new ArrayList<String>(100);\n\t\tArrayList<String> costar_list = new ArrayList<String>(Arrays.asList(actors));\n\t\t\n\t\tif(actors.length == 0) return null;\n\t\t\n\t\tfor (int i = 0; i < movieline.size(); i++) {\n\t\t\tmovie = movieline.get(i);\n\t\t\tArrayList<String> thismovie = new ArrayList<String>(Arrays.asList(movie));\n\t\t\tif(!thismovie.contains(actors[0]) && !thismovie.contains(actors.length-1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(thismovie.containsAll(costar_list)){\n\t\t\t\tmovies.add(movie[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (movies.size() != 0) {\n\t\t\tresults = new String[movies.size()];\n\t\t\tfor (int i = 0; i < movies.size(); i++) {\n\t\t\t\tresults[i] = movies.get(i);\n\t\t\t}\n\t\t} else\n\t\t\tresults = null;\n\t\treturn results;\n\t}", "@Override\r\n public int compare(MoviePanelBasicView arg0, MoviePanelBasicView arg1) {\r\n String title1 = arg0.getData().getMovieTitle();\r\n String title2 = arg1.getData().getMovieTitle();\r\n return title1.compareTo(title2);\r\n }", "public List<String> getMovieList(){\n Set<String> movieList= new HashSet<String>();\n List<MovieListing> showtimes= ListingManager.getShowtimes();\n for(int i=0;i<history.size();i++){\n CustomerTransaction curr= history.get(i);\n for(int j=0;j<showtimes.size(); j++){\n MovieListing show = showtimes.get(j);\n if (show.sameListing(curr.getListingID())){\n movieList.add(show.getTitle());\n\n }\n }\n }\n return new ArrayList<>(movieList);\n }", "public void matchBets(MarketRunners marketRunners);", "@Override\r\n\tpublic int compare(TeamPO o1, TeamPO o2) {\n\t\tif(str.equals(\"total\")){ \r\n\t\t\treturn compareTeamData(o1.getTotalTeamData(season), o2.getTotalTeamData(season));\r\n\t\t}\r\n\t\t//Sort by average team data.\r\n\t\telse if(str.equals(\"avg\")) {\r\n\t\t\treturn compareTeamData(o1.getAverageTeamData(season), o2.getAverageTeamData(season));\r\n\t\t}\r\n\t\t//sort by the full name of the team\r\n\t\telse if(str.equals(\"name\")){\r\n\t\t\tString name1=o1.getFullName();\r\n\t\t\tString name2=o2.getFullName();\r\n\t\t\tif(name1.compareTo(name2)>0)\r\n\t\t\t\treturn 1;\r\n\t\t\telse if(name1.equals(name2))\r\n\t\t\t\treturn 0;\r\n\t\t\telse\r\n\t\t\t\treturn -1;\r\n\t\t}\r\n\t\t//Sort by number of matches\r\n\t\telse if(str.equals(\"matches\")){\r\n\t\t\tint matches1=o1.getSeasonInfo(season).getNumberOfMatches();\r\n\t\t\tint matches2=o2.getSeasonInfo(season).getNumberOfMatches();\r\n\t\t\tif(matches1>matches2)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(matches1==matches2)\r\n\t\t\t\treturn 0;\r\n\t\t\telse \r\n\t\t\t\treturn 1;\r\n\t\t}\r\n\t\t//Sort by percentage of winning\r\n\t\telse if(str.equals(\"perOfWin\")){ \r\n\t\t\tdouble win1=o1.getSeasonInfo(season).getPercentageOfWinning();\r\n\t\t\tdouble win2=o2.getSeasonInfo(season).getPercentageOfWinning();\r\n\t\t\tif(win1>win2)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(win1==win2)\r\n\t\t\t\treturn 0;\r\n\t\t\telse\r\n\t\t\t\treturn 1;\r\n\t\t}\r\n\t\t//Invalid\r\n\t\telse\r\n\t\t\treturn 0;\r\n\t}", "private boolean checkMovieRedundancyByTitle(ArrayList<Movie> movies, String title)\n { \n for (Movie film : movies)\n {\n String head = film.getTitle();\n \n if (head.equalsIgnoreCase(title))\n {\n System.out.println(\"\\n\\t\\t >>>>> Sorry, \" + title.toUpperCase() + \" is already EXIST in database <<<<< \");\n displayOneFilm(film);\n return true;\n }\n }\n \n return false;\n }", "public double getPrice(Movie movie, double time);", "@Override\r\n\tpublic boolean addMovie(String actor1, String actor2, String movieName)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\r\n\t\t\r\n\t\tif(graph.containsVertex(act1) && graph.containsVertex(act2))\r\n\t\t{\r\n\t\t\tif(graph.containsEdge(act1,act2 ) == false)\r\n\t\t\t{\r\n\t\t\t\tgraph.addEdge(act1, act2, 1, movieName);\r\n\t\t\t\t\r\n\t\t\t\tMovieEdge movieTitle = graph.addEdge(act1, act2, 1, movieName);\r\n\r\n\t\t\t\tmovieTitles.add(movieTitle.getMovieName());\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "public int compare(Candidate a, Candidate b) \n { \n return b.getNoOfVotes() - a.getNoOfVotes(); \n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Movie)) {\n return false;\n }\n Movie other = (Movie) object;\n if ((this.movieId == null && other.movieId != null) || (this.movieId != null && !this.movieId.equals(other.movieId))) {\n return false;\n }\n return true;\n }", "public void testGetMovieChanges() throws Exception {\r\n LOG.info(\"getMovieChanges\");\r\n \r\n String startDate = \"\";\r\n String endDate = null;\r\n List<MovieChanges> results = Collections.EMPTY_LIST;\r\n \r\n // Get some popular movies\r\n List<MovieDb> movieList = tmdb.getPopularMovieList(LANGUAGE_DEFAULT, 0);\r\n for (MovieDb movie : movieList) {\r\n results = tmdb.getMovieChanges(movie.getId(), startDate, endDate);\r\n LOG.log(Level.INFO, \"{0} has {1} changes.\", new Object[]{movie.getTitle(), results.size()});\r\n }\r\n \r\n assertNotNull(\"No results found\", results);\r\n assertTrue(\"No results found\", results.size() > 0);\r\n }", "@Test\r\n public void testSearchMovie() throws MovieDbException {\r\n LOG.info(\"searchMovie\");\r\n \r\n // Try a movie with less than 1 page of results\r\n List<MovieDb> movieList = tmdb.searchMovie(\"Blade Runner\", 0, \"\", true, 0);\r\n // List<MovieDb> movieList = tmdb.searchMovie(\"Blade Runner\", \"\", true);\r\n assertTrue(\"No movies found, should be at least 1\", movieList.size() > 0);\r\n \r\n // Try a russian langugage movie\r\n movieList = tmdb.searchMovie(\"О чём говорят мужчины\", 0, \"ru\", true, 0);\r\n assertTrue(\"No 'RU' movies found, should be at least 1\", movieList.size() > 0);\r\n \r\n // Try a movie with more than 20 results\r\n movieList = tmdb.searchMovie(\"Star Wars\", 0, \"en\", false, 0);\r\n assertTrue(\"Not enough movies found, should be over 15, found \" + movieList.size(), movieList.size() >= 15);\r\n }", "@Override\n\tpublic int compare(Store o1, Store o2) {\n\t\treturn (int) (o2.getAveStar()*10 - o1.getAveStar()*10 );\n\t}", "public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}", "public boolean bookTicket(String movieName, String date, String UID){\n\t\tPreparedStatement psSeats = null;\n\t\tPreparedStatement psReserve = null;\n\t\t\n\t\t//SQL strings deduct 1 from value freeSeats and insert new reservation entry\n\t\tString deductSeat = \"UPDATE Performances \" + \"SET freeSeats = (freeSeats - 1) \" + \"WHERE movieName = ? and theDate = ?\";\n\t\tString makeReservation = \"INSERT into Reservations(perdate, movieName, userName) values(?, ?, ?)\";\n\t\tif(isReserved(movieName, date, UID)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(isUser(UID) && (remainingSeats(movieName, date) > 0)){\n\t\t\ttry {\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\n\t\t\t\tpsSeats = conn.prepareStatement(deductSeat);\t\n\t\t\t\tpsReserve = conn.prepareStatement(makeReservation);\n\t\t\t\t\n\t\t\t\tpsReserve.setString(1, date);\n\t\t\t\tpsReserve.setString(2, movieName);\n\t\t\t\tpsReserve.setString(3, UID);\n\t\t\t\t\n\t\t\t\tpsSeats.setString(1, movieName);\n\t\t\t\tpsSeats.setString(2, date);\n\t\t\t\t\n\t\t\t\tpsSeats.executeUpdate();\n\t\t\t\tpsReserve.executeUpdate();\n\t\t\t\t\n\t\t\t\t\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\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif(psSeats != null) psSeats.close(); // returnerar psSeats null?\n\t\t\t\t\tif(psReserve != null) psReserve.close();\n\t\t\t\t\tconn.setAutoCommit(true);\n\t\t\t\t} catch(SQLException e2) {\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void printShorterDurationMovieName(Movie movieObj1, Movie movieObj2){\n // TODO YOUR CODE HERE\n if (movieObj1.getLength() < movieObj2.getLength()){\n\n System.out.println(movieObj1.getName());\n\n }else {\n\n System.out.println(movieObj2.getName());\n\n }\n }", "public boolean equals( SongsCompGenre rhs ) \n\t {\n\t return genre.equals(rhs.genre);\n\t }", "@Test\n public void testAddMovieActor() {\n final ArrayList<Actor> expectedList1 = new ArrayList<>();\n final ArrayList<Actor> expectedList2 = new ArrayList<>();\n final ArrayList<Actor> expectedList3 = new ArrayList<>();\n Actor actor1 = new Actor(actorMacchio);\n Actor actor2 = new Actor(actorFreeman);\n\n movie1.addActor(actor1);\n movie1.addActor(actor2);\n movie1.addActor(actor1);\n expectedList1.add(actor1);\n expectedList1.add(actor2);\n movie2.addActor(actor1);\n expectedList2.add(actor1);\n movie3.addActor(actor2);\n expectedList3.add(actor2);\n movie4.addActor(actor1);\n movie4.addActor(actor2);\n\n assertEquals(expectedList1, movie1.getActors());\n assertEquals(expectedList2, movie2.getActors());\n assertEquals(expectedList3, movie3.getActors());\n assertEquals(expectedList1, movie4.getActors());\n }", "static boolean checkInFlightPossibility(int[] movies, int movieLen) {\n ArrayList<Integer> possibleMatches = new ArrayList<>();\n HashSet originalPossibleMovies = new HashSet();\n\n for (int movie : movies) {\n if (movie >= movieLen)\n break;\n possibleMatches.add(movieLen - movie);\n originalPossibleMovies.add(movie);\n }\n System.out.println(Arrays.toString(Arrays.copyOf(movies, possibleMatches.size())));\n System.out.println(Arrays.toString(possibleMatches.toArray()));\n\n for (int elem : possibleMatches) {\n if (originalPossibleMovies.contains(elem)) return true;\n }\n return false;\n }", "public void testLoadMovies () {\n ArrayList<Movie> movies = loadMovies(\"ratedmoviesfull\"); \n System.out.println(\"Numero de peliculas: \" + movies.size()); \n String countInGenre = \"Comedy\"; // variable\n int countComedies = 0; \n int minutes = 150; // variable\n int countMinutes = 0;\n \n for (Movie movie : movies) {\n if (movie.getGenres().contains(countInGenre)) {\n countComedies +=1;\n }\n \n if (movie.getMinutes() > minutes) {\n countMinutes +=1;\n }\n }\n \n System.out.println(\"Hay \" + countComedies + \" comedias en la lista \");\n System.out.println(\"Hay \" + countMinutes + \" películas con más de \" + minutes + \" minutos en la lista \");\n \n // Cree un HashMap con el recuento de cuántas películas filmó cada director en particular\n HashMap<String,Integer> countMoviesByDirector = new HashMap<String,Integer> ();\n for (Movie movie : movies) {\n String[] directors = movie.getDirector().split(\",\"); \n for (String director : directors ) {\n director = director.trim();\n if (! countMoviesByDirector.containsKey(director)) {\n countMoviesByDirector.put(director, 1); \n } else {\n countMoviesByDirector.put(director, countMoviesByDirector.get(director) + 1);\n }\n }\n }\n \n // Contar el número máximo de películas dirigidas por un director en particular\n int maxNumOfMovies = 0;\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) > maxNumOfMovies) {\n maxNumOfMovies = countMoviesByDirector.get(director);\n }\n }\n \n // Cree una ArrayList con directores de la lista que dirigieron el número máximo de películas\n ArrayList<String> directorsList = new ArrayList<String> ();\n for (String director : countMoviesByDirector.keySet()) {\n if (countMoviesByDirector.get(director) == maxNumOfMovies) {\n directorsList.add(director);\n }\n }\n \n System.out.println(\"Número máximo de películas dirigidas por un director: \" + maxNumOfMovies);\n System.out.println(\"Los directores que dirigieron mas películas son \" + directorsList);\n }", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Movies)) {\r\n return false;\r\n }\r\n Movies other = (Movies) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "public int compare(Goods o1,Goods o2) {\n\t\treturn o1.getFav() - o2.getFav();\n\t}", "@Test\n public void testGetRating() {\n final double expectedRating = 0.0;\n assertEquals(expectedRating, movie1.getRating(), expectedRating);\n assertEquals(expectedRating, movie2.getRating(), expectedRating);\n assertEquals(expectedRating, movie3.getRating(), expectedRating);\n assertEquals(expectedRating, movie4.getRating(), expectedRating);\n }", "public static boolean isEndordate(int cust_id,int movie_id,java.sql.Date date1) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(cust_id, movie_id);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff >= 1)\n return true;\n else\n return false;\n\n }", "public static void main(String[] args) {\n\t\tMovie movie = new Movie(\"Ocean nut\", 0);\n\t\tMovie good = new Movie(\"Justin Zhang\", 5);\n\t\tMovie garbage = new Movie(\"Fortnite\", 4);\n\t\tMovie yeet = new Movie(\"Yeet Yeet\", 3);\n\t\tMovie yes = new Movie(\"garbage movie\", 1);\n\t\t\n\t\tNetflixQueue noob = new NetflixQueue();\n\t\t\n\t\tSystem.out.println(movie.getTicketPrice());\n\t\t\n\t\tnoob.addMovie(movie);\n\t\tnoob.addMovie(yes);\n\t\tnoob.addMovie(yeet);\n\t\tnoob.addMovie(garbage);\n\t\tnoob.addMovie(good);\n\t\tnoob.printMovies();\n\t\t\n\t\tSystem.out.println(\"The best movie is \" + noob.getBestMovie());\n\t\tnoob.sortMoviesByRating();\n\t\tSystem.out.println(\"The second best movie is \"+ noob.getMovie(1));\n\t}", "private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }", "@Override\n\t\t\tpublic int compare(Jugador j1, Jugador j2) {\n\t\t\t\treturn j1.valorDeCartas() - j2.valorDeCartas();\n\t\t\t}", "@Override\r\n\tpublic int compareTo(MovieEdge o)\r\n\t{\r\n\t\t// If the current edge weight is less than the other edge weight that is being compared, then return -1\r\n\t\tif(this.getWeight() < o.getWeight())\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t// If the current edge weight is equal to the other edge weight that is being compared, then return 0\r\n\t\telse if(this.getWeight() == o.getWeight())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// return a 1 in all other scenarios, which will signify that the current edge weight is greater than the other edge weight that is being compared \r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "public void remove(String t,int y){\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y){\n\t\t//quantity of that movie is gotten\n\t\tint oldQuantity = list.get(x).getQuantity();\n\t\t//new quantity of movie is created by subtracting the old one by one\n\t\tint newQuantity = oldQuantity-1;\n\t\t//if either the new or old quantity is one, the object movie is completely removed\n\t\tif(oldQuantity == 0 || newQuantity==0){\n\t\tlist.remove(x);\t\n\t\t}\n\t\t//else the new quantity is set\n\t\telse{\n\t\tlist.get(x).setQuantity(newQuantity);\n\n\t\t}\n\t}\n\t}\n}", "public static Event voteEventMovies(String accessToken, Integer eventId, HashMap<Movie, Integer> ratedMoviesMap) {\n JsonObject jsonObject = new JsonObject();\n\n jsonObject.add(\"event\", new JsonObject());\n JsonArray array = new JsonArray();\n for (Movie movie : ratedMoviesMap.keySet()) {\n JsonObject movieJson = new JsonObject();\n movieJson.addProperty(\"id\", movie.getId());\n movieJson.addProperty(\"score\", ratedMoviesMap.get(movie));\n array.add(movieJson);\n }\n jsonObject.add(\"rated_movies\", array);\n\n Log.i(Constants.TAG, \"jsonObject:\" + jsonObject.toString());\n\n try {\n JsonElement element = NetworkUtil.postWebService(jsonObject, NetworkUtil.EVENTS_URI + \"/\" + eventId + EVENTS_VOTE_URI, accessToken);\n Log.i(Constants.TAG, \"result:\" + element.toString());\n if (element != null) {\n GsonBuilder jsonBuilder = new GsonBuilder();\n jsonBuilder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n Gson gson = jsonBuilder.create();\n\n Log.i(Constants.TAG, \"RETURNED : jsonObject:\" + element.getAsJsonObject().get(\"event\").toString());\n Event event = gson.fromJson(\n element.getAsJsonObject().get(\"event\"),\n Event.class\n );\n return event;\n } else {\n return null;\n }\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when voting event movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when voting event movies\", e);\n return null;\n } // end try-catch\n }", "@RequestMapping(value = \"get_items_similarity\",headers=\"Accept=*/*\", method={RequestMethod.GET},produces=\"application/json\")\n\t@ResponseBody\n\tpublic double getItemsSimilarity(@RequestParam(\"title1\") String title1,\n\t\t\t@RequestParam(\"title2\") String title2){\n\t\t//:TODO your implementation\n\t\tdouble ret = 0.0;\n\t\t\n\t\tUser[] usersObj1 = getUsersByItem(title1);\n\t\tUser[] usersObj2 = getUsersByItem(title2);\n\t\t\n\t\tArrayList<String> users1 = new ArrayList<String>();\n\t\tArrayList<String> users2 = new ArrayList<String>();\n\t\t\n\t\t// get usernames to arrays of string names\n\t\tfor (User user : usersObj1){\n\t\t\tusers1.add(user.getUsername());\n\t\t}\n\t\t\n\t\tfor (User user : usersObj2){\n\t\t\tusers2.add(user.getUsername());\n\t\t}\n\t\t\n\t\t// Intersection list\n\t\tSet<String> intersectionSet = users1.stream()\n\t\t\t\t .distinct()\n\t\t\t\t .filter(users2::contains)\n\t\t\t\t .collect(Collectors.toSet());\n\t\t\n\t\t// get sets of users by two titles \n\t\tSet<String> U1 = new HashSet<String>(users1);\n\t\tSet<String> U2 = new HashSet<String>(users2);\n\t\t\n\t\tU1.addAll(U2); // union\n\t\t\n\t\tif(U1.size() == 0) {\n\t\t\treturn ret;\n\t\t}\n\t\t\n\t\tret = ((double) intersectionSet.size()) / ((double) U1.size());\n\t\t\n\t\treturn ret;\n\t}", "public default Apple compare(Apple a1,Apple a2){\n\n if (a1.getSize()>a2.getSize()) {\n return a1;\n }else {\n return a2;\n }\n\n\n\n\n\n\n }", "private int compareAndNotify(Inventory inv, Wishlist wishlist, WishlistItem watched) {\n\t\tfor (InventoryCategory category : inv.categories) {\n\t\t\tfor (InventoryItem invItem : category.items) {\n\t\t\t\tif (invItem.itemNumber == watched.itemNumber) {\n\t\t\t\t\tif (invItem.isInStock) {\n\t\t\t\t\t\treturn notify(wishlist, watched, invItem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public int compareTo(DVD o) {\n\n\t\tint order = 0;\n\n\t\t/*\n\t\t * Checks to see if this DVD's date is before, after, or the\n\t\t * same as the other's.\n\t\t */\n\t\torder = this.getBoughtReturn().compareTo(o.getBoughtReturn());\n\n\t\t/*\n\t\t * If the dates are the same, sort by alphabetical title. \n\t\t */\n\t\tif(order == 0){\n\n\t\t\torder = this.getTitle().compareTo(o.getTitle());\n\t\t}\n\n\t\treturn order;\n\t}", "@Override\n public int compare(Chapter t, Chapter t1) {\n //return Long.valueOf(t.getDate()).compareTo(t1.getDate());\n return Integer.valueOf(t1.getNumber()).compareTo(t.getNumber());\n }", "public void getScores(){\n String p1 = \"Player 1 has \" + Integer.toString(player1.getWins());\n String p2 = \"Player 2 has \" + Integer.toString(player2.getWins());\n String winner = \"tie\";\n if(player1.getWins()>player2.getWins()){\n winner = player1.getName() + \" wins!!!!\";\n }\n else if(player2.getWins()>player1.getWins()){\n winner = player2.getName() + \" Wins!!!\";\n }\n JOptionPane.showMessageDialog(null, (p1 + \"\\n\" + p2 + \"\\n\" + winner));\n }", "public static void main(String[] args) {\n\t\tMovie Movie1 = new Movie(\"Grown Ups 2\", 2);\n\t\tMovie Movie2 = new Movie(\"Jack Jill\", 1);\n\t\tMovie Movie3 = new Movie(\"Battleship\", 1);\n\t\tMovie Movie4 = new Movie(\"Pixels\", 1);\n\t\tMovie Movie5 = new Movie(\"Smosh: The Movie\", 3);\n\t\tSystem.out.println(Movie1.getTicketPrice());\n\t\tSystem.out.println(Movie2.getTicketPrice());\n\t\tSystem.out.println(Movie3.getTicketPrice());\n\t\tSystem.out.println(Movie4.getTicketPrice());\n\t\tSystem.out.println(Movie5.getTicketPrice());\n\t\tNetflixQueue queue = new NetflixQueue();\n\t\tqueue.addMovie(Movie1);\n\t\tqueue.addMovie(Movie2);\n\t\tqueue.addMovie(Movie3);\n\t\tqueue.addMovie(Movie4);\n\t\tqueue.addMovie(Movie5);\n\t\tqueue.printMovies();\n\t\tqueue.sortMoviesByRating();\n\t\tqueue.printMovies();\n\t}", "@Override\n public boolean equals(Object thatObject){\n if(!(thatObject instanceof Voice)) return false;\n Voice thatVoiceObject= (Voice)thatObject;\n Set<Bar> temp1= new HashSet<Bar>();\n Set<Bar> temp2= new HashSet<Bar>();\n Set<Bar> temp3=new HashSet<Bar>();\n Set<Bar> temp4=new HashSet<Bar>();\n int counter=0;\n if (thatVoiceObject.duration()!=this.duration()){\n checkRep();\n return false;\n }\n else{\n temp3.addAll(this.voices);\n temp4.addAll(thatVoiceObject.voices);\n temp1.addAll(this.voices);\n temp2.addAll(thatVoiceObject.voices);\n if (temp1.size()>=temp2.size()){\n temp1.removeAll(temp2);\n temp4.removeAll(temp3);\n Iterator<Bar> iterator=temp1.iterator();\n while (iterator.hasNext()){\n Bar iteratorBar= iterator.next();\n if (iteratorBar.transpose(1).equals(iteratorBar)){\n counter++;\n }\n }\n if (counter==temp1.size()){\n counter=0;\n Iterator<Bar> iterator4=temp4.iterator();\n while(iterator4.hasNext()){\n Bar iteratorBar=iterator4.next();\n if (iteratorBar.transpose(1).equals(iteratorBar)){\n counter++;\n }\n }\n if (counter==temp4.size()){\n checkRep();\n return true;\n }\n else{\n checkRep();\n return false;\n }\n }\n else{\n checkRep();\n return false;\n }\n }\n else{\n temp2.removeAll(temp1);\n temp3.removeAll(temp4);\n Iterator<Bar> iterator=temp2.iterator();\n while (iterator.hasNext()){\n Bar iteratorBar= iterator.next();\n if(iteratorBar.transpose(1).equals(iteratorBar)){\n counter++;\n }\n }\n if(counter==temp2.size()){\n counter=0;\n Iterator<Bar> iterator3=temp3.iterator();\n while(iterator3.hasNext()){\n Bar iteratorBar=iterator3.next();\n if(iteratorBar.transpose(1).equals(iteratorBar)){\n counter++;\n } \n }\n if(counter==temp3.size()){\n checkRep();\n return true;\n }\n else{\n checkRep();\n return false;\n }\n }\n else{\n checkRep();\n return false;\n } \n } \n }\n }", "@Override\n public int compare(Score o1, Score o2) {\n\n return o1.getSentId() - o2.getSentId();\n }", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "@Test\r\n public void testGetMovieReleaseInfo() throws MovieDbException {\r\n LOG.info(\"getMovieReleaseInfo\");\r\n List<ReleaseInfo> result = tmdb.getMovieReleaseInfo(ID_MOVIE_BLADE_RUNNER, \"\");\r\n assertFalse(\"Release information missing\", result.isEmpty());\r\n }", "public static void main(String [] args) {\n int[] ticket = fillTicket(TICKET_SIZE, MIN, MAX);\n Arrays.sort(ticket);\n int[] lotto = new int [TICKET_SIZE];\n int best = 0;\n long weeks = 0;\n boolean win = false;\n boolean showAllInput = Console.twoOptions(\"Yes\", \"No\", \"Do you want to see your ticket next to the winning numbers\\nevery time you get a bigger win than before?\", ERROR_MESSAGE_NOT_AN_OPTION);\n while(!win) {\n lotto = calculateLotto(TICKET_SIZE, MIN, MAX);\n weeks++;\n if(Arrays.containsSameValues(ticket, lotto) > best) {\n if(showAllInput) {\n System.out.print(\"\\nYour numbers: \");\n Arrays.printFilled(ticket, 2, '0');\n Arrays.sort(lotto);\n System.out.print(\"The winning numbers: \");\n Arrays.printFilled(lotto, 2, '0');\n System.out.println(); \n }\n best = Arrays.containsSameValues(ticket, lotto);\n int years = (int)(weeks / 52);\n String yearString = Integers.formatIntToString(years, 3);\n System.out.println(\"You got \" + best + \" right! It only took \" + yearString + \" years!\");\n if(Arrays.containsSameValues(ticket, lotto) == TICKET_SIZE && years <= 120) {\n win = true;\n } else if(Arrays.containsSameValues(ticket, lotto) == TICKET_SIZE) {\n System.out.println(\"\\nYou won!\\nIt's still more than a lifetime though, so let's try again!\\n\");\n best = 0;\n weeks = 0;\n }\n }\n }\n }", "private boolean compareBookings(Iterable<Booking> bookings,\n\t\t\tBookingRequest booking) {\n\t\tfor (Booking book : bookings) {\n\t\t\tif (book.getPerformer().equals(booking.getPerformer())\n\t\t\t\t\t&& book.getVenueName().equals(booking.getVenueName())\n\t\t\t\t\t&& booking.getOpen().equals(book.getOpen())\n\t\t\t\t\t&& booking.getClose().equals(book.getClose())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Movie(Movie other) {\n __isset_bitfield = other.__isset_bitfield;\n this.adult = other.adult;\n if (other.isSetBackdrop_path()) {\n this.backdrop_path = other.backdrop_path;\n }\n if (other.isSetBelongs_to_collection()) {\n this.belongs_to_collection = other.belongs_to_collection;\n }\n this.budget = other.budget;\n if (other.isSetGenres()) {\n List<Genre> __this__genres = new ArrayList<Genre>(other.genres.size());\n for (Genre other_element : other.genres) {\n __this__genres.add(other_element);\n }\n this.genres = __this__genres;\n }\n if (other.isSetHomepage()) {\n this.homepage = other.homepage;\n }\n this.id = other.id;\n if (other.isSetImdb_id()) {\n this.imdb_id = other.imdb_id;\n }\n if (other.isSetOriginal_language()) {\n this.original_language = other.original_language;\n }\n if (other.isSetOriginal_title()) {\n this.original_title = other.original_title;\n }\n if (other.isSetOverview()) {\n this.overview = other.overview;\n }\n this.popularity = other.popularity;\n if (other.isSetPoster_path()) {\n this.poster_path = other.poster_path;\n }\n if (other.isSetProduction_companies()) {\n List<ProductionCompany> __this__production_companies = new ArrayList<ProductionCompany>(other.production_companies.size());\n for (ProductionCompany other_element : other.production_companies) {\n __this__production_companies.add(other_element);\n }\n this.production_companies = __this__production_companies;\n }\n if (other.isSetProduction_countries()) {\n List<ProductionCountry> __this__production_countries = new ArrayList<ProductionCountry>(other.production_countries.size());\n for (ProductionCountry other_element : other.production_countries) {\n __this__production_countries.add(other_element);\n }\n this.production_countries = __this__production_countries;\n }\n if (other.isSetRelease_date()) {\n this.release_date = other.release_date;\n }\n this.revenue = other.revenue;\n this.runtime = other.runtime;\n if (other.isSetSpoken_languages()) {\n List<SpokenLanguage> __this__spoken_languages = new ArrayList<SpokenLanguage>(other.spoken_languages.size());\n for (SpokenLanguage other_element : other.spoken_languages) {\n __this__spoken_languages.add(other_element);\n }\n this.spoken_languages = __this__spoken_languages;\n }\n if (other.isSetStatus()) {\n this.status = other.status;\n }\n if (other.isSetTagline()) {\n this.tagline = other.tagline;\n }\n if (other.isSetTitle()) {\n this.title = other.title;\n }\n this.video = other.video;\n this.vote_average = other.vote_average;\n this.vote_count = other.vote_count;\n }", "public boolean isEqual(ShowTime st){\n \tif(st.getDateTime().isEqual(this.dateTime) && st.movie.getTitle().equals(this.movie.getTitle())){\n \t\treturn true;\n\t\t}\n \treturn false;\n\t}", "public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}", "Match getTeam2LooserOfMatch();", "@Override\r\n\tpublic int compareTo(Mano m2)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tint r=0;\r\n\t\t\r\n\t\tif(tipo.getValor()\t\t<\tm2.tipo.getValor()) r = -1;\r\n\t\telse if(tipo.getValor()\t>\tm2.tipo.getValor()) r = 1;\r\n\t\t\t\t\r\n\t\telse if(tipo.getValor()\t==\tm2.tipo.getValor())\r\n\t\t{\r\n\t\t\tint i=0;\r\n\t\t\t\r\n\t\t\twhile(r==0 && i< cartas.size() )\r\n\t\t\t{\r\n\t\t\t\tr = cartas.get(i).compareTo(m2.cartas.get(i));\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn r;\r\n\t\t\r\n\t}", "@Override\n\t//o1 > o2 如果返回正数则 升序。\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tint ret = 1;\n\t\tif(o1.getRatingNum() > o2.getRatingNum()){\n\t\t\t//键入中文的负号,竟然是一个运行时错误。\n\t\t\tret = -1;\n\t\t}else if(o1.getRatingNum() == o2.getRatingNum()){\n\t\t\tret = 0;\n\t\t}\n\t\treturn ret;\n\t\t//下一句有double类型的舍入误差。\n\t\t//return (int) (o1.getRatingNum() - o2.getRatingNum());\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Movie)) {\n return false;\n }\n return id != null && id.equals(((Movie) o).id);\n }", "boolean isWinningCombination(Ticket ticket);", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "public Movie(String revenue, Person director, String movieReleasedYear) {\n this.revenue=revenue;\n this.director=director;\n this.movieReleasedYear=movieReleasedYear;\n }", "@Test\n\tpublic void test_equals2() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"NotSherlock\",\"BBC\");\n\tassertFalse(t1.equals(t2));\n }", "@Test\n\tpublic void equalGraphsWhichMatchTerms(){\n\t\tTerm term = new Term();\n\t\tterm.setName(\"tutorials\");\n\t\tterm.setNodeid(\"24\");\n\t\ttermRepository.save(term);\n\t\tList<Term> termList = termRepository.findTerms();\n\t\tAssert.assertEquals(\"tutorials\", term.getName());\n\t\tAssert.assertEquals(\"24\", term.getNodeid());\n\t}", "public boolean inStock(String title, int quantity) {\n // Search for the book...if found, adjust the quantity. \n // otherwise, Book not in the BookStore.\n for (int i =0; i<books.length; i++) \n {\n if (title.equals(books[i].getTitle())) \n {\n if (quantity <= books[i].getQuantity()) \n {\n return true;\n }\n else \n {\n return false;\n }\n }\n }\n return false;\n\n }", "public int compareGenre(Song other) {\n return this.genre.compareTo(other.getGenre());\n }", "@Override\n\tpublic boolean equals(Object o)\n\t{\n\t\tif ( o instanceof DVD )\n\t\t{\n\t\t\tDVD dvd = (DVD)o;\n\n\t\t\tif ( dvd.getPrice() == this.getPrice()\n\t\t\t\t\t&& dvd.getQuantity() == this.getQuantity()\n\t\t\t\t\t&& dvd.getStatus().getCode() == this.getStatus().getCode()\n\t\t\t\t\t&& dvd.getTitle().equals(this.getTitle()) )\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public int compare(Tweet e1, Tweet e2) {\n\t\t// Compares the dates the tweets were posted, and return this value\n\t\treturn e1.getDate().compareTo(e2.getDate());\n\t}", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public static void compareCombos() {\n\t\tint currentTotal = 0;\n\t\tint pastTotal = 0;\n\n\t\tcost++;\n\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\tcurrentTotal += board[i][currentCombo[i]];\n\t\t\tpastTotal += board[i][bestCombo[i]];\n\t\t}\n\t\t\n\t\tif (currentTotal >= pastTotal) {\n\t\t\tbestTotal = 0;\n\t\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\t\tbestCombo[i] = currentCombo[i];\n\t\t\t\tbestTotal += board[i][currentCombo[i]];\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Customer u1= new Customer(\"Smith\",\"John\",\"2323\",\"wp@pl\");\n Customer u2= new Customer(\"Smith\",\"John\",\"23211\",\"wp@pl\");\n if(u1.equals(u2)){\n System.out.println(\"Sa rowni \");\n\n }else {\n System.out.println(\"niew sa rowni\");\n }\n }", "public void compareWithinClusters() {\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tfor (Cluster cluster : clusterList) {\n\t\t\tList<Document> docList = documentDao.getDocListByClusterId(cluster.getId());\n\t\t\tint size = docList.size();\n\t\t\t\n\t\t\tdouble[][] matrix = new double[size][size];\n\t\t\t\n\t\t\tfor(int i =0; i<size; i++){\n\t\t\t\tmatrix[i][i] = 1;\n\t\t\t\tmatrix[i][i] = 1;\n\t\t\t}\n\t\t\t\n\t\t\tif (size > 1) {\n\t\t\t\t//List<Document> docList2 = docList1;\n\t\t\t\tfor (int i=0; i<size; i++){\n\t\t\t\t\tfor(int j=i+1; j<size; j++){\n\t\t\t\t\t\t//match docs docList.get(i) & docList.get(j)\n\t\t\t\t\t\tMap<String, Double> map = datumboxCaller.compareDocs(docList.get(i).getDocName(), docList.get(j).getDocName());\n\t\t\t\t\t\tmatrix[i][j] = map.get(\"Oliver\");\n\t\t\t\t\t\tmatrix[j][i] = map.get(\"Shingle\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//persist both metrics in a file \n\t\t\tpersist(matrix, cluster, docList);\n\t\t\t\n\t\t\t//printing the matrix\n\t\t\tSystem.out.println(\"\\nDocument Similarity Matrix for Cluster \"+cluster.getId());\n\t\t\tSystem.out.println(\"\\nOliver Metric\");\n\t\t\tSystem.out.print(\"id\");\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t\tSystem.out.print(\"\\t\"+docList.get(i).getId());\n\t\t\t\n\t\t\tfor(int i=0; i<size; i++){\n\t\t\t\tSystem.out.println(docList.get(i).getId());\n\t\t\t\tfor(int j=0; j<size; j++){\n\t\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\tif(j>=i)\n\t\t\t\t\t\tSystem.out.print(matrix[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nShingle Metric\");\n\t\t\tSystem.out.print(\"id\");\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t\tSystem.out.print(\"\\t\"+docList.get(i).getId());\n\t\t\t\n\t\t\tfor(int i=0; i<size; i++){\n\t\t\t\tSystem.out.print(\"\\n\"+docList.get(i).getId());\n\t\t\t\tfor(int j=0; j<size; j++){\n\t\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\tif(j>=i)\n\t\t\t\t\t\tSystem.out.print(matrix[j][i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//print ends\n\t\t\t\n\t\t}\n\n\t}", "@Test\n public void test2() {\n String expectedName = \"Fury\";\n String expectedSalutation = \"Mr\";\n String expectedEmail = \"[email protected]\";\n String expectedPassword = \"23ab\";\n int expectedBalance = 0;\n ArrayList<MusicTitle> expectedList = new ArrayList<>();\n\n String actualName = userFury.getName();\n String actualSalutation = userFury.getSalutation();\n String actualEmail = userFury.getEmail();\n String actualPassword = userFury.getPassword();\n int actualBalance = userFury.getBalance();\n ArrayList<MusicTitle> actualList = userFury.getTitlesBought();\n\n assertEquals(expectedName, actualName);\n assertEquals(expectedSalutation, actualSalutation);\n assertEquals(expectedEmail, actualEmail);\n assertEquals(expectedPassword, actualPassword);\n for (int i = 0; i < actualList.size(); i++) {\n assertEquals(expectedList.get(i), actualList.get(i));\n }\n }", "public void add(String t, int y, double r){\n\t//checks if all parameters are valid. If not, throws exception\n\ttry{\t\n\t//if needed increases then movie already exists and if statement to add movie won't be valid\n\tint needed = 0;\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y) {\n\tneeded=1;\n\t//get old quantity \n\tint newQuantity = list.get(x).getQuantity();\n\t//increase it's value by one\n\tnewQuantity++;\n\t//update quantity for that movie by one\n\tlist.get(x).setQuantity(newQuantity);\n\t//update rating of movie to new one\n\tlist.get(x).setRating(r);\n\t} \n\t}\n\t//if needed is still 0\n\tif(needed == 0){\t\n\t//add new movie with all the parameters provided\n\tMovie movie = new Movie(t,y,r,0);\t\n\tlist.add(movie);\n\t//since it's a new movie quantity is set to 1\n\tlist.get((list.size())-1).setQuantity(1);\n\t}\n\t}\n catch(IllegalArgumentException e){\n \tSystem.out.println(\"One of the parameters is invalid so the film was not added to the inventory! \\n\");\n }\n\n\t}", "static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) {\r\n\t\tList<Integer> val = new ArrayList<>();\r\n\t\tint aScore = 0;\r\n\t\tint bScore = 0;\r\n\t\tfor (int i=0; i<3;i++) {\r\n\t\t\tfor (int j=0;j<3;j++) {\r\n\t\t\t\tif (i==j) {\r\n\t\t\t\t\tint tempA = a.get(i);\r\n\t\t\t\t\tint tempB = b.get(j);\r\n\t\t\t\t\tif (!(1<=tempA && tempA<=100 && 1<=tempB && 1<=tempB)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (tempA<tempB) {\r\n\t\t\t\t\t\tbScore += 1;\r\n\t\t\t\t\t} else if (tempA>tempB) {\r\n\t\t\t\t\t\taScore += 1;\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\tval.add(aScore);\r\n\t\tval.add(bScore);\r\n\t\treturn val;\r\n\t}" ]
[ "0.6114418", "0.59613377", "0.5838165", "0.5720028", "0.5667119", "0.56497574", "0.55625373", "0.5562042", "0.55455893", "0.5323991", "0.5307871", "0.5297075", "0.52741605", "0.52587634", "0.5234855", "0.5220045", "0.5208408", "0.52019477", "0.51885235", "0.5175949", "0.5167591", "0.5162073", "0.51467276", "0.5128344", "0.5115532", "0.5113311", "0.5104941", "0.5080589", "0.5074252", "0.5072501", "0.506106", "0.5060677", "0.50604475", "0.5032551", "0.50252795", "0.5022702", "0.5022702", "0.5017987", "0.50099945", "0.5001021", "0.49883515", "0.49775985", "0.49708238", "0.49630293", "0.49629924", "0.49544492", "0.494641", "0.49350804", "0.4931578", "0.49290568", "0.4915267", "0.4915175", "0.490213", "0.48870954", "0.48861012", "0.48841852", "0.4878363", "0.48660263", "0.48655492", "0.485792", "0.4857604", "0.48567018", "0.48533374", "0.4849444", "0.48385715", "0.48364237", "0.48355544", "0.48333716", "0.4832019", "0.4829639", "0.48242036", "0.4820358", "0.48076504", "0.4807447", "0.48061743", "0.48053497", "0.48023716", "0.48018292", "0.4798768", "0.47934493", "0.47854266", "0.4781319", "0.47769767", "0.47764567", "0.4775078", "0.47627044", "0.47602928", "0.47571227", "0.47545272", "0.47496277", "0.4747368", "0.47467446", "0.47429743", "0.47400323", "0.4738336", "0.4737672", "0.4729939", "0.47275546", "0.4725443", "0.47241682" ]
0.6596433
0
Let's take the tumor bean in common to test tumor has 3 properties: tumorId, tumorName, tumorDescription;
@Test public void testGetterMethodSucess() throws Exception { Method m = GetterMethod.getGetter(Tumor.class, "tumorId"); assertNotNull(m); assertEquals("getTumorId", m.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }", "@Test\n public void testJPA3ListAll (){\n Iterable<TruckInfo> trucklist = truckRepo.findAll();\n\n\n\n\n }", "private static void testLunchOrderBean() {\n LunchOrderBean bean = new LunchOrderBean();\n bean.setBread(\"Bean Bread\");\n bean.setCondiments(\"Bean Condiments\");\n bean.setDressing(\"Bean Dressings\");\n bean.setMeat(\"Bean Meat\");\n\n System.out.println(bean.getBread());\n System.out.println(bean.getCondiments());\n System.out.println(bean.getDressing());\n System.out.println(bean.getMeat());\n\n }", "@Test\r\n public void testCreate() throws Exception {\r\n PodamFactory pf=new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity=pf.manufacturePojo(MonitoriaEntity.class);\r\n MonitoriaEntity respuestaEntity=persistence.create(nuevaEntity);\r\n Assert.assertNotNull(respuestaEntity);\r\n Assert.assertEquals(respuestaEntity.getId(), nuevaEntity.getId());\r\n Assert.assertEquals(respuestaEntity.getIdMonitor(), nuevaEntity.getIdMonitor());\r\n Assert.assertEquals(respuestaEntity.getTipo(), nuevaEntity.getTipo());\r\n \r\n \r\n }", "@Override\n protected void createTestBean() {\n ProjectStatusDAOBean bean = new ProjectStatusDAOBean();\n bean.setEntityManager(getEntityManager());\n setTestBean(bean);\n }", "@Test\n public void updateTarjetaPrepagoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n TarjetaPrepagoEntity resp = em.find(TarjetaPrepagoEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getSaldo(), resp.getSaldo(),0.001);\n Assert.assertEquals(pojoEntity.getPuntos(), resp.getPuntos(), 0.001);\n Assert.assertEquals(pojoEntity.getNumTarjetaPrepago(), resp.getNumTarjetaPrepago());\n }", "@Test\n public void createPerroTest() throws BusinessLogicException {\n \n PerroEntity newEntity = factory.manufacturePojo(PerroEntity.class);\n int ed = newEntity.getEdad();\n \n if(ed<0){\n newEntity.setEdad(ed*-1);\n }\n \n PerroEntity result = perroLogic.createPerro(newEntity);\n int edad =result.getEdad();\n if(edad<0)\n {\n result.setEdad(edad*-1);\n }\n \n\n\n \n Assert.assertNotNull(result);\n PerroEntity entity = em.find(PerroEntity.class, result.getId());\n int eda =entity.getEdad();\n if(eda<0)\n {\n entity.setEdad(eda*-1);\n }\n \n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertEquals(newEntity.getIdPerro(), entity.getIdPerro());\n Assert.assertEquals(newEntity.getNombre(), entity.getNombre());\n Assert.assertEquals(newEntity.getEdad(), entity.getEdad());\n Assert.assertEquals(newEntity.getRaza(), entity.getRaza());\n }", "@Test\n public void getEmpleadoTest() {\n EmpleadoEntity entity = data.get(0);\n EmpleadoEntity resultEntity = empleadoLogic.getEmpleado(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombreEmpleado(), resultEntity.getNombreEmpleado());\n Assert.assertEquals(entity.getNombreUsuario(), resultEntity.getNombreUsuario());\n }", "@Test\n public void testGetLugarInteres() {\n LugaresInteresEntity lugar = new LugaresInteresEntity();\n lugar.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setLugarInteres(lugar);\n Assert.assertTrue(hospedajeL.getLugarInteres().getId().equals(lugar.getId()));\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<UserRoles> usersRoles = genericDao.getByPropertyEqual(\"roleName\", \"admin\");\n assertEquals(1, usersRoles.size());\n assertEquals(3, usersRoles.get(0).getId());//not sure about this one\n }", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n p1 = new Person(\"Joakim\", \"Stensnaes\", \"[email protected]\");\n p2 = new Person(\"Benjamin\", \"Benzo\", \"[email protected]\");\n p3 = new Person(\"Thor\", \"Thorsten\", \"[email protected]\");\n p4 = new Person(\"Lars\", \"Larsen\", \"[email protected]\");\n\n Hobby h1 = new Hobby(\"Acting\", \"\", \"\", \"\");\n Hobby h2 = new Hobby(\"Baking\", \"\", \"\", \"\");\n Hobby h3 = new Hobby(\"Cooking\", \"\", \"\", \"\");\n\n Address a1 = new Address(\"Bagervej 12\", \"N/A\");\n Address a2 = new Address(\"Krystalgade 40\", \"N/A\");\n\n CityInfo c1 = new CityInfo(\"2200\", \"København N\");\n CityInfo c2 = new CityInfo(\"2400\", \"København N\");\n\n Phone ph1 = new Phone(\"20202020\", \"\");\n Phone ph2 = new Phone(\"30303030\", \"\");\n Phone ph3 = new Phone(\"40404040\", \"\");\n Phone ph4 = new Phone(\"50505050\", \"\");\n Phone ph5 = new Phone(\"60606060\", \"\");\n\n p1.addHobby(h1);\n p1.addHobby(h2);\n p2.addHobby(h1);\n p3.addHobby(h2);\n p3.addHobby(h3);\n p4.addHobby(h1);\n p4.addHobby(h2);\n p4.addHobby(h3);\n\n a1.setCityInfo(c1);\n a2.setCityInfo(c2);\n\n p1.setAddress(a1);\n p2.setAddress(a1);\n p3.setAddress(a2);\n p4.setAddress(a2);\n\n p1.addPhone(ph1);\n p1.addPhone(ph2);\n p2.addPhone(ph3);\n p3.addPhone(ph4);\n p4.addPhone(ph5);\n\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE from CityInfo\").executeUpdate();\n em.createQuery(\"DELETE from Address\").executeUpdate();\n em.createQuery(\"DELETE from Hobby\").executeUpdate();\n em.createQuery(\"DELETE from Phone\").executeUpdate();\n em.createQuery(\"DELETE from Person\").executeUpdate();\n em.persist(p1);\n em.persist(p2);\n em.persist(p3);\n em.persist(p4);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@Test\n @Transactional\n void createTerritorioWithExistingId() throws Exception {\n territorio.setId(1L);\n\n int databaseSizeBeforeCreate = territorioRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restTerritorioMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(territorio)))\n .andExpect(status().isBadRequest());\n\n // Validate the Territorio in the database\n List<Territorio> territorioList = territorioRepository.findAll();\n assertThat(territorioList).hasSize(databaseSizeBeforeCreate);\n }", "@Test\n @DisplayName(\"Testataan kaikkien tilausten haku\")\n void getAllReservations() {\n assertEquals(0, reservationsDao.getAllReservations().size());\n\n TablesEntity table1 = new TablesEntity();\n table1.setSeats(2);\n tablesDao.createTable(table1);\n // Test that returns the same number as created reservations\n ReservationsEntity firstReservation = new ReservationsEntity(\"amal\",\"46111222\", new Date(System.currentTimeMillis()), table1.getId(),new Time(1000),new Time(2000));\n reservationsDao.createReservation(firstReservation);\n\n TablesEntity table2 = new TablesEntity();\n table2.setSeats(2);\n tablesDao.createTable(table2);\n reservationsDao.createReservation(new ReservationsEntity(\"juho\", \"46555444\", new Date(System.currentTimeMillis()), table2.getId(), new Time(1000),new Time(2000)));\n\n List<ReservationsEntity> reservations = reservationsDao.getAllReservations();\n assertEquals(2, reservations.size());\n assertEquals(firstReservation, reservations.get(0));\n }", "@Test\n public void createEmpleadoTest() throws BusinessLogicException {\n \n try{\n EmpleadoEntity newEntity = factory.manufacturePojo(EmpleadoEntity.class);\n EmpleadoEntity result = empleadoLogic.createEmpleado(newEntity);\n Assert.assertNotNull(result);\n EmpleadoEntity entity = em.find(EmpleadoEntity.class, result.getId());\n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertEquals(newEntity.getNombreEmpleado(), entity.getNombreEmpleado());\n Assert.assertEquals(newEntity.getNombreUsuario(), entity.getNombreUsuario());\n }catch(BusinessLogicException b){\n Assert.fail();\n }\n }", "@Test\n public void findAll() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Nota n2 = new Nota(2, 2, \"prof\", 9, \"Nu ai teste\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n int countS=0, countT=0, countN=0;\n for(Student ignored : repo.findAll()) countS++;\n for(Tema ignored : repot.findAll()) countT++;\n for(Nota ignored : repon.findAll()) countN++;\n assert countS==2;\n assert countT==2;\n assert countN==2;\n\n }\n catch (ValidationException e){\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 }", "@Test\n public void testGetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }", "@Test\n public void createTest() {\n // Se construye una fabrica de objetos\n PodamFactory factory = new PodamFactoryImpl();\n\n //A la fabrica de objetos se le pide que nos de un objeto del tipo que le pasamos por parametro\n ViajeroEntity viajero = factory.manufacturePojo(ViajeroEntity.class);\n\n ViajeroEntity result = vp.create(viajero);\n // Pruebo que el resultado del metodo create no sea null\n Assert.assertNotNull(result);\n\n // El entity manager busca en la base de datos si hay una entidad que coincida con la \n // entidad que acabo de crear por su id\n ViajeroEntity entity\n = em.find(ViajeroEntity.class, result.getId());\n\n // Verifico que para cada entidad creada por podam,\n // en la base de datos se reflejen esos mismos datos\n Assert.assertEquals(viajero.getContrasenha(), entity.getContrasenha());\n Assert.assertEquals(viajero.getCorreo(), entity.getCorreo());\n Assert.assertEquals(viajero.getFechaDeNacimiento(), entity.getFechaDeNacimiento());\n Assert.assertEquals(viajero.getNombre(), entity.getNombre());\n Assert.assertEquals(viajero.getNumDocumento(), entity.getNumDocumento());\n Assert.assertEquals(viajero.getTelefono(), entity.getTelefono());\n Assert.assertEquals(viajero.getTipoDocumento(), entity.getTipoDocumento());\n }", "@Test\n public void createComentarioTest() {\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity nuevaEntity = factory.manufacturePojo(ComentarioEntity.class);\n ComentarioEntity resultado = comentarioPersistence.create(nuevaEntity);\n\n Assert.assertNotNull(resultado);\n\n ComentarioEntity entity = em.find(ComentarioEntity.class, resultado.getId());\n\n Assert.assertEquals(nuevaEntity.getNombreUsuario(), entity.getNombreUsuario());\n \n }", "public static void testEmprunt() throws DaoException {\r\n EmpruntDao empruntDao = EmpruntDaoImpl.getInstance();\r\n LivreDao livreDao = LivreDaoImpl.getInstance();\r\n MembreDao membreDao = MembreDaoImpl.getInstance();\r\n\r\n List<Emprunt> list = new ArrayList<Emprunt>();\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n 'Emprunts' list: \" + list);\r\n\r\n list = empruntDao.getListCurrent();\r\n System.out.println(\"\\n Current 'Emprunts' list: \" + list);\r\n\r\n list = empruntDao.getListCurrentByMembre(5);\r\n System.out.println(\"\\n Current 'Emprunts' list by member: \" + list);\r\n\r\n list = empruntDao.getListCurrentByLivre(3);\r\n System.out.println(\"\\n Current 'Emprunts' list by book: \" + list);\r\n\r\n Emprunt test = empruntDao.getById(5);\r\n System.out.println(\"\\n Selected 'Emprunt' : \" + test);\r\n\r\n empruntDao.create(1, 4, LocalDate.now());\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n List updated with one creation: \" + list);\r\n\r\n\r\n int id_book = livreDao.create(\"My Book\", \"My Autor\", \"123456\");\r\n Livre test_livre = new Livre();\r\n test_livre = livreDao.getById(id_book);\r\n int idMember = membreDao.create(\"Rodrigues\", \"Henrique\", \"ENSTA\", \"[email protected]\", \"+33071234567\", Abonnement.VIP);\r\n Membre test_membre = new Membre();\r\n test_membre = membreDao.getById(idMember);\r\n test = new Emprunt(2, test_membre, test_livre, LocalDate.now(), LocalDate.now().plusDays(60));\r\n empruntDao.update(test);\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n List updated: \" + list);\r\n //System.out.println(\"\\n \" + test_livre.getId() + \" \" + test_membre.getId());\r\n\r\n\r\n int total = empruntDao.count();\r\n System.out.println(\"\\n Number of 'emprunts' in DB : \" + total);\r\n\r\n }", "@Test\r\n public void testCreateUsuario() throws Exception \r\n {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n UsuarioEntity buscado = usuarioLogic.createUsuario(entity);\r\n Assert.assertNotNull(buscado);\r\n \r\n buscado = em.find(UsuarioEntity.class, entity.getId());\r\n Assert.assertEquals(entity, buscado);\r\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "@Test\n public void UpdatePerroTest() throws BusinessLogicException {\n\n PerroEntity entity = Perrodata.get(0);\n int edada =entity.getEdad();\n if(edada<0)\n {\n entity.setEdad(edada*-1);\n }\n \n PerroEntity newEntity = factory.manufacturePojo(PerroEntity.class);\n \n int e = newEntity.getEdad();\n if(e<0)\n {\n newEntity.setEdad(e*-1);\n }\n \n newEntity.setId(entity.getId());\n perroLogic.updatePerro(newEntity.getId(), newEntity);\n \n \n PerroEntity resp = em.find(PerroEntity.class, entity.getId());\n \n int eda =resp.getEdad();\n if(eda<0)\n {\n resp.setEdad(eda*-1);\n }\n \n Assert.assertEquals(newEntity.getId(), resp.getId());\n Assert.assertEquals(newEntity.getIdPerro(), resp.getIdPerro());\n Assert.assertEquals(newEntity.getNombre(), resp.getNombre());\n Assert.assertEquals(newEntity.getEdad(), resp.getEdad());\n Assert.assertEquals(newEntity.getRaza(), resp.getRaza());\n }", "@Test\n public void getTarjetasPrepagoTest() {\n List<TarjetaPrepagoEntity> list = tarjetaPrepagoLogic.getTarjetasPrepago();\n Assert.assertEquals(data.size(), list.size());\n for (TarjetaPrepagoEntity entity : list) {\n boolean found = false;\n for (TarjetaPrepagoEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Test\n public void getPerroTest() {\n \n PerroEntity entity = Perrodata.get(0);\n PerroEntity resultEntity = perroLogic.getPerro(entity.getId());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }", "@Test\n public void testGetUsersTank() throws Exception {\n\n UserTo userTo = new UserTo(MOCKED_USER,\"MockerUser\",\"pw123\");\n userTo.setId(1L);\n\n UserEntity userEntity = new UserEntity();\n Mapper.mapUserTo2Entity(userTo, userEntity);\n\n given(this.userRepository.getByEmail(MOCKED_USER)).willReturn(userEntity);\n\n AquariumTo aquariumTo = testDataFactory.getTestAquariumFor(userTo);\n AquariumEntity aquariumEntity = new AquariumEntity();\n Mapper.mapAquariumTo2Entity(aquariumTo, aquariumEntity);\n aquariumEntity.setUser(userEntity); // ToMappper does not Map the User\n\n given(this.aquariumRepository.getAquariumEntityByIdAndUser_IdIs(aquariumTo.getId(), userTo.getId())).willReturn(aquariumEntity);\n\n // and we need a valid authentication token for oure mocked user\n String authToken = TokenAuthenticationService.createAuthorizationTokenFor(MOCKED_USER);\n\n // when this authorized user requests his aquarium list\n HttpHeaders headers = RestHelper.prepareAuthedHttpHeader(authToken);\n HttpEntity<String> requestEntity = new HttpEntity<>(headers);\n\n // Notice the that the controller defines a list, the resttemplate will get it as array.\n ResponseEntity<String> responseEntity = restTemplate.exchange(\"/api/tank/\" + aquariumTo.getId(),\n HttpMethod.GET, requestEntity, String.class);\n\n // then we should get a 202 as result.\n assertThat(responseEntity.getStatusCode(), equalTo(HttpStatus.OK));\n\n // and our test aquarium\n AquariumTo myObject = objectMapper.readValue(responseEntity.getBody(), AquariumTo.class);\n assertEquals(myObject.getDescription(), aquariumTo.getDescription());\n }", "@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }", "@Test\n public void testSetLugarInteres() {\n LugaresInteresEntity lugar = new LugaresInteresEntity();\n lugar.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setLugarInteres(lugar);\n Assert.assertTrue(hospedajeL.getLugarInteres().getId().equals(lugar.getId()));\n }", "@Test\n void getByPropertyEqualUnique() {\n UserRoles role = (UserRoles)genericDAO.getByPropertyEqualUnique(\"userName\", \"admin\");\n assertEquals(\"admin\", role.getUserName());\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "public void test_findUniqueByPropertys() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByPropertys(Person.class, getParamMap(2));\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyLike(\"userName\", \"a\");\n for(UserRoles role : roles) {\n log.info(role.getUserName());\n }\n assertEquals(2, roles.size());\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<Event> events = genericDao.getByPropertyLike(\"name\", \"ti\");\n assertEquals(2, events.size());\n assertEquals(1, events.get(0).getId());\n assertEquals(2, events.get(1).getId());\n }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "@Test\n public void test_getSupervisors_2() throws Exception {\n User user1 = createUser(1, false);\n createUser(2, false);\n createUser(3, true);\n\n List<User> res = instance.getSupervisors();\n\n assertEquals(\"'getSupervisors' should be correct.\", 1, res.size());\n\n User entity1 = res.get(0);\n\n assertEquals(\"'getSupervisors' should be correct.\", user1.getUsername(), entity1.getUsername());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getDefaultTab(), entity1.getDefaultTab());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getNetworkId(), entity1.getNetworkId());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getRole().getId(), entity1.getRole().getId());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getFirstName(), entity1.getFirstName());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getLastName(), entity1.getLastName());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getEmail(), entity1.getEmail());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getTelephone(), entity1.getTelephone());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getStatus().getId(), entity1.getStatus().getId());\n }", "@Test(expected = BusinessLogicException.class)\n public void createEmpleadoConMismoNombreUsuarioTest() throws BusinessLogicException {\n \n\n EmpleadoEntity newEntity = factory.manufacturePojo(EmpleadoEntity.class);\n newEntity.setNombreUsuario(data.get(0).getNombreUsuario());\n empleadoLogic.createEmpleado(newEntity);\n\n }", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "@Test\n public void getEmpleadosTest() {\n List<EmpleadoEntity> list = empleadoLogic.getEmpleados();\n Assert.assertEquals(\"No tiene el mismo numero de empleados\",data.size(), list.size());\n for (EmpleadoEntity entity : list) {\n boolean found = false;\n for (EmpleadoEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(\"Alguno de los empleados en data no se encontro en la persitencia\",found);\n }\n }", "@Test\n public void testCarregarTableViewPagamentos() {\n }", "@BeforeEach\n\tpublic void setup() {\n\t\tuser= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\tuser_diverso= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username_diverso\", \n\t\t\t\t\"password\");\n\t\tuser_uguale= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\t\n\t\tfruitore =new Fruitore(user);\n\t\tfruitore_uguale =new Fruitore(user_uguale);\n\t\tfruitore_diverso =new Fruitore(user_diverso);\n\t}", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorGeneroFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class);\n\t\tquery.setParameter(\"genero\", \"carnivoras\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 2);\n\t}", "@Test\n void getByPropertyEqualSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyEqual(\"userName\", \"admin\");\n assertEquals(1, roles.size());\n assertEquals(1, roles.get(0).getUserRoleId());\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test CRUD Create with Address 04\")\n public void testCRUDCreateWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> address04s = new ArrayList<>();\n\n for (int i = 0; i < 20; i++) {\n SBAddress04 sbAddress04 = new SBAddress04();\n sbAddress04.setAddress04Street(\"KusumaramaStreet\" + i);\n sbAddress04.setAddress04Village(\"Seenigama\");\n sbAddress04.setAddress04City(\"Hikkaduwa\");\n sbAddress04.setAddress04Country(\"Sri Lanka\");\n sbAddress04.setAddress04Zip(\"29200\" + i);\n sbAddress04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbAddress04.setRawLastUpdateLogId(1);\n sbAddress04.setUpdateUserAccountId(1);\n sbAddress04.setRawActiveStatus(1);\n sbAddress04.setRawDeleteStatus(1);\n sbAddress04.setRawShowStatus(1);\n sbAddress04.setRawUpdateStatus(1);\n\n address04s.add(sbAddress04);\n }\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n address04s.forEach(address -> session.save(address));\n transaction.commit();\n\n address04s.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n MoraAccessProperties accessProperties = new MoraAccessProperties();\n UuidUtilities utilities = new UuidUtilities();\n\n address04s.forEach(address -> {\n accessProperties.setPropertyFromPath(\n \"D:\\\\SLMORAWorkSpace\\\\IntelliJProjects\\\\MoraHibernateLearn004\\\\src\\\\main\\\\resources\\\\hibernatetestsupport.properties\",\n \"MORA.HIBERNATE.TEST.testCRUDCreateWithAddress04.\" + address.getAddress04Street(),\n utilities.getUUIDFromOrderedUUIDByteArrayWithApacheCommons(address.getAddress04Id()).toString(),\n \"Test Comment\");\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test CRUD Create with Address 02\")\n public void testCRUDCreateWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress02> address02s = new ArrayList<>();\n\n for (int i = 0; i < 20; i++) {\n SBAddress02 sbAddress02 = new SBAddress02();\n sbAddress02.setAddress02Street(\"KusumaramaStreet\" + i);\n sbAddress02.setAddress02Village(\"Seenigama\");\n sbAddress02.setAddress02City(\"Hikkaduwa\");\n sbAddress02.setAddress02Country(\"Sri Lanka\");\n sbAddress02.setAddress02Zip(\"29200\" + i);\n sbAddress02.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbAddress02.setRawLastUpdateLogId(1);\n sbAddress02.setUpdateUserAccountId(1);\n sbAddress02.setRawActiveStatus(1);\n sbAddress02.setRawDeleteStatus(1);\n sbAddress02.setRawShowStatus(1);\n sbAddress02.setRawUpdateStatus(1);\n\n address02s.add(sbAddress02);\n }\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n address02s.forEach(address -> session.save(address));\n transaction.commit();\n\n address02s.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress02Street()));\n\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n MoraAccessProperties accessProperties = new MoraAccessProperties();\n UuidUtilities utilities = new UuidUtilities();\n\n address02s.forEach(address -> {\n accessProperties.setPropertyFromPath(\n \"D:\\\\SLMORAWorkSpace\\\\IntelliJProjects\\\\MoraHibernateLearn004\\\\src\\\\main\\\\resources\\\\hibernatetestsupport.properties\",\n \"MORA.HIBERNATE.TEST.testCRUDCreateWithAddress02.\" + address.getAddress02Street(),\n utilities.getUUIDFromOrderedUUIDByteArrayWithApacheCommons(address.getAddress02Id()).toString(),\n \"Test Comment\");\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n public void testSetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test CRUD Create with Address 05\")\n public void testCRUDCreateWithAddress05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress05> address05s = new ArrayList<>();\n\n for (int i = 0; i < 20; i++) {\n SBAddress05 sbAddress05 = new SBAddress05();\n sbAddress05.setAddress05Street(\"KusumaramaStreet\" + i);\n sbAddress05.setAddress05Village(\"Seenigama\");\n sbAddress05.setAddress05City(\"Hikkaduwa\");\n sbAddress05.setAddress05Country(\"Sri Lanka\");\n sbAddress05.setAddress05Zip(\"29200\" + i);\n sbAddress05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbAddress05.setRawLastUpdateLogId(1);\n sbAddress05.setUpdateUserAccountId(1);\n sbAddress05.setRawActiveStatus(1);\n sbAddress05.setRawDeleteStatus(1);\n sbAddress05.setRawShowStatus(1);\n sbAddress05.setRawUpdateStatus(1);\n\n address05s.add(sbAddress05);\n }\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n address05s.forEach(address -> session.save(address));\n transaction.commit();\n\n address05s.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress05Street()));\n\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n MoraAccessProperties accessProperties = new MoraAccessProperties();\n UuidUtilities utilities = new UuidUtilities();\n\n address05s.forEach(address -> {\n accessProperties.setPropertyFromPath(\n \"D:\\\\SLMORAWorkSpace\\\\IntelliJProjects\\\\MoraHibernateLearn004\\\\src\\\\main\\\\resources\\\\hibernatetestsupport.properties\",\n \"MORA.HIBERNATE.TEST.testCRUDCreateWithAddress05.\" + address.getAddress05Street(),\n utilities.getUUIDFromOrderedUUIDByteArrayWithApacheCommons(address.getAddress05Id()).toString(),\n \"Test Comment\");\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n public void updateComentarioTest(){\n ComentarioEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity newEntity = factory.manufacturePojo(ComentarioEntity.class);\n newEntity.setId(entity.getId());\n comentarioPersistence.update(newEntity);\n \n ComentarioEntity respuesta = em.find(ComentarioEntity.class,entity.getId());\n \n Assert.assertEquals(respuesta.getNombreUsuario(), newEntity.getNombreUsuario());\n \n \n }", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "public interface TreatmentRepository extends CrudRepository <Treatment, Integer> {\n}", "public void testGetContactUs(String namaContactUs){\n assertEquals(\"komentarContactUs\",contactUsJpa.getContactUs(\"namaContactUs\").getKomentarContactUs());\n }", "@Test\n @Order(4)\n @Transactional\n void shouldCreateAndFindToModify () throws Exception {\n LinkedMultiValueMap<String, String> materias = new LinkedMultiValueMap<>();\n materias.add(\"materias\", \"2\");\n materias.add(\"materias\", \"3\");\n mockMvc.perform(MockMvcRequestBuilders\n .post(NUEVO)\n .param(\"id\", \"\")\n .param(\"nombre\", \"Tony Stark\")\n .params(materias))\n .andExpect(status().isFound())\n .andExpect(status().is3xxRedirection())\n .andExpect(view().name(\"redirect:\" + INDEX))\n .andExpect(model().hasNoErrors())\n ;\n Profesor profesor = profesorService.findLastInserted();\n assertThat(profesor.getNombre()).isEqualTo(\"Tony Stark\");\n assertThat(profesor.getMaterias()).isNotNull();\n this.id = profesor.getId();\n //////////\n mockMvc.perform(MockMvcRequestBuilders.get(MODIFICAR, this.id))\n .andExpect(status().isOk())\n .andExpect(status().is2xxSuccessful())\n .andExpect(view().name(\"profesor-modificar\"))\n .andExpect(model().attributeExists(\"profesor\"))\n .andExpect(model().attributeExists(\"materiasWithNoProfesor\"))\n .andExpect(model().hasNoErrors())\n ;\n ///////////////////\n\n }", "@Test\n\tpublic void testCrudRole() {\n\t\tRoleUtilisateur r1 = new RoleUtilisateur();\n\t\tr1.setId(1);\n\t\tr1.setNom(\"Commercial\");\n\t\t\n\t\tRoleUtilisateur r2 = new RoleUtilisateur();\n\t\tr2.setId(2);\n\t\tr2.setNom(\"Magasinier\");\n\t\t\n\t\tSystem.err.println(daoRole.getDao());\n\t\tdaoRole.createRoleUtilisateur(r1);\n\t\tdaoRole.createRoleUtilisateur(r2);\n\t\t\n\t\t//Récuperation des deux rôles crées\n\t\tRoleUtilisateur r1Recup = daoRole.findByIdRoleUtilisateur(1);\n\t\t\n\t\tassertNotNull(r1Recup);\n\t\tassertEquals(\"Commercial\", r1Recup.getNom());\n\t\t\n\t\t\n\t\tRoleUtilisateur r2Recup = daoRole.findByIdRoleUtilisateur(2);\n\t\t\n\t\tassertNotNull(r2Recup);\n\t\tassertEquals(\"Magasinier\", r2Recup.getNom());\n\t\t\n\t\n\t\t//Modification des deux roles\n\t\tRoleUtilisateur r1Modifie = r1;\n\t\tr1Modifie.setNom(\"CommercialMod\");\n\t\t\n\t\tRoleUtilisateur r2Modifie = r2;\n\t\tr2Modifie.setNom(\"MagasinierMod\");\n\t\t\n\t\tdaoRole.updateRoleUtilisateur(r1Modifie);\n\t\tdaoRole.updateRoleUtilisateur(r2Modifie);\n\t\t\n\t\t\n\t\t\n\t\tRoleUtilisateur rRecupModifie1 = daoRole.findByIdRoleUtilisateur(1);\n\t\tassertEquals(\"CommercialMod\", rRecupModifie1.getNom());\n\n\t\tRoleUtilisateur rRecupModifie2 = daoRole.findByIdRoleUtilisateur(2);\n\t\tassertEquals(\"MagasinierMod\", rRecupModifie2.getNom());\n\t\t\n\t\t\n\t\t//Afficher la liste des roles\n\t\tList<RoleUtilisateur> allRoleUtilisateur = daoRole.findAllRoleUtilisateur();\n\t\tassertEquals(2, allRoleUtilisateur.size());\n\t\t\n\t\tassertEquals(\"CommercialMod\", allRoleUtilisateur.get(0).getNom());\n\t\tassertEquals(\"MagasinierMod\", allRoleUtilisateur.get(1).getNom());\n\n\n\t}", "@BeforeEach\n\tpublic void setup() {\n\t\t\n\t\trisorsa= new Film(1,1);\n\t\tuser=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user\",\"psw\");\n\t\tfruitore = new Fruitore(user);\n\t\t\n\t\trisorsa_diversa= new Film(2,1);\n\t\tuser_diverso=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user_diverso\",\"psw\");\n\t\tfruitore_diverso = new Fruitore(user_diverso);\n\t\t\n\t\tprestito= new Prestito(risorsa, fruitore);\n\t\tprestito_diverso= new Prestito(risorsa_diversa, fruitore_diverso);\n\t}", "@Test\n public void testRepositoryControl(){\n String databaseUrl = \"jdbc:h2:mem:fivet_db\";\n\n //Connection source: autoclose with the try/catch\n try(ConnectionSource connectionSource = new JdbcConnectionSource(databaseUrl)){\n\n //Create table Persona\n TableUtils.createTableIfNotExists(connectionSource, Persona.class);\n //Create table Ficha\n TableUtils.createTableIfNotExists(connectionSource, Ficha.class);\n //Create table Control\n TableUtils.createTableIfNotExists(connectionSource, Control.class);\n //Insert Personas on the table\n Repository<Persona,Long> theRepoPersona = new RepositoryOrmLite<>(connectionSource,Persona.class);\n\n Repository<Ficha,Long> repoFicha = new RepositoryOrmLite<>(connectionSource,Ficha.class);\n //Repository Control\n Repository<Control,Long> repoControl = new RepositoryOrmLite<>(connectionSource,Control.class);\n\n //Instanciar a Duenio\n Persona duenio = new Persona(\"Gerald\",\"Lopez\",\"198221287\",\"Malleco 1204\",55222222,944707039,\"[email protected]\");\n\n if(!theRepoPersona.create(duenio)){\n Assertions.fail(\"Can't insert persona\");\n }\n\n //Instanciar una ficha\n Ficha ficha = new Ficha(123, ZonedDateTime.now(),\"Firulais\",\"Canino\",\"Rottweiler\", Sexo.MACHO,\"Negro\", Tipo.INTERNO,duenio);\n\n if(!repoFicha.create(ficha)){\n Assertions.fail(\"Can't create ficha\");\n }\n\n Ficha ficha1 = repoFicha.findById(1L);\n\n //Instanciar a Veterinario\n Persona vet = new Persona(\"Mauricio\",\"Contreras\",\"116002825\",\"Av Argentina 0351\",55111111,987654321,\"[email protected]\");\n\n if(!theRepoPersona.create(vet)){\n Assertions.fail(\"Can't insert persona\");\n }\n\n //Instancia of Control\n Control control = new Control(ZonedDateTime.now(),ZonedDateTime.now(),36,40,68,\"Dado de alta\",vet,ficha1);\n\n //Crear un control via repositorio\n if(!repoControl.create(control)){\n Assertions.fail(\"Can't create control\");\n }\n\n\n log.debug(\"Control: {}.\", Entity.toString(control));\n\n log.debug(\"Ficha: {}\",Entity.toString(ficha1));\n\n\n\n\n } catch (SQLException | IOException exception){\n throw new RuntimeException(exception);\n }\n\n\n }", "@Test\n public void getComentarioTest() {\n ComentarioEntity entity = data.get(0);\n ComentarioEntity nuevaEntity = comentarioPersistence.find(dataLibro.get(0).getId(), entity.getId());\n Assert.assertNotNull(nuevaEntity);\n Assert.assertEquals(entity.getNombreUsuario(), nuevaEntity.getNombreUsuario());\n }", "@Test\n public void updateEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity pojoEntity = factory.manufacturePojo(EspecieEntity.class);\n pojoEntity.setId(entity.getId());\n especieLogic.updateSpecies(pojoEntity.getId(), pojoEntity);\n EspecieEntity resp = em.find(EspecieEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getNombre(), resp.getNombre());\n }", "@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }", "@Test\r\n public void updateCarritoDeComprasTest() {\r\n System.out.println(\"up voy\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n PodamFactory factory = new PodamFactoryImpl();\r\n CarritoDeComprasEntity newEntity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n\r\n newEntity.setId(entity.getId());\r\n\r\n carritoDeComprasPersistence.update(newEntity);\r\n\r\n CarritoDeComprasEntity resp = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n\r\n Assert.assertEquals(newEntity.getTotalCostDeCarritoCompras(), resp.getTotalCostDeCarritoCompras());\r\n \r\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "@PostConstruct\n public void init() {\n if (revenueRepository.findAll().isEmpty()) {\n for (int i = 2; i < 20; i++) {\n Revenue revenue = new Revenue.RevenueBuilder()\n // TODO später durch Response von Reservation ersetzen\n// .withValue(12)\n .withTimestamp(new Date().getTime())\n .withSoldTicketsFirstClassInternet(i + 40)\n .withSoldTicketsEconomyClassInternet(i + 30)\n .withSoldTicketsFirstClassTravelOffice(i + 25)\n .withSoldTicketsEconomyClassTravelOffice(i + 47)\n .withSoldTicketsFirstClassCounter(i + 40)\n .withSoldTicketsEconomyClassCounter(i + 23)\n .withsoldTicketsBusinessClassStaff(i + 13)\n .withsoldTicketsBusinessClassCounter(i + 41)\n .withsoldTicketsBusinessClassTravelOffice(i + 54)\n .withSoldTicketsBusinessClassInternet(i + 68)\n .withsoldTicketsFirstClassStaff(i + 24)\n .withsoldTicketsEconomyClassStaff(i + 17)\n .withFlightId(UUID.randomUUID())\n .build();\n revenueRepository.save(revenue);\n }\n Revenue revenueSame = new Revenue.RevenueBuilder()\n .withTimestamp(1452759161549L)\n .withSoldTicketsFirstClassInternet(50)\n .withSoldTicketsEconomyClassInternet(80)\n .withSoldTicketsFirstClassTravelOffice(90)\n .withSoldTicketsEconomyClassTravelOffice(100)\n .withSoldTicketsFirstClassCounter(500)\n .withSoldTicketsEconomyClassCounter(100)\n .withsoldTicketsBusinessClassStaff(13)\n .withsoldTicketsBusinessClassCounter(41)\n .withsoldTicketsBusinessClassTravelOffice(54)\n .withSoldTicketsBusinessClassInternet(68)\n .withsoldTicketsFirstClassStaff(24)\n .withsoldTicketsEconomyClassStaff(17)\n .withFlightId(UUID.fromString(\"9aacad96-6730-4443-b6f6-33325b00ce39\"))\n .build();\n revenueRepository.save(revenueSame);\n }\n }", "private void testMentorDAO(){\n System.out.println(\"==========================\");\n System.out.println(\"test finding mentor by userID\");\n int mentorID = mentorDAO.getIdMentor(11);\n System.out.println(mentorID);\n System.out.println(\"\\n\");\n\n // test setting mentor classroom\n // System.out.println(\"test setting mentor classroom\");\n // List<Integer> idsClassroom = new ArrayList<>();\n // idsClassroom.add(1);\n // idsClassroom.add(2);\n // idsClassroom.add(3);\n // int idMentor = 2;\n // mentorDAO.setMentorClassroom(idsClassroom, idMentor);\n // System.out.println(\"mentor classes set successfully\");\n // System.out.println(\"\\n\");\n\n // test finding mentor classes by mentorID\n System.out.println(\"test finding mentor classes by mentorID\");\n List<Classroom> classroomList = mentorDAO.getMentorClassrooms(2);\n for (Classroom classroom : classroomList) {\n System.out.println(classroom.toString());\n }\n System.out.println(\"\\n\");\n }", "@Test\n public void shouldInitializeBeans() throws Exception {\n FixtureAnnotations.initFixtures(this);\n\n assertThat(bean1.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean1.getIntProperty()).isEqualTo(1);\n\n assertThat(bean2.getStringProperty()).isEqualTo(\"property2\");\n assertThat(bean2.getIntProperty()).isEqualTo(1);\n\n assertThat(bean3.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean3.getIntProperty()).isEqualTo(1);\n assertThat(bean3.getListProperty()).containsExactly(\"element1\", \"element2\", \"element3\");\n\n assertThat(bean4.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean4.getIntProperty()).isEqualTo(3);\n\n assertThat(beanList).hasSize(3);\n assertThat(beanList.get(0).getStringProperty()).isEqualTo(\"property1\");\n assertThat(beanList.get(0).getIntProperty()).isEqualTo(1);\n assertThat(beanList.get(1).getStringProperty()).isEqualTo(\"property2\");\n assertThat(beanList.get(1).getIntProperty()).isEqualTo(2);\n assertThat(beanList.get(2).getStringProperty()).isEqualTo(\"property3\");\n assertThat(beanList.get(2).getIntProperty()).isEqualTo(3);\n }", "@Test\n public void test6FindByHeadquarters() {\n System.out.println(\"Prueba de Headquarters en metodo findByHeadquarters\");\n HeadquartersDAO dao = HeadquartersFactory.create(Headquarters.class);\n List<Headquarters> lista = dao.findByHeadquarters(\"SENA SEDE BARRIO COLOMBIA\");\n assertTrue(!lista.isEmpty());\n for (Headquarters headquarters : lista) {\n assertEquals(headquarters.getNameHeadquarters(),\"SENA SEDE BARRIO COLOMBIA\");\n }\n }", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "@Test\n public void shouldCreateCabrioWhenSummer() {\n CarSettlement.getSeasonAndTime(\"lato\", true);\n ApplicationContext context = new AnnotationConfigApplicationContext(\"com.kodilla.spring\");\n Car car = (Car) context.getBean(\"seasonCar\");\n //When\n String whichCar = car.getCarType();\n //Then\n Assertions.assertEquals(\"Cabrio\", whichCar);\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<Car> carList = carDao.getByPropertyLike(\"make\",\"Je\") ;\n assertEquals(1, carList.size());\n }", "@Test(expected = BusinessLogicException.class)\n public void updateTarjetaPrepagoConPuntosInvalidoTest() throws BusinessLogicException \n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity pojoEntity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n double valor = (Math.random()) * (-100);\n pojoEntity.setPuntos(valor);\n pojoEntity.setId(entity.getId());\n tarjetaPrepagoLogic.updateTarjetaPrepago(pojoEntity.getId(), pojoEntity);\n }", "@Test\n public void getPerrosTest() {\n List<PerroEntity> list = perroLogic.getPerros();\n Assert.assertEquals(Perrodata.size(), list.size());\n for (PerroEntity entity : list) {\n boolean found = false;\n for (PerroEntity storedEntity : Perrodata) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Test\n public void testCreateUsersTank() throws Exception {\n\n UserTo userTo = new UserTo(MOCKED_USER,\"MockerUser\",\"pw123\");\n userTo.setId(1L);\n\n UserEntity storedUserEntity = new UserEntity();\n Mapper.mapUserTo2Entity(userTo, storedUserEntity);\n\n given(this.userRepository.getByEmail(MOCKED_USER)).willReturn(storedUserEntity);\n\n\n AquariumTo aquariumTo = testDataFactory.getTestAquariumFor(userTo);\n AquariumEntity createdAquariumEntity = new AquariumEntity();\n\n createdAquariumEntity.setUser(storedUserEntity);\n\n mapAquariumTo2Entity(aquariumTo, createdAquariumEntity);\n\n given(this.aquariumRepository.saveAndFlush(any())).willReturn(createdAquariumEntity);\n\n // and we need a valid authentication token for our mocked user\n String authToken = TokenAuthenticationService.createAuthorizationTokenFor(MOCKED_USER);\n\n // when this authorized user requests to create a aquarium\n HttpHeaders headers = RestHelper.prepareAuthedHttpHeader(authToken);\n\n String requestJson = objectMapper.writeValueAsString(aquariumTo);\n HttpEntity<String> entity = new HttpEntity<String>(requestJson, headers);\n\n ResponseEntity<String> responseEntity = restTemplate.postForEntity(\"/api/tank/create\", entity, String.class);\n\n // then we should get a 201 as result.\n assertThat(responseEntity.getStatusCode(), equalTo(HttpStatus.CREATED));\n\n // and our test aquarium\n AquariumTo createdAquarium = objectMapper.readValue(responseEntity.getBody(), AquariumTo.class);\n assertEquals(createdAquarium.getDescription(), aquariumTo.getDescription());\n }", "public LotteryInfoEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Test\r\n public void testReadWrite() throws Throwable {\r\n System.out.println(\"testReadWrite\");\r\n\r\n Long o0 = Long.MAX_VALUE;\r\n Integer o1 = 1;\r\n String o2 =\"TEST\";\r\n Date o3 = new Date();\r\n Float o4 = 123456.456F;\r\n\r\n BeanUjoImpl ujb = new BeanUjoImpl();\r\n\r\n BeanUjoImpl.PRO_P0.setValue(ujb, o0);\r\n BeanUjoImpl.PRO_P1.setValue(ujb, o1);\r\n BeanUjoImpl.PRO_P2.setValue(ujb, o2);\r\n BeanUjoImpl.PRO_P3.setValue(ujb, o3);\r\n BeanUjoImpl.PRO_P4.setValue(ujb, o4);\r\n BeanUjoImpl.PRO_P0.setValue(ujb, o0);\r\n BeanUjoImpl.PRO_P1.setValue(ujb, o1);\r\n BeanUjoImpl.PRO_P2.setValue(ujb, o2);\r\n BeanUjoImpl.PRO_P3.setValue(ujb, o3);\r\n BeanUjoImpl.PRO_P4.setValue(ujb, o4);\r\n\r\n assertEquals(o0, BeanUjoImpl.PRO_P0.of(ujb));\r\n assertEquals(o1, BeanUjoImpl.PRO_P1.of(ujb));\r\n assertEquals(o2, BeanUjoImpl.PRO_P2.of(ujb));\r\n assertEquals(o3, BeanUjoImpl.PRO_P3.of(ujb));\r\n assertEquals(o4, BeanUjoImpl.PRO_P4.of(ujb));\r\n assertEquals(o0, BeanUjoImpl.PRO_P0.of(ujb));\r\n assertEquals(o1, BeanUjoImpl.PRO_P1.of(ujb));\r\n assertEquals(o2, BeanUjoImpl.PRO_P2.of(ujb));\r\n assertEquals(o3, BeanUjoImpl.PRO_P3.of(ujb));\r\n assertEquals(o4, BeanUjoImpl.PRO_P4.of(ujb));\r\n\r\n }", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "void populateObjects(UnitTestDescriptor unitTestDescriptor) {\n if (!unitTestDescriptor.isExternalTcesEnabled()) {\n PipelineTask tpsPipelineTask = createPipelineTask(TPS_TASK_ID, TPS_INSTANCE_ID);\n tpsDbResults = DvMockUtils.mockTpsResult(dvJMockTest,\n tpsOperations, FluxType.SAP,\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n tpsPipelineTask,\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getStartKeplerId(),\n unitTestDescriptor.getEndKeplerId(),\n unitTestDescriptor.getTargetsPerTable(),\n unitTestDescriptor.getPlanetaryCandidatesFilterParameters());\n keplerIds.clear();\n List<FsId> fsIdList = new ArrayList<FsId>(tpsDbResults.size());\n for (TpsDbResult tpsDbResult : tpsDbResults) {\n fsIdList.add(TpsFsIdFactory.getDeemphasizedNormalizationTimeSeriesId(\n TPS_INSTANCE_ID,\n tpsDbResult.getKeplerId(),\n tpsDbResult.getTrialTransitPulseInHours()));\n keplerIds.add(tpsDbResult.getKeplerId());\n }\n if (tpsDbResults.size() > 0) {\n producerTaskIds.add(TPS_TASK_ID);\n MockUtils.mockReadFloatTimeSeries(dvJMockTest, getFsClient(),\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(), TPS_TASK_ID,\n fsIdList.toArray(new FsId[fsIdList.size()]), false);\n }\n dvJMockTest.allowing(tpsCrud).retrieveLatestTpsRun(TpsType.TPS_FULL);\n dvJMockTest.will(returnValue(tpsPipelineTask.getPipelineInstance()));\n } else {\n externalTceModel = DvMockUtils.mockExternalTceModel(dvJMockTest,\n externalTceModelOperations,\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getStartKeplerId(),\n unitTestDescriptor.getEndKeplerId(),\n unitTestDescriptor.getTargetsPerTable(),\n unitTestDescriptor.getPlanetaryCandidatesFilterParameters());\n keplerIds.clear();\n for (ExternalTce tce : externalTceModel.getExternalTces()) {\n if (!keplerIds.contains(tce.getKeplerId())) {\n keplerIds.add(tce.getKeplerId());\n }\n }\n DvMockUtils.mockSkyGroupIdsForKeplerIds(dvJMockTest,\n celestialObjectOperations, keplerIds,\n unitTestDescriptor.getSkyGroupId());\n }\n celestialObjectParametersListByKeplerId = DvMockUtils.mockCelestialObjectParameterLists(\n dvJMockTest, celestialObjectOperations, keplerIds,\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getBoundedBoxWidth());\n targetTableLogs = DvMockUtils.mockTargetTables(dvJMockTest, targetCrud,\n TargetType.LONG_CADENCE, unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n unitTestDescriptor.getTargetTableCount());\n cadenceTimes = MockUtils.mockCadenceTimes(dvJMockTest, mjdToCadence,\n CadenceType.LONG, unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(), true, false);\n quarters = new ArrayList<Integer>(targetTableLogs.size());\n for (int i = 0; i < targetTableLogs.size(); i++) {\n quarters.add(i + 1);\n }\n skyGroups = DvMockUtils.mockSkyGroups(dvJMockTest, kicCrud,\n unitTestDescriptor.getSkyGroupId());\n observedTargetsList = DvMockUtils.mockTargets(dvJMockTest, targetCrud,\n targetTableLogs, keplerIds, allTargetFsIds);\n\n ancillaryPipelineDataByTargetTableLog = DvMockUtils.mockAncillaryPipelineData(\n dvJMockTest, mjdToCadence, rollTimeOperations, ancillaryOperations,\n unitTestDescriptor.getAncillaryPipelineMnemonics(),\n targetTableLogs, quarters, ANCILLARY_TASK_ID);\n if (unitTestDescriptor.getAncillaryPipelineMnemonics().length > 0) {\n producerTaskIds.add(ANCILLARY_TASK_ID);\n }\n DvMockUtils.mockArgabrighteningIndices(dvJMockTest, fsClient,\n targetTableLogs, ARGABRIGHTENING_TASK_ID);\n producerTaskIds.add(ARGABRIGHTENING_TASK_ID);\n backgroundBlobFileSeriesList = DvMockUtils.mockBackgroundBlobFileSeries(\n dvJMockTest, blobOperations, targetTableLogs,\n BACKGROUND_BLOB_TASK_ID);\n if (backgroundBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(BACKGROUND_BLOB_TASK_ID);\n }\n motionBlobFileSeriesList = DvMockUtils.mockMotionBlobFileSeries(\n dvJMockTest, blobOperations, targetTableLogs, MOTION_BLOB_TASK_ID);\n if (motionBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(MOTION_BLOB_TASK_ID);\n }\n cbvBlobFileSeriesList = DvMockUtils.mockCbvBlobFileSeries(dvJMockTest,\n blobOperations, targetTableLogs, CBV_BLOB_TASK_ID);\n if (cbvBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(CBV_BLOB_TASK_ID);\n }\n\n DvMockUtils.mockUkirtImages(dvJMockTest, blobOperations,\n AbstractDvPipelineModuleTest.MATLAB_WORKING_DIR, keplerIds);\n\n DvMockUtils.mockPlannedTargets(dvJMockTest, targetSelectionCrud,\n new HashSet<Integer>(keplerIds));\n }", "@Test\n public void testFindByProperties(){\n\n }", "@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_2_getOneDeptRole() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n d_2.getCompany()+\n \"/departments/\"+\n d_2.getId().toString()+\n \"/roles/\"+\n r_2.getId())\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\",is(r_2.getId().toString())))\n .andExpect(jsonPath(\"$.name\",is(r_2.getName())))\n .andExpect(jsonPath(\"$.description\",is(r_2.getDescription())))\n .andExpect(jsonPath(\"$.department\",is(r_2.getDepartment().toString())))\n .andExpect(jsonPath(\"$.occupants\",hasSize(1)))\n .andExpect(jsonPath(\"$.occupants\",containsInAnyOrder(\n s_1.getId().toString()\n )));\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\trooms.add(room1);\r\n\t\trooms1.add(room2);\r\n\r\n\t\tclasses.add(class1);\r\n\t\tclasses1.add(class2);\r\n\r\n\t\tnewPersonTime.add(person2);\r\n\t\tnewSubjects.add(sub2);\r\n\r\n\t\tteachu1.getSubjects().add(sub1);\r\n\r\n\t\t// Hinzufuegen von Klassen\r\n\t\tbreaku1.setClasses(classes);\r\n\t\texternu1.setClasses(classes);\r\n\t\tmeetingu1.setClasses(classes);\r\n\t\tteachu1.setClasses(classes);\r\n\r\n\t\t// Hinzufuegen von Raeumen\r\n\t\tbreaku1.setRooms(rooms);\r\n\t\texternu1.setRooms(rooms);\r\n\t\tmeetingu1.setRooms(rooms);\r\n\t\tteachu1.setRooms(rooms);\r\n\r\n\t\t// Hinzufuegen von Personen\r\n\t\tmeetingu1.getMembers().add(teach1);\r\n\t\tmeetingu1.getMembers().add(teach2);\r\n\r\n\t\t// Hinzufuegen von PersonTime\r\n\t\tteachu1.getPersons().add(person1);\r\n\t\tteachu1.getPersons().add(person2);\r\n\r\n\t\t// setId()\r\n\t\tbreaku1.setId(1);\r\n\t\texternu1.setId(2);\r\n\t\tmeetingu1.setId(3);\r\n\t\tteachu1.setId(4);\r\n\t}", "@Test\r\n\t@Transactional\r\n\tpublic void test(){\n\t\t\r\n\t\tList<Foo> foos = dao.findAll();\r\n\t\tfor (Foo foo : foos) {\r\n\t\t\tSystem.out.println( foo.getName() );\r\n\t\t}\r\n\t}", "public interface TemporaryTableUpdateRepository {\n /**\n * 查询项目人员权限变信息\n * */\n PersonnelAuthorityTimeEntity queryPersonnel(String id);\n /**\n * 查询楼栋临时表数据 id\n * **/\n BuildingMappingTimeEntity queryBuild(String id);\n /**\n * 增加楼栋临时表信息\n */\n void createBuild(BuildingMappingTimeEntity BuildingMappingTime);\n /**\n * 增加项目人员权限临时表信息\n */\n void createPersonnel(PersonnelAuthorityTimeEntity PersonnelAuthorityTime);\n /**\n * 修改楼栋临时表信息\n * */\n void updateBuild(BuildingMappingTimeEntity BuildingMappingTime);\n /**\n * 更新项目人员权限临时表信息\n * */\n void updatePersonnel(PersonnelAuthorityTimeEntity PersonnelAuthorityTime);\n /**\n * 获取所有房屋数据\n */\n List<BuildingMappingTimeEntity> getBuildingList();\n\n /**\n * 查询活动临时表数据 id\n * **/\n ActiveTemporaryTimeEntity queryActive(String id);\n\n\n /**\n * 查询活动临时表数据 id\n * **/\n ActiveTemporaryTimeEntity queryActiveBUild(String id,String PlanId);\n /**\n * 增加活动临时表信息\n */\n void createActive(ActiveTemporaryTimeEntity ActiveTemporaryTime);\n /**\n * 修改活动临时表信息\n * */\n void updateActive(ActiveTemporaryTimeEntity ActiveTemporaryTime);\n\n /**\n * 修改活动临时表信息 关闭计划\n * */\n void updateActiveStateById(String planId);\n\n /**\n * 修改活动临时表信息 关闭计划(批量)\n * */\n void updateActiveStateByIdList(List<String> idList);\n\n /**\n * 获取所有计划数据\n */\n List<ActiveTemporaryTimeEntity> getActiveList();\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClass(String id);\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClassforgradle(String id,String grad);\n\n /**\n * 查询活动临时表数据 id\n * **/\n ClassificationTemporaryTimeEntity queryClassfour(String id,String type);\n\n /**\n * 查询临时表数据\n * **/\n ClassificationTemporaryTimeEntity queryByParentId(String parentId);\n\n /**\n * 增加三级分类临时表信息\n */\n void createClass(ClassificationTemporaryTimeEntity ClassificationTemporaryTime);\n\n /**\n * 修改三级分类临时表信息\n * */\n void updateClass(ClassificationTemporaryTimeEntity ClassificationTemporaryTime);\n\n /**\n * 获取所有三级分类数据\n */\n List<ClassificationTemporaryTimeEntity> getClassList();\n}", "public void setTiempo(String tiempo) {\r\n this.tiempo = tiempo;\r\n }", "@Test\n public void beanFactoryPostProcessir() {\n Person p1 = (Person) applicationContext.getBean(\"p1\");\n //System.out.println(p1.getAge());\n\n // applicationContext.getBean(\"p3\");\n }", "@Test\r\n public void testUpdateUsuario() throws Exception \r\n {\r\n UsuarioEntity entity = dataUs.get(0);\r\n UsuarioEntity nuevo = factory.manufacturePojo(UsuarioEntity.class);\r\n nuevo.setId(entity.getId());\r\n \r\n usuarioLogic.updateUsuario(nuevo);\r\n \r\n UsuarioEntity buscado = em.find(UsuarioEntity.class, entity.getId());\r\n \r\n Assert.assertEquals(nuevo.getId(), buscado.getId());\r\n }", "@Test\n public void contextLoads() {\n\n ServicosProdutos inserir = new ServicosProdutos() {\n @Override\n public ItemProduto inserir() {\n return super.inserir();\n }\n };\n\n ServicosProdutos listar = new ServicosProdutos() {\n @Override\n public ItemProduto listar() {\n return super.listar();\n }\n };\n\n\n\n ServicosProdutos alterar = new ServicosProdutos() {\n @Override\n public ItemProduto alterar() {\n return super.alterar();\n }\n };\n\n ServicosProdutos deletar = new ServicosProdutos() {\n @Override\n public ItemProduto deletar() {\n return super.deletar();\n }\n };\n\n\n\n }", "public void test_findUniqueByProperty() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByProperty(Person.class, NAME_PROPERTY, NAME_PARAM[2]);\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "@Test\n void getUserRolesByNameLikeSuccess() {\n List<UserRoles> userRoles = genericDao.getEntityByName(\"roleName\", \"all\");\n assertEquals(2, userRoles.size());\n List<UserRoles> users2 = genericDao.getEntityByName(\"roleName\", \"user\");\n assertEquals(2, users2.size());\n }", "@Test\n public void printPetDetailedListTest() {\n\n }", "public interface TariffRepository extends CrudRepository<Tariff, Integer> {\n}", "@Test\n public void test_getAll_2() throws Exception {\n User user1 = createUser(1, false);\n User user2 = createUser(2, false);\n createUser(3, true);\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 2, res.size());\n\n User entity1 = res.get(0);\n User entity2 = res.get(1);\n if (entity1.getUsername().equals(user2.getUsername())) {\n entity1 = res.get(1);\n entity2 = res.get(0);\n }\n\n assertEquals(\"'getAll' should be correct.\", user1.getUsername(), entity1.getUsername());\n assertEquals(\"'getAll' should be correct.\", user1.getDefaultTab(), entity1.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user1.getNetworkId(), entity1.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user1.getRole().getId(), entity1.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user1.getFirstName(), entity1.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user1.getLastName(), entity1.getLastName());\n assertEquals(\"'getAll' should be correct.\", user1.getEmail(), entity1.getEmail());\n assertEquals(\"'getAll' should be correct.\", user1.getTelephone(), entity1.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user1.getStatus().getId(), entity1.getStatus().getId());\n\n assertEquals(\"'getAll' should be correct.\", user2.getUsername(), entity2.getUsername());\n assertEquals(\"'getAll' should be correct.\", user2.getDefaultTab(), entity2.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user2.getNetworkId(), entity2.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user2.getRole().getId(), entity2.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user2.getFirstName(), entity2.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user2.getLastName(), entity2.getLastName());\n assertEquals(\"'getAll' should be correct.\", user2.getEmail(), entity2.getEmail());\n assertEquals(\"'getAll' should be correct.\", user2.getTelephone(), entity2.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user2.getStatus().getId(), entity2.getStatus().getId());\n }", "@Test\n public void getCoffeeByRoasterId() {\n Roaster roaster1 = new Roaster();\n roaster1.setName(\"Roaster 1\");\n roaster1.setStreet(\"123 Test Lane\");\n roaster1.setCity(\"Crossvile\");\n roaster1.setState(\"TN\");\n roaster1.setPostal_code(\"38555\");\n roaster1.setPhone(\"9312005591\");\n roaster1.setEmail(\"[email protected]\");\n roaster1.setNote(\"Test Note for Roaster 1\");\n roaster1 = roasterDao.addRoaster(roaster1);\n\n // Create and add roaster2 object\n Roaster roaster2 = new Roaster();\n roaster2.setName(\"Roaster 2\");\n roaster2.setStreet(\"456 Example Circle\");\n roaster2.setCity(\"Atlanta\");\n roaster2.setState(\"GA\");\n roaster2.setPostal_code(\"37591\");\n roaster2.setPhone(\"2064229874\");\n roaster2.setEmail(\"[email protected]\");\n roaster2.setNote(\"Test Note for Roaster 2\");\n roaster2 = roasterDao.addRoaster(roaster2);\n\n // Create and add coffee to the database with roaster1 id\n Coffee coffee = new Coffee();\n coffee.setRoaster_id(roaster1.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster2.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster2.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Create a list with all coffee's with roaster1 id\n List<Coffee> coffeeList = coffeeDao.getCoffeeByRoasterId(roaster1.getRoaster_id());\n assertEquals(1, coffeeList.size());\n\n coffeeList = coffeeDao.getCoffeeByRoasterId(roaster2.getRoaster_id());\n assertEquals(2, coffeeList.size());\n }", "@Test\n public void testGetOwner() {\n \n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Event> events = genericDao.getByPropertyEqual(\"name\", \"Dentist\");\n assertEquals(1, events.size());\n assertEquals(2, events.get(0).getId());\n }", "@Test\n public void shouldCreateSUVWhenWinter() {\n CarSettlement.getSeasonAndTime(\"zima\", true);\n ApplicationContext context = new AnnotationConfigApplicationContext(\"com.kodilla.spring\");\n Car car = (Car) context.getBean(\"seasonCar\");\n //When\n String whichCar = car.getCarType();\n //Then\n Assertions.assertEquals(\"SUV\", whichCar);\n }", "int getRealtorNumCnt(RealtorDTO realtorDTO);", "@Test\n void getByPropertySuccess() {\n List<User> users = genericDao.findByPropertyEqual(\"userName\", \"BigAl\");\n // should only find one entry with the username \"BigAl\"\n assertEquals(users.size(), 1);\n }", "@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if(property1.getPropertyId() != id1) {\n property2.setPropertyId(id1);\n }\n else {\n assertTrue(property2.getPropertyId() == id2);\n }\n //Getter works Correct for ID\n }", "@Test\n public void getCoffeeByType() {\n Roaster roaster = new Roaster();\n roaster.setName(\"Roaster\");\n roaster.setStreet(\"123 Test Lane\");\n roaster.setCity(\"Crossvile\");\n roaster.setState(\"TN\");\n roaster.setPostal_code(\"38555\");\n roaster.setPhone(\"9312005591\");\n roaster.setEmail(\"[email protected]\");\n roaster.setNote(\"Test Note for Roaster\");\n roaster = roasterDao.addRoaster(roaster);\n\n // Create and add coffee to the database with roaster id\n Coffee coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Regular\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Bold\");\n coffeeDao.addCoffee(coffee);\n\n // Create and add coffee to the database with roaster2 id\n coffee = new Coffee();\n coffee.setRoaster_id(roaster.getRoaster_id());\n coffee.setName(\"Starbucks House Blend\");\n coffee.setCount(10);\n coffee.setUnit_price(new BigDecimal(\"12.50\"));\n coffee.setDescription(\"Medium Brew Coffee\");\n coffee.setType(\"Bold\");\n coffeeDao.addCoffee(coffee);\n\n // Create a list with all coffee's with roaster1 id\n List<Coffee> coffeeList = coffeeDao.getCoffeeByType(\"Regular\");\n assertEquals(1, coffeeList.size());\n\n coffeeList = coffeeDao.getCoffeeByType(\"Bold\");\n assertEquals(2, coffeeList.size());\n }", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void listarPlantasPorFamiliaFromEmpleadoTest() {\n\t\tTypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class);\n\t\tquery.setParameter(\"familia\", \"telepiatos\");\n\t\tList<Planta> listaPlantas = query.getResultList();\n\n\t\tAssert.assertEquals(listaPlantas.size(), 3);\n\t}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test CRUD Create with Address 03\")\n public void testCRUDCreateWithAddress03()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress03> address03s = new ArrayList<>();\n\n for (int i = 0; i < 20; i++) {\n SBAddress03 sbAddress03 = new SBAddress03();\n sbAddress03.setAddress03Street(\"KusumaramaStreet\" + i);\n sbAddress03.setAddress03Village(\"Seenigama\");\n sbAddress03.setAddress03City(\"Hikkaduwa\");\n sbAddress03.setAddress03Country(\"Sri Lanka\");\n sbAddress03.setAddress03Zip(\"29200\" + i);\n sbAddress03.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbAddress03.setRawLastUpdateLogId(1);\n sbAddress03.setUpdateUserAccountId(1);\n sbAddress03.setRawActiveStatus(1);\n sbAddress03.setRawDeleteStatus(1);\n sbAddress03.setRawShowStatus(1);\n sbAddress03.setRawUpdateStatus(1);\n\n address03s.add(sbAddress03);\n }\n\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n address03s.forEach(address -> session.save(address));\n transaction.commit();\n\n address03s.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress03Street()));\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n MoraAccessProperties accessProperties = new MoraAccessProperties();\n UuidUtilities utilities = new UuidUtilities();\n\n address03s.forEach(address -> {\n accessProperties.setPropertyFromPath(\n \"D:\\\\SLMORAWorkSpace\\\\IntelliJProjects\\\\MoraHibernateLearn004\\\\src\\\\main\\\\resources\\\\hibernatetestsupport.properties\",\n \"MORA.HIBERNATE.TEST.testCRUDCreateWithAddress03.\" + address.getAddress03Street(),\n utilities.getUUIDFromOrderedUUIDByteArrayWithApacheCommons(address.getAddress03Id()).toString(),\n \"Test Comment\");\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }" ]
[ "0.55626076", "0.54971206", "0.54813707", "0.54811174", "0.54636276", "0.5432305", "0.5417683", "0.5325311", "0.52472025", "0.51995707", "0.51799047", "0.5172587", "0.51701355", "0.51559806", "0.51553625", "0.51335377", "0.5127935", "0.5127483", "0.51272887", "0.512695", "0.51181716", "0.5118165", "0.5088791", "0.50743246", "0.5073299", "0.5071703", "0.50344396", "0.5020531", "0.50168055", "0.5011633", "0.50100684", "0.50034964", "0.49956954", "0.49863324", "0.49723774", "0.497199", "0.49667874", "0.49655676", "0.49647275", "0.4959025", "0.4956112", "0.49513528", "0.49427843", "0.4935836", "0.4928228", "0.49251866", "0.49192646", "0.49175027", "0.4912544", "0.4901206", "0.48966944", "0.48951107", "0.48900893", "0.48826724", "0.48795545", "0.48787206", "0.48755005", "0.48724324", "0.48719537", "0.4870876", "0.48667043", "0.48660776", "0.48610213", "0.4854571", "0.48530987", "0.4848748", "0.48476887", "0.48391038", "0.48274884", "0.48270237", "0.4819448", "0.48172244", "0.48020515", "0.48006383", "0.47959438", "0.47878885", "0.47863013", "0.47848114", "0.47825295", "0.47803006", "0.4778741", "0.47754815", "0.47743833", "0.4773207", "0.47725764", "0.47565952", "0.47562146", "0.47539097", "0.47537965", "0.47536722", "0.47485736", "0.47481635", "0.4747152", "0.4742954", "0.47420445", "0.47397727", "0.47391945", "0.47380298", "0.4731528", "0.47287154" ]
0.5331847
7
Method that clears and sends keys
public static void sendText(WebElement element, String text) { element.clear(); element.sendKeys(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void flushKeys() {\n getKeyStates();\n }", "void unsetKeyBox();", "void clear(String key);", "public void clearEscAndType(CharSequence... keysToSend) {\n clear();\n getWrappedElement().sendKeys(Keys.ESCAPE);\n type(keysToSend);\n }", "public void clearCommand(){\n up = false;\n left = false;\n right = false;\n }", "@Override\r\n public void keyReleased(KeyEvent e) {\n if(e.getKeyCode()==10){ //enter key code is 10\r\n // System.out.println(\"you have pressed enter button\");\r\n String contentToSend=messageInput.getText(); //type kia hua msg nikalna\r\n messageArea.append(\"Me :\"+contentToSend+\"\\n\");\r\n out.println(contentToSend); //msg ko send krna\r\n out.flush();\r\n messageInput.setText(\"\"); //clear hoker isme text ho jayga\r\n messageInput.requestFocus();\r\n }\r\n \r\n }", "void unsetKeyWheel();", "public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }", "public void clearDebitKeyCode() {\n genClient.clear(CacheKey.debitKeyCode);\n }", "private void releaseAllKeys()\n\t{\n\t\tupPressed = downPressed = rightPressed = leftPressed = false;\n\t}", "private void writeKeyPressed(String key){\r\n if(btSocket == null || isBtConnected){\r\n\r\n try {\r\n OutputStream btSocketOutputStream = btSocket.getOutputStream();\r\n char charToWrite='0';\r\n switch (key){\r\n case \"txt_1\":\r\n charToWrite='A';\r\n break;\r\n case \"txt_2\":\r\n charToWrite='B';\r\n break;\r\n case \"txt_3\":\r\n charToWrite='C';\r\n break;\r\n case \"txt_4\":\r\n charToWrite='D';\r\n break;\r\n\r\n }\r\n btSocketOutputStream.write((byte)charToWrite);\r\n btSocketOutputStream.flush();\r\n Log.e(\"Output\",key);\r\n\r\n } catch (IOException e) {\r\n Log.e(\"ERROR\",e.getMessage(),e);\r\n }\r\n\r\n }\r\n\r\n }", "@Override\r\n public void clear() {\r\n super.clear();\r\n this.commandArgs = null;\r\n this.command = null;\r\n this.notifys = null;\r\n this.ctx = null;\r\n }", "public void clear() {\n\t\tString cmd = null;\n\t\ttry {\n\t\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\n\t\t\t\tcmd = \"cls\";\n\t\t\telse\n\t\t\t\tcmd = \"clear\";\n\t\t\tRuntime.getRuntime().exec(cmd);\n\t\t} catch (Exception ignore) {\n\t\t}\n\t}", "public abstract void keycommand(long ms);", "public synchronized void poll() {\r\n\t\tfor(int i=0; i<KEY_COUNT; i++) {\r\n\t\t\tif(currKeys[i]) {\r\n\t\t\t\tif(keys[i] == KeyState.RELEASED) {\r\n\t\t\t\t\tkeys[i] = KeyState.ONCE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tkeys[i] = KeyState.PRESSED;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tkeys[i] = KeyState.RELEASED;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//DELETE LAST CHAR\r\n\t\tif(keyDownOnce(Key.VK_BACK_SPACE)) {\r\n\t\t\tfor(int i=0; i<MAX_STRINGS_TYPING; i++) {\r\n\t\t\t\tif(isTyping[i] && strTyped[i].length() >= 2) {\r\n\t\t\t\t\tstrTyped[i] = strTyped[i].substring(0, strTyped[i].length()-2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void clear() {\n\t\tmouseDelta.set(0, 0);\r\n\t\tmouseDeltaNorm.set(0, 0);\r\n\t\tmouseScrollDirection = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < keys.length; i++) {\r\n\t\t\tkeys[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < buttonsClicked.length; i++) {\r\n\t\t\tbuttonsClicked[i] = false;\r\n\t\t}\r\n\t}", "public void removeKey() {\n \tthis.key =null;\n \tdungeon.keyLeft().set(\"Key possession: No\\n\");\n }", "private void setKeystrokes() {\n removeKeystrokes();\n dispatcher = new KeyEventDispatcher() {\n @Override\n public boolean dispatchKeyEvent(KeyEvent e) {\n dispose();\n return false;\n }\n };\n KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n clear();\n\n }", "public void setValue(CharSequence... key) {\n\t\tthis.isExist();\n\t\tthis.element.clear();\n\t\tthis.element.sendKeys(key);\t\t\n\t}", "public void clearCommand() {\r\n _board = new Board();\r\n _playing = false;\r\n }", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "@Override\r\n public void keyPressed (KeyEvent e) {\n if (myLastKeyPressed == e.getKeyCode()) {\r\n myLastKeyPressed = NO_KEY_PRESSED;\r\n }\r\n else {\r\n myLastKeyPressed = e.getKeyCode();\r\n }\r\n myKeys.add(e.getKeyCode());\r\n }", "@Override\n public void key() {\n \n }", "@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}", "public void clearPressed() {\n PresentationCtrl.getInstance().clearHistory();\n refreshPressed();\n }", "public void clearCommandBuffer() {\n d_AdminCommandsBuffer.clear();\n }", "public void actionPerformed(ActionEvent event) {\n sendData(event.getActionCommand());\n enterField.setText(\"\");\n }", "void keyEnd();", "protected void keyPressedImpl()\n {\n if (key == 'g') {\n trigger = true;\n triggerCount = 1;\n }\n else if (key == 'h') {\n trigger = !trigger;\n }\n }", "public void clear()\n\t{\n\t\tstatus.setTextFill(BLACK);\n\t\tstatus.setText(\"awaiting input...\");\n\t\tusername.setText(\"\");\n\t\taddress.setText(\"\");\n\t\tport.setText(\"\");\n\t}", "public void clearAndType(WebElement ele, String data) {\n\t\ttry {\r\n\t\t\tele.clear();\r\n\t\t\tele.sendKeys(data);\r\n\t\t\treportSteps(\"The sendkey data :\"+data+\" entered Successfully\", \"pass\");\r\n\t\t} catch (ElementNotInteractableException e) {\r\n\t\t\treportSteps(\"Element \"+ele+\" is not Interactable\", \"fail\");\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t}", "@Override\r\n public void keyReleased(KeyEvent e) {\n keys[e.getKeyCode()] = false;\r\n // if(e.getKeyCode()==KeyEvent.VK_SPACE)\r\n // System.out.println(\"libero\");\r\n }", "@Override\r\n public void actionPerformed(ActionEvent ae) {\n taReceive.setText(\"\");\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclear();\r\n\t\t\t}", "@Override\r\n public void keyPressed(KeyEvent e) {\r\n // set true to every key pressed\r\n keys[e.getKeyCode()] = true;\r\n }", "public void sendKey(final char c) {\n\t\tmethods.inputManager.sendKey(c);\n\t}", "public void keyPressed(KeyEvent e){\n\t\tif(chatmode){\n\t\t\tchar key = e.getKeyChar();\n\t\t\tif(key == KeyEvent.VK_ENTER){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Chat\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t\tif(!chatPane.getText().equals(\"\")){\n\t\t\t\t\t\tclient.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(chatPane.getText() + \"\\n\" + \"Ich: \" + chatarea.getText());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tclient.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(\"Ich: \" + chatarea.getText());\n\t\t\t\t\t}\n\t\t\t\t\tchatarea.setText(\"\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}else if(serverMode){\n\t\t\t\t\tserver.out.println(\"Chat\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t\tif(!chatPane.getText().equals(\"\")){\n\t\t\t\t\t\tserver.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(chatPane.getText() + \"\\n\" + \"Ich: \" + chatarea.getText());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tserver.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(\"Ich: \" + chatarea.getText());\n\t\t\t\t\t}\n\t\t\t\t\tchatarea.setText(\"\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_LEFT){ //linke Pfeiltaste\n\t\t\t\tleft = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"left\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t} \n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"left\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_RIGHT){ //rechte Pfeiltaste\n\t\t\t\tright = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"right\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"right\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_UP){ //obere Pfeiltaste\n\t\t\t\tup = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"up\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"up\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_DOWN){//untere Pfeiltaste\n\t\t\t\tdown = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"down\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"down\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER){\n\t\t\t\t\n\t\t\t\tenterShop = true;\n\t\t\t\tenterNPC = true;\n\t\t\t\t\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_S){\n\t\t\t\tif(!multiplayer){\n\t\t\t\t\tskillmode = true;\n\t\t\t\t\tskills();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_T){\n\t\t\t\tif(multiplayer){\n\t\t\t\t\tchatmode = true;\n\t\t\t\t\tchat.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_X){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Attack\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"Attack\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\tattack = true;\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_C){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Magic\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"Magic\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\tmagic = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "@Override\n\tpublic void clear() {\n\t\tmap.clear();\n\t\tkeys.clear();\n\t}", "public void clearInputSendKeys(String text, String elementName) {\n wait.forElementToBeDisplayed(15, returnElement(elementName), elementName);\n returnElement(elementName).click();\n returnElement(elementName).clear();\n returnElement(elementName).sendKeys(text);\n }", "public void keyPressed() {\r\n \t\tkeys[keyCode] = true;\r\n \t}", "public void flush() {\n\t//Gets os name\n\tString os = System.getProperty(\"os.name\");\n\t//Checks if system is Windows\n\ttry {\n\t if (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\n\t\tString[] clear = {\"cmd\", \"/c\", \"cls\"};\n\t\tRuntime.getRuntime().exec(clear);\n\t } else {\n\t\tSystem.out.println(\"\\033[2J\");\n\t }\n\t} catch (Exception e) {\n\t System.out.println(\"Nope\");\n\t}\n }", "public void setDefaultKeys()\n\t{\n\t\tupKey = KeyEvent.VK_UP;\n\t\tdownKey = KeyEvent.VK_DOWN;\n\t\tleftKey = KeyEvent.VK_LEFT;\n\t\trightKey = KeyEvent.VK_RIGHT;\n\t\tconfirmKey = KeyEvent.VK_Z;\n\t\tcancelKey = KeyEvent.VK_X;\n\t\tactionKey = KeyEvent.VK_C;\n\t}", "public Builder clearClearkey() {\n bitField0_ = (bitField0_ & ~0x00000008);\n clearkey_ = null;\n if (clearkeyBuilder_ != null) {\n clearkeyBuilder_.dispose();\n clearkeyBuilder_ = null;\n }\n onChanged();\n return this;\n }", "@Override\n public void keyReleased(KeyEvent e) {\n keys[e.getKeyCode()]=false;\n for(int i=0;i<keyBind.length;i++){\n keyBind[i]=keys[keyn[i]];\n }\n }", "@Override\r\n public void keyReleased(KeyEvent e) {\r\n // set false to every key released\r\n keys[e.getKeyCode()] = false;\r\n\r\n }", "public Keyboard(){\n \n for(boolean k: keys){\n k=false;\n }\n }", "public void keyDown(int keycode){\n this.heldKeys[keycode+1] = 0;\n this.showCursor = true;\n this.frameCount = 0;\n //Keys that should only be pressed once\n if(keycode == Input.Keys.ENTER){\n if(this.enterText != null) {\n this.enterText.action(this.sOut.toString());\n }\n this.sOut = new StringBuilder();\n this.curPos = 0;\n }\n }", "@Override\n public synchronized void clear() {\n this.keyMap.clear();\n super.clear();\n }", "@Override\n\tpublic void keyPressed() {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tkeys[e.getKeyCode()]=true;\t}", "public void key(){\n }", "@Override\r\n\tpublic void keyPressed() {\n\t\tl.key();\r\n\t\t\r\n\t}", "@Override\n public boolean keyUp(int arg0) {\n return false;\n }", "private void unuseDefaultKeyMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_unuseDefaultKeyMenuItemActionPerformed\n keyInfoUserTextField.setText(EMPTY);\n keySearchPhotoTextField.setText(EMPTY);\n keySearchUserTextField.setText(EMPTY);\n keygetGroupsTextFIeld.setText(EMPTY);\n unuseDefaultKeyMenuItem.setEnabled(false);\n useDefaultMenuItem.setEnabled(true);\n }", "@Override\n public void send(String key, String data) throws IOException {\n\n }", "private void manageKeys() {\n if (!gameOver) {\n if (keyStateManager.isPressed(KeyEvent.VK_UP) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_UP)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_UP);\n if (currentPiece.rotateRight(grid)) {\n effectsReader.play(\"rotate.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_DOWN)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_DOWN);\n if (keyStateManager.canBeUsed(KeyEvent.VK_DOWN)) {\n if (currentPiece.canDown(grid)) {\n currentPiece.down();\n if (!keyStateManager.isAlreadyPressed(KeyEvent.VK_DOWN)) {\n effectsReader.play(\"move.mp3\", 1);\n }\n timeBufer = 0;\n score += 1;\n keyStateManager.setAlreadyPressed(KeyEvent.VK_DOWN);\n } else if (sincePieceDown == null) {\n sincePieceDown = LocalTime.now();\n sinceLastMove = LocalTime.now();\n }\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_LEFT)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_LEFT);\n if (keyStateManager.canBeUsed(KeyEvent.VK_LEFT)) {\n if (currentPiece.setXDirection(-1, grid)) {\n effectsReader.play(\"move.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n keyStateManager.setAlreadyPressed(KeyEvent.VK_LEFT);\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_RIGHT)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_RIGHT);\n if (keyStateManager.canBeUsed(KeyEvent.VK_RIGHT)) {\n if (currentPiece.setXDirection(1, grid)) {\n effectsReader.play(\"move.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n keyStateManager.setAlreadyPressed(KeyEvent.VK_RIGHT);\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_SPACE) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_SPACE)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_SPACE);\n if (currentPiece.canDown(grid)) {\n score += (currentPiece.fix() * 2);\n sincePieceDown = LocalTime.MIN;\n sinceLastMove = LocalTime.MIN;\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_C)) {\n if (!hasSwiched && !keyStateManager.isAlreadyPressed(KeyEvent.VK_C)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_C);\n if (holdPiece == null) {\n holdPiece = currentPiece;\n holdPiece.setPointsAsInitial();\n initNextPiece();\n } else {\n Piece tempPiece = holdPiece;\n holdPiece = currentPiece;\n holdPiece.setPointsAsInitial();\n currentPiece = tempPiece;\n currentPiece.initPosition(grid);\n hasSwiched = true;\n sincePieceDown = null;\n sinceLastMove = null;\n }\n effectsReader.play(\"hold.mp3\", 1);\n }\n } \n if (keyStateManager.isPressed(KeyEvent.VK_Z) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_Z)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_Z);\n if (currentPiece.rotateLeft(grid)) {\n effectsReader.play(\"rotate.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n }\n } else {\n if (keyStateManager.isPressed(KeyEvent.VK_R)) {\n initGame();\n }\n }\n }", "@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }", "@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\tcdx = 0;\r\n\t}", "private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}", "void clear()\n {\n captcha.reset();\n requestToken.setEnabled(false);\n username.setValue(\"\");\n greeting.setValue(\"\");\n token.setValue(\"\");\n newPassword.setValue(\"\");\n newPasswordRepeat.setValue(\"\");\n show(REQUEST_TOKEN);\n }", "@Override\n public void keyPressed(KeyEvent e) {\n keys[e.getKeyCode()]=true;\n for(int i=0;i<keyBind.length;i++){\n keyBind[i]=keys[keyn[i]];\n }\n }", "public void setKeyReleased(int keyCode){\n this.keys[keyCode] = false;\n\n }", "public void setKeyDown() {\r\n keys[KeyEvent.VK_P] = false;\r\n }", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif (e.isActionKey()) {\n\t\t\tSquare a = (Square) KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();\n\t\t\tmoveFromTo(e, a).grabFocus();\n\t\t}\n\t\telse if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n\t\t\tSquare a = (Square) e.getSource();\n\t\t\tcontroller.input(a.getRow(), a.getCol(), '0');\n\t\t\ta.setText(\"\");\n\t\t}\n\t}", "@Override\n public void clear() {\n beginMyTurn();\n }", "@Override\r\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tif(game.playerType == C.SERVER){\r\n\t\t\tint k = arg0.getKeyCode();\r\n\t\t\tswitch(k){\r\n\t\t\tcase KeyEvent.VK_UP: \r\n\t\t\t\tgame.direction1=(C.UP);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_RIGHT: \r\n\t\t\t\tgame.direction1=(C.RIGHT);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_DOWN: \r\n\t\t\t\tgame.direction1=(C.DOWN);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_LEFT: \r\n\t\t\t\tgame.direction1=(C.LEFT);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '=': \r\n\t\t\t\tgame.mine.send(\"FASTER\");\r\n\t\t\t\tif(game.speed < C.FAST) game.changeSpeed(game.speed+1); \r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\tgame.mine.send(\"SLOWER\");\r\n\t\t\t\tif(game.speed > C.SLOW) game.changeSpeed(game.speed-1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_SPACE: \r\n\t\t\t\tgame.mine.send(\"PAUSE\");\r\n\t\t\t\tpause();\r\n\t\t\t\tgame.mine.send(\"RESUME\");\r\n\t\t\t\tresume();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tchar c = arg0.getKeyChar(); \r\n\t\t\tswitch(c){\r\n\t\t\tcase 'w': \r\n\t\t\t\tgame.mine.send(\"UP\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'a': \r\n\t\t\t\tgame.mine.send(\"LEFT\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 's': \r\n\t\t\t\tgame.mine.send(\"DOWN\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'd': \r\n\t\t\t\tgame.mine.send(\"RIGHT\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase '=': \r\n\t\t\t\tgame.mine.send(\"FASTER\");\r\n\t\t\t\tif(game.speed < C.FAST) game.changeSpeed(game.speed+1); \r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\tgame.mine.send(\"SLOWER\");\r\n\t\t\t\tif(game.speed > C.SLOW) game.changeSpeed(game.speed-1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_SPACE:\r\n\t\t\t\tgame.mine.send(\"PAUSE\");\r\n\t\t\t\tpause();\r\n\t\t\t\tgame.mine.send(\"RESUME\");\r\n\t\t\t\tresume();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void clear() ;", "public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }", "@Override\n public void triggerKeyRelease(KeyEvent e) {\n\n }", "public static void setKey(byte[] key) {\n SquareAttack.key = key.clone();\n MainFrame.printToConsole(\"Chosen key:\");\n for (byte b : key) {\n MainFrame.printToConsole(\" \".concat(MainFrame.byteToHex(b)));\n }\n MainFrame.printToConsole(\"\\n\");\n }", "@Test\n\t@TestProperties(name = \"Send keys '${text}' to element ${by}:${locator}\", paramsInclude = { \"by\", \"locator\",\n\t\t\t\"text\", \"clearTextBefore\" })\n\tpublic void sendKeysToElement() {\n\t\tWebElement element = findElement(by, locator);\n\t\telement.clear();\n\t\telement.sendKeys(text);\n\t}", "@Test\n public void clear() {\n page.textInput.sendKeys(\"coffee\");\n waiter.waitForElementAttributeEqualsString(page.textInput, \"value\", \"coffee\", driver);\n //clear the textInput field, retype the String \"coffee\"\n page.textInput.clear();\n page.textInput.sendKeys(\"coffee\");\n waiter.waitForElementAttributeEqualsString(page.textInput, \"value\", \"coffee\", driver);\n\n page.textarea.sendKeys(\"1234567890\");\n //after typing, the text in the field will be \"1234567890\"\n waiter.waitForElementAttributeEqualsString(page.textarea, \"value\", \"1234567890\", driver); //clear the field\n page.textarea.clear();\n //type the same text again and the text in the field becomes \"1234567890\"\n page.textarea.sendKeys(\"1234567890\");\n waiter.waitForElementAttributeEqualsString(page.textarea, \"value\", \"1234567890\", driver);\n }", "public void keyReleased(KeyEvent e) \r\n {\r\n \tkeyUser = 0;\r\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER && e.isControlDown())\r\n\t\t\t\t{\r\n\t\t\t\t\tSend();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "@Override\n public final void actionPerformed(ActionEvent e) {\n if (!isKeyPressed) {\n isKeyPressed = true;\n keyPressed();\n }\n }", "public String clear();", "public void clear() {\n up = false;\n down = false;\n left = false;\n right = false;\n }", "@Override\r\n\tpublic void keyPressed(KeyEvent keyPressed)\r\n\t{\r\n\t\t\r\n\t}", "public void processKeystrokes() {\n\t\t// Only send an update if the keystroke count object is not null and we have\n\t\t// keystroke activity\n\t\t//\n\t\tif (this.hasData()) {\n\t\t\t\n\t\t\tthis.endUnendedFiles();\n\n\t\t\t//\n\t\t\t// Send the info now\n\t\t\t//\n\t\t\tthis.sendKeystrokeData(this);\n\t\t}\n\t}", "public void clear()\r\n {\r\n \tdisplayUserInput = \" \";\r\n \t\r\n }", "@Override\n public void send(final CharSequence text) {\n final KeyCharacterMap characterMap = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);\n\n long timeout =\n System.currentTimeMillis()\n + serverInstrumentation.getAndroidWait().getTimeoutInMillis();\n SelendroidLogger.info(\"Using timeout of \" + timeout + \" milli seconds.\");\n\n done = false;\n\n instrumentation.runOnMainSync(new Runnable() {\n public void run() {\n for (int i = 0; i < text.length(); i++) {\n char c = text.charAt(i);\n int code = WebViewKeys.getKeyEventFromUnicodeKey(c);\n if (code != -1) {\n webview.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, code));\n webview.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, code));\n } else {\n KeyEvent[] arr = characterMap.getEvents(new char[] {c});\n if (arr != null) {\n for (int j = 0; j < arr.length; j++) {\n webview.dispatchKeyEvent(arr[j]);\n }\n }\n }\n }\n done = true;\n }\n });\n }", "@Override\r\n\tpublic void keyPressed(KeyEvent key) {\r\n\t\t// Invoke method if the key is pressed. \r\n\t\t// Do nothing, not all three methods need to be used. \r\n\t}", "default void interactWith(Key key) {\n\t}", "public void clear() {\r\n\t\t// Find the last Style commands\r\n\t\tColorCommand lastColorCommand = null;\r\n\t\tLineWidthCommand lastLineWidthCommand = null;\r\n\t\tfor (int i = 0; i < this.commands.size(); i++) {\r\n\t\t\tif (this.commands.get(i) instanceof ColorCommand) {\r\n\t\t\t\tlastColorCommand = (ColorCommand) this.commands.get(i);\r\n\t\t\t}\r\n\t\t\telse if (this.commands.get(i) instanceof LineWidthCommand) {\r\n\t\t\t\tlastLineWidthCommand = (LineWidthCommand) this.commands.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Clear the canvas\r\n\t\tthis.commands.clear();\r\n\t\t\r\n\t\t// Add back last commands\r\n\t\tif (lastColorCommand != null) {\r\n\t\t\tthis.addDrawingCommand(lastColorCommand);\r\n\t\t}\r\n\t\tif (lastLineWidthCommand != null) {\r\n\t\t\tthis.addDrawingCommand(lastLineWidthCommand);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Notify\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers();\r\n\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tsendmes(e.getActionCommand());\r\n\t\t\t\t\t\tusertext.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public static void clear(){\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush(); // flushes the stream\n }", "void clearAndNotify();", "public void clear() {\r\n messageMap.clear();\r\n }", "public void setKeyPressed(int keyCode){\n this.keys[keyCode] = true;\n\n }", "public void keyPressed (KeyEvent e)\n\t{\n\t\tif (e.getKeyCode() == 10) // enter key\n\t\t{\n\t\t\tNGlobals.cPrint(\"ENTER\");\n\n\t\t\tString tString = input.getText();\n\t\t\tint tLen = tString.length();\n\t\t\t// char[] tStringAsChars = tString.toCharArray();\n\t\t\tbyte[] tStringAsBytes = tString.getBytes();\n\n\t\t\tdiscussSand.sendGrain((byte)NAppID.INSTRUCTOR_DISCUSS, (byte)NCommand.SEND_MESSAGE, (byte)NDataType.CHAR, tLen, tStringAsBytes );\n\n\n\t\t\t// The data \n\t\t\tNGlobals.cPrint(\"sending: (\" + tLen + \") of this data type\");\n\n\t\t\t// for (int i=0; i<tLen; i++) {\n\t\t\t// NGlobals.cPrint(\"sending: \" + tString.charAt(i));\n\t\t\t// streamOut.writeByte(tString.charAt(i));\n\t\t\t// }\n\n\t\t\tNGlobals.cPrint(\"sending: (\" + tString + \")\");\n\t\t\tinput.setText(\"\");\n\t\t}\n\t}", "public void clear() throws RemoteException, Error;", "public void interactWithKeyboard() {\n StdDraw.setCanvasSize(WIDTH * 16, HEIGHT * 16);\n StdDraw.setXscale(0, WIDTH);\n StdDraw.setYscale(0, HEIGHT);\n createMenu();\n StdDraw.enableDoubleBuffering();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char input = Character.toUpperCase(StdDraw.nextKeyTyped());\n if (input == 'v' || input == 'V') {\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char next = StdDraw.nextKeyTyped();\n if (next == '#') {\n createMenu();\n break;\n } else {\n name += next;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n }\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1);\n interactWithInputString(toInsert);\n ter.renderFrame(world);\n startCommands();\n }\n if (input == 'n' || input == 'N') {\n toInsert += 'n';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n while (true) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n char c = StdDraw.nextKeyTyped();\n if (c == 's' || c == 'S') {\n toInsert += 's';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show(); interactWithInputString(toInsert);\n ter.renderFrame(world); mouseLocation(); startCommands();\n break;\n }\n if (c != 'n' || c != 'N') {\n toInsert += c;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1); interactWithInputString(toInsert);\n ter.renderFrame(world); startCommands();\n }\n }\n }\n }", "private void disableGamePlayKeys() {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"none\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"none\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"none\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"none\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), \"none\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_Z, 0), \"none\");\n }", "@Override\n public void keyPressed(KeyEvent e) {\n \n \n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent arg0)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\tswitch(e.getKeyCode()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_UP:\r\n\t\t\t\t\t\tcontrol.up = true;\r\n\t\t\t\t\t\t//juego.moverBombermanUP();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_DOWN:\t\r\n\t\t\t\t\t\tcontrol.down = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanDOWN();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_RIGHT:\t\r\n\t\t\t\t\t\tcontrol.der = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanRIGHT();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_LEFT:\t\r\n\t\t\t\t\t\tcontrol.izq = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanLEFT();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\r\n\t\t\t\t\tcase KeyEvent.VK_SPACE:\r\n\t\t\t\t\t\tjuego.ponerBomba();\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\r\n\t\t\r\n\t\t\t\t}", "public Builder clearKey() {\n if (keyBuilder_ == null) {\n key_ = null;\n onChanged();\n } else {\n key_ = null;\n keyBuilder_ = null;\n }\n\n return this;\n }", "public void keyReleased() {\t\t\r\n \t\t\r\n \t\tkeys[keyCode] = false;\r\n \t}" ]
[ "0.67213726", "0.6649998", "0.65452456", "0.6506302", "0.6369915", "0.6202619", "0.6123335", "0.59969294", "0.5990056", "0.5964096", "0.5896958", "0.5889836", "0.5866349", "0.5830075", "0.58127415", "0.57850987", "0.57502985", "0.57380617", "0.57185227", "0.5712088", "0.570456", "0.5702175", "0.5698801", "0.56764257", "0.5674424", "0.5673908", "0.56733054", "0.56671757", "0.5666671", "0.5644497", "0.56436586", "0.5634926", "0.5633523", "0.56251824", "0.5609686", "0.5601823", "0.5601055", "0.559842", "0.5598364", "0.55967134", "0.55931157", "0.55922884", "0.5579922", "0.5578543", "0.5577437", "0.5566075", "0.55628914", "0.5547099", "0.5543918", "0.55420625", "0.5536238", "0.5531898", "0.55228114", "0.5522536", "0.55209345", "0.5519486", "0.55154294", "0.5512888", "0.55083543", "0.54984266", "0.54970497", "0.5496147", "0.5494208", "0.5492846", "0.5487215", "0.54849035", "0.5458395", "0.54517096", "0.54482585", "0.5447724", "0.5439064", "0.5437221", "0.5435484", "0.542895", "0.54235154", "0.5419959", "0.54186505", "0.54171866", "0.5414777", "0.54026663", "0.5395997", "0.53959656", "0.5395328", "0.53802353", "0.53799504", "0.53776425", "0.5377156", "0.5368799", "0.5367929", "0.53673", "0.5364898", "0.5364874", "0.53601325", "0.53518873", "0.5348405", "0.5338012", "0.5332216", "0.53309417", "0.53239053", "0.5321069", "0.5320342" ]
0.0
-1
git add Method checks if radio/checkbox is enable and clicks it
public static void clickRadioOrCheckbox(List<WebElement> radioOrCheckbox, String value) { for (WebElement el : radioOrCheckbox) { String actualValue = el.getAttribute("value").trim(); if (el.isEnabled() && actualValue.equals(value)) { el.click(); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkboxaddClicked(View view) {\n flag++;\n mRlNote.setVisibility(View.GONE);\n mRlAddItem.setVisibility(View.VISIBLE);\n }", "@Override\n public boolean handleClick(ContentElement element, EditorEvent event) {\n boolean isImplChecked = getImplAsInputElement(element).isChecked();\n boolean isContentChecked =\n \"true\".equalsIgnoreCase(element.getAttribute(CheckConstants.VALUE));\n if (isImplChecked && !isContentChecked) {\n // Now tell group to check this button\n ContentElement group = getGroup(element);\n if (group != null) {\n RadioGroup.check(group, element);\n }\n }\n event.allowBrowserDefault();\n return true;\n }", "public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}", "public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void clickOnCheckboxIAgreeRules()\n \t{\n \t\tproductRequirementsPageLocators.clickOnAgreeRulesCheckbox.click();\n\n \t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddBtn.setEnabled(true);\n\t\t\t}", "public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}", "@Then(\"^product in shown as available\")\n public void clicks_On_Add_Button(){\n }", "private void enableAdd(){\n addSubmit.setDisable(false);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(true);\n addCS.setDisable(false);\n removeCS.setDisable(true);\n setCS.setDisable(true);\n addIT.setDisable(false);\n removeIT.setDisable(true);\n setIT.setDisable(true);\n addECE.setDisable(false);\n removeECE.setDisable(true);\n setECE.setDisable(true);\n partTime.setDisable(false);\n fullTime.setDisable(false);\n management.setDisable(false);\n dateAddText.setDisable(false);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(true);\n nameAddText.setDisable(false);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(false);\n annualAddText.setDisable(false);\n managerRadio.setDisable(false);\n dHeadRadio.setDisable(false);\n directorRadio.setDisable(false);\n //codeAddText.setDisable(false);\n hoursSetText.setDisable(true);\n }", "public void addOption(String opiton, boolean correct);", "@Override\n public boolean addIdea(ProjectIdea newIdea) {\n int check = 0;\n try{\n check = super.create(newIdea);\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n return check == 1;\n }", "private void advancedClicked()\r\n {\r\n if (advancedBox.isSelected() == false)\r\n {\r\n putWizardData(\"UsingBlackList\", \"false\");\r\n saveButton.setEnabled(false);\r\n whiteLabel.setEnabled(false);\r\n blackWords.setEnabled(false);\r\n blackWords.setOpaque(false);\r\n btnLoad.setEnabled(false);\r\n btnSave.setEnabled(false); \r\n }\r\n if (advancedBox.isSelected() == true)\r\n {\r\n putWizardData(\"UsingBlackList\", \"true\");\r\n \r\n // Reset the state \"saved\" in the wizard to false\r\n putWizardData(\"blacksaved\", \"false\");\r\n saveButton.setEnabled(true);\r\n whiteLabel.setEnabled(true);\r\n blackWords.setEnabled(true);\r\n blackWords.setOpaque(true);\r\n btnLoad.setEnabled(true);\r\n btnSave.setEnabled(true); \r\n }\r\n }", "@When(\"I click on checkboxradio\")\n public void i_click_on_checkboxradio() {\n System.out.println(\"checkbox\");\n }", "boolean addFile() {\n String currentDir;\n //Start in last accessed directory\n if (photoList.isEmpty())\n currentDir = \".\";\n else\n currentDir = photoList.get(photoList.size()-1);\n\n JFileChooser fc = fileChooserDialog(\"Add File\", currentDir);\n\n // Now open chooser\n int result = fc.showOpenDialog(this);\n\n if (result == JFileChooser.CANCEL_OPTION) {\n return true;\n } else if (result == JFileChooser.APPROVE_OPTION) {\n checkBoxArea.setVisible(false);\n fFile = fc.getSelectedFile();\n photoList.add(fFile.getPath());\n checkBoxArea.addCheckBox(fFile);\n int height = (int)checkBoxArea.getPreferredSize().getHeight();\n checkScroll.getVerticalScrollBar().setValue(height);\n\n checkBoxArea.setVisible(true);\n } else {\n return false;\n }\n return true;\n }", "public void clickAddButtonInStockTab(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-border-layout-ct') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Add..')]\").click();\r\n\t\t\r\n\t\t//McsElement.getElementByAttributeValueAndParentElement(driver, \"div\", \"@class\", \"x-panel-bbar\", \"button\", \"text()\", \"Add...\", true, true).click();\r\n\t\t\r\n\t\tReporter.log(\"Clicked on Add button in Stock Tab\", true);\r\n\t}", "private void repositoryCheckButtonActionPerformed() {\n checkRepositoryMismatch = true;\n CopyToASpaceButtonActionPerformed();\n }", "@Override\n public void onClick(View v) {\n SharedPreferences.Editor prefsEditor = settingsPreferences.edit();\n if (settingsPreferences.getBoolean(TAG_ASCAN_MODIFIED_FILES, false)) {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, false);\n cbModFiles.setImageResource(R.drawable.check2);\n } else {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, true);\n cbModFiles.setImageResource(R.drawable.check0);\n }\n prefsEditor.commit();\n }", "void enableAddContactButton();", "private void enableCheckChange() {\n this.tree.addListener(Events.CheckChange, new GPCheckListener(visitorDisplay));\n }", "private Button addRadioOption(Composite composite, final boolean requiresTextBox, \n\t\t\t\t\t\t\t\t final int selectedButtonIndex, String label) {\n\t\tfinal Button newButton = new Button(composite, SWT.RADIO);\n\t\tnewButton.setText(label);\n\t\tGridData gridData = new GridData();\n\t\tnewButton.setLayoutData(gridData);\n\t\t\n\t\t/* \n\t\t * Add a listener for this radio button. Depending on the radio button chosen,\n\t\t * we may (or may not) want to enable the text box entry.\n\t\t */\n\t\tnewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t/* was the radio button recently selected? */\n\t\t\t\tif (newButton.getSelection()) {\n\t\t\t\t\tradioButtonState = selectedButtonIndex;\n\t\t\t\t\t\n\t\t\t\t\t/* does this option require a (non-empty) text box field? */\n\t\t\t\t\tif (requiresTextBox) {\n\t\t\t\t\t\ttextBox.setEnabled(true);\n\t\t\t\t\t\tgetButton(OK).setEnabled(!textBox.getText().isEmpty());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* or is no text box input required? */\n\t\t\t\t\telse {\n\t\t\t\t\t\ttextBox.setEnabled(false);\n\t\t\t\t\t\tgetButton(OK).setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\treturn newButton;\n\t}", "private void toggleLibraryBrowse(boolean toggle){\n\t libraryNameText.setEnabled(toggle);;\n\t libBrowseButton.setEnabled(toggle);;\n\t addButton.setEnabled(toggle);;\n\t removeButton.setEnabled(toggle);;\n\t jarFileList.setEnabled(toggle);;\n\t jarFilecountLabel.setEnabled(toggle);;\n\t\t\n\t}", "private void addOneActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining) {\n\t\t\t//credit should be above 1\n\t\t\tif (obj.getCredit() > 0) {\n\t\t\t\t//add 3 to the bet and update the labels and buttons\n\t\t\t\tobj.setBet(obj.getBet() + 1);\n\t\t\t\tobj.setCredit(obj.getCredit() - 1);\n\t\t\t\tupdateLabels();\n\t\t\t\tupdateDisabledButtons();\n\t\t\t}\n\t\t}\n\t}", "public abstract void add(Field.RadioData radioData);", "public void addButton()\n\t{\n\t\tdriver.findElement(By.xpath(\"//input[@name='Insert']\")).click();\n\t}", "public void uiVerifyButtonUndoExist() {\n try {\n getLogger().info(\"Verify button Undo Todo exist.\");\n btnToDoUndo.getAttribute(\"class\");\n NXGReports.addStep(\"Verify button Undo Todo exist.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo exist.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tif (event.getSource() == select) {\n\t\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\t\tif (cb == null) {Window.alert(\"select \" + row);}\n\t\t\t\tcb.setValue(true);\n\t\t\t}\n\t\t}\n\t\telse if (event.getSource() == remove) {\n\t\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\t\tif (cb == null) {Window.alert(\"remove \" + row);}\n\t\t\t\tcb.setValue(false);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse if (isEnabled()) {\n\t\t\tHTMLTable.Cell cell = field.getCellForEvent(event);\n\t\t\tint selectedRow = cell.getRowIndex();\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(selectedRow, 2);\n\t\t\tcb.setValue (!cb.getValue());\n\t\t\tfireChange(this);\n\t\t}\n\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n CommandRun cmr = new CommandRun();\n Project currentProject = e.getProject();\n// strProjectPath = currentProject.getBasePath();\n// String[] arrCheckOuts = cmr.ListCheckOuts();\n AddinUI aui = new AddinUI();\n aui.createUI();\n }", "public boolean verifyAdd() {\n\t\treturn projTable.findElement(By.linkText(nameOfProject)).isDisplayed();\n\t}", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) { //the radio button changes the values of the modes\r\n\t\t\t\tif(add == false){//if its negative, set it to positive\r\n\t\t\t\t\tadd = true;\r\n\t\t\t\t\tSystem.out.println(add);\r\n\t\t\t\t}\r\n\t\t\t\telse if(add == true){\r\n\t\t\t\t\tadd = false;\r\n\t\t\t\t\tSystem.out.println(add);\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (newButton.getSelection()) {\n\t\t\t\t\tradioButtonState = selectedButtonIndex;\n\t\t\t\t\t\n\t\t\t\t\t/* does this option require a (non-empty) text box field? */\n\t\t\t\t\tif (requiresTextBox) {\n\t\t\t\t\t\ttextBox.setEnabled(true);\n\t\t\t\t\t\tgetButton(OK).setEnabled(!textBox.getText().isEmpty());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* or is no text box input required? */\n\t\t\t\t\telse {\n\t\t\t\t\t\ttextBox.setEnabled(false);\n\t\t\t\t\t\tgetButton(OK).setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "public void tickCheckBox() {\r\n\t\tcheckBox = driver.findElement(checkBoxSelector);\r\n\t\tcheckBox.click();\r\n\t\t\r\n\t}", "public void finalcheckbox() {\n\t\tthis.finalcheckbox.click();\n\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@When(\"I click on add to compare list link\")\n public void i_click_on_add_to_compare_list_link() {\n BasePage.driverUtils.waitForWebElementToBeClickable(BasePage.htcOneMiniBluePage.getHtcOneMiniBlueAddToCompareListButton());\n BasePage.htcOneMiniBluePage.getHtcOneMiniBlueAddToCompareListButton().click();\n }", "public void AddQuestionToBank(ActionEvent actionEvent) throws IOException {\n QuestionModel questionModel = new QuestionModel();\n ArrayList<QuestionModel> questionBank = DBObject.getInstance().getQuestionBank();\n if(questionName.getText() != null && question.getText() != null && subjects.getValue() != null){\n if(className.getValue() != null && answer.getText() != null){\n if (easy.isSelected() || medium.isSelected() || hard.isSelected()) {\n questionModel.setQuestionName(questionName.getText());\n questionModel.setPointsPossible(Integer.parseInt(points.getText()));\n questionModel.setClassNumber(className.getValue().toString());\n questionModel.setSubject(subjects.getValue().toString());\n questionModel.setQuestion(question.getText());\n questionModel.getQuestionHelper().setAnswer(answer.getText());\n questionModel.setHint(hint.getText());\n if(easy.isSelected()){\n questionModel.setDifficulty(1);\n }\n else if(medium.isSelected()){\n questionModel.setDifficulty(2);\n }\n else if(hard.isSelected()){\n questionModel.setDifficulty(3);\n }\n SetUpNewView(questionBank, questionModel);\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void addButton(GuiButton guiButton, boolean enabled)\r\n\t{\r\n\t\tif (!enabled)\r\n\t\t\tguiButton.enabled = false;\r\n\t\t// field_146292_n.add(guiButton);\r\n\t\tbuttonList.add(guiButton);\r\n\t}", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "public void addNewItemClicked(View view) {\n// Toast.makeText(CheckboxNoteActivity.this, \"RelativeLayout Clicked Successfully\", Toast.LENGTH_SHORT).show();\n addNewListItem();\n }", "private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}", "void clickOnVehicleAddStatus() {\n\t\tSeleniumUtility.clickOnElement(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\n\t}", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tif(sw.isChecked())\n\t\t\t{\n\t\t\t\tpartybool=true;\n\t\t\t\tDnDlevel=2;\n\t\t\t\tToast.makeText(con,\"\"+DnDlevel+\" \"+partybool,Toast.LENGTH_LONG).show();\n\t\t\t\tsb.setProgress(100);\n\t\t\t}\n\t\t}", "@FXML\n\tprivate void addButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart addPartToProduct = partSearchProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (addPartToProduct != null) {\n\t\t\t\n\t\t\tif(dummyList.contains(addPartToProduct) == false) {\n\t\t\t\t\n\t\t\t\tdummyList.add(addPartToProduct);\n\t\t\t}\n\t\t}\n\t}", "boolean addEasyVictory();", "private void checkCommentsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCommentsActionPerformed\n if(hasComments){\n hasComments = false;\n }\n else{\n hasComments = true;\n }\n }", "public boolean clickOnRequirements() throws Exception\n\t {\n\t\ttry\n\t\t{\n\t boolean st4=requirements.isEnabled();\n\t boolean st5=requirements.isDisplayed();\n\t System.out.println(st4);\n\t System.out.println(st5);\n\t \n\t //WebElement element1=driver.findElement(By.xpath(\"//a[@title='Test Repository']\"));\n\t WebDriverWait wait1 = new WebDriverWait(driver, 30);\n\t wait1.until(ExpectedConditions.elementToBeClickable(requirements));\n\t requirements.click();\n\t bp=new BasePage();\n\t bp.waitForElement();\n\t log.info(\"Successfully Landed on Requirements Page\");\n\t\n\t \n\t String validate_Requirements=validateRequirements.getText();\n\t String expmsg=\"Requirements\";\n\t if(validate_Requirements.equals(expmsg))\n\t {\n\t \tlog.info(\"Successfully Landed on Test Requirement Page\");\n\t \n\t \t}\n\t \n\t else\n\t {\n\t \t log.info(\"You are not in Test Requirement Page\");\n\t \n\t }\n\t return true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t \n\t}", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }", "private void checkEnabled() {\n }", "private void createAddButton(final Composite parent, final FunctionParameter fp, boolean addEnabled) {\n \t\t// create add button -> left\n\t\tfinal Button addButton = new Button(parent, SWT.PUSH);\n\t\taddButtons.put(fp, addButton);\n \t\taddButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, false, 2, 1));\n \t\taddButton.setText(\"Add parameter value\");\n \t\taddButton.setEnabled(addEnabled);\n \n \t\t// create selection listeners\n \t\taddButton.addSelectionListener(new SelectionAdapter() {\n \t\t\t@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\t// add text field\n \t\t\t\tList<Pair<Text, Button>> texts = inputFields.get(fp);\n \t\t\t\tboolean removeButtonsDisabled = texts.size() == fp.getMinOccurrence();\n \t\t\t\tPair<Text, Button> added = createField(addButton.getParent(), fp, null);\n \t\t\t\tadded.getFirst().moveAbove(addButton);\n \t\t\t\tadded.getSecond().moveAbove(addButton);\n \t\t\t\t\n \t\t\t\t// update add button\n \t\t\t\tif (texts.size() == fp.getMaxOccurrence())\n \t\t\t\t\taddButton.setEnabled(false);\n \n \t\t\t\t// need to enable all remove buttons or only the new one?\n \t\t\t\tif (removeButtonsDisabled)\n \t\t\t\t\tfor (Pair<Text, Button> pair : texts)\n \t\t\t\t\t\tpair.getSecond().setEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tadded.getSecond().setEnabled(true);\n \n \t\t\t\t// do layout\n \t\t\t\t((Composite) getControl()).layout();\n \t\t\t\t// run validator to update ControlDecoration and updateState\n \t\t\t\tadded.getFirst().setText(\"\");\n \t\t\t\t// pack to make wizard larger if necessary\n \t\t\t\tgetWizard().getShell().pack();\n \t\t\t}\n \t\t});\n \t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edit_add.getText().toString().length()>0){\n\t\t\t\t\taddQuestion(UrlUtils.USERQUESTIONADD, edit_add.getText().toString());\n\t\t\t\t}\n\t\t\t}", "@Test\n public void checkAddMenuButtonPresent() {\n onView(withId(R.id.menu_add)).check(matches(isDisplayed()));\n }", "public void onclick_add(MouseEvent mouseEvent) {\n\t\tUifEditCmd cmd = new UifEditCmd(\"ssoView\",DialogConstant.DEFAULT_WIDTH, DialogConstant.SIX_ELE_HEIGHT);\n\t\tAppLifeCycleContext.current().getWindowContext().addAppAttribute(\"operate\", \"add\");\n\t\tcmd.execute();\n//\t\tRow row = ds.getEmptyRow();\n//\t\tds.addRow(row);\n//\t\tds.setRowSelectIndex(ds.getRowIndex(row));\n//\t\tds.setEnabled(true);\n//\t\tnew UifUpdateOperatorState(ds, AppLifeCycleContext.current().getViewContext().getView()).execute();\n\t}", "public void setadd()\r\n\t{\r\n\t\tthis.jButtonadd.setEnabled(false);\r\n\r\n\t\tthis.jButtoncpsource.setEnabled(true);\r\n\t\tthis.jButtonctarget.setEnabled(false);\r\n\t\tthis.jButtonremend.setEnabled(false);\r\n\t\tthis.jButtonsave.setEnabled(true);\r\n\t\tthis.jButtonquery.setEnabled(true);\r\n\t\tthis.jButtoncopy.setEnabled(false);\r\n\t\tthis.jButtonfirst.setEnabled(true);\r\n\t\tthis.jButtonprev.setEnabled(true);\r\n\t\tthis.jButtonnext.setEnabled(true);\r\n\t\tthis.jButtonlast.setEnabled(true);\r\n\t\tthis.jButtonprint.setEnabled(true);\r\n\t\tthis.jButtonclose.setEnabled(false);\r\n\t\tthis.jButtoncancel.setEnabled(true);\t\r\n\t\tthis.jButtonaddrow.setEnabled(true);\t\t\r\n\t this.jButtondelrow.setEnabled(true);\r\n\t this.jButtondel.setEnabled(false);\r\n\t this.jButtonaddplus.setEnabled(false);\r\n\t this.jButtonapplied.setEnabled(true);\t \r\n\t this.jButtonSN.setEnabled(true);\t \r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "private boolean saveInput() {\n\n\t\timportedRequirements.clear();\n\t\tomittedRequirements.clear();\n\t\tfor (int i = 0; i < btnReqs.size(); i++) {\n\n\t\t\tClassifier contextClassifier = CyberRequirement.getClassifier(lblComponents.get(i));\n\t\t\tif (contextClassifier == null) {\n\t\t\t\tDialog.showError(\"Unknown context for \" + btnReqs.get(i).getText(), lblComponents.get(i)\n\t\t\t\t\t\t+ \" could not be found in any AADL file in the project. A requirement context must be valid in order to import requirements into model. This requirement will be de-selected.\");\n\t\t\t\t// Uncheck this requirement\n\t\t\t\tbtnReqs.get(i).setSelection(false);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (btnReqs.get(i).getSelection()) {\n\t\t\t\tif (txtIDs.get(i).getText().isEmpty()) {\n\t\t\t\t\tDialog.showError(\"Missing requirement ID\", btnReqs.get(i).getText()\n\t\t\t\t\t\t\t+ \" is missing a requirement ID. Requirement IDs must be assigned before requirements can be imported into model. This requirement will be de-selected.\");\n\t\t\t\t\t// Uncheck this requirement\n\t\t\t\t\tbtnReqs.get(i).setSelection(false);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\timportedRequirements.add(new CyberRequirement(btnReqs.get(i).getText(), txtIDs.get(i).getText(),\n\t\t\t\t\t\tlblReqTexts.get(i), contextClassifier, btnAgreeProps.get(i).getSelection(), \"\"));\n\t\t\t} else {\n\t\t\t\tomittedRequirements\n\t\t\t\t\t\t.add(new CyberRequirement(btnReqs.get(i).getText(), txtIDs.get(i).getText(), lblReqTexts.get(i),\n\t\t\t\t\t\t\t\tcontextClassifier, btnAgreeProps.get(i).getSelection(),\n\t\t\t\t\t\t\t\ttxtRationales.get(i).getText()));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void checkEditing() {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "private void setUpCheckBox(final int flag, CheckBox checkBox, LinearLayout llCheckBox) {\n if ((movie.getAvailableExtras() & flag) != 0) {\n checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n flagsApplied = flagsApplied ^ flag;\n updatePriceAndSaving();\n }\n });\n } else {\n llCheckBox.setVisibility(View.GONE);\n }\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (checkBoxReorder.isSelected() == true) {\r\n\t\t\t\thelperGetSet.setInstModReorder(true);\r\n\t\t\t} else if (checkBoxReorder.isSelected() == false) {\r\n\t\t\t\thelperGetSet.setInstModReorder(false);\r\n\t\t\t}\r\n\t\t}", "private void addCoinActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the actio\n\t\tif (!isSpining) {\n\t\t\t//add 1 to the credit and update the labels and buttons\n\t\t\tobj.setCredit(obj.getCredit() + 1);\n\t\t\tupdateLabels();\n\t\t\tupdateDisabledButtons();\n\t\t}\n\t}", "private void createCheckButtonPanel(Composite textPanel) {\r\n Composite checkPanel = new Composite(textPanel, SWT.NONE);\r\n checkPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1));\r\n checkPanel.setLayout(new GridLayout(2, true));\r\n\r\n Label swtTaskLabel = new Label(checkPanel, SWT.NONE);\r\n swtTaskLabel.setText(\"SWT task done\");\r\n swtTaskLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true));\r\n\r\n _checkButton = new Button(checkPanel, SWT.CHECK);\r\n _checkButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, true));\r\n }", "public void addFromProject() {\n btAddFromProject().push();\n }", "private static boolean addNewProject() {\n\t\tString[] options = new String[] {\"Ongoing\",\"Finished\",\"Cancel\"};\n\t\tint choice = JOptionPane.showOptionDialog(frame, \"Select new project type\" , \"Add new Project\", \n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[2]);\n\t\t\n\t\tNewProjectDialog dialog;\n\t\t\n\t\tswitch(choice) {\n\t\tcase 0:\n\t\t\tdialog = new NewProjectDialog(\"o\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tdialog = new NewProjectDialog(\"f\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "void onAddClicked();", "public void clickOnAddVehiclesButton() {\r\n\t\tsafeClick(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}", "@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}", "@POST\n public synchronized void doSubmit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {\n getACL().checkPermission(getPermission());\n\n MultipartFormDataParser parser = new MultipartFormDataParser(req);\n\n Map<SvnInfo,String> newTags = new HashMap<>();\n\n int i=-1;\n for (SvnInfo e : tags.keySet()) {\n i++;\n if(tags.size()>1 && parser.get(\"tag\"+i)==null)\n continue; // when tags.size()==1, UI won't show the checkbox.\n newTags.put(e,parser.get(\"name\" + i));\n }\n\n String credentialsId = parser.get(\"_.credentialsId\");\n StandardCredentials upc = null;\n if (credentialsId != null) {\n Item context = req.findAncestorObject(Item.class);\n final List<Authentication> authentications = new ArrayList<>(2);\n authentications.add(Jenkins.getAuthentication());\n if (context.hasPermission(Item.CONFIGURE)) { // TODO should this check EXTENDED_READ?\n authentications.add(ACL.SYSTEM);\n }\n for (Authentication a : authentications) {\n upc = CredentialsMatchers.firstOrNull(CredentialsProvider.lookupCredentials(StandardCredentials.class,\n context,\n a,\n Collections.emptyList()),\n CredentialsMatchers.allOf(CredentialsMatchers.withId(credentialsId), CredentialsMatchers.anyOf(\n CredentialsMatchers.instanceOf(StandardUsernamePasswordCredentials.class),\n CredentialsMatchers.instanceOf(StandardCertificateCredentials.class),\n CredentialsMatchers.instanceOf(SSHUserPrivateKey.class)\n )\n )\n );\n if (upc != null) {\n break;\n }\n }\n }\n new TagWorkerThread(newTags,upc,parser.get(\"comment\")).start();\n\n rsp.sendRedirect(\".\");\n }", "public void CheckoutRegisterradiobutton(){\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 radio button in checkout should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutregistrationradio\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Registration radio button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration radio button in checkout is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration radio button in checkout is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutregistrationradio\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}", "private void vote(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tif (this.controller.vote(p.getName())) {\n\t\t\t\tfield3.addSupported(p);\n\t\t\t}\n\t\t}\n\t}", "protected void okPressed() {\r\n \t\tArrayList resources= new ArrayList(10);\r\n \t\tfindCheckedResources(resources, (IContainer)fTree.getInput());\r\n \t\tif (fWorkingSet == null)\r\n \t\t\tfWorkingSet= new WorkingSet(getText().getText(), resources.toArray());\r\n \t\telse if (fWorkingSet instanceof WorkingSet) {\r\n \t\t\t// Add not accessible resources\r\n \t\t\tIResource[] oldResources= fWorkingSet.getResources();\r\n \t\t\tfor (int i= 0; i < oldResources.length; i++)\r\n \t\t\t\tif (!oldResources[i].isAccessible())\r\n \t\t\t\t\tresources.add(oldResources[i]);\r\n \r\n \t\t\t((WorkingSet)fWorkingSet).setName(getText().getText());\r\n \t\t\t((WorkingSet)fWorkingSet).setResources(resources.toArray());\r\n \t\t}\r\n \t\tsuper.okPressed();\r\n \t}", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void actionAddFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJFileChooser fileChooserDriver = new JFileChooser();\r\n\r\n\t\t\tint isFileSelected = fileChooserDriver.showOpenDialog(fileChooserDriver);\r\n\r\n\t\t\tif (isFileSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString filePath = fileChooserDriver.getSelectedFile().getPath();\r\n\t\t\t\tDataController.scenarioAddFile(filePath);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\r\n\t}", "public void ClickPrivacyPolicycheckbox(){\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:- Privacy Policy checkbox should be checked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"rdcheckoutprivacypolicy\"));\r\n\t\t\tSystem.out.println(\"Privacy Policy checkbox is checked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Privacy Policy checkbox is checked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Privacy Policy checkbox is not checked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdcheckoutprivacypolicy\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void clickadd_card() \n\t{\n\t\n\t\tdriver.findElement(add_card).click();\n\n }", "@Then(\"^Add user form should open$\")\r\n\tpublic void add_user_form_should_open() {\n\t}", "public boolean shouldEditButtonBePresent();", "@Override\n public void onClick(View v) {\n if (AddNewCarActivity.isedit) {\n if (!AddNewCarActivity.addCarModelObject.getStrStatus().contains(edt_Status.getText().toString()) && !AddNewCarActivity.addCarModelObject.editFilied.contains(ParamsKey.KEY_vehicleStatus)) {\n AddNewCarActivity.addCarModelObject.editFilied.add(ParamsKey.KEY_vehicleStatus);\n }\n }\n AddNewCarActivity.addCarModelObject.setStrStatus(edt_Status.getText().toString().trim());\n callbackAdd.onNextSecected(false, null);\n }", "public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}", "public void handleNewLinkerSelection(){\r\n if (getGwtToolbarItem().getRequiredModule() != null) {\r\n @SuppressWarnings(\"unchecked\")\r\n List<String> installedModules = (List<String>) JahiaGWTParameters.getSiteNode().get(\"j:installedModules\");\r\n setVisible(installedModules != null && installedModules.contains(getGwtToolbarItem().getRequiredModule()));\r\n }\r\n }", "public void addRadio(int aChanel) {\n radioList.add(radioLibrary.get(aChanel));\n rewriteXmlSource();\n }", "public void CheckIn(){\n if (isIn == false){\n isIn=true;\n// System.out.println(name + \" has been checked into the library.\");\n// }else\n// System.out.println(name + \" is not checked out.\");\n }\n }", "private JButton getAddIncludeConditionButton() {\n\t\tif (addIncludeConditionButton == null) {\n\t\t\taddIncludeConditionButton = new JButton();\n\t\t\taddIncludeConditionButton.setText(\"Добавить\");\n\t\t\taddIncludeConditionButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tDefaultListModel model = (DefaultListModel) functionList.getModel();\n\t\t\t\t\tOneCard el = new OneCard((ListElement)getCardValue().getSelectedItem(), (ListElement) getCardColor().getSelectedItem());\n\t\t\t\t\t((DefaultListModel) functionList.getModel()).add(model.getSize(), el);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn addIncludeConditionButton;\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString command=e.getActionCommand();\r\n\t\tif(command.equals(\"cancel\")){\r\n\t\t\tthis.setVisible(false);\r\n\t\t}else if(command.equals(\"add\")){\r\n\t\t\tString newFolderName=JOptionPane.showInputDialog(bmarkSimpleTree,\"请输入新文件夹名字:\",\"\"+System.currentTimeMillis());\r\n//\t\t\tSystem.out.println(\"newFolderName=\"+newFolderName);\r\n\t\t\tif(null==newFolderName||\"\".equals(newFolderName)){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tint lastId=new LikeLynneUtils().getMaxId();\r\n\t\t\tif(lastId<0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tLikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject();\r\n\t\t\tLikeLynne newFolder=new LikeLynne();\r\n\t\t\tnewFolder.setId((lastId+1));\r\n\t\t\tnewFolder.setParent(parentNode.getId());\r\n\t\t\tnewFolder.setTitle(newFolderName);\r\n\t\t\tnewFolder.setType(2);\r\n\t\t\tnewFolder.setChildren(new ArrayList<>());\r\n\t\t\tnewFolder.setDateAdded(System.currentTimeMillis());\r\n\t\t\tint resultCode=LikeLynneApi.getInstance().addLikeLynne(newFolder);\r\n\t\t\tif(resultCode==200){\r\n\t\t\t\taddNewLikeLynne(parentFrame.llynne, newFolder);\r\n\t\t\t\tbmarkSimpleTree.initTree(parentFrame.llynne,false);\r\n\t\t\t\tparentFrame.llynne=parentFrame.llynne;\r\n\t\t\t\tparentFrame.initBmarkWindow(parentFrame.llynne);\r\n\t\t\t\tparentFrame.addBmarkWindow.initComboFolders();\r\n\t\t\t}\r\n\t\t}else if(command.equals(\"save\")){\r\n\t\t\tString name=nameTxt.getText();\r\n\t\t\tif(\"\".equals(name)){\r\n\t\t\t\tJOptionPane.showMessageDialog(bmarkSimpleTree,\"请输入书签名字\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tString url=urlTxt.getText();\r\n\t\t\tif(\"\".equals(url)){\r\n\t\t\t\tJOptionPane.showMessageDialog(AddBmarkOrFolderUI.this,\"请输入书签链接\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(!Utils.isUrlFormat(url)){\r\n\t\t\t\tJOptionPane.showMessageDialog(bmarkSimpleTree,\"请输入有效书签链接\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n//\t\t\tJOptionPane.showMessageDialog(null,\"url=\"+url);\r\n\t\t\tint lastId=new LikeLynneUtils().getMaxId();\r\n\t\t\tif(lastId<0){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tLikeLynne parentNode=(LikeLynne) bmarkSimpleTree.getCurrentTreeNode().getUserObject();\r\n\t\t\tLikeLynne newLikeLynne=new LikeLynne();\r\n\t\t\tnewLikeLynne.setId((lastId+1));\r\n\t\t\tnewLikeLynne.setParent(parentNode.getId());\r\n\t\t\tnewLikeLynne.setTitle(name);\r\n\t\t\tnewLikeLynne.setUrl(url);\r\n\t\t\tnewLikeLynne.setType(1);\r\n\t\t\tnewLikeLynne.setDateAdded(System.currentTimeMillis());\r\n\t\t\tint resultCode=LikeLynneApi.getInstance().addLikeLynne(newLikeLynne);\r\n\t\t\tif(resultCode==200){\r\n\t\t\t\taddNewLikeLynne(parentFrame.llynne,newLikeLynne);\r\n\t\t\t\tthis.setVisible(false);\r\n\t\t\t\tparentFrame.llynne=parentFrame.llynne;\r\n\t\t\t\tparentFrame.initBmarkWindow(parentFrame.llynne);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addPressed() {\n\n\t\tJFileChooser fc = new JFileChooser();\n\t\tfc.setFileFilter(SwingFileFilterFactory.newMediaFileFilter());\n\t\tint returnVal = fc.showOpenDialog(Library.this);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tString newFile = fc.getSelectedFile().getAbsolutePath();\n\t\t\t// Check that file is a video or audio file.\n\t\t\tInvalidCheck i = new InvalidCheck();\n\t\t\tboolean isValidMedia = i.invalidCheck(newFile);\n\n\t\t\tif (!isValidMedia) {\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"You have specified an invalid file.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tselectedFile = fc.getSelectedFile();\n\t\t\t\tl.addElement(selectedFile.getName());\n\t\t\t\tpaths.put(selectedFile.getName(), selectedFile.getAbsolutePath());\n\t\t\t\tsizes.put(selectedFile.getName(),selectedFile.length());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcheckboxsActionPerformed(evt);\n\t\t\t}", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "@FXML\n\tprivate void enableFPGA() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableFPGA.isSelected()) {\n\t\t\tfpgaFamily.setDisable(false);\n\t\t\tbrowseBitFile.setDisable(false);\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + true + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t} else {\n\t\t\tfpgaFamily.setDisable(true);\n\t\t\tbrowseBitFile.setDisable(true);\n\t\t\tchooseBitFile.setText(\"\");\n\t\t\tbitFileSize.setText(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + false + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t}\n\t}", "@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public void addConditionAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Condition\", ViewNavigator.ADD_CONDITION_SCENE);\n\t}", "private void showSaveAndAdd() {\n\t\tButton saveButton = (Button) findViewById(R.id.b_recipeSave);\n\t\tButton addButton = (Button) findViewById(R.id.bNewIngredient);\n\t\tsaveButton.setVisibility(1);\n\t\taddButton.setVisibility(1);\n\t}", "void setSaveButtonEnabled(boolean isEnabled);", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAcctCheckbox() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.ValidateCheckboxerror(userProfile);\t \t \t\t\n\t}", "private void actionAdd() {\n\t\tURL verifiedUrl = verifyUrl(addTextField.getText());\n\t\tif (verifiedUrl != null) {\n\t\t\ttableModel.addDownload(new Download(verifiedUrl));\n\t\t\taddTextField.setText(\"\"); // reset add text field\n\t\t} else {\n\t\t\ttf.dispose();\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\"Invalid Download URL\", \"Error\",\n\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }" ]
[ "0.60400176", "0.5962929", "0.5889011", "0.5831492", "0.5749661", "0.572433", "0.5649494", "0.5644873", "0.5639375", "0.55725807", "0.5560842", "0.55338436", "0.550799", "0.55062205", "0.5499125", "0.5484672", "0.5483723", "0.548167", "0.5476546", "0.5465536", "0.5458807", "0.53741467", "0.537214", "0.53708434", "0.53700995", "0.5363525", "0.53491616", "0.53422767", "0.53329855", "0.5316206", "0.52443445", "0.5237931", "0.52372056", "0.52243054", "0.52238226", "0.5199205", "0.51974475", "0.5197016", "0.5195826", "0.5183385", "0.51830816", "0.51737285", "0.5170595", "0.5143307", "0.51416826", "0.512937", "0.51263195", "0.51262057", "0.5124491", "0.5118691", "0.51174384", "0.51091456", "0.51024693", "0.50975764", "0.5096546", "0.50945675", "0.5086626", "0.5080043", "0.507933", "0.50756073", "0.50591105", "0.5058169", "0.50565654", "0.5054573", "0.5051892", "0.504958", "0.5046149", "0.5046103", "0.5043839", "0.50411177", "0.50370157", "0.50358427", "0.5034749", "0.5031901", "0.5031528", "0.50249296", "0.50237954", "0.5022259", "0.50133175", "0.5011698", "0.5010697", "0.5003999", "0.5001974", "0.5000248", "0.4997555", "0.49953932", "0.49884704", "0.49861962", "0.49824178", "0.49802643", "0.49730998", "0.49722594", "0.49702525", "0.49671355", "0.49651852", "0.4964743", "0.49644282", "0.49642307", "0.4961747", "0.4960123", "0.4959201" ]
0.0
-1
Method that selects value by index
public static void selectDdValue(WebElement element, int index) { try { Select select = new Select(element); int size = select.getOptions().size(); if (size > index) { select.deselectByIndex(index); } } catch (UnexpectedTagNameException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getValue(int index);", "public int get(int index);", "abstract public Object getValue(int index);", "Object get(int index);", "Object get(int index);", "public Object get(int index);", "public Object get(int index);", "abstract int get(int index);", "int get(int idx);", "void select(int index) throws InvalidValueException;", "public T get(int index);", "public T get(int index);", "public T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "T get(int index);", "E get( int index );", "public T get(int aIndex);", "public Object getValueAt(int index);", "public int get(int index) {\n\t\treturn r[index];\n\t}", "public int get(int index) {\n return array[index];\n }", "public abstract T get(int index);", "String get(int index);", "public T get(int index) {\n return v.get(index);\n }", "public E get(int index);", "Object getElementAt(int index);", "int get(int index)\n\t{\n\t\treturn inputArray[index];\n\t}", "public Type get(int index);", "Object getArrayElement(int index);", "Object getArrayElement(int index);", "float get(int idx);", "public Object get( int index )\n {\n\treturn _data[index];\n }", "public abstract E get(int index);", "default V item( int i ) { return getDataAt( indexOfIndex( i ) ); }", "@Override\n public E get(int index) {\n this.rangeCheck(index);\n return (E) this.values[index];\n }", "public Integer get(int index){\n return list.get(index);\n }", "@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }", "public int getElementAtIndex(int index){\r\n return mArray[index];\r\n }", "@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }", "@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }", "Nda<V> getAt( int i );", "E get(int i) throws IndexOutOfBoundsException;", "public T getByIndex(int index) {\n\n return this.myList[index];\n }", "public abstract Object get(int pos) throws IndexOutOfBoundsException;", "float getIn(int index);", "public Object get(int index) {\n if (index==0) {\n return t;\n } else if (index==1) {\n return u;\n }\n throw new IndexOutOfBoundsException();\n }", "@Override\n public T get(final int index) {\n this.checkIndex(index);\n return this.data[index];\n }", "public Object elementAt(int index);", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "E getData(int index);", "@SuppressWarnings(\"unchecked\")\n public <T> T get(int index) {\n return (T)this.values[index];\n }", "int getRequestedValues(int index);", "public Object get(int index)\n {\n return items[index];\n }", "public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }", "public Object get(final int index) {\n return super.get(index);\n }", "public Object get(int index) {\n\tif(index > arr.length) return null;\n\treturn arr[index];\n}", "int getItem(int index);", "Value get(int index) throws ExecutionException;", "@Override\n\tpublic int get(int index) throws IndexOutOfBoundsException {\n\t\tif(checkIndex(index, size)) { //check if index is valid\n\t\t\treturn values[index]; //return the value at index\n\t\t}else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Highest index: \" + size);\n\t\t}\t\n\t}", "public E get(int index) {\r\n\t\tif (indices.get(index) == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(index).data;\t\t\r\n\t\t}\r\n\t}", "public Object getProperty (String index) ;", "public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}", "Nda<V> getAt( Number i );", "@Override\n public E get(final int index) {\n return array[index];\n }", "byte get(int index);", "public Integer get(int index) {\r\n return dice.get(index);\r\n }", "public E get(int index) {\n return this.elements[index];\n }", "public T get(int index) {\n return this.list[index];\n }", "public T get(int pos);", "public E get(int idx, E b) {\n assert idx >= 0;\n\n if(v == array[idx]){\n\t\treturn v;\n\t}\n\t\n\tif(array[idx] == null){\n\t\treturn b;\n\t}\n\treturn b;\n }", "public T get(int index) {\n return list.get(index);\n }", "public Tuple get(int index){\r\n\t\treturn tuples.get(index);\r\n\t}", "public E get(int index) {\r\n return items.get(index);\r\n }", "public int getPosition(int index);", "Object get(int i);", "public Vector get( final int indexFrom, final int indexTo );", "T get(int position);", "public T get(int index){\n if(!rangeCheck(index)){\n return null;\n }\n return (T)data[index];\n }", "public E get(int index)\n {\n if (index >= 0 && index < size)\n return data[index];\n else\n throw new NoSuchElementException();\n }", "Nda<V> get( int i );", "public E get(int index) { \n return (E)list[index];\n }", "public int get(int index) {\n\t checkIndex(index);\n\t return elementData[index];\n\t }", "@Override\n public E get(final int index) {\n ensureValidIndex(size, index);\n return super.get(index + lower);\n }", "public long getElem(int index) {\r\n return a[index];\r\n }", "public T get(int i);", "Nda<V> getAt( Object... args );", "public boolean get(long index);", "public Item get(int i);", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public synchronized E get(int index) {\n return this.array.get(index);\n }", "public T get(int index) {\n return items[(nextFirst + 1 + index) % capacity];\n }", "@Override\n public T get(int index) {\n return list.get(index);\n }", "@Override\n public T get(int index) {\n return indexCheck(index) ? (T) data[index] : null;\n }", "public T get(int index) {\n\t\tint at = 1;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (at == index) {\n\t\t\t\treturn current.value;\n\t\t\t}\n\t\t\tat++;\n\t\t}\n\t\t// We couldn't find it, throw an exception!\n\t\tthrow new IndexOutOfBoundsException();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T getVal(int idx) {\n\t\treturn (T) nvPairs.get((idx << 1) + 1);\n\t}", "@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}", "int index();" ]
[ "0.8145449", "0.79755455", "0.79195684", "0.79015714", "0.79015714", "0.7824463", "0.7824463", "0.7644763", "0.7624796", "0.7615933", "0.7564049", "0.7564049", "0.7564049", "0.74566895", "0.74566895", "0.74566895", "0.74566895", "0.74566895", "0.74373883", "0.73781747", "0.736699", "0.73244244", "0.7238909", "0.72351754", "0.7207587", "0.7205254", "0.7156572", "0.7138791", "0.7109758", "0.70984346", "0.70644444", "0.70644444", "0.70242286", "0.69704694", "0.69616425", "0.6942098", "0.69091386", "0.6897448", "0.6895298", "0.68504953", "0.6839328", "0.68277675", "0.6817823", "0.6815593", "0.68100214", "0.67989224", "0.6794354", "0.67918485", "0.67913955", "0.67847824", "0.67842174", "0.6780738", "0.6780521", "0.6772392", "0.67668957", "0.675546", "0.6749428", "0.67449105", "0.6737878", "0.6729726", "0.6727224", "0.67194825", "0.67131156", "0.6710514", "0.670968", "0.6699185", "0.6684828", "0.6663631", "0.66601676", "0.6647657", "0.6647431", "0.662779", "0.66264284", "0.6617325", "0.6616411", "0.6613772", "0.66073596", "0.66073424", "0.6606227", "0.6593753", "0.6586131", "0.6579911", "0.65772396", "0.6567653", "0.65619147", "0.6560703", "0.6559307", "0.65493625", "0.6547762", "0.6535817", "0.6516997", "0.6516997", "0.6516997", "0.6513815", "0.6507526", "0.6506942", "0.65050936", "0.64986545", "0.6491819", "0.64905334", "0.64842796" ]
0.0
-1
Method switches focus to child window
public static void switchToChildWindow() { String mainWindow = driver.getWindowHandle(); Set<String> windows = driver.getWindowHandles(); for (String window : windows) { if (!window.equals(mainWindow)) { driver.switchTo().window(window); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void switchToChildWindow() {\t\t\n\t\tString parent = Constants.driver.getWindowHandle();\n\t\tLOG.info(\"Parent window handle: \" +parent);\n\t\tSet <String> windows = Constants.driver.getWindowHandles();\n\t\tIterator <String> itr = windows.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString child = itr.next();\n\t\t\tif (!child.equals(parent)) {\n\t\t\t\tLOG.info(\"Child window handle: \" +child);\n\t\t\t\tConstants.driver.switchTo().window(child);\n\t\t\t} else {\n\t\t\t\tLOG.error(\"Parent(main) and child window hanldles are same.\");\n\t\t\t}\n\t\t}\n\n\t}", "public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}", "public void switchToChildTab() {\n for (String child : driver.getWindowHandles()) {\n try {\n driver.switchTo().window(child);\n } catch (NoSuchWindowException e) {\n log.error(\"Window is not found\");\n log.error(e.toString());\n }\n }\n }", "public void switchToChildWindow(String parent) {\r\n\t\t//get ra tat ca cac tab hoac cua so dang co -->ID duy nhat. Neu dung List thi no se lay ca ID trung\r\n Set<String> allWindows = driver.getWindowHandles();\r\n //for each\r\n for (String ChildWindow : allWindows) {\r\n \t//duyet qua trung\r\n if (!ChildWindow.equals(parent)) {\r\n driver.switchTo().window(ChildWindow);\r\n break;\r\n }\r\n }\r\n \r\n \r\n}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void setFocus();", "public void focus() {\n getRoot().requestFocus();\n }", "void setFocus();", "public void switchToChildWindow(String parent) throws Exception {\r\n\t\t// get ra tat ca cac tab dang co\r\n\t\tSet<String> allWindows = driver.getWindowHandles();\r\n\t\tThread.sleep(3000);\r\n\t\tfor (String runWindow : allWindows) {\r\n\t\t\tif (!runWindow.equals(parent)) {\r\n\t\t\t\tdriver.switchTo().window(runWindow);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "public static void switchToChildWindow(WebDriver driver) {\r\n\r\n\t\tString mainWindow = driver.getWindowHandle();\r\n\r\n\t\tfor (String window : driver.getWindowHandles()) {\r\n\r\n\t\t\tif (!window.equalsIgnoreCase(mainWindow)) {\r\n\t\t\t\tdriver.switchTo().window(window);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdriver.switchTo().defaultContent();\r\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "public void selectRootWindow() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "public void setFocus() {\n\t}", "private void setRequestFocusInThread() {\r\n SwingUtilities.invokeLater( new Runnable() {\r\n public void run() {\r\n sponsorHierarchyTree.requestFocusInWindow();\r\n }\r\n });\r\n }", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public void switchToTheCurrentWindow(WebDriver driver) {\n\n\t\tfor (String winHandle : driver.getWindowHandles()) {\n\t\t\tdriver.switchTo().window(winHandle);\n\t\t\tlogger.info(\"Switched to child widnow\");\n\t\t}\n\t}", "public void focus() {}", "void focus();", "void focus();", "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "public void switchToDefaultWindow() {\n\n\t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "public void setFocus() {\n }", "protected void gainFocus(){\r\n\t\twidgetModifyFacade.changeVersatilePane(this);\r\n\t\twidgetModifyFacade.gainedFocusSignal(this);\r\n\t//\tthis.setId(\"single-image-widget-selected\");\r\n\t}", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "public void requestFocus() {\n // Not supported for MenuComponents\n }", "public void SwitchToWindow(String handle)\n\t{\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\n public void setFocus() {\n }", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "@Override\n\tpublic void setFocus() {\n\t}", "public void setFocus() {\n\t\tcompositeQueryTree.setFocus();\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "public void setFocus() {\n startButton.setFocus();\n }", "private void close(){\n\t\tparent.setEnabled(true);\n\t\tparent.requestFocus();\n\t\tdispose();\n\t}", "public void windowBecameFront() \n {\n return; \n }", "public static void switchtoWindows() throws CheetahException {\n\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Attempting to Switch to Window\", Constants.LOG_INFO);\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t\tString winHandleBefore = CheetahEngine.getDriverInstance().getWindowHandle();\n\t\t\tCheetahEngine.cheetahForm.setParentHandle(winHandleBefore);\n\t\t\tCheetahEngine.handleStack.push(winHandleBefore);\n\t\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Parent Window Handle: \" + winHandleBefore,\n\t\t\t\t\tConstants.LOG_INFO);\n\t\t\tSet<String> handles = CheetahEngine.getDriverInstance().getWindowHandles();\n\t\t\tfor (String handle : handles) {\n\t\t\t\tif (!handle.equalsIgnoreCase(winHandleBefore) && !checkHandleInStack(handle)) {\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\",\n\t\t\t\t\t\t\t\"Switching to Child Windows Handle: \" + handle, Constants.LOG_INFO);\n\t\t\t\t\tCheetahEngine.getDriverInstance().switchTo().window(handle);\n\t\t\t\t\tString winHandleChild = handle;\n\t\t\t\t\tCheetahEngine.cheetahForm.setChildHandle(winHandleChild);\n\t\t\t\t}\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new CheetahException(e);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "public void switchToWindow(int index) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tList<String> allhandles = new ArrayList<String>(allWindows);\r\n\t\t\tString windowIndex = allhandles.get(index);\r\n\t\t\tgetter().switchTo().window(windowIndex);\r\n\t\t\tSystem.out.println(\"The Window With index: \"+index+\r\n\t\t\t\t\t\" switched successfully\");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window With index: \"+index+ \" not found\");\t\r\n\t\t}\t\r\n\t}", "public void Focus() {\n }", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public static void switchToParentWindow(String s) {\n\t\tdriver.switchTo().window(s);\n\t}", "void setFocus( ChatTarget focus );", "@Override\r\n\tpublic boolean setWindowToFront() {\n\t\treturn true;\r\n\t}", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "public abstract void requestFocusToSecondaryPhone();", "void addFocus();", "public void requestChildFocus(View view, View view2) {\n super.requestChildFocus(view, view2);\n if (!this.isInTouchMode() && !this.mCanSlide) {\n boolean bl2 = view == this.mSlideableView;\n this.mPreservedOpenState = bl2;\n }\n }", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "private void requestDefaultFocus() {\r\n if( getFunctionType() == TypeConstants.DISPLAY_MODE ){\r\n ratesBaseWindow.btnCancel.requestFocus();\r\n }else {\r\n ratesBaseWindow.btnOK.requestFocus();\r\n }\r\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "public void activateButton() {\n\t\tif (isBrowser) this.bringToBack();\r\n\t\tMainActivity.resetXY();\r\n\t}", "public boolean updateFocusedWindowLocked(int mode, boolean updateInputWindows, int topFocusedDisplayId) {\n WindowState newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId);\n boolean hasOtherFocusedDisplay = false;\n if (this.mCurrentFocus == newFocus) {\n return false;\n }\n boolean imWindowChanged = false;\n if (this.mInputMethodWindow != null) {\n imWindowChanged = this.mInputMethodTarget != computeImeTarget(true);\n if (!(mode == 1 || mode == 3)) {\n assignWindowLayers(false);\n }\n }\n if (imWindowChanged) {\n this.mWmService.mWindowsChanged = true;\n setLayoutNeeded();\n newFocus = findFocusedWindowIfNeeded(topFocusedDisplayId);\n }\n if (this.mCurrentFocus != newFocus) {\n this.mWmService.mH.obtainMessage(2, this).sendToTarget();\n }\n if (!WindowManagerDebugConfig.DEBUG_FOCUS_LIGHT) {\n WindowManagerService windowManagerService = this.mWmService;\n }\n Slog.i(TAG, \"Changing focus from \" + this.mCurrentFocus + \" to \" + newFocus + \" displayId=\" + getDisplayId() + \" Callers=\" + Debug.getCallers(4));\n WindowState oldFocus = this.mCurrentFocus;\n this.mCurrentFocus = newFocus;\n if (this.mWmService.mRtgSchedSwitch) {\n this.mWmService.mHwWMSEx.sendFocusProcessToRMS(this.mCurrentFocus, oldFocus);\n }\n if (HwPCUtils.isPcCastModeInServer() && newFocus != null) {\n this.mCurrentFocusInHwPc = newFocus;\n }\n this.mLosingFocus.remove(newFocus);\n if (newFocus != null) {\n this.mWinAddedSinceNullFocus.clear();\n this.mWinRemovedSinceNullFocus.clear();\n if (newFocus.canReceiveKeys()) {\n newFocus.mToken.paused = false;\n }\n }\n int focusChanged = getDisplayPolicy().focusChangedLw(oldFocus, newFocus);\n if (imWindowChanged && oldFocus != this.mInputMethodWindow) {\n if (mode == 2) {\n performLayout(true, updateInputWindows);\n focusChanged &= -2;\n } else if (mode == 3) {\n assignWindowLayers(false);\n }\n }\n if ((focusChanged & 1) != 0) {\n setLayoutNeeded();\n if (mode == 2) {\n performLayout(true, updateInputWindows);\n } else if (mode == 4) {\n this.mWmService.mRoot.performSurfacePlacement(false);\n }\n }\n if (mode != 1) {\n getInputMonitor().setInputFocusLw(newFocus, updateInputWindows);\n }\n if (!this.mWmService.mPerDisplayFocusEnabled) {\n DisplayContent focusedContent = this.mWmService.mRoot.getDisplayContent(topFocusedDisplayId);\n if (this.mCurrentFocus == null && focusedContent != null) {\n hasOtherFocusedDisplay = true;\n }\n AppWindowTokenEx appWindowTokenEx = new AppWindowTokenEx();\n if (hasOtherFocusedDisplay) {\n WindowStateCommonEx windowStateEx = new WindowStateCommonEx(focusedContent.mCurrentFocus);\n appWindowTokenEx.setAppWindowToken(focusedContent.mFocusedApp);\n this.mHwDisplayCotentEx.focusWinZrHung(windowStateEx, appWindowTokenEx, focusedContent.getDisplayId());\n } else {\n WindowStateCommonEx windowStateEx2 = new WindowStateCommonEx(this.mCurrentFocus);\n appWindowTokenEx.setAppWindowToken(this.mFocusedApp);\n this.mHwDisplayCotentEx.focusWinZrHung(windowStateEx2, appWindowTokenEx, getDisplayId());\n }\n }\n adjustForImeIfNeeded();\n scheduleToastWindowsTimeoutIfNeededLocked(oldFocus, newFocus);\n if (mode != 2) {\n return true;\n }\n this.pendingLayoutChanges |= 8;\n return true;\n }", "public void bringToFront()\n {\n if(getExtendedState() == JFrame.ICONIFIED)\n setExtendedState(JFrame.NORMAL);\n\n this.toFront();\n }", "public void switchToAnotherWindowHandle(String winHandleBefore) {\n\t\t\r\n\t\t\r\n\t\tfor (String winHandle : driver.getWindowHandles()) {\r\n\t\t\tif (!winHandle.equals(winHandleBefore))\r\n\t\t\t\tdriver.switchTo().window(winHandle);\r\n\t\t\t\t\r\n\t\t}\r\n\t\t// driver.manage().window().maximize();\r\n\t}", "public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }", "public void switchToParentIFrame() {\n\t\t_eventFiringDriver.switchTo().parentFrame();\n\t\tSystem.out.println(\"control is switched to Parent Frame\");\n\t}", "public boolean setFocusedApp(AppWindowToken newFocus) {\n AppWindowToken appWindowToken;\n DisplayContent appDisplay;\n if (newFocus != null && (appDisplay = newFocus.getDisplayContent()) != this) {\n StringBuilder sb = new StringBuilder();\n sb.append(newFocus);\n sb.append(\" is not on \");\n sb.append(getName());\n sb.append(\" but \");\n sb.append(appDisplay != null ? appDisplay.getName() : \"none\");\n throw new IllegalStateException(sb.toString());\n } else if (this.mFocusedApp == newFocus) {\n return false;\n } else {\n this.mWmService.mHwWMSEx.checkSingleHandMode(this.mFocusedApp, newFocus);\n this.mFocusedApp = newFocus;\n this.mWmService.mAtmService.mHwATMSEx.onWindowFocusChangedForMultiDisplay(newFocus);\n if (HwPCUtils.isPcCastModeInServer() && (appWindowToken = this.mFocusedApp) != null && !appWindowToken.getDisplayContent().isDefaultDisplay) {\n this.mWmService.setPCLauncherFocused(false);\n }\n getInputMonitor().setFocusedAppLw(newFocus);\n updateTouchExcludeRegion();\n return true;\n }\n }", "public WinDef.BOOL jnSetForegroundWindow(WinDef.HWND hWnd)\n {\n return user32Lib.SetForegroundWindow(hWnd);\n }", "public static void Focus (WebDriver driver) throws Exception{\r\n\t\t\r\n\t\tString testWindowHandle = driver.getWindowHandle();\t// Saving the current test-window handle\r\n\t\t((JavascriptExecutor)driver).executeScript(\"alert('Test')\"); \t// Running javascript and alert code:\r\n\t\tdriver.switchTo().alert().accept();\t// Every time the driver is focusing on other window,\r\n\t\tdriver.switchTo().window(testWindowHandle);\t//\tIt focusing back to to the test-window \r\n\r\n\t\t\t\r\n\t}", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "public synchronized void goToWindow(String key)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(1000);\r\n\t\t\taniWin.goToWindow(key);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void selectWindow(int index) {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(index));\n\t}", "public void requestFocus() {\n\n if (MyTextArea != null)\n MyTextArea.requestFocus();\n\n }", "public void setFocused(boolean focused);", "public void toFront() {\n WindowPeer peer = (WindowPeer) this.peer;\n if (peer != null) {\n peer.toFront();\n }\n }", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void setInputMethodWindowLocked(WindowState win) {\n WindowState windowState;\n if (win != null && (((windowState = this.mInputMethodWindow) == null || windowState != win) && this.mDisplayPolicy.isLeftRightSplitStackVisible())) {\n this.mDisplayPolicy.setFocusChangeIMEFrozenTag(false);\n }\n if (HwDisplaySizeUtil.hasSideInScreen()) {\n updateSideScreenRoundCorner(win);\n }\n this.mInputMethodWindow = win;\n WindowState windowState2 = this.mInputMethodWindow;\n if (windowState2 != null) {\n int imePid = windowState2.mSession.mPid;\n if (!HwPCUtils.isPcCastModeInServer() || !HwPCUtils.enabledInPad() || !HwPCUtils.isValidExtDisplayId(this.mInputMethodWindow.getDisplayId())) {\n this.mWmService.mAtmInternal.onImeWindowSetOnDisplay(imePid, this.mInputMethodWindow.getDisplayId());\n } else {\n this.mWmService.mAtmInternal.onImeWindowSetOnDisplay(imePid, 0);\n }\n }\n computeImeTarget(true);\n this.mInsetsStateController.getSourceProvider(10).setWindow(win, null);\n }", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }" ]
[ "0.7189738", "0.69512403", "0.6775618", "0.6762138", "0.66590846", "0.66201377", "0.66097534", "0.6604427", "0.6597881", "0.6563106", "0.65586895", "0.6555596", "0.65424615", "0.65424615", "0.65424615", "0.6516517", "0.6512848", "0.651153", "0.6510347", "0.64875275", "0.64826876", "0.6462476", "0.6458549", "0.6445446", "0.6445446", "0.6440472", "0.6421528", "0.6407845", "0.63994414", "0.63541114", "0.6350051", "0.6339189", "0.6315994", "0.62622947", "0.6237768", "0.62333214", "0.6230262", "0.6215164", "0.6215164", "0.6215164", "0.6215164", "0.6215164", "0.621311", "0.61745864", "0.6169976", "0.61690885", "0.61345184", "0.6130985", "0.612777", "0.6116454", "0.6116454", "0.6116454", "0.6116454", "0.6116454", "0.6116454", "0.6116454", "0.61139715", "0.61139715", "0.61139715", "0.61139715", "0.61091244", "0.60912615", "0.6083441", "0.60419583", "0.6033229", "0.6018194", "0.6017766", "0.6012968", "0.59901214", "0.5981318", "0.5926066", "0.5892387", "0.5890924", "0.58696526", "0.58661175", "0.58651537", "0.5844069", "0.58381295", "0.58262175", "0.5822327", "0.58149505", "0.5812373", "0.5793788", "0.57768416", "0.57479376", "0.5746359", "0.5739283", "0.57272977", "0.5725065", "0.57210845", "0.5714767", "0.57077277", "0.5707224", "0.5688896", "0.56773466", "0.56772465", "0.56762743", "0.56722766", "0.5668388", "0.566477" ]
0.734242
0
Method that will scroll the page down based on the passed pixel parameters
public static void scrollDown(int pixel) { getJSObject().executeScript("window.scrollBy(0," + pixel + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void scroll(int scrollTop);", "public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }", "public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }", "public static void scrollUp(int pixel) {\n\t\tgetJSObject().executeScript(\"window.scrollBy(0,-\" + pixel + \")\");\n\t}", "public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }", "public abstract void scroll(long ms);", "public void scrollDown(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + coordinatedFromTop + \");\");\n }", "public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}", "int getScrollOffsetY();", "public static void swipeTopToBottom(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeDown\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "public static void scrollTo(AndroidDriver<AndroidElement> driver,String direction, int times) throws InterruptedException {\n Thread.sleep(1000);\n if (direction.equals(\"down\")) {\n Dimension dim = driver.manage().window().getSize();\n int width = dim.getWidth() / 2;\n for (int i = 0; i < times; i++) {\n int startY = (int) (dim.getHeight() * 0.7);\n int endY = (int) (dim.getHeight() * 0.5);\n new TouchAction(driver).press(point(width, startY)).waitAction(waitOptions(Duration.ofSeconds(1)))\n .moveTo(point(width, endY)).release().perform();\n\n }\n\n }\n }", "void setScrollTop(int scrollTop);", "public void movePageDown(){\n mEventHandler.onScroll(null, null, 0, getHeight());\n mACPanel.hide();\n }", "public static void scrollUsingJavaSript(WebDriver driver, int verticalPixels) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\t\t\tjse.executeScript(\"window.scrollBy(0,\" + verticalPixels + \")\", \"\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initialised.\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t}\n\t}", "public void onScroll(State state, int positionY);", "private void scrollToBottom() {\n UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());\n int deviceHeight = uiDevice.getDisplayHeight();\n\n int statusBarHeight = statusBarHeight();\n int navigationBarHeight = navigationBarHeight();\n\n int padding = 20;\n int swipeSteps = 5;\n int viewPortBottom = deviceHeight - statusBarHeight - navigationBarHeight;\n int fromY = deviceHeight - navigationBarHeight - padding;\n int toY = statusBarHeight + padding;\n int delta = fromY - toY;\n while (viewPortBottom < scaleAbsoluteCoordinateToViewCoordinate(TEST_PAGE_HEIGHT)) {\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n viewPortBottom += delta;\n }\n // Repeat an addition time to avoid flakiness.\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n }", "int getScrollTop();", "public void scrollDown() throws Exception {\n Dimension size = driver.manage().window().getSize();\n //Starting y location set to 80% of the height (near bottom)\n int starty = (int) (size.height * 0.80);\n //Ending y location set to 20% of the height (near top)\n int endy = (int) (size.height * 0.20);\n //endy=driver.findElement(By.xpath(\"//*[@text='Terms']\")).getLocation().getY();\n //x position set to mid-screen horizontally\n int startx = size.width / 2;\n\n TouchAction touchAction = new TouchAction(driver);\n \n int i=8;\n while(i-->0) {\n touchAction\n .press(PointOption.point(startx, starty))\n .waitAction(new WaitOptions().withDuration(Duration.ofSeconds(1)))\n .moveTo(PointOption.point(startx, endy))\n .release().perform();\n }\n// touchAction.tap(PointOption.point(startx, endy)).perform();\n// touchAction.moveTo(PointOption.point(startx, endy)).perform();\n System.out.println(\"Tap Complete\");\n \n// new TouchAction((PerformsTouchActions) driver)\n// .moveTo(new PointOption<>().point(startx, endy))\n// .release()\n// .perform();\n\n}", "public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}", "void setScrollPosition(int x, int y);", "void scrollToY(int y) {\n double adjustedY = (double) y - scrollButtonTotalHeight;\n double percentage = adjustedY / (pastSize.height - scrollButtonTotalHeight);\n int minimum = getScrollBar().getModel().getMinimum();\n int maximum = getScrollBar().getModel().getMaximum();\n double range = (double) maximum - (double) minimum;\n int modelValue = (int) (percentage * range);\n getScrollBar().getModel().setValue(modelValue);\n }", "public abstract boolean scroll(Direction direction);", "public void scrollToYPos(int y) {\n verticalScroll = y;\n repaint();\n }", "public static void swipeBottomToTop(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeUp\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }", "public void setPageY(Integer pageY) {\n this.pageY = pageY;\n }", "public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value - 1000) + \");\");\n }", "public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(scroll(\"lalala\"));\n\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\tcurrentPosition2 = arg0;\n\t\t\t\t\n\t\t\t}", "public static void scrollDown(WebDriver driver) {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\tjse.executeScript(\"scroll(0, 250)\");\n\t}", "@SuppressWarnings(\"unused\")\n private void panBy(JSONArray args, CallbackContext callbackContext) throws JSONException {\n int x = args.getInt(1);\n int y = args.getInt(2);\n float xPixel = -x * this.density;\n float yPixel = -y * this.density;\n \n CameraUpdate cameraUpdate = CameraUpdateFactory.scrollBy(xPixel, yPixel);\n map.animateCamera(cameraUpdate);\n }", "private void drawVerticalScrollBar(){\n }", "@Override\n \tpublic void channelScroll( int first, int last, int screenCount, int totalCount ) {\n \t\tLog.v( TAG, \"channelScroll : enter\" );\n \t\t\n \t\tLog.v( TAG, \"channelScroll : first=\" + first + \", last=\" + last + \", screenCount=\" + screenCount + \", totalCount=\" + totalCount );\n \n \t\tChannelInfo start = mGuideChannelFragment.getChannel( first );\n \t\tLog.v( TAG, \"channelScroll : start=\" + start.toString() );\n \n \t\tChannelInfo end = mGuideChannelFragment.getChannel( last );\n \t\tLog.v( TAG, \"channelScroll : end=\" + end.toString() );\n \t\t\n \t\tLog.v( TAG, \"channelScroll : exit\" );\n \t}", "protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);", "public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\n }", "public void moveDown() {\n locY = locY - 1;\n }", "public void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\n\t\t\t}", "public void scrollDownEvent(int timesToRepeat) throws InterruptedException {\n String currentDoc = \"\";\n for (int i = 0; i < timesToRepeat; i++) {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n }\n }", "public String scrollVertically(String object, String data) {\n try {\n\n Thread.sleep(1000);\n int d = Integer.parseInt(data);\n ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,\" + d + \")\", \"\");\n return Constants.KEYWORD_PASS;\n } catch (Exception e) {\n e.printStackTrace();\n return Constants.KEYWORD_FAIL + e.getMessage();\n }\n }", "public void scrollUp(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + (-coordinatedFromTop) + \");\");\n }", "protected void scroll(int pixelDelta, int redrawAdd) {\r\n\t\tif (pixelDelta < 0) redrawAdd = -redrawAdd;\r\n\t\t// move at least one pixel\r\n\t\tif (Math.abs(pixelDelta) >= 1) {\r\n\t\t\tif (Math.abs(pixelDelta) >= getGraphWidth()) {\r\n\t\t\t\tif (DEBUG_DRAW) {\r\n\t\t\t\t\tdebug(\"Graph.scrollA redraw\");\r\n\t\t\t\t}\r\n\t\t\t\t// repaint tout le graph\r\n\t\t\t\trepaint(); // redraw();\r\n\t\t\t} else {\r\n\t\t\t\tif (DEBUG_DRAW) {\r\n\t\t\t\t\tdebug(\"Graph.scroll copyArea, move \" + pixelDelta\r\n\t\t\t\t\t\t\t+ \" pixel.\");\r\n\t\t\t\t}\r\n\t\t\t\t// copier le vieux graph et redessiner\r\n\t\t\t\t// seulement la nouvelle partie\r\n\t\t\t\tGraphics g = getGraphics();\r\n\t\t\t\tif (g != null) {\r\n\t\t\t\t\t// assumes nothing below/above graphs\r\n\t\t\t\t\tRectangle graphRect = getGraphBounds(ALL_CHANNELS);\r\n\t\t\t\t\tg.setClip(graphRect);\r\n\t\t\t\t\tg.copyArea(graphRect.x, graphRect.y, graphRect.width,\r\n\t\t\t\t\t\t\tgraphRect.height, -pixelDelta, 0);\r\n\t\t\t\t\t// redessiner la nouvelle partie\r\n\t\t\t\t\tpaintScrollPart(g, pixelDelta + redrawAdd);\r\n\t\t\t\t\tg.dispose();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (redrawAdd != 0) {\r\n\t\t\t// only draw the redrawAdd, if necessary\r\n\t\t\tGraphics g = getGraphics();\r\n\t\t\tif (g != null) {\r\n\t\t\t\tpaintScrollPart(g, redrawAdd);\r\n\t\t\t\tg.dispose();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void scroll(InputManager im, Method method, float x, float y, int deltaX, int deltaY)\n\t\tthrows InvocationTargetException, IllegalAccessException\n\t{\n\t\t\n\t\tlong when = SystemClock.uptimeMillis();\n\t\t\n\t\tMotionEvent.PointerProperties pp[] = new MotionEvent.PointerProperties[1];\n\t\tpp[0] = new MotionEvent.PointerProperties();\n\t\tpp[0].clear();\n\t\tpp[0].id = 0;\n\t\tMotionEvent.PointerCoords pc[] = new MotionEvent.PointerCoords[1];\n\t\tpc[0] = new MotionEvent.PointerCoords();\n\t\tpc[0].clear();\n\t\tpc[0].x = x;\n\t\tpc[0].y = y;\n\t\tpc[0].pressure = 1.0f;\n\t\tpc[0].size = 1.0f;\n\t\tpc[0].setAxisValue(10, deltaX);\n\t\tpc[0].setAxisValue(9, deltaY);\n\t\tMotionEvent event = MotionEvent.obtain(when, when, 8, 1, pp, pc, 0, 0, 1.0f, 1.0f, 0, 0, 0x1002, 0);\n\t\t\n\t\tmethod.invoke(im, new Object[]{event, Integer.valueOf(0)});\n\t\t\n\t}", "public void setScroll(int dx,int dy){\n\t\txscroll=dx;\n\t\tyscroll=dy;\n\t}", "@Test(priority = 2)\n\tpublic void scrolling() throws InterruptedException {\n\t\tThread.sleep(800);\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,500)\");\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t}", "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t\t\t}", "public void moveDown() {\n this.accelerateYD();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(0);\n this.setLoopCells(true);\n }", "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t}", "@Override\r\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\r\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\n\t}", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public void update(double delta){\r\n if(targetX != null){\r\n x = scrollToTarget(delta, x, targetX);\r\n if(x == targetX){\r\n targetX = null;\r\n }//End if\r\n }//End if\r\n if(targetY != null){\r\n y = scrollToTarget(delta, y, targetY);\r\n if(y == targetY){\r\n targetY = null;\r\n }//End if\r\n }//End if\r\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 }", "public Integer getPageY() {\n return pageY;\n }", "public void swipeLeftToRightAt70PercentFromTop(AndroidDriver<WebElement> androidDriver){\r\n\t\tint startX = (int) (getDeviceSize(androidDriver).width * 0.20);\r\n\t\tint endX = (int) (getDeviceSize(androidDriver).width * 0.80);\r\n\t\tint startY = (int) (getDeviceSize(androidDriver).height * 0.70);\r\n\t\t\r\n\t\tandroidDriver.swipe(startX, startY, endX, startY, 300);\r\n\t\t\r\n\t}", "@Override\n\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t}", "public void moveDown() {\n\t\tsetPosY(getPosY() + steps);\n\t}", "@Override\r\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2)\r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\r\n\t\t\t}", "@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}", "public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \t}", "private float scrollToTarget(double delta, float positionToUpdate, float targetPosition) {\r\n if(positionToUpdate > targetPosition){\r\n positionToUpdate -= scrollSpeed * delta;\r\n positionToUpdate = Math.max(targetPosition, positionToUpdate);\r\n } else if (positionToUpdate < targetPosition){\r\n positionToUpdate += scrollSpeed * delta;\r\n positionToUpdate = Math.min(targetPosition, positionToUpdate);\r\n }//End if\r\n return positionToUpdate;\r\n }", "void setTubeDownPosition(double x, double y);", "public void scrollUp() {\n JavascriptExecutor jse = (JavascriptExecutor)driver;\n jse.executeScript(\"window.scrollBy(0, -500)\", new Object[]{\"\"});\n }", "public void onScrollDown(View view) {\n if (!checkReady()) {\n return;\n }\n\n changeCamera(CameraUpdateFactory.scrollBy(0, SCROLL_BY_PX));\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}", "private void paintScrollPart(Graphics g, int pixelOffset) {\r\n\t\tint from, w;\r\n\t\tif (pixelOffset < 0) {\r\n\t\t\t// draw on left\r\n\t\t\tfrom = 0;\r\n\t\t\tw = -pixelOffset;\r\n\t\t} else {\r\n\t\t\tfrom = pv.graphWidth - 1 - pixelOffset;\r\n\t\t\tw = pixelOffset;\r\n\t\t}\r\n\t\tif (g != null) {\r\n\t\t\tg.clipRect(pv.graphX + from, pv.graphY, w + pv.graphX,\r\n\t\t\t\t\tpv.allGraphsHeight);\r\n\t\t\tpaintGraphArea(g);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t}", "public void scrollDownEvent() throws InterruptedException {\n String currentDoc = \"\";\n do {\n currentDoc = driver.getPageSource();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n jse.executeScript(\"window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight));\");\n Thread.sleep(4000);\n } while (!currentDoc.equals(driver.getPageSource()));\n System.out.println(\"We are in the end of the page\");\n }", "private void doScrollY(int delta) {\n if (delta != 0) {\n if (isSmoothScrollingEnabled()) {\n smoothScrollBy(0, delta);\n } else {\n scrollBy(0, delta);\n }\n }\n }", "@Override\n\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void scrollVertical(int direction) {\n return;\n }", "int toIndex(int x, int y);", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\n\t\t\t}", "@Then(\"scroll the page\")\n\tpublic void scroll_the_page() throws InterruptedException {\n\t\tThread.sleep(5000);\n\t\tJavaScriptUtils.scrollPageDown(context.DRIVER);\n\t\tcontext.SCN.write(\"js scroll is successfully\");\n\n\t}", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "public int getYOffset();" ]
[ "0.6704218", "0.64581776", "0.64190245", "0.632289", "0.6319475", "0.62725824", "0.6121382", "0.60426617", "0.59680885", "0.58876485", "0.58628637", "0.5848839", "0.5842464", "0.58019525", "0.5762717", "0.5676505", "0.5664679", "0.5660513", "0.5653849", "0.56491226", "0.56448764", "0.56109256", "0.56088716", "0.5595538", "0.55931544", "0.55464274", "0.5541856", "0.55334157", "0.5501631", "0.54265773", "0.5382739", "0.5380712", "0.53688365", "0.5368057", "0.5361803", "0.5354297", "0.53439844", "0.53319126", "0.5312372", "0.53072816", "0.5283125", "0.52760136", "0.52549607", "0.5245453", "0.52320933", "0.52266014", "0.5222519", "0.5217061", "0.5217061", "0.521565", "0.521565", "0.521565", "0.5212263", "0.5212263", "0.5212263", "0.5212263", "0.5212263", "0.5212263", "0.5212263", "0.52079046", "0.5195126", "0.5193684", "0.5193684", "0.5193556", "0.51900107", "0.51851094", "0.51850283", "0.5170975", "0.5169776", "0.5169688", "0.5167746", "0.5166054", "0.5165395", "0.51618826", "0.5161669", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51615995", "0.51614153", "0.51613265", "0.51517636", "0.5149907", "0.5144712", "0.5142782", "0.51425517", "0.5139829", "0.51361287", "0.51361287", "0.51361287", "0.51361287", "0.5134221", "0.5133537", "0.5133085" ]
0.71767306
0
Method that will scroll the page up based on the passed pixel parameters
public static void scrollUp(int pixel) { getJSObject().executeScript("window.scrollBy(0,-" + pixel + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void scrollDown(int pixel) {\n\t\tgetJSObject().executeScript(\"window.scrollBy(0,\" + pixel + \")\");\n\t}", "public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value - 1000) + \");\");\n }", "void scroll(int scrollTop);", "public void scrollUp(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + (-coordinatedFromTop) + \");\");\n }", "public void scrollUp() {\n JavascriptExecutor jse = (JavascriptExecutor)driver;\n jse.executeScript(\"window.scrollBy(0, -500)\", new Object[]{\"\"});\n }", "public synchronized void scrollUp()\r\n\t{\r\n\t\treferenceImage.scrollUp();\r\n\t\tdisplayedImage.scrollUp();\r\n\t}", "public void movePageUp(){\n mEventHandler.onScroll(null, null, 0, -getHeight());\n mACPanel.hide();\n }", "void setScrollTop(int scrollTop);", "public static void swipeBottomToTop(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeUp\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "public static void swipeTopToBottom(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeDown\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }", "public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "public static void scrollUsingJavaSript(WebDriver driver, int verticalPixels) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\t\t\tjse.executeScript(\"window.scrollBy(0,\" + verticalPixels + \")\", \"\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initialised.\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t}\n\t}", "public abstract void onScrollUp();", "public void moveUp() {\n locY = locY + 1;\n }", "public void scrollDown(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + coordinatedFromTop + \");\");\n }", "public void movebypixelsupdown(View view)\n {\n ImageView iv1=findViewById(R.id.iv1);\n iv1.animate().translationYBy(1000f).setDuration(2000);//down\n\n //to move up give negative value\n }", "public abstract void scroll(long ms);", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public void updateUp() {\n int newY = this.getY() + 1;\n this.setY(newY);\n }", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}", "int getScrollTop();", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}", "public static void scrollUp(WebDriver driver) {\n\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\tjse.executeScript(\"scroll(250, 0)\");\n\t}", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "private void scrollToBottom() {\n UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());\n int deviceHeight = uiDevice.getDisplayHeight();\n\n int statusBarHeight = statusBarHeight();\n int navigationBarHeight = navigationBarHeight();\n\n int padding = 20;\n int swipeSteps = 5;\n int viewPortBottom = deviceHeight - statusBarHeight - navigationBarHeight;\n int fromY = deviceHeight - navigationBarHeight - padding;\n int toY = statusBarHeight + padding;\n int delta = fromY - toY;\n while (viewPortBottom < scaleAbsoluteCoordinateToViewCoordinate(TEST_PAGE_HEIGHT)) {\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n viewPortBottom += delta;\n }\n // Repeat an addition time to avoid flakiness.\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n }", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}", "@SuppressWarnings(\"unused\")\n private void panBy(JSONArray args, CallbackContext callbackContext) throws JSONException {\n int x = args.getInt(1);\n int y = args.getInt(2);\n float xPixel = -x * this.density;\n float yPixel = -y * this.density;\n \n CameraUpdate cameraUpdate = CameraUpdateFactory.scrollBy(xPixel, yPixel);\n map.animateCamera(cameraUpdate);\n }", "void slideUpDownWithHandle(int byPixels);", "void setScrollPosition(int x, int y);", "public void setPageY(Integer pageY) {\n this.pageY = pageY;\n }", "void setTubeUpPosition(double x, double y);", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }", "public static void scrollTo(AndroidDriver<AndroidElement> driver,String direction, int times) throws InterruptedException {\n Thread.sleep(1000);\n if (direction.equals(\"down\")) {\n Dimension dim = driver.manage().window().getSize();\n int width = dim.getWidth() / 2;\n for (int i = 0; i < times; i++) {\n int startY = (int) (dim.getHeight() * 0.7);\n int endY = (int) (dim.getHeight() * 0.5);\n new TouchAction(driver).press(point(width, startY)).waitAction(waitOptions(Duration.ofSeconds(1)))\n .moveTo(point(width, endY)).release().perform();\n\n }\n\n }\n }", "private void scrollUp(int deltaY) {\n final int scrollY = getScrollY();\n if (scrollY < 0) {\n if (scrollY < deltaY) { // both scrollY and deltaY are less than 0\n scrollBy(0, -deltaY);\n return;\n } else {\n scrollTo(0, 0);\n deltaY -= scrollY;\n\n if (deltaY == 0) {\n return;\n }\n }\n }\n\n if (!mIsRefreshing) {\n int curHeaderViewHeight = getCurrentHeaderViewHeight();\n if (curHeaderViewHeight > 0) {\n\n int newHeaderViewHeight = curHeaderViewHeight + deltaY;\n if (newHeaderViewHeight > 0) {\n setHeaderViewHeight(newHeaderViewHeight);\n\n return;\n } else {\n setHeaderViewHeight(0);\n\n deltaY = newHeaderViewHeight;\n }\n }\n }\n\n if (reachBottomEdge()) {\n scrollBy(0, -deltaY);\n }\n }", "public void scrollDown() throws Exception {\n Dimension size = driver.manage().window().getSize();\n //Starting y location set to 80% of the height (near bottom)\n int starty = (int) (size.height * 0.80);\n //Ending y location set to 20% of the height (near top)\n int endy = (int) (size.height * 0.20);\n //endy=driver.findElement(By.xpath(\"//*[@text='Terms']\")).getLocation().getY();\n //x position set to mid-screen horizontally\n int startx = size.width / 2;\n\n TouchAction touchAction = new TouchAction(driver);\n \n int i=8;\n while(i-->0) {\n touchAction\n .press(PointOption.point(startx, starty))\n .waitAction(new WaitOptions().withDuration(Duration.ofSeconds(1)))\n .moveTo(PointOption.point(startx, endy))\n .release().perform();\n }\n// touchAction.tap(PointOption.point(startx, endy)).perform();\n// touchAction.moveTo(PointOption.point(startx, endy)).perform();\n System.out.println(\"Tap Complete\");\n \n// new TouchAction((PerformsTouchActions) driver)\n// .moveTo(new PointOption<>().point(startx, endy))\n// .release()\n// .perform();\n\n}", "public void onScroll(State state, int positionY);", "public void onScrollUp(View view) {\n if (!checkReady()) {\n return;\n }\n changeCamera(CameraUpdateFactory.scrollBy(0, -SCROLL_BY_PX));\n }", "public synchronized void scrollDown()\r\n\t{\r\n\t\treferenceImage.scrollDown();\r\n\t\tdisplayedImage.scrollDown();\r\n\t}", "int getScrollOffsetY();", "void scrollToY(int y) {\n double adjustedY = (double) y - scrollButtonTotalHeight;\n double percentage = adjustedY / (pastSize.height - scrollButtonTotalHeight);\n int minimum = getScrollBar().getModel().getMinimum();\n int maximum = getScrollBar().getModel().getMaximum();\n double range = (double) maximum - (double) minimum;\n int modelValue = (int) (percentage * range);\n getScrollBar().getModel().setValue(modelValue);\n }", "@Test\n\tpublic final void nextPositionUpTest() {\n\t\tplayer.setUp(true);\n\t\tplayer.getNextYPosition();\n\t\tassertTrue(player.isJumping());\n\t}", "public String scrollVertically(String object, String data) {\n try {\n\n Thread.sleep(1000);\n int d = Integer.parseInt(data);\n ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,\" + d + \")\", \"\");\n return Constants.KEYWORD_PASS;\n } catch (Exception e) {\n e.printStackTrace();\n return Constants.KEYWORD_FAIL + e.getMessage();\n }\n }", "public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }", "private void calculateViewportOffset (int[] xy, int visitorX, int visitorY) {\n Image mapImage = cityMap.getMapImage ();\n\n int mapWidth = mapImage.getWidth ();\n int mapHeight = mapImage.getHeight ();\n\n int vpWidth = getWidth ();\n int vpHeight = getHeight ();\n\n int x = visitorX - (vpWidth / 2);\n int y = visitorY - (vpHeight / 2);\n\n if ((x + vpWidth) > mapWidth) {\n x = mapWidth - vpWidth;\n }\n\n if ((y + vpHeight) > mapHeight) {\n y = mapHeight - vpHeight;\n }\n\n if (x < 0) {\n x = 0;\n }\n\n if (y < 0) {\n y = 0;\n }\n\n xy[X] = x;\n xy[Y] = y;\n }", "public void movePageDown(){\n mEventHandler.onScroll(null, null, 0, getHeight());\n mACPanel.hide();\n }", "public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \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}", "void setStepCounterTileXY();", "public void swipeLeftToRightAt70PercentFromTop(AndroidDriver<WebElement> androidDriver){\r\n\t\tint startX = (int) (getDeviceSize(androidDriver).width * 0.20);\r\n\t\tint endX = (int) (getDeviceSize(androidDriver).width * 0.80);\r\n\t\tint startY = (int) (getDeviceSize(androidDriver).height * 0.70);\r\n\t\t\r\n\t\tandroidDriver.swipe(startX, startY, endX, startY, 300);\r\n\t\t\r\n\t}", "public void moveDown() {\n locY = locY - 1;\n }", "public void moveUp() {\n\n if (this.row - 1 < 16) {\n return;\n }\n this.row -= 1;\n\n playerImage.translate(0, -Cell.CELLSIZE);\n playerImage.draw();\n }", "public void moveUp()\n\t{\n\t\trow++;\n\t}", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }", "protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);", "public void scrollToYPos(int y) {\n verticalScroll = y;\n repaint();\n }", "public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "@Override\n public void offsetChange (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {\n pixelOffset = xPixelOffset;\n }", "public void autoscroll(Point pt) {\n\t\t// Figure out which row we're on.\n\t\tint nRow = getRowForLocation(pt.x, pt.y);\n\n\t\t// If we are not on a row then ignore this autoscroll request\n\t\tif (nRow < 0)\n\t\t\treturn;\n\n\t\tRectangle raOuter = getBounds();\n\t\t// Now decide if the row is at the top of the screen or at the\n\t\t// bottom. We do this to make the previous row (or the next\n\t\t// row) visible as appropriate. If we're at the absolute top or\n\t\t// bottom, just return the first or last row respectively.\n\n\t\tnRow = (pt.y + raOuter.y <= AUTOSCROLL_MARGIN) // Is row at top of\n\t\t// screen?\n\t\t? (nRow <= 0 ? 0 : nRow - 1) // Yes, scroll up one row\n\t\t\t\t: (nRow < getRowCount() - 1 ? nRow + 1 : nRow); // No, scroll\n\t\t// down one row\n\n\t\tscrollRowToVisible(nRow);\n\t}", "private void moveRecursiveHelper (double pixels) {\n if (pixels <= 0 + PRECISION_LEVEL) return;\n \n Location currentLocation = getLocation();\n Location nextLocation = getLocation();\n Location nextCenter = nextLocation;\n nextLocation.translate(new Vector(getHeading(), pixels));\n Location[] replacements = { nextLocation, nextCenter };\n \n if (nextLocation.getY() < 0) {\n // top\n replacements = overrunsTop();\n }\n else if (nextLocation.getY() > myCanvasBounds.getHeight()) {\n // bottom\n replacements = overrunBottom();\n }\n else if (nextLocation.getX() > myCanvasBounds.getWidth()) {\n // right\n replacements = overrunRight();\n }\n else if (nextLocation.getX() < 0) {\n // left\n replacements = overrunLeft();\n }\n \n nextLocation = replacements[0];\n nextCenter = replacements[1];\n \n setCenter(nextCenter);\n double newPixels = pixels - (Vector.distanceBetween(currentLocation, nextLocation));\n if (myPenDown) {\n myLine.addLineSegment(currentLocation, nextLocation);\n }\n moveRecursiveHelper(newPixels);\n \n }", "public void updateGridY();", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }", "@Override\n\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\tcurrentPosition2 = arg0;\n\t\t\t\t\n\t\t\t}", "@Override\n \tpublic void channelScroll( int first, int last, int screenCount, int totalCount ) {\n \t\tLog.v( TAG, \"channelScroll : enter\" );\n \t\t\n \t\tLog.v( TAG, \"channelScroll : first=\" + first + \", last=\" + last + \", screenCount=\" + screenCount + \", totalCount=\" + totalCount );\n \n \t\tChannelInfo start = mGuideChannelFragment.getChannel( first );\n \t\tLog.v( TAG, \"channelScroll : start=\" + start.toString() );\n \n \t\tChannelInfo end = mGuideChannelFragment.getChannel( last );\n \t\tLog.v( TAG, \"channelScroll : end=\" + end.toString() );\n \t\t\n \t\tLog.v( TAG, \"channelScroll : exit\" );\n \t}", "public void goTo(double x, double y, double z)\r\n {\n }", "void setTubeDownPosition(double x, double y);", "@Override\n public void mouse2Up(int key, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel,\n GralWidget widgg)\n {\n \n }", "public int snapToGridVertically(int p)\r\n {\r\n return p;\r\n }", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void update(double delta){\r\n if(targetX != null){\r\n x = scrollToTarget(delta, x, targetX);\r\n if(x == targetX){\r\n targetX = null;\r\n }//End if\r\n }//End if\r\n if(targetY != null){\r\n y = scrollToTarget(delta, y, targetY);\r\n if(y == targetY){\r\n targetY = null;\r\n }//End if\r\n }//End if\r\n }", "public void swipeRightToLeftAt70PercentFromTop(AndroidDriver<WebElement> androidDriver){\r\n\t\t\r\n\t\tint startX = (int) (getDeviceSize(androidDriver).width * 0.80);\r\n\t\tint endX = (int) (getDeviceSize(androidDriver).width * 0.20);\r\n\t\tint startY = (int) (getDeviceSize(androidDriver).height * 0.70);\r\n\t\t\r\n\t\tandroidDriver.swipe(startX, startY, endX, startY, 300);\r\n\t\t\r\n\t}", "public static void scroll(InputManager im, Method method, float x, float y, int deltaX, int deltaY)\n\t\tthrows InvocationTargetException, IllegalAccessException\n\t{\n\t\t\n\t\tlong when = SystemClock.uptimeMillis();\n\t\t\n\t\tMotionEvent.PointerProperties pp[] = new MotionEvent.PointerProperties[1];\n\t\tpp[0] = new MotionEvent.PointerProperties();\n\t\tpp[0].clear();\n\t\tpp[0].id = 0;\n\t\tMotionEvent.PointerCoords pc[] = new MotionEvent.PointerCoords[1];\n\t\tpc[0] = new MotionEvent.PointerCoords();\n\t\tpc[0].clear();\n\t\tpc[0].x = x;\n\t\tpc[0].y = y;\n\t\tpc[0].pressure = 1.0f;\n\t\tpc[0].size = 1.0f;\n\t\tpc[0].setAxisValue(10, deltaX);\n\t\tpc[0].setAxisValue(9, deltaY);\n\t\tMotionEvent event = MotionEvent.obtain(when, when, 8, 1, pp, pc, 0, 0, 1.0f, 1.0f, 0, 0, 0x1002, 0);\n\t\t\n\t\tmethod.invoke(im, new Object[]{event, Integer.valueOf(0)});\n\t\t\n\t}", "public void moveUp()\n {\n if (yPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative Y because we are moving UP!\n movementY = -0.5;\n movementX = 0;\n }", "boolean canScrollUp();", "public double fixY( double y )\n {\n return pageSize.getHeight() - y;\n }", "public void navigateToElement(WebDriver driver, By element) {\n\t if (driver instanceof JavascriptExecutor) {\n\t\t ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,\" + (\n\t\t\t\t - driver.findElement(element).getLocation().getY()\n\t\t\t\t + driver.manage().window().getSize().height/2\n\t\t\t\t ) + \")\", \"\");\n\t }\t \n\t}", "public Integer getPageY() {\n return pageY;\n }", "private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }", "int toIndex(int x, int y);", "static void setY(int j) {\n\t\tpx = j;\n\t}", "private float scrollToTarget(double delta, float positionToUpdate, float targetPosition) {\r\n if(positionToUpdate > targetPosition){\r\n positionToUpdate -= scrollSpeed * delta;\r\n positionToUpdate = Math.max(targetPosition, positionToUpdate);\r\n } else if (positionToUpdate < targetPosition){\r\n positionToUpdate += scrollSpeed * delta;\r\n positionToUpdate = Math.min(targetPosition, positionToUpdate);\r\n }//End if\r\n return positionToUpdate;\r\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public abstract boolean scroll(Direction direction);", "@Override\r\n\tpublic void stepUp(Matrix3x3f viewport)\r\n\t{\n\t\ttransform(new Vector2f(2.0f, 0.0f), 0.0f, viewport, 2.0f, 2.0f);\r\n\t}", "public int getYOffset();", "public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }", "@Test(priority = 2)\n\tpublic void scrolling() throws InterruptedException {\n\t\tThread.sleep(800);\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,500)\");\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t}", "public static void main(String[] args) {\nSystem.out.println(scroll(\"lalala\"));\n\t}", "public void setScroll_px_per_line(float scroll_px_per_line) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t}\n\t}", "private void paintScrollPart(Graphics g, int pixelOffset) {\r\n\t\tint from, w;\r\n\t\tif (pixelOffset < 0) {\r\n\t\t\t// draw on left\r\n\t\t\tfrom = 0;\r\n\t\t\tw = -pixelOffset;\r\n\t\t} else {\r\n\t\t\tfrom = pv.graphWidth - 1 - pixelOffset;\r\n\t\t\tw = pixelOffset;\r\n\t\t}\r\n\t\tif (g != null) {\r\n\t\t\tg.clipRect(pv.graphX + from, pv.graphY, w + pv.graphX,\r\n\t\t\t\t\tpv.allGraphsHeight);\r\n\t\t\tpaintGraphArea(g);\r\n\t\t}\r\n\t}", "public void setDragOffset(float mmUp){\n\t\tmDragOffsetY = mmUp;\n\t}", "@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }", "private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}", "@Test\r\n\t@Order(7)\r\n\tvoid YmoveUpTest() {\r\n\t\trobot.setY(0);\r\n\t\tassertNotEquals(robot.moveUp(),\"Move test failed\\nREASON: moveUp() out of bounds!\");\r\n\t}" ]
[ "0.65320104", "0.6527288", "0.6500197", "0.64451164", "0.6134098", "0.6094623", "0.6023939", "0.60052705", "0.5951949", "0.5862529", "0.58377886", "0.5835441", "0.5817115", "0.578674", "0.57673633", "0.5765992", "0.57393706", "0.57185894", "0.5713891", "0.5695251", "0.5665035", "0.56509286", "0.56502736", "0.5639472", "0.5630498", "0.56261235", "0.56114393", "0.56007934", "0.55960625", "0.5584271", "0.5576059", "0.55561644", "0.5548517", "0.5517121", "0.55034137", "0.5426452", "0.5416091", "0.54156876", "0.5411431", "0.5410681", "0.53865546", "0.5370527", "0.5359925", "0.5348464", "0.53332144", "0.5321106", "0.53043294", "0.5298741", "0.52869797", "0.5257899", "0.52514124", "0.52349484", "0.5234233", "0.5208147", "0.51929706", "0.51920956", "0.5190612", "0.5190607", "0.51862526", "0.5185508", "0.518528", "0.5165549", "0.5165537", "0.51648855", "0.51610416", "0.5157647", "0.51540416", "0.51514083", "0.51246697", "0.5113041", "0.51128274", "0.5111681", "0.5092031", "0.5087279", "0.50868803", "0.5084196", "0.5066003", "0.5061631", "0.5042162", "0.50418943", "0.50367975", "0.50339967", "0.5031016", "0.5029026", "0.50275266", "0.5021708", "0.5019544", "0.50071615", "0.50043786", "0.4994863", "0.49836704", "0.49828675", "0.49752125", "0.49743572", "0.49735862", "0.49693292", "0.4953638", "0.49506617", "0.49493855", "0.49479228" ]
0.72990084
0
This method will take a screenshot
public static String takeScreenshot(String filename) { TakesScreenshot ts= (TakesScreenshot)driver; File file=ts.getScreenshotAs(OutputType.FILE); String destinationFile=Constants.SCREENSHOT_FILEPATH+filename+".png"; try { FileUtils.copyFile(file, new File("screenshot/"+filename+".pig")); }catch (Exception ex) { System.out.println("Cannot take screenshot!"); } return destinationFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void takesScreenshot();", "public void takeScreenShot();", "public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catcsh block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//put screenshot file in reports\r\n\t\ttest.log(LogStatus.INFO,\"Screenshot-> \"+ test.addScreenCapture(System.getProperty(\"user.dir\")+\"//screenshots//\"+screenshotFile));\r\n\t\t\r\n\t}", "private void takeScreenshot(Activity activity) {\n uiDevice.waitForIdle(2000);\n\n // Create a file and save it\n Date start = new Date();\n final File screenFile = new File(Environment.getExternalStorageDirectory(), \"screen_\" + start.toString() + \"_\" + rand.nextInt());\n uiDevice.takeScreenshot(screenFile, 0.5f, 50);\n\n // Finally, attempt to send that file over websockets\n socket.sendScreenshot(screenFile, activity, start);\n\n }", "public void screenshot() {\n\t\tRemoteWebDriver rwd = ((RemoteWebDriver) web.driver);\r\n\t\ttry {\r\n\t\t\trwd.getCommandExecutor().execute(new Command(rwd.getSessionId(), DriverCommand.ELEMENT_SCREENSHOT));\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.reportStackTrace(e);\r\n\t\t}\r\n\r\n\t}", "private void takeScreenshot()\n\t\t{\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint capacity = width * height;\n\t\t\tint[] dataArray = new int[capacity];\n\t\t\tIntBuffer dataBuffer = IntBuffer.allocate(capacity);\n\t\t\tGLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, dataBuffer);\n\t\t\tint[] dataArrayTemp = dataBuffer.array();\n\n\t\t\t// Flip the mirrored image.\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(dataArrayTemp, y * width, dataArray, (height - y - 1) * width, width);\n\t\t\t}\n\n\t\t\tBitmap screenshot = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n\t\t\tscreenshot.copyPixelsFromBuffer(IntBuffer.wrap(dataArray));\n\t\t\tBitmap thumbnail = Bitmap.createScaledBitmap(screenshot, width / THUMBNAIL_SHRINKING_FACTOR, height / THUMBNAIL_SHRINKING_FACTOR, true);\n\t\t\tproject.getSheetAt(screenshotSheetIndex).saveThumbnail(thumbnail);\n\t\t\tBitmapDrawable thumbnailDrawable = new BitmapDrawable(getResources(), thumbnail);\n\t\t\tproject.getSheetAt(screenshotSheetIndex).setThumbnail(thumbnailDrawable);\n\n\t\t\t// Refresh the sheet panel if the user is not requesting an exit.\n\t\t\tif (activity.taskRequested != NotepadActivity.TASK_EXIT)\n\t\t\t{\n\t\t\t\tactivity.refreshSheetDrawerAfterGeneratingThumbnail();\n\t\t\t}\n\n\t\t\t// The project thumbnail should be twice the width and height of a sheet thumbnail.\n\t\t\tBitmap projectThumbnail = Bitmap.createScaledBitmap(\n\t\t\t\t\tscreenshot, (width * 2) / THUMBNAIL_SHRINKING_FACTOR, (height * 2) / THUMBNAIL_SHRINKING_FACTOR, true);\n\t\t\tproject.saveThumbnail(projectThumbnail);\n\n\t\t\tif (activity.taskRequested > 0)\n\t\t\t{\n\t\t\t\tpost(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tactivity.performTask();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}", "public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}", "@After\t\n public void takeScreenShot() {\n File scrFile = ((TakesScreenshot)getDriver()).getScreenshotAs(OutputType.FILE);\n // now save the screenshot to a file some place\n try {\n\t\t\tFileUtils.copyFile(scrFile, new File(\"c:\\\\tmp\\\\TC_EditAppAddNewApiSTTC.png\"));\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n }", "private void screenshot() {\n final JComponent active = this.active;\n if (active != null && active.isValid()) {\n final BufferedImage image = new BufferedImage(active.getWidth(), active.getHeight(), BufferedImage.TYPE_INT_RGB);\n final Graphics2D handler = image.createGraphics();\n active.print(handler);\n handler.dispose();\n File file = new File(Preferences.userNodeForPackage(DesktopPane.class).get(SCREENSHOT_DIRECTORY_PREFS, \".\"));\n file = new File(file, getTitle(active.getClass()) + \".png\");\n try {\n assertTrue(ImageIO.write(image, \"png\", file));\n file = file.getParentFile();\n Desktop.getDesktop().open(file);\n } catch (IOException e) {\n JOptionPane.showInternalMessageDialog(active, e.getLocalizedMessage(),\n e.getClass().getSimpleName(), JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showInternalMessageDialog(this, \"No active window.\", \"Screenshot\", JOptionPane.WARNING_MESSAGE);\n }\n }", "public void takeScreenShot() {\n\t\t destDir = \"screenshots\";\n\t\t // Capture screenshot.\n\t\t File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t // Set date format to set It as screenshot file name.\n\t\t dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy__hh_mm_ssaa\");\n\t\t // Create folder under project with name \"screenshots\" provided to destDir.\n\t\t new File(destDir).mkdirs();\n\t\t // Set file name using current date time.\n\t\t String destFile = dateFormat.format(new Date()) + \".png\";\n\n\t\t try {\n\t\t // Copy paste file at destination folder location\n\t\t FileUtils.copyFile(scrFile, new File(destDir + \"/\" + destFile));\n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\n}", "public Bitmap makeScreenshot() {\n renderer.setScreenshot();\n requestRender();\n return renderer.getLastScreenshot();\n }", "@Test\n\tprivate void takeScreenshot() throws IOException {\n\t\tFile screenshot = ((TakesScreenshot) this.driver).getScreenshotAs(OutputType.FILE);\n\t\tString fileName = this.getTimestamp() + \".png\";\n\t\tFileUtils.copyFile(screenshot, new File(fileName));\n\n\t}", "public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }", "public void takescreenshot() throws IOException {\n\t\tString pwd = System.getProperty(\"user.dir\");\n\t\tFile sFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(sFile, new File(pwd + \"\\\\Output_screen.jpg\"));\n\t}", "private Bitmap takeScreenshot2() {\n Bitmap bitmap = null;\n try {\n // image naming and path to include sd card appending name you choose for file\n String mPath = Environment.getExternalStorageDirectory().toString() + \"/Activity\" + \".jpg\";\n\n // create bitmap screen capture\n View v1 = activity.getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n bitmap = Bitmap.createBitmap(v1.getDrawingCache());\n v1.setDrawingCacheEnabled(false);\n\n File imageFile = new File(mPath);\n\n FileOutputStream outputStream = new FileOutputStream(imageFile);\n int quality = 100;\n bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outputStream);\n outputStream.flush();\n outputStream.close();\n return bitmap;\n\n } catch (Throwable e) {\n // Several error may come out with file handling or OOM\n e.printStackTrace();\n }\n return bitmap;\n }", "private String takeScreenshot(View view) {\n Date now = new Date();\n android.text.format.DateFormat.format(\"yyyy-MM-dd_hh:mm:ss\", now);\n\n try {\n // image naming and path to include sd card appending name you choose for file\n String mPath = Environment.getExternalStorageDirectory().toString() + \"/\" + now + \".jpg\";\n\n // create bitmap screen capture\n View v1 = getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n Bitmap bitmap = Bitmap.createBitmap(v1.getDrawingCache(), (int)view.getX()+10,\n (int)view.getY()+35, view.getWidth()-22, view.getHeight()-33);\n v1.setDrawingCacheEnabled(false);\n File imageFile = new File(mPath);\n FileOutputStream outputStream = new FileOutputStream(imageFile);\n int quality = 100;\n bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outputStream);\n outputStream.flush();\n outputStream.close();\n return mPath;\n } catch (Throwable e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static Screenshot takeScreenShot() {\n\t\tScreenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000))\n\t\t\t\t.takeScreenshot(driver);\n\t\treturn screenshot;\n\t}", "public static void take(WebDriver driver){\n try {\n Thread.sleep(5000);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n\n\n Screenshot screenshot = new AShot()\n .shootingStrategy(ShootingStrategies.viewportPasting(100))\n .takeScreenshot(driver);\n\n try {\n ImageIO.write(screenshot.getImage(), \"png\", new File(\"/home/stanislav/123.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private Bitmap takeShareableScreenshot() {\n // https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot-in-android\n// cameraActionLayout.setVisibility(View.GONE);\n// resultLayout.setVisibility(View.GONE);\n try {\n // create bitmap screen capture\n View v1 = getWindow().getDecorView().getRootView();\n v1.setDrawingCacheEnabled(true);\n return Bitmap.createBitmap(v1.getDrawingCache());\n } catch (Throwable e) {\n // Several error may come out with file handling or OOM\n e.printStackTrace();\n makeToast(e.toString());\n Timber.e(\"Error capturing screenshot: \" + e.toString());\n return null;\n }\n// finally {\n// cameraActionLayout.setVisibility(View.VISIBLE);\n// resultLayout.setVisibility(View.VISIBLE);\n// }\n }", "public static void captureScreenShot(WebDriver driver) {\n\t\tlogger.info(\"Taking the screenshot\");\n\t\ttry {\n\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n\n\t\t\tTakesScreenshot ScrObj = (TakesScreenshot) driver;\n\n\t\t\tThread.sleep(3000);\n\n\t\t\tFile CaptureImg = ScrObj.getScreenshotAs(OutputType.FILE);\n\t\t\tFileUtils.copyFile(CaptureImg, new File(\"./Screenshots/\" + timeStamp + \"_screenshot.png\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"Error occured while Capturing Screenshot\");\n\t\t}\n\t}", "public void screenShot() {\n\n\t}", "private void takeScreenShot(final View v) {\n // Get device dimmensions\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n // create bitmap screen capture\n\n View view = v.getRootView();\n view.setDrawingCacheEnabled(true);\n // Create the bitmap to use to draw the screenshot\n final Bitmap bitmap = Bitmap.createBitmap(size.x, size.y, Bitmap.Config.ARGB_4444);\n final Canvas canvas = new Canvas(bitmap);\n\n // Get current theme to know which background to use\n final Activity activity = this;\n final Resources.Theme theme = activity.getTheme();\n final TypedArray ta = theme\n .obtainStyledAttributes(new int[]{android.R.attr.windowBackground});\n final int res = ta.getResourceId(0, 0);\n final Drawable background = activity.getResources().getDrawable(res);\n\n // Draw background\n background.draw(canvas);\n\n // Draw views\n view.draw(canvas);\n\n // Save the screenshot to the file system\n FileOutputStream fos;\n try {\n\n final File sddir = new File(SCREENSHOTS_LOCATIONS);\n\n if (!sddir.exists()) {\n sddir.mkdirs();\n }\n\n mQuestionScreenShotName = \"question_capture\"\n + System.currentTimeMillis() + \".jpg\";\n\n mQuestionImagePath = SCREENSHOTS_LOCATIONS + mQuestionScreenShotName;\n\n fos = new FileOutputStream(mQuestionImagePath);\n\n if (!bitmap.compress(Bitmap.CompressFormat.JPEG, 90, fos)) {\n return;\n }\n fos.flush();\n fos.close();\n\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n }", "private void takeScreenShot(View view) {\n\n //This is used to provide file name with Date a format\n Date date = new Date();\n CharSequence format = DateFormat.format(\"MM-dd-yyyy_hh:mm:ss\", date);\n\n //It will make sure to store file to given below Directory and If the file Directory dosen't exist then it will create it.\n try {\n File mainDir = new File(\n this.getExternalFilesDir(Environment.DIRECTORY_PICTURES), \"FilShare\");\n if (!mainDir.exists()) {\n boolean mkdir = mainDir.mkdir();\n }\n\n //Providing file name along with Bitmap to capture screenview\n String path = mainDir + \"/\" + \"TrendOceans\" + \"-\" + format + \".jpeg\";\n view.setDrawingCacheEnabled(true);\n Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());\n view.setDrawingCacheEnabled(false);\n\n //This logic is used to save file at given location with the given filename and compress the Image Quality.\n File imageFile = new File(path);\n FileOutputStream fileOutputStream = new FileOutputStream(imageFile);\n bitmap.compress(Bitmap.CompressFormat.PNG, 90, fileOutputStream);\n fileOutputStream.flush();\n fileOutputStream.close();\n\n //Create New Method to take ScreenShot with the imageFile.\n shareScreenShot(imageFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void capturescreen(WebDriver driver, String testName) throws IOException {\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tFile source = ts.getScreenshotAs(OutputType.FILE);\n\t\tFile target = new File(System.getProperty(\"user.dir\")+ \"\\\\screenshots\\\\\" + testName + \".png\");\n\t\tSystem.out.println(target);\n\t\tFileUtils.copyFile(source, target);\n\t\tSystem.out.println(\"Screenshot Captured for : \" + testName);\n\t}", "void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}", "public static Bitmap takeScreenshot(Activity activity) {\n int[] screenSize = new int[2];\n Utils.getScreenSize(activity, screenSize);\n\n final Bitmap bitmap = Bitmap.createBitmap(screenSize[0], screenSize[1],\n Bitmap.Config.ARGB_8888);\n drawViews(getScreenViews(activity), bitmap);\n\n return bitmap;\n }", "private void screenshotView() {\n // Only take a screenshot if the activity is not finishing\n if (getContext() instanceof Activity && ((Activity) getContext()).isFinishing()) return;\n\n Bitmap screenshot = getScreenshotBitmap();\n if (screenshot == null) return;\n\n screenshotView = new ImageView(getContext());\n screenshotView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n screenshotView.setClickable(true);\n screenshotView.setImageBitmap(screenshot);\n screenshotOrientation = getOrientation();\n\n addView(screenshotView);\n\n TurbolinksLog.d(\"Screenshot taken\");\n }", "public void takeScreenshot( ) throws IOException {\n File source = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n String path = \"./reports/target/screenshots/\" + source.getName();\n FileUtils.copyFile(source, new File(path));\n }", "private void captureScreen(String reason) throws Exception {\n File file;\n try {\n file = new File(getWorkDirPath() + \"/dump.png\");\n file.getParentFile().mkdirs();\n file.createNewFile();\n } catch(IOException e) { throw new Exception(\"Error: Can't create dump file.\"); }\n PNGEncoder.captureScreen(file.getAbsolutePath());\n throw new Exception(reason);\n }", "public void takeScreenShot(String fileName) throws IOException {\n\t\tScreenshot takeScreenShot = new AShot().takeScreenshot(driver);\n\t\tImageIO.write(takeScreenShot.getImage(), \"png\", new File(path+\"\\\\ScreenShots\\\\\" + fileName + \".png\"));\n\t}", "private static void ScreenShot(WebDriver driver, String Filepath) {\n\t\tTakesScreenshot screen=((TakesScreenshot)driver);\n\t\t\n\t\tFile SrcFile=screen.getScreenshotAs(OutputType.FILE);\n\n\t\t//Move image to new destination\n\t\tFile DestFile=new File(Filepath);\n\n\t\t//Copy file at destination location\n\t\t//FileUtils.copyFile(SrcFile, DestFile);\n\t\t\n\t}", "public void takeScreenShot (WebDriver driver, String screenshotname) {\n\t\t\t File source = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t\t // Define path where Screenshots will be saved\n\t\t\n\t\t\t //Copy the source file at the screenshot path\n\t\t\t try {\n\t\t\t\tFileUtils.copyFile(source, new File(\"./ScreenShots/\" + screenshotname +\".png\"));\n\t\t\t} catch (IOException e1) {}\n\t\t\t try {\n//\t\t\t\t Change the thread value to run test files with delay\n\t\t\t\t\tThread.sleep(3_000);\n\t\t\t\t} catch (InterruptedException e) {}\n\t\t }", "private void takeScreenShot(WebDriver driver, String fName) throws IOException {\n\n\t\tFile scrshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(scrshotFile, new File(fName));\n\t}", "private void makeScreenshot(TakesScreenshot d) {\n\t\tFile screenshot = d.getScreenshotAs(OutputType.FILE);\n\t\ttry {\n\t\t\tFileUtils.copyFile(screenshot, new File(screenshot.getName()));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void screenShot(String data) throws IOException {\nTakesScreenshot screenShot=(TakesScreenshot) driver;\nFile screenshotAs = screenShot.getScreenshotAs(OutputType.FILE);\nFile file=new File(System.getProperty(\"user.dir\")+\"\\\\target\\\\\"+data+\".png\");\nFileUtils.copyFile(screenshotAs, file);\n\n}", "@Test\n public void myTest() throws Exception {\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://www.google.com\");\n\n // RemoteWebDriver does not implement the TakesScreenshot class\n // if the driver does have the Capabilities to take a screenshot\n // then Augmenter will add the TakesScreenshot methods to the instance\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n\n\n //File screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n // Now you can do whatever you need to do with it, for example copy somewhere\n FileUtils.copyFile(screenshot, new File(\"C:\\\\Dev\\\\screenshot.png\"));\n\n driver.quit();\n }", "public void getscreenshot(WebDriver driver, String testCaseNumber) {\n\n\t\tShutterbug.shootPage(driver, ScrollStrategy.WHOLE_PAGE).withName(testCaseNumber).save();\n\t\tlogger.info(\"Successfully screenshot is taken and stored in screenshot folder for the test case \" + testCaseNumber);\n\t}", "public static String createScreenshot(WebDriver driver) {\r\n\t \r\n\t UUID uuid = UUID.randomUUID();\r\n\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t try {\r\n\t org.apache.commons.io.FileUtils.copyFile(scrFile, new File(\"/img\" + uuid + \".png\"));\r\n\t System.out.println(\"/img/screen\" + uuid + \".png\");\r\n\t } catch (IOException e) {\r\n\t System.out.println(\"Error while generating screenshot:\\n\" + e.toString());\r\n\t }\r\n\t return \"/img\" + uuid + \".png\";\r\n\t}", "public void takeScreenShot(String fileName) throws IOException {\n File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n DateFormat dateFormat = new SimpleDateFormat(\"yy-mm-dd HH-mm-ss\");\n Date date = new Date();\n FileUtils.copyFile(scrFile, new File(\"TestoutputData/Screenshot/\" + fileName + \"_\" + dateFormat.format(date) + \".png\"));\n }", "public static void takeScreenshot(String fileName) throws IOException\n\t {\n\t\t File file=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t \n\t\t // copying the screenshot to the desired loacation by copyFile method\n\t\t String timestamp = new SimpleDateFormat(\"yyyy_MM_dd__hh_mm_ss\").format(new Date());\n\t\t \n\t\t FileUtils.copyFile(file, new File(\"E:\\\\screenshots\\\\\"+fileName+\" \"+timestamp+\" .jpg\"));\n\t\t \n\t }", "@Override\n public void capture() {\n captureScreen();\n }", "public static void TakeScreenShot(String i) throws IOException {//a metod we will use onTestFail listener, I added i so i can call the method for a particular case and put the screenShots in separate files\n Date d =new Date();\n String fileName = d.toString().replace(\":\",\"_\").replace(\" \",\"_\");\n path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\Prints\"+i+\"\\\\\"+fileName+\".jpg\";\n File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(screenshot,new File(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\Prints\"+i+\"\\\\\"+fileName+\".jpg\"));\n }", "public static void takeScreenshot(View view, String filePath) {\n Bitmap bitmap;\n View v1 = view.getRootView();\n v1.setDrawingCacheEnabled(true);\n bitmap = Bitmap.createBitmap(v1.getDrawingCache());\n v1.setDrawingCacheEnabled(false);\n\n OutputStream fout = null;\n File imageFile = new File(filePath);\n\n try {\n fout = new FileOutputStream(imageFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, fout);\n fout.flush();\n fout.close();\n\n } catch (FileNotFoundException e) {\n Log.e(C.TAG, \"screenshot error\", e);\n } catch (IOException e) {\n Log.e(C.TAG, \"screenshot error\", e);\n }\n }", "public static void screenshot() throws IOException {\n\tFile src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\n\t// copy to project location\n\tFileUtils.copyFile(src,\n\t\t\tnew File(System.getProperty(\"user.dir\") + \"\\\\src\\\\\" + \"screenshot_\" + timeStamp() + \".png\"));\n\n}", "public void getScreenshot() {\n String screenshotPath = System.getProperty(\"TEST_RESULTS_PATH\");\n getScreenshot(screenshotPath);\n }", "public void fTakeScreenshot(String SSPath){\r\n \ttry{ \t\t\r\n \t\tWebDriver screenDriver;\r\n \t\tif(driverType.contains(\"FIREFOX\") || driverType.contains(\"CHROME\") || driverType.contains(\"IE\")){\r\n \t\t\tscreenDriver = driver;\r\n \t\t}else{\r\n \t\t\tscreenDriver = new Augmenter().augment(driver);\r\n \t\t}\r\n \t\t\r\n File scrFile = ((TakesScreenshot)screenDriver).getScreenshotAs(OutputType.FILE);\r\n \t FileUtils.copyFile(scrFile, new File(SSPath));\r\n \t\ttry {\r\n \t\t\tThread.sleep(1);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t\tscreenDriver = null;\r\n \t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "@SuppressLint(\"NewApi\")\n\tpublic void takeScreenshot(Context context, String fileFullPath)\n\t{\n\t\tif(fileFullPath == \"\"){\n\t\t\tformat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\t\tString fileName = format.format(new Date(System.currentTimeMillis())) + \".png\";\n\t\t\tfileFullPath = \"/data/local/tmp/\" + fileName;\n\t\t}\n\t\t\n\t\tif(ShellUtils.checkRootPermission()){\n\t\t\tif(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH){\n\t\t\t\tShellUtils.execCommand(\"/system/bin/screencap -p \"+ fileFullPath,true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2 && android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH){\n\t\t\t\twm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n\t\t\t\tmDisplay = wm.getDefaultDisplay();\n\t\t\t\tmDisplayMatrix = new Matrix();\n\t\t\t\tmDisplayMetrics = new DisplayMetrics();\n\t\t\t\t// We need to orient the screenshot correctly (and the Surface api seems to take screenshots\n\t\t\t\t// only in the natural orientation of the device :!)\n\t\t\t\tmDisplay.getRealMetrics(mDisplayMetrics);\n\t\t\t\tfloat[] dims =\n\t\t\t\t{\n\t\t\t\t\t\tmDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels\n\t\t\t\t};\n\t\t\t\tfloat degrees = getDegreesForRotation(mDisplay.getRotation());\n\t\t\t\tboolean requiresRotation = (degrees > 0);\n\t\t\t\tif (requiresRotation)\n\t\t\t\t{\n\t\t\t\t\t// Get the dimensions of the device in its native orientation\n\t\t\t\t\tmDisplayMatrix.reset();\n\t\t\t\t\tmDisplayMatrix.preRotate(-degrees);\n\t\t\t\t\tmDisplayMatrix.mapPoints(dims);\n\t\t\t\t\tdims[0] = Math.abs(dims[0]);\n\t\t\t\t\tdims[1] = Math.abs(dims[1]);\n\t\t\t\t}\n\n\t\t\t\tBitmap mScreenBitmap = screenShot((int) dims[0], (int) dims[1]);\n\t\t\t\tif (requiresRotation)\n\t\t\t\t{\n\t\t\t\t\t// Rotate the screenshot to the current orientation\n\t\t\t\t\tBitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels,\n\t\t\t\t\t\t\tBitmap.Config.ARGB_8888);\n\t\t\t\t\tCanvas c = new Canvas(ss);\n\t\t\t\t\tc.translate(ss.getWidth() / 2, ss.getHeight() / 2);\n\t\t\t\t\tc.rotate(degrees);\n\t\t\t\t\tc.translate(-dims[0] / 2, -dims[1] / 2);\n\t\t\t\t\tc.drawBitmap(mScreenBitmap, 0, 0, null);\n\t\t\t\t\tc.setBitmap(null);\n\t\t\t\t\tmScreenBitmap = ss;\n\t\t\t\t\tif (ss != null && !ss.isRecycled())\n\t\t\t\t\t{\n\t\t\t\t\t\tss.recycle();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If we couldn't take the screenshot, notify the user\n\t\t\t\tif (mScreenBitmap == null)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(context, \"screen shot fail\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\n\t\t\t\t// Optimizations\n\t\t\t\tmScreenBitmap.setHasAlpha(false);\n\t\t\t\tmScreenBitmap.prepareToDraw();\n\n\t\t\t\tsaveBitmap2file(context, mScreenBitmap, fileFullPath);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void takeScreenShot(WebDriver webdriver, String fileWithPath) {\n TakesScreenshot scrShot = ((TakesScreenshot) webdriver);\n //Call getScreenshotAs method to create image file\n File SrcFile = scrShot.getScreenshotAs(OutputType.FILE);\n //Move image file to new destination\n File DestFile = new File(fileWithPath);\n //Copy file at destination\n try {\n FileUtils.copyFile(SrcFile, DestFile);\n } catch (IOException e) {\n System.err.println(\"Something went wrong during copying\");\n }\n }", "@Attachment(value = \"Page screenshot {fileWithPath}\", type = \"image/png\")\n protected byte[] takeSnapShot(String fileWithPath){\n try{\n TakesScreenshot scrShot =((TakesScreenshot)driver);\n\n File SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\n File DestFile=new File(\"./target/pictures/\"+ fileWithPath);\n\n FileUtils.copyFile(SrcFile, DestFile);\n\n return scrShot.getScreenshotAs(OutputType.BYTES);\n\n }catch(WebDriverException e){\n e.printStackTrace(); \n\n }catch(Exception e){\n e.printStackTrace(); \n }\n return null; \n }", "public static void captureScreenshot() throws IOException {\n\t\tDate d = new Date();\n\t\tscreenshotName = (d.toString().replace(\":\", \"_\").replace(\" \", \"_\"))+\".jpg\";\n\t\tscreenshotLocation1 = (System.getProperty(\"user.dir\"))+(\"\\\\target\\\\surefire-reports\\\\html\\\\\")+screenshotName;\n\t\tscreenshotLocation2 = (System.getProperty(\"user.dir\")+\"\\\\test-output\\\\html\\\\\"+screenshotName);\n\t\t\n\t\t//TakesScreenshot on failure\n\t\tFile screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t//add screenshot to the report - Surefire & reportng\n\t\tFileUtils.copyFile(screenshot, new File(screenshotLocation1));\n\t\tFileUtils.copyFile(screenshot, new File(screenshotLocation2));\n\t\ttest.log(LogStatus.INFO, \"Screenshot captured on failure of testcase\");\n\t\t\n\t}", "public static void getScreenShot(String description, WebDriver driver) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String outputFile = Common.outputFileDir + description + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }", "public static void takeScreenshotAtEndOfTest() throws IOException {\n\t\t//Take screenshot.\n\t\t\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);//output type is file type//coverting driver to take a screen shot TakesScreenshot(I) and then getScreenshotAs this method will execute \n\t\t//Copy to a file\t\t\n\t\t\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\t\t\tFileUtils.copyFile(scrFile, new File(currentDir + \"/screenshots/\" + System.currentTimeMillis() + \".png\"));\n\t\t\t\t\n\t\t\t\t}", "public static void main(String[] args) throws Exception{\n Home_Page.lnk_SignIn().click();\n LogIn_Page.txtbx_UserName().sendKeys(Constant.Username);\n LogIn_Page.txtbx_Password().sendKeys(Constant.Password);\n LogIn_Page.btn_LogIn().click();\n System.out.println(\" Login Successfully, now it is the time to Log Off buddy.\");\n Home_Page.lnk_LogOut().click(); \n File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n System.out.println(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\");\n FileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\"));\n driver.quit();\n }", "public static void takeSnapShot(WebDriver webdriver, String fPath) throws Exception {\n\n //Convert web driver object to TakeScreenshot\n TakesScreenshot scrShot = ((TakesScreenshot) webdriver);\n\n //Call getScreenshotAs method to create image file\n File SrcFile = scrShot.getScreenshotAs(OutputType.FILE);\n\n //Move image file to new destination\n File DestFile = new File(fPath);\n\n //Copy file at destination\n FileUtils.copyFile(SrcFile, DestFile);\n\n }", "public void captureScreenshot(String path_screenshot, String testCaseName) {\n try {\n File srcFile = ((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\n String filename = testCaseName + \"_\" + UUID.randomUUID().toString();\n File targetFile = new File(path_screenshot + filename + \".jpg\");\n FileUtils.copyFile(srcFile, targetFile);\n } catch (Exception e) {\n error(\"Failed while capturing screenshot\");\n error(Throwables.getStackTraceAsString(e));\n }\n }", "public static void captureScreenshot(WebDriver browserobject , String screenshotname) \n\t{\n\n\n\t\tPath dest = Paths.get(\"./ScreenShots\",screenshotname+\".png\"); \n\t\ttry {\n\t\t\tFiles.createDirectories(dest.getParent());\n\t\t\tFileOutputStream out = new FileOutputStream(dest.toString());\n\t\t\tout.write(((TakesScreenshot) browserobject).getScreenshotAs(OutputType.BYTES));\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Excpetion while taking screenshot\"+ e.getMessage());\n\t\t}\n\t}", "public void screenShot(String name)\n\t{\n\t\tFile f1=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFile f2=new File(\"src/test/resources/ScreenShots/\"+name+\".png\");\n\t\ttry \n\t\t{\n\t\t\tFileUtils.copyFile(f1,f2);\n\t\t\tlog.update(\"ScreenShot taken in name of \"+name);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tlog.update(\"Error in taking ScreenShots\");\n\t\t}\n\t\tcatch(IncompatibleClassChangeError e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tlog.update(\"Exception in incompatile class change error method\");\n\t\t}\n\t}", "public void screenshot(String methodName) throws Exception \r\n\t{\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tSimpleDateFormat formater = new SimpleDateFormat(\"dd_MM_yyyy_hh_mm_ss\"); \r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\r\n\t\tString screenshotLocationWeb = FilesAndFolders.getPropValue(\"screenshotLocationWeb\");\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(scrFile, new\r\n\t\t\t\t\tFile((screenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime())+\".png\")));\r\n\t\t\tReporter.log(\"<a href='\" +\r\n\t\t\t\t\tscreenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime()) + \".png'> <imgsrc='\" + screenshotLocationWeb + methodName + \"_\" + formater.format(calendar.getTime()) + \".png' /> </a>\");\r\n\t\t\tReporter.setCurrentTestResult(null);\r\n\t\t}\r\n\t\tcatch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}", "public static void takeScreenshot(String filename) throws IOException\n\t{\n\t\tFile file = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t\n\t\t//2. Now copy the file to the desired location using copyFile method\n\t\tFileUtils.copyFile(file, new File(\"E:\\\\Selenium\\\\SeleniumPractice\\\\src\\\\com\\\\seleniumpractice\\\\Screenshot\\\\\"+filename+\".jpg\"));\n\t\t\n\t\t\n\t}", "public void getScreenshot(String path) {\n\n String screenshotPath;\n String timestamp = testHelper.getTimestamp();\n\n screenshotPath = path + \"//\" + timestamp + \".JPG\";\n try {\n setUpScreenshot(screenshotPath);\n } catch (WebDriverException e) {\n LOGGER.log(Level.INFO,\n MESSAGE_WEB_DRIVER_EXCEPTION_IN_GET_SCREENSHOT_METHOD, e);\n } catch (IOException e) {\n LOGGER.log(Level.INFO,\n MESSAGE_IO_EXCEPTION_IN_GET_SCREENSHOT_METHOD, e);\n }\n\n }", "public void snapshot(TakesScreenshot drivername, String foldername,String filename) {\r\n\t\t// this method will take screen shot ,require two parameters ,one is\r\n\t\t// driver name, another is file name\r\n String timeString=ts.getTimeString();\r\n\t\tString currentPath = System.getProperty(\"user.dir\");\r\n\t\t// get current workfolder\r\n\t\tFile scrFile = drivername.getScreenshotAs(OutputType.FILE);\r\n\t\t// Now you can do whatever you need to do with it, for example copy\r\n\t\t// somewhere\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"save snapshot path is:\" + currentPath + \"/\"\r\n\t\t\t\t\t+ filename + \".jpg\");\r\n\t\t\tFileUtils.copyFile(scrFile, new File(currentPath +\"\\\\\"+ \"screenshot\"+\"\\\\\"+timeString+\"\\\\\" +foldername+ \"\\\\\"+filename\r\n\t\t\t\t\t+ \".jpg\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Can't save screenshot\");\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSystem.out.println(\"screen shot finished, it's in \" + currentPath\r\n\t\t\t\t\t+ \" folder\");\r\n\t\t}\r\n\t}", "public String getScreenshot(WebDriver driver) {\nTakesScreenshot ts= (TakesScreenshot)driver;\n\n//This gives screenshot in the form of file\nFile source=ts.getScreenshotAs(OutputType.FILE);\n\n//RETURNS path in user directory in the screenshot folder which is stored in \"path\" in the form of string\nString path= System.getProperty(\"user.dir\")+\"/Screenshot/\"+System.currentTimeMillis()+\".png\";\n\n//The path is returned to vaiable destination\nFile destination=new File(path);\n\ntry {\nFileUtils.copyFile(source,destination );\n} catch (IOException e) {\n// TODO Auto-generated catch block\nSystem.out.println(\"Capture Failed\" + e.getMessage());\n}\nreturn path;\n}", "public static String captureScreenshot(String scenariopath) {\n\t\tDate date = new Date();\r\n\t\tString snaptime = dateformat.format(date);\r\n\t\tString result=\"false\";\r\n\t\ttry {\r\n\t\t\tWebDriver augumentdriver = new Augmenter().augment(driver);\r\n\t\t\tFile source = ((TakesScreenshot) augumentdriver).getScreenshotAs(OutputType.FILE);\r\n\t\t\tString currentDate = new SimpleDateFormat(\"dd-mm-yyyy hh:mm:ss\").format(new Date());\r\n\t\t\tString path =\".//screenshots//\" + scenariopath+\"_\"+ snaptime + \".png\";\r\n\t\t\tfinal BufferedImage image = ImageIO.read(source);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.setFont(g.getFont().deriveFont(20f));\r\n\t\t\tg.setColor(Color.GREEN);\r\n\t\t\tg.drawString(currentDate, 20, 20);\r\n\t\t\tg.dispose();\r\n\t\t\tImageIO.write(image, \"png\", new File(path));\r\n\t\t\tresult= path;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Unable to take screenshot\");\r\n\t\t}\r\n\t\treturn result;\r\n\r\n\t}", "public static void takeScreenShot(String sFileName) throws IOException {\n\t\tTakesScreenshot scrShot =((TakesScreenshot)driver);\n\t\tString fileWithPath = (prop.getProperty(\"SCREENSHOT_DIR\") + \"\\\\\"+ sFileName);\n\t\tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\n\t\tFile DestFile=new File(fileWithPath);\n\t\tFileUtils.copyFile(SrcFile, DestFile);\n\t}", "static String takeScreenShot(String ImagesPath, WebDriver driver) {\n TakesScreenshot takesScreenshot = (TakesScreenshot) driver;\n File screenShotFile = takesScreenshot.getScreenshotAs(OutputType.FILE);\n File destinationFile = new File(ImagesPath+\".png\");\n try {\n FileUtils.copyFile(screenShotFile, destinationFile);\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return ImagesPath+\".png\";\n }", "public static String CaptureScreenShot(WebDriver driver) {\n\t\ttry {\n\t\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\t\tFile screenshotSRC = ts.getScreenshotAs(OutputType.FILE);\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\t\tFile screenshotDest = new File(path);\n\t\t\tFileUtils.copyFile(screenshotSRC, screenshotDest);\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "private Bitmap takeScreenShot(int x, int y, int width, int hight) {\n\t\tif (checkPath(PATH))\n\t\t\treturn ScreenShotWorker.getScreenBitmap(this);\n\t\treturn null;\n\t}", "public static void screenShot(WebDriver driver, String desc) {\n\t\tDate currentTime = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd-hh-mm-ss\");\n\t\tString dateString = formatter.format(currentTime);\n\t\tFile scrFile = ((TakesScreenshot) driver)\n\t\t\t\t.getScreenshotAs(OutputType.FILE);\n\t\ttry {\n\t\t\tdesc = desc.trim().equals(\"\") ? \"\" : \"-\" + desc.trim();\n\t\t\tFile screenshot = new File(\"screenshot\" + File.separator\n\t\t\t\t\t+ dateString + desc + \".png\");\n\t\t\tFileUtils.copyFile(scrFile, screenshot);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public BufferedImage createScreenCapture(Rectangle screenRect) {\n if (screenRect == null) {\n return null;\n }\n WinFileMappingBuffer fm = createScreenCaptureAsFileMapping(screenRect);\n //return null;\n if (fm == null) {\n return null;\n }\n BufferedImage image = CreateBuffedImage(fm, false);\n fm.close();\n return image;\n }", "public static File captureRootScreenShot(Activity activity){\n View decor = activity.getWindow().getDecorView();\n decor.setDrawingCacheEnabled(true);\n\n // Configure screenshot bounds\n Bitmap decorBmp = decor.getDrawingCache();\n\n // Create the screenshot per se\n Bitmap screenShot = Bitmap.createBitmap(decorBmp, 0, 0, decorBmp.getWidth(), decorBmp.getHeight());\n\n // Recycle the intial bitmap\n decorBmp.recycle();\n\n // Disable drawing cache on the decor\n decor.setDrawingCacheEnabled(false);\n\n // Save the newly generated screenshot into a temporary variable\n try {\n\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"PNG_\" + timeStamp + \"_\";\n File cacheDir = activity.getCacheDir();\n File tempFile = File.createTempFile(imageFileName, \".png\", cacheDir);\n\n // Write bitmap to file\n boolean result = screenShot.compress(Bitmap.CompressFormat.PNG, 0, new FileOutputStream(tempFile));\n if(result)\n return tempFile;\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public static void captureScreenshot(WebDriver driver , String screenshotname) throws IOException \n\t{\n\t\tPath dest = Paths.get(\"./ScreenShots\",screenshotname+\"gh.png\"); \n\t\t\n\t\t//take screenshot\n\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t//copy the screen shot to another file\n\t\tFileUtils.copyFile(scrFile, new File(dest.toString()));\n\t}", "@Override\n public void saveSnapshot(String path) {\n String command = \"adb shell screencap -p \" + path;\n// String command=\"adb shell screencap -p /sdcard/js_test.png\";\n// executeCommand(Lists.newArrayList(\n// \"adb\",\"shell\",\"screencap\",\"-p\",\"/sdcard/js_test.png\",\n// \"|\",\"sed\",\"'s/\\\\r$//'\",\">\",path\n//\n// ));\n// String command=\"adb shell screencap -p | sed 's/\\\\r$//' > screen.png\";\n executeCommand(command);\n }", "public static void captureScreenshot(WebDriver driver , String screenshotname) \n\t{\n\t\tPath dest = Paths.get(\"./Screenshots\",screenshotname+\".png\"); \n\t\t\n\t\ttry {\n\t\t\tFiles.createDirectories(dest.getParent());\n\t\t\tFileOutputStream out = new FileOutputStream(dest.toString());\n\t\t\tout.write(((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES));\n\t\t\tout.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Excpetion while taking screenshot: \"+ e.getMessage());\n\t\t}\n\t}", "private void takePicture() {\n\n captureStillPicture();\n }", "private Bitmap getScreenshotBitmap() {\n if (!hasEnoughHeapMemoryForScreenshot()) return null;\n\n if (getWidth() <= 0 || getHeight() <= 0) return null;\n\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n draw(new Canvas(bitmap));\n return bitmap;\n }", "public static String takeScreenShot(WebDriver driver, String testName){\n File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n String path = \"./\" + \"\\\\target\\\\surefire-reports\\\\\" + testName + \".png\";\n try {\n FileUtils.copyFile(screenshot, new File(path));\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return testName + \".png\";\n }", "public static String captureScreenshot(WebDriver driver,String screenshotName){\n\t\tTakesScreenshot ts=(TakesScreenshot)driver;\n\t\t//2.Take screen shot and define file type with a File Class:MAKE IT SOURCE FILE\n\t\tFile src=ts.getScreenshotAs(OutputType.FILE);\n\t\t//3.DEFINE where the taken screen shot will be save as FILE\n\t\tString destFilePath=(\"\\\\Users\\\\metootopa\\\\Desktop\\\\ECLIPSE_TEST\\\\com.MyAPP.HybridFrame\\\\ScreenShots\\\\\");\n\t\tString destFile=destFilePath+ screenshotName+ System.currentTimeMillis()+\".png\";\n\t\t//4.set src file to destinatoion folder\n\t\ttry {\n\t\t\tFileUtils.copyFile(src, new File(destFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Screenshot was not Successfull\"+e.getMessage());\n\t\t}\n\t\t\n\t\treturn destFile;\n\t\t\n\t\t\n\t\t\n\t}", "public static String capture(AndroidDriver driver, String screenShotName) throws IOException {\n\t\tFile source = driver.getScreenshotAs(OutputType.FILE);\n\t\tString dest = MyExtentListners.screenShotPath + screenShotName + \".png\";\n\t\tSystem.out.println(dest);\n\t\tFile destination = new File(dest);\n\t\tFileUtils.copyFile(source, destination);\n\t\treturn dest;\n\t}", "private void saveScreenshot(Bitmap screenshot, String filePath) {\n FileOutputStream out = null;\n try {\n out = new FileOutputStream(filePath);\n screenshot.compress(Bitmap.CompressFormat.PNG, 100, out);\n Log.i(TAG, \"Screenshot saved to \" + filePath);\n Toast.makeText(this, \"Screenshot saved to \" + filePath, Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Log.e(TAG, \"Failed to save screenshot\", e);\n Toast.makeText(this, \"Screenshot FAILED!\", Toast.LENGTH_SHORT).show();\n } finally {\n try { if (out != null) { out.close();} } catch (IOException e) {}\n }\n }", "public static void takeScreenShot(String filePath, String fileName) throws IOException { \n\t\ttry { \n\t\t\tFile scrFile = ((TakesScreenshot)SeleniumDriverManager.getManager().getDriver())\n\t\t\t\t\t.getScreenshotAs(OutputType.FILE); \n\t\t\tFileUtils.copyFile(scrFile, new File(filePath + fileName)); \n\t\t} catch (Exception e) { \n\t\t\te.printStackTrace(); \n\t\t} \n\t}", "public static void getScreenShot(StackTraceElement l, String description, WebDriver driver) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t String classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t String screenshotName = classNameOnly + \".\" + l.getMethodName() + \", \" + description +\", line # \" + l.getLineNumber();\n\t\t String outputFile = Common.outputFileDir + packageNameOnly + File.separator + classNameOnly + File.separator + screenshotName + \" (\" + dateFormat.format(new Date()) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }", "public static BufferedImage getScreenShot (Component component){\r\n BufferedImage image = new BufferedImage(component.getWidth(), component.getHeight(),BufferedImage.TYPE_INT_RGB);\r\n component.paint(image.getGraphics());\r\n return image;\r\n }", "public ImageIcon takeSnapShot(Component panel){\r\n // BufferedImage bufImage = new BufferedImage(panel.getSize().width, panel.getSize().height,BufferedImage.TYPE_INT_RGB);\r\n BufferedImage bufImage = new BufferedImage(2250, 2250,BufferedImage.TYPE_INT_RGB);\r\n panel.paint(bufImage.createGraphics());\r\n ImageIcon imageIcon = new ImageIcon(bufImage);\r\n String snapshotLocation = FileSystemView.getFileSystemView().getDefaultDirectory().toString() + \"\\\\spaceGUI\\\\yourImage.jpeg\";\r\n File fc = new File(snapshotLocation.substring(0,snapshotLocation.indexOf(\"yourImage.jpeg\")));\r\n if(!fc.exists()) {\r\n fc.mkdir();\r\n }\r\n File imageFile = new File(snapshotLocation);\r\n try{\r\n imageFile.createNewFile();\r\n ImageIO.write(bufImage, \"jpeg\", imageFile);\r\n System.out.println(\"Created picture\");\r\n \r\n }catch(Exception ex){\r\n System.out.println(\"Did not create picture\");\r\n } \r\n return imageIcon;\r\n }", "public static String getScreenshot() {\n TakesScreenshot screenshot = (TakesScreenshot) WebDriverBase.driver;\n File src = screenshot.getScreenshotAs(OutputType.FILE);\n String path = System.getProperty(\"user.dir\") + File.separator + \"target\" + File.separator + \"report\" + File.separator + System.currentTimeMillis() + \".png\";\n System.out.println(path);\n File dest = new File(path);\n try {\n FileUtils.copyFile(src, dest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return path;\n }", "public static void getScreenShot(String description, WebDriver driver, long milliseconds) throws IOException {\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd, HH.mm.ss\");\n\t\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t String outputFile = Common.outputFileDir + description + \" (\" + dateFormat.format(milliseconds) + \").png\";\n\t\t fileWriterPrinter(outputFile);\n\t\t FileUtils.copyFile(scrFile, new File(outputFile));\n\t\t }", "public static void getscreenshotAs(WebDriver driver) throws IOException {\n\t\tdriver.get(\"https://www.rahulshettyacademy.com/AutomationPractice/\");\n\t\t\n\t\tFile SrcFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tFile DestFile = new File(\"D:\\\\ECLIPSE\\\\screenshot\\\\New folder.png\");\n\n\t\tFileUtils.copyFile(SrcFile, DestFile);\n\t}", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "public static byte[] takeScreenshot(String filename) {\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\tbyte[] picBytes=ts.getScreenshotAs(OutputType.BYTES);\n\t\tFile file = ts.getScreenshotAs(OutputType.FILE);\n\t\tString destinationFile=Constants.SCREENSHOT_FILEPATH+filename+getTimeStamp()+\".png\";\n\t\ttry {\n\t\t\tFileUtils.copyFile(file, new File(destinationFile));\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Cannot take screenshot!\");\n\t\t}\n\t\t\n\t\treturn picBytes;\n\t}", "public void SaveScreenShot(Component component, String filename) throws Exception{\r\n BufferedImage imag = getScreenShot(component);\r\n ImageIO.write(imag, \"png\", new File(filename));\r\n }", "public static String takeScreenShot(String methodName) throws Exception {\n\n\t\ttry {\n\t\t\tdateStamp=Calendar.getInstance().getTime().toString().split(\":\")[0].replaceAll(\" \", \"_\");\n\t\t\tfileDirectory=new File(\"\\\\\"+LoadProperty.getPropertyInstance().getProperty(\"SCREENSHOT_LOCATION\")+\"/\"+dateStamp);\n\t\t\tif(!fileDirectory.exists()) {\n\t\t\t\tfileDirectory.mkdir();\n\t\t\t}\n\t\t\tscreenShot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\t\t\n\t\t\tfilePath = fileDirectory + \"\\\\\" + methodName.replaceAll(\" \", \"_\") + \"_\"+ getTimeStamp() + \".jpg\";\n\t\t\tFileUtils.copyFile(screenShot, new File(filePath));\n\t\t\treturn filePath;\n\t\t} catch (Exception e) {\n\t\t\tthrow (new Exception());\n\t\t}\n\t}", "private static Bitmap getScreenshot(Context context, View view) {\n view.setDrawingCacheEnabled(true);\n Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());\n\n // Remove status bar.\n if (view.findViewById(Window.ID_ANDROID_CONTENT) != null) {\n int top = (int) Math.ceil(25 * context.getResources().getDisplayMetrics().density);\n bitmap = Bitmap.createBitmap(bitmap, 0, top, bitmap.getWidth(), bitmap.getHeight() - top);\n }\n\n // Clear drawing cache.\n view.setDrawingCacheEnabled(false);\n\n return bitmap;\n }", "public static void rep_GetScreenshot(String outputlocation, String strFileName) throws IOException {\n File srcFiler = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(srcFiler, new File(outputlocation + strFileName));\n rep_Report(2, \"Screen shot saved\");\n }", "public void takeScreenshot(String message) {\n\t\tFile scrFile = (File)((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\ttry {\n\t\t\tFileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\") + \"/target/screenshots/\" + message + \".png\"));\n\t\t} catch (IOException e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "public String captureScreenshot(WebDriver driver, String testName) {\n String randomValue = \"_\" + StringUtils.getRandomAlphaNumeric(5);\n String fullPath = System.getProperty(\"user.dir\") + \"/screenshots/\" + testName + randomValue + \".png\";\n String captured = \"No\";\n try {\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File source = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(source, new File(fullPath));\n return fullPath;\n } catch (IOException e) {\n error(\"Failed to capture screenshot: <br/>\" + e.getMessage());\n error(Throwables.getStackTraceAsString(e));\n return captured;\n }\n }", "public String getScreenshot() {\n\t\tFile src = ((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\n\t\tString path = System.getProperty(\"user.dir\") + \"/screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\tFile destination = new File(path);\n\t\ttry {\n\t\t\tFileUtils.copyFile(src, destination);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn path;\n\t}", "@org.jetbrains.annotations.NotNull()\n public static final android.graphics.Bitmap screenshot(@org.jetbrains.annotations.NotNull()\n android.view.View $this$screenshot) {\n return null;\n }", "public void takePanoramaScreenshotSWT(int movieFrameNum) {\n\t\ttry {\n\t\t\tthis.setCurrent();\n\t\t\tGLContext.useContext(this);\n\t\t\t//System.out.println(\"takeScreenshot\");\n\t Rectangle rect = this.getClientArea();\n\t\t\tByteBuffer convImageBuffer = ByteBuffer.allocateDirect(rect.width * rect.height * 4);\n\t\t\tGL11.glReadBuffer(GL11.GL_FRONT);\n\t\t\tGL11.glReadPixels(0, 0, rect.width, rect.height, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, convImageBuffer);\n\t\t\tbyte[] bytes = new byte[rect.width * rect.height * 4];\n\t\t\tconvImageBuffer.get(bytes);\n\t\t\t\n\t\t\t// TODO\n\t\t\tPaletteData palette = new PaletteData (0xff000000, 0xff0000, 0xff00);\n\t\t\tImageData imageData = new ImageData(rect.width, rect.height, 32, palette, 1, bytes);\n\t\t\tImageData convImageData = ImageDataUtil.convertImageDataBack(imageData);\n\t\t\t\n\t\t\tString filename = \"\"+movieFrameNum+\".bmp\";\n\t\t\tFile screenshotDir = new File(workspace.getWorkspaceDir(), \"movies/frames\");\n\t\t\tif (!screenshotDir.exists()) {\n\t\t\t\tscreenshotDir.mkdirs();\n\t\t\t}\t\t\t\n\t\t\tFile file = new File(screenshotDir, filename);\n\t\t\tImageLoader imageLoader = new ImageLoader();\n\t\t\timageLoader.data = new ImageData[] {convImageData};\n\t\t\timageLoader.save(file.getAbsolutePath(), SWT.IMAGE_BMP);\n\t\t} catch (Throwable e) {\n//\t\t\tUnknownExceptionDialog.openDialog(this.getShell(), \"Error taking screenshot\", e);\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}", "public static String captureScreenshotOfDesktop() {\n\t\ttry {\n\t\t\tRobot robot = new Robot();\n\t\t\tBufferedImage tmp = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));\n\t\t\tString path = System.getProperty(\"user.dir\") + \"/Screenshots/\" + System.currentTimeMillis() + \".png\";\n\t\t\tImageIO.write(tmp, \"png\", new File(path));\n\t\t\treturn path;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t}", "public static String capture(WebDriver driver, String screenShotName) throws IOException {\n\n TakesScreenshot ts = (TakesScreenshot) driver;\n File source = ts.getScreenshotAs(OutputType.FILE);\n String dest = \"target/extent/screenshots/\" + screenShotName + \".png\";\n File destination = new File(dest);\n FileUtils.copyFile(source, destination);\n String loctionForReport = \"screenshots/\" + screenShotName + \".png\";\n return loctionForReport;\n }", "public static Bitmap tomarScreenShot(Activity actividad) {\n View rootView = actividad.getWindow().getDecorView().findViewById(android.R.id.content);\n View screenView = rootView.getRootView();\n Bitmap bitmap = Bitmap.createBitmap(screenView.getWidth(), screenView.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n Drawable bgDrawable = screenView.getBackground();\n if (bgDrawable != null) {\n bgDrawable.draw(canvas);\n } else {\n canvas.drawColor(Color.WHITE);\n }\n screenView.draw(canvas);\n return bitmap;\n }" ]
[ "0.83705735", "0.8201672", "0.7973316", "0.7825167", "0.7781062", "0.7768714", "0.7596758", "0.7566903", "0.7560677", "0.74969727", "0.7427694", "0.7393945", "0.7391303", "0.73838055", "0.73655635", "0.73252255", "0.7309225", "0.72536504", "0.72201174", "0.7203507", "0.7186858", "0.7174245", "0.7113199", "0.71101713", "0.7106621", "0.70634377", "0.7007612", "0.70013136", "0.69797885", "0.69654125", "0.69368136", "0.69336486", "0.6929785", "0.6925199", "0.6918106", "0.68642277", "0.68603206", "0.6849485", "0.6843329", "0.68421125", "0.68300664", "0.6816457", "0.68076473", "0.679269", "0.6791254", "0.6777703", "0.67560786", "0.6739481", "0.67194784", "0.67178965", "0.671772", "0.6712825", "0.67067933", "0.6699094", "0.66939497", "0.6687214", "0.6686729", "0.6650965", "0.66474384", "0.6631801", "0.6624792", "0.6606732", "0.6606349", "0.6598178", "0.65978664", "0.6593812", "0.65769994", "0.656488", "0.6545544", "0.6535135", "0.6526846", "0.65266514", "0.6524208", "0.6495264", "0.6493793", "0.6468503", "0.64666796", "0.6465005", "0.64459103", "0.6430882", "0.6425666", "0.64187926", "0.64102364", "0.64034593", "0.6397854", "0.63974386", "0.6396558", "0.63874185", "0.6384899", "0.63753456", "0.63626605", "0.6360108", "0.6349287", "0.6345395", "0.6344092", "0.634278", "0.63356173", "0.6331396", "0.633137", "0.63302773" ]
0.6635625
59
this method will select a day from a calendar
public static void selectCalendarDate(List<WebElement> element, String text) { for (WebElement pickDate : element) { if (pickDate.isEnabled()) { if (pickDate.getText().equals(text)) { pickDate.click(); break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scanCurrentDay(){\n month.getMyCalendar().setDate(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n month.setSelectDay(dp.getDayOfMonth());\n month.invalidate();\n this.dismiss();\n }", "@Test(enabled = true)\n\tpublic void selectDateTest() {\n\t\tWebElement calendarElement = driver\n\t\t\t\t.findElement(By.cssSelector(\"#hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDateCssSelectors(calendarElement, \"2018\", \"September\", \"22\",\n\t\t\t\t\tdriver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void weekCalendar() throws InterruptedException{\n\t\tgetEBN(\"openWeek\").click();\r\n\t\tThread.sleep(waiteTime);\r\n\t\tWebElement element1 = driver.findElement(By.xpath(\".//*[@id='ir_week']/tbody/tr[1]/th[2]/span\"));\r\n\t\tString date1 = element1.getText();\r\n\t\t//System.out.println(date1);\r\n\t\tgetEBN(\"openCaln\").click();\r\n\t\tThread.sleep(waiteTime);\r\n\t\tgetEBN(\"chooseDayInCalendar\").click();\r\n\t\tThread.sleep(waiteTime);\r\n\t\tWebElement element2 = driver.findElement(By.xpath(\".//*[@id='ir_week']/tbody/tr[1]/th[2]/span\"));\r\n\t\tString date2 = element2.getText();\r\n\t\tif (date1.equals(date2)) {\r\n\t\t\tfail(\"Дата не изменилась\");\r\n\t\t}\r\n\t\t//getEBN(\"openWeek\").click();\t\r\n\t}", "@Override\n public void onSelectedDayChange(@NonNull CalendarView calendarView, int year, int month, int dayofmonth) {\n String dateselectedwoformat = String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(dayofmonth);\n SimpleDateFormat format = new SimpleDateFormat(datePattern);\n String dateselected = null;\n try {\n Date date = format.parse(dateselectedwoformat);\n Log.d(\"date\", \"onSelectedDayChange: \"+date);\n dateselected = format.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.d(\"mainfrag - date\", \"onSelectedDayChange: \"+dateselected);\n Intent intent = new Intent(getActivity(),worldCupFixtureActivity.class);\n intent.putExtra(worldCupFixtureFragment.DATE_SELECT,dateselected);\n startActivity(intent);\n }", "@Override\n\t\tpublic void onSelectedDayChange(CalendarView view, int year, int month,\n\t\t\t\tint dayOfMonth) {;\n\t\t\t// TODO Auto-generated method stub\n\t\t\tmonth++; // month fix, gives february when click on march so I added + 1\n\t\t\tToast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n\t\t\t\t+month+\" : \"+dayOfMonth+\" : \"+year ,\n\t\t\t\tToast.LENGTH_LONG).show();\n\n\t\t\tString userId = getIntent().getStringExtra(LogInPage.ID_EXTRA);\n\t\n\t\t\tIntent taskView = new Intent(NavigationMenu.this, ListTasksActivity.class);\n\t\t\ttaskView.putExtra(ID_EXTRA, userId);\n\t\t\ttaskView.putExtra(selectByDay, true);\n\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putSerializable(\"day\", dayOfMonth);\n\t\t\tbundle.putSerializable(\"month\", month);\n\t\t\tbundle.putSerializable(\"year\", year);\n\t\t\ttaskView.putExtras(bundle);\n\t\t\tstartActivity(taskView);\n\t\t\t\n\t\t}", "public static void monthSelect(WebDriver driver, String munth, String dey) {\n\tdriver.findElement(By.id(\"travel_date\")).click();// opens up calender\n\t\n\t\n\t\t\n\t\tString month = driver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText();\n\t\tSystem.out.println(month);\n\t\t// prints out the first visible month\n\t\t\n\t\t\n\t\twhile(!\tdriver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText().contains(munth)) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"[class=' table-condensed'] [class='next']\")).click();\n\t\t\t\t// clicks on the next button\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\tList <WebElement> dates = driver.findElements(By.cssSelector(\".day\"));\n\t\t//42\n\t\t// select all calenders\n\t\t\n\t\tint count = dates.size();\n\t\t// returns the size as 0\n\t\t\n\t\t\n\t\tfor(int i =0; i<count;i++) {\n\t\t\t//String Day = \"24\";\n\t\t\tString text = driver.findElements(By.cssSelector(\".day\")).get(i).getText();\n\t\t\tSystem.out.println(text);\n\t\t\t\n\t\t\tif(text.equalsIgnoreCase(dey)){\n\t\t\t\tdriver.findElements(By.cssSelector(\".day\")).get(i).click();\n\t\t\t\t// clicks on the 24\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void initCalendarFirst() {\n getCurrentDate();\n mCalendar.setOnDateChangedListener(new OnDateSelectedListener() {\n @Override\n public void onDateSelected(@NonNull MaterialCalendarView widget, @NonNull CalendarDay select, boolean selected) {\n mSelectedDate = select.toString();\n String string[] = mSelectedDate.split(\"\\\\{|\\\\}\");\n String s = string[1]; //2017-8-14\n String string1[] = s.split(\"-\");\n int tempMonth = Integer.parseInt(string1[1]);\n String month = Integer.toString(tempMonth + 1);\n mDate1 = string1[0] + \"-\" + month + \"-\" + string1[2];\n }\n });\n }", "@Test(enabled = true)\n\tpublic void selectDateXPathTest() {\n\t\tWebElement calendarElement = driver.findElement(By.id(\"hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDate(calendarElement, \"2019\", \"February\", \"22\", driver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "public void selectEnddate() {\n\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate1_T\", \"CashFlow\", null).click();\r\n\t\t\r\n\t\t//webDriver.findElement(By.xpath(\"//input[contains(@class,'end-date')]\")).click();\r\n\t\t// SeleniumUtil.waitForPageToLoad();\r\n\t\t// webDriver.findElement(By.xpath(\"//div[contains(@class,'end-date')]//div[@id='prev-year']\")).click();\r\n\t\t\r\n\t\tSeleniumUtil.fluentWait(d);\r\n\t\t\r\n\t\t// webDriver.findElement(By.xpath(\"(//div[@class='custom-end-dateCnr']//div[@class='js-row']/div[\"+tableCol+\"])[\"+selectNumber+\"]\")).click();\r\n\t\t//webDriver.findElement(By.xpath(\"//div[@class='custom-end-dateCnr']//div[@class='js-row']//div[contains(@class,'today')]\")).click();\r\n\t\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate2_T\", \"CashFlow\", null).click();\r\n\t}", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n\n Toast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n +dayOfMonth+\" : \"+month+\" : \"+year ,\n Toast.LENGTH_LONG).show();\n }", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\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 selectDayDropdown(String day) {\n\t\twaitToElementClickable(driver,RegisterPageUI.DAY_DROPDOWN);\n\t\tselectItemInDropDown(driver, RegisterPageUI.DAY_DROPDOWN, day);\n\t}", "public void selectDate(String format) {\n\t\t//driver.findElement(By.className(\"ui-datepicker-trigger\")).click();\n\t\t// identifying format\n\t\tString date[] = null;\n\t\tif (format.contains(\"-\")) {\n\t\t\tdate = format.split(\"-\");\n\t\t} else if (format.contains(\"/\")) {\n\t\t\tdate = format.split(\"/\");\n\t\t} else if (format.contains(\" \")) {\n\t\t\tdate = format.split(\" \");\n\t\t}\n\t\t// Splitting data\n\t\tString day = date[0];\n\t\tString month = date[1];\n\t\tString year = date[2];\n\t\t// Selecting data based on format\n\t\tif (month.length() == 2) {\n\t\t\t// selecting month if you are giving input format as dd-mm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByIndex(Integer.parseInt(month) - 1);\n\t\t} else if (month.length() != 2) {\n\t\t\t// selecting month if you are giving input format as dd-mmm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByVisibleText(month);\n\t\t}\n\t\t// selecting year\n\t\t//new Select(driver.findElement(By.xpath(\"//select[@class='ui-datepicker-year']\"))).selectByVisibleText(year);\n\n\t\t// click on day\n\t\t//driver.findElement(By.linkText(day)).click();\n\t}", "public WebElement getMultiArticleDayDropdown(int day) {\n WebElement el;\n switch(day) {\n case 1: el = locateWebElement(\"SelectDay1DropDown\");\n break;\n case 2: el = locateWebElement(\"SelectDay2DropDown\");\n break;\n case 3: el = locateWebElement(\"SelectDay3DropDown\");\n break;\n case 4: el = locateWebElement(\"SelectDay4DropDown\");\n break;\n case 5: el = locateWebElement(\"SelectDay5DropDown\");\n break;\n case 6: el = locateWebElement(\"SelectDay6DropDown\");\n break;\n default: el = null;\n break;\n }\n return el;\n }", "public void setDay(int day) {\r\n this.day = day;\r\n }", "private void selectDepartureDate() throws InterruptedException, IOException{\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.DAY_OF_MONTH, 2);\n\t\tint todayDay = calendar.get(Calendar.DAY_OF_MONTH);\n\t\tString todayStr = Integer.toString(todayDay);\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tWebElement dateWidgetFrom = driver.findElement(By.xpath(\n\t\t\t\t\"/html/body/main/div[2]/div/div/div[1]/div/div/div/div[2]/section/div[4]/div[1]/div[3]/eol-datefield/eol-calendar/div/div/div[2]/table/tbody\"));\n\t\tList<WebElement> columns = dateWidgetFrom.findElements(By.tagName(\"td\"));\n\t\tfor (WebElement cell : columns) {\n\t\t\tif (cell.getText().equals(todayStr)) {\n\t\t\t\tcell.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "public void setDays(){\n\n CalendarDay Day=DropDownCalendar.getSelectedDate();\n Date selectedDate=Day.getDate();\n String LongDate=\"\"+selectedDate;\n String DayOfWeek=LongDate.substring(0,3);\n Calendar calendar=Calendar.getInstance();\n calendar.setTime(selectedDate);\n int compare=Integer.parseInt(CurrenDate.substring(6,8).trim());\n int comparemonth=Integer.parseInt(CurrenDate.substring(4,6));\n int startNumber=Integer.parseInt(CheckedDate.substring(6,8).trim())-Offset(DayOfWeek);\n int max=calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n GregorianCalendar date= (GregorianCalendar) GregorianCalendar.getInstance();\n date.set(selectedDate.getYear(),1,1);\n\n boolean Feb=false;\n int priormax=30;\n\n if(max==30){\n priormax=31;\n }\n else if( max==31){\n priormax=30;\n }\n\n if(selectedDate.getMonth()==2){\n if(date.isLeapYear(selectedDate.getYear())){\n priormax=29;\n }\n\n else{\n priormax=28;\n }\n Feb=true;\n }\n for(int i=0;i<WeekDays.length;++i){\n String line=WeekDays[i].getText().toString().substring(0,3);\n\n if(startNumber<=max){\n if(startNumber==compare && comparemonth==Day.getMonth()+1){\n WeekDays[i].setTextColor(Color.BLUE);\n }\n else{\n WeekDays[i].setTextColor(Color.BLACK);\n }\n if(startNumber<=0){\n int val=startNumber+priormax;\n if(Feb){\n if(val==priormax){\n startNumber=max;\n }\n }\n\n WeekDays[i].setText(line+\"\\n\"+val);}\n\n else{\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n }\n else{\n startNumber=1;\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n MaskWeekdays[i].setText(line+\"\\n\"+startNumber);\n ++startNumber;\n }\n DropDownCalendar.setDateSelected(Calendar.getInstance().getTime(), true);\n }", "CalendarDate selectByPrimaryKey(String calendardate);", "public void setDay(int day)\n {\n this.day = day;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public void setSelectedDate(int year, int month, int day)\n {\n setSelectedDay(day);\n setSelectedMonth(month);\n setSelectedYear(year);\n TextView dateText = (TextView) findViewById(R.id.selectedDateTxt);\n dateText.setText(String.valueOf(selectedDay)+\"-\"+String.valueOf(selectedMonth)+\"-\"+String.valueOf(selectedYear));\n\n showLoading();\n\n //Formatting the date\n String selectedDate=getSelectedDate()+\"T00:00:00\";\n\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n connectionManager.getPitchSchedule(pitch.getVenueID(),pitch.getPitchName(),selectedDate,this);\n }\n\n //Discard any selected slots\n reservationStartsOn=null;\n reservationEndsOn=null;\n }", "private Day getDay(int day, int month) {\n return mainForm.getDay(day, month);\n }", "public Date getSelectedDate();", "@Override\n\tpublic void onClick(View arg0) {\n\t\tthis.flatCalendar.selectCell(this);\t\t\n\t}", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\tString item = parent.getItemAtPosition(position).toString();\n\t\tString set_day=\"\";\n\n\t\tSimpleDateFormat dateTimeFormat = new SimpleDateFormat(DATE_TIME_FORMAT);\n\t\tString reminderDateTime = dateTimeFormat.format(mCalendar.getTime());\n\t\t//mCalendar.set(Calendar.DAY_OF_WEEK_IN_MONTH, 1);\n\t\tmCalendar.setTimeInMillis(System.currentTimeMillis());\n\t\tLog.e(\"test\",\"inti ==========>>>\"+reminderDateTime);\n\t\tswitch (position){\n\t\t\tcase 0:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.MONDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"MONDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.TUESDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"TUESDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.WEDNESDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"WEDNESDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.THURSDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"THURSDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.FRIDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"FRIDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.SATURDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"SATURDAY\";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tmCalendar.set(Calendar.DAY_OF_WEEK,Calendar.SUNDAY);\n\t\t\t\tmCalendar.set(Calendar.HOUR_OF_DAY,0);\n\t\t\t\tset_day=\"SUNDAY\";\n\t\t\t\tbreak;\n\t\t}\n\t\tString current_Time = dateTimeFormat.format(Calendar.getInstance().getTime());\n\n\t\t//Log.e(\"test\",\" current_Time ==========>>>\"+current_Time);\n\n\t\tmCalendar.set(Calendar.HOUR_OF_DAY,HOUR);\n\t\tmCalendar.set(Calendar.MINUTE,MIN);\n\t\tmCalendar.set(Calendar.SECOND, 0);\n\n\t\tString calnder = dateTimeFormat.format(mCalendar.getTime());\n\t\t//Log.e(\"test\",\" calnder ==========>>>\"+calnder);\n\t\tif (mCalendar.before(Calendar.getInstance())) {\n\t\t\tmCalendar.add(Calendar.DATE,7);\n\t\t}else {\n\n\t\t}\n\t\treminderDateTime = dateTimeFormat.format(mCalendar.getTime());\n\t\tmTitleText.setText(\"Every \"+set_day+\" \"+reminderDateTime);\n\n\t\tLog.e(\"test\",\" set alarm time ==========>>>\"+reminderDateTime);\n\t\t// Showing selected spinner item\n\t\tToast.makeText(parent.getContext(), \"Selected: \" + set_day, Toast.LENGTH_LONG).show();\n\t}", "public void setSelectedCalendar(String calendarName) {\n }", "public void setDay(Date day) {\n this.day = day;\n }", "void clickOnSelectDaysButton() {\n\t\tSeleniumUtility.clickOnElement(driver, homepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning);\n\t}", "public DayOfWeek primeiroDiaSemanaAno(int ano);", "Date getStartDay();", "public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }", "Calendar getCalendar();", "public String setStartDate(int year, String month, int day) {\n WebElement dayChooser;\n String currentYear; // Year that is given by default\n clickElement(startDateSelect);\n // Here we are choosing year\n currentYear = setYear.getAttribute(\"textContent\");\n int currentYearNumber = Integer.parseInt(currentYear);\n // System.out.println(\"setYear\" + currentYearNumber);\n if( year - currentYearNumber > 0 )\n for (int i = 1; i <= (year - currentYearNumber)*12; i++){ clickElement(yearStepUp); }\n if( year - currentYearNumber < 0 )\n for (int i = 1; i <= (currentYearNumber - year)*12; i++){ clickElement(yearStepDown); }\n\n selectValueInDropdown(chooseMonth, month); // Here we are choosing month\n\n switch (day) { // Here we are choosing day\n case 1: dayChooser = dayChooser_1;\n break;\n case 2: dayChooser = dayChooser_2;\n break;\n case 3: dayChooser = dayChooser_3;\n break;\n case 4: dayChooser = dayChooser_4;\n break;\n case 5: dayChooser = dayChooser_5;\n break;\n case 6: dayChooser = dayChooser_6;\n break;\n case 7: dayChooser = dayChooser_7;\n break;\n case 8: dayChooser = dayChooser_8;\n break;\n case 9: dayChooser = dayChooser_9;\n break;\n case 10: dayChooser = dayChooser_10;\n break;\n case 11: dayChooser = dayChooser_11;\n break;\n case 12: dayChooser = dayChooser_12;\n break;\n case 13: dayChooser = dayChooser_13;\n break;\n case 14: dayChooser = dayChooser_14;\n break;\n case 15: dayChooser = dayChooser_15;\n break;\n case 16: dayChooser = dayChooser_16;\n break;\n case 17: dayChooser = dayChooser_17;\n break;\n case 18: dayChooser = dayChooser_18;\n break;\n case 19: dayChooser = dayChooser_19;\n break;\n case 20: dayChooser = dayChooser_20;\n break;\n case 21: dayChooser = dayChooser_21;\n break;\n case 22: dayChooser = dayChooser_22;\n break;\n case 23: dayChooser = dayChooser_23;\n break;\n case 24: dayChooser = dayChooser_24;\n break;\n case 25: dayChooser = dayChooser_25;\n break;\n case 26: dayChooser = dayChooser_26;\n break;\n case 27: dayChooser = dayChooser_27;\n break;\n case 28: dayChooser = dayChooser_28;\n break;\n case 29: dayChooser = dayChooser_29;\n break;\n case 30: dayChooser = dayChooser_30;\n break;\n case 31: dayChooser = dayChooser_31;\n break;\n default: { System.out.println(\" Such day is not exist\" ); return null; }\n }\n clickElement(dayChooser);\n return startDateSelect.getAttribute(\"value\");\n }", "public void onClick(View arg0) {\n scanCurrentDay();\n }", "private void initSelectedDays() {\n binding.viewAlarm.cbMonday.setSelected(alarmVM.isDayActive(Calendar.MONDAY));\n binding.viewAlarm.cbTuesday.setSelected(alarmVM.isDayActive(Calendar.TUESDAY));\n binding.viewAlarm.cbWednesday.setSelected(alarmVM.isDayActive(Calendar.WEDNESDAY));\n binding.viewAlarm.cbThursday.setSelected(alarmVM.isDayActive(Calendar.THURSDAY));\n binding.viewAlarm.cbFriday.setSelected(alarmVM.isDayActive(Calendar.FRIDAY));\n binding.viewAlarm.cbSaturday.setSelected(alarmVM.isDayActive(Calendar.SATURDAY));\n binding.viewAlarm.cbSunday.setSelected(alarmVM.isDayActive(Calendar.SUNDAY));\n }", "@Override\n public void onDayClick(Date dateClicked) {\n\n String pass_date = new String(DayEvent.format(dateClicked).toString());\n\n Intent in = new Intent(getApplicationContext(), CustomerListCalendar.class);\n in.putExtra(PASS_VAR, String.valueOf(pass_date));\n startActivityForResult(in, 100);\n\n System.out.println(\"ini tanggal yang dipilih : \"+pass_date);\n\n }", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "@Override\n public void onSelectedDayChange(@NonNull CalendarView view, int year, int month, int dayOfMonth) {\n final Trace myTrace1 = FirebasePerformance.getInstance().newTrace(\"coursesSupervisorsActivityShowFilteredCourses_trace\");\n myTrace1.start();\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, dayOfMonth);\n // formattage de la date pour le debut et la fin de journée\n DateFormat dateFormatEntree = new SimpleDateFormat(\"dd MM yyyy\", Locale.FRANCE);\n DateFormat dateFormatSortie = new SimpleDateFormat(\"dd MM yyyy HH:mm:ss\", Locale.FRANCE);\n String s = dateFormatEntree.format(calendar.getTime());\n String ss = s.concat(\" 00:00:00\");\n String sss = s.concat(\" 23:59:59\");\n try {\n calendrierClique = dateFormatSortie.parse(ss);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n try {\n calendrierFinJournee = dateFormatSortie.parse(sss);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n configureRecyclerViewSorted();\n myTrace1.stop();\n }", "public Calendar getDate() {\r\n return (Calendar) selectedDate;\r\n }", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "Integer getStartDay();", "Integer getDay();", "public void onDateSelect(DateSelectEvent selectEvent) {\n event = new DefaultScheduleEvent(Math.random() + \"\", selectEvent.getDate(), selectEvent.getDate()); \r\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Button button = (Button) findViewById(R.id.dateBtn);\n button.setText(\"Selected Date: \" + month + \"/\" + day + \"/\" + year);\n calendarSelected.set(year, month, day);\n userSelectedDate = true;\n\n if (!userSelectedTime) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n button = (Button) findViewById(R.id.timeBtn);\n button.setText(\"Selected Time: \" + hour + \":\" + String.format(\"%02d\",minute));\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "public final process.proxies.ChangeCalenderSelection getCalendarSelection()\r\n\t{\r\n\t\treturn getCalendarSelection(getContext());\r\n\t}", "public void onSelectedDayChange(CalendarView view, int year, int month,int dayOfMonth) {\n\t \trefreshNoteList();//刷新记事列表\n\t }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAddEvent.currentDateCalendar=(Calendar) c.clone();\n\t\t\t\tstartActivity(new Intent(\"com.calendar.ADDEVENT\"));\n\t\t\t}", "public void selectSpecificDate(String dateFrom, String dateTo) {\r\n\r\n\t\tdriver.findElement(\r\n\t\t\t\tBy.xpath(\"//table[@class='calendar-table']//button[@class='calendar-button']/*[.='\" + dateFrom + \"']\"))\r\n\t\t\t\t.click();\r\n\r\n\t\tdriver.findElement(\r\n\t\t\t\tBy.xpath(\"//table[@class='calendar-table']//button[@class='calendar-button']/*[.='\" + dateTo + \"']\"))\r\n\t\t\t\t.click();\r\n\r\n\t}", "public void SelectDepartureDate(String Dmonth,String Dyear) throws InterruptedException {\n Thread.sleep(2000);\n depart.click();\n action.moveToElement(month).click();\n select =new Select(month);\n select.selectByValue(Dmonth);\n action.moveToElement(year).click();\n select=new Select(year);\n select.selectByValue(Dyear);\n date.click();\n //retrnDate.click();\n\n\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void clickCalendarDay(Month month, int date, int year) {\n\t\tWebElement calendarDay = driver\n\t\t\t\t.findElement(By.xpath(\"//button[@aria-label='\" + month.getDisplayName(TextStyle.SHORT, Locale.US) + \" \" + date + \", \" + year + \"']\"));\n\t\tcalendarDay.click();\n\t}", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(false);\n jDayChooser0.setMaxSelectableDate((Date) null);\n jDayChooser0.drawDays();\n jDayChooser0.setEnabled(true);\n assertTrue(jDayChooser0.isDayBordersVisible());\n assertEquals(14, jDayChooser0.getDay());\n assertTrue(jDayChooser0.isDecorationBackgroundVisible());\n }", "void onWeekNumberClick ( @NonNull MaterialCalendarView widget, @NonNull CalendarDay date );", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n SystemColor systemColor0 = SystemColor.menuText;\n jDayChooser0.setDecorationBackgroundColor(systemColor0);\n jDayChooser0.getAlignmentY();\n FocusEvent focusEvent0 = new FocusEvent(jDayChooser0, 2461, false);\n jDayChooser0.focusLost(focusEvent0);\n jDayChooser0.setDayBordersVisible(false);\n assertEquals(14, jDayChooser0.getDay());\n }", "public void inputDay () {\n\t\tSystem.out.print(\"Enter a day: \");\r\n\t\tday = input.nextInt();\r\n\r\n\t}", "public Date getSelectDate();", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSelectedDayID = which;\r\n\t\t\t}", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(true);\n jDayChooser0.setFocusTraversalPolicyProvider(false);\n JMonthChooser jMonthChooser0 = jDayChooser0.monthChooser;\n FocusEvent focusEvent0 = new FocusEvent(jDayChooser0, 0);\n focusEvent0.paramString();\n jDayChooser0.focusGained(focusEvent0);\n JYearChooser jYearChooser0 = new JYearChooser();\n jDayChooser0.setYearChooser(jYearChooser0);\n assertEquals(14, jDayChooser0.getDay());\n }", "public String getDayOfTheWeek(){\r\n Calendar calendar = Calendar.getInstance();\r\n int day = calendar.get(Calendar.DAY_OF_WEEK);\r\n String calendar_Id = null;\r\n switch (day) {\r\n case Calendar.SUNDAY:\r\n calendar_Id =\"(90300)\";\r\n break;\r\n case Calendar.MONDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.TUESDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.WEDNESDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.THURSDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.FRIDAY:\r\n calendar_Id =\"(90400,90448)\";\r\n break;\r\n case Calendar.SATURDAY:\r\n calendar_Id =\"(90200,90238)\";\r\n break;\r\n }\r\n\r\n return calendar_Id;\r\n }", "@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateScheduleDoctor();\n\t\t\t\t\t}\n\n\t\t\t\t}", "public void pickOfficeHours(String day, int start){\n\t\tthis.officeHourDay = day;\n\t\tthis.officeHourTime = start;\n\t}", "public void setSelectedDate(Date selectedDate);", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n bookingDate = dayOfMonth + \"-\" + (month + 1) + \"-\" + year;\n date = dayOfMonth;\n mon = (month + 1);\n }", "public void setDay(final int day) {\n\t\tthis.day = day;\n\t}", "AoD5e466WorkingDay selectByPrimaryKey(Integer id);", "private Day getDay(String dayName){\n for(Day day: dayOfTheWeek)\n if(dayName.equals(day.getDay()))\n return (day);\n return(new Day());\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, day);\n pickedDate = calendar.getTimeInMillis();\n\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\n callerActivity.setSelectedDate(year,month+1,day);\n }", "@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateSchedulePatient();\n\t\t\t\t\t}\n\n\t\t\t\t}", "public Date getDateSelected() {\n Date dateSelected = availDay.getDate();\n return dateSelected;\n }", "@Then(\"^select the onward date$\")\n\tpublic void select_the_onward_date() throws Throwable {\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.xpath(\"//*[@id='search']/div/div[3]/div/label\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@id='rb-calendar_onward_cal']/table/tbody/tr[6]/td[5]\")).click();\n\t\t//driver.findElement(By.xpath(\"//label[text()='Onward Date']\")).sendKeys(Keys.TAB);\n\t\t//driver.findElementByXPath(\"//label[text()='Return Date']\").sendKeys(Keys.TAB);\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser(true);\n PDFDocumentGraphics2D pDFDocumentGraphics2D0 = new PDFDocumentGraphics2D();\n JDayChooser.DecoratorButton jDayChooser_DecoratorButton0 = jDayChooser0.new DecoratorButton();\n assertTrue(jDayChooser0.isWeekOfYearVisible());\n \n jDayChooser0.setWeekOfYearVisible(true);\n jDayChooser_DecoratorButton0.paint(pDFDocumentGraphics2D0);\n jDayChooser0.drawDays();\n XML11DTDConfiguration xML11DTDConfiguration0 = new XML11DTDConfiguration();\n xML11DTDConfiguration0.getEntityResolver();\n Locale locale0 = xML11DTDConfiguration0.getLocale();\n jDayChooser0.setLocale(locale0);\n assertEquals(14, jDayChooser0.getDay());\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n calendarListAdapter.removeALL();\n calendarListAdapter = null;\n calendarListAdapter = new CalendarListAdapter();\n calendarListView.setAdapter(calendarListAdapter);\n calendarListAdapter.add(\"내역\", \"카테고리\", random.nextInt(10000)+1, 0, \"지출\", year, month+1, dayOfMonth);\n calendarListAdapter.add(\"내역\", \"카테고리\", random.nextInt(10000)+1, 0, \"지출\", year, month+1, dayOfMonth);\n calendarListAdapter.add(\"내역\", \"카테고리\", random.nextInt(10000)+1, 0, \"지출\", year, month+1, dayOfMonth);\n calendarListAdapter.add(\"내역\", \"카테고리\", random.nextInt(10000)+1, 0, \"지출\", year, month+1, dayOfMonth);\n calendarListAdapter.add(\"내역\", \"카테고리\", random.nextInt(10000)+1, 0, \"지출\", year, month+1, dayOfMonth);\n }", "public void setDay(String day) {\n\n\t\tthis.day = day;\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n String myFormat = \"yyyy-MM-dd\"; //In which you need put here\n\n\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n ed_date.setText(sdf.format(myCalendar.getTime()));\n sel_date=sdf.format(myCalendar.getTime());\n int dd=myCalendar.get(Calendar.DAY_OF_WEEK);\n switch (dd){\n case 1: sel_day=\"SUNDAY\";\n break;\n case 2: sel_day=\"MONDAY\";\n break;\n case 3: sel_day=\"TUESDAY\";\n break;\n case 4: sel_day=\"WEDNESDAY\";\n break;\n case 5: sel_day=\"THURSDAY\";\n break;\n case 6: sel_day=\"FRIDAY\";\n break;\n case 7: sel_day=\"SATURDAY\";\n break;\n }\n schedule_load();\n SharedPreferences sh=PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor ed=sh.edit();\n ed.putString(\"date\",ed_date.getText().toString());\n ed.commit();\n }", "private void launchSelectClearableCalendars() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setClass(mContext, SelectClearableCalendarsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n mContext.startActivity(intent);\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n Toast.makeText(getContext(), dayOfMonth + \"/\" + month + \"/\" + year, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\t\t\tintent.putExtra(\"beginTime\", cal.getTimeInMillis());\n\t\t\t\t\t\tintent.putExtra(\"allDay\", true);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t}", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "public void calendario(View view){\n EditText et=getActivity().findViewById(R.id.fecha_registro);\n showDatePickerDialog(et);\n }", "public void OnClickCalendar() {\n binding.timelinetext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.timelinetext.setTextColor(Color.parseColor(\"#000000\"));\n binding.calendartext.setBackground(getResources().getDrawable(R.drawable.timelinetab_bg));\n binding.calendartext.setTextColor(Color.parseColor(\"#ffffff\"));\n binding.weektext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.weektext.setTextColor(Color.parseColor(\"#000000\"));\n binding.daytext.setBackground(getResources().getDrawable(R.drawable.dashboardlinebg));\n binding.daytext.setTextColor(Color.parseColor(\"#000000\"));\n\n binding.firstlastDate.setVisibility(View.INVISIBLE);\n binding.firstlastDatecal.setVisibility(View.VISIBLE);\n binding.firstlastDateDay.setVisibility(View.INVISIBLE);\n\n CalendarFragment fgm = new CalendarFragment();\n// if (IsSearchable) {\n// Bundle bundle = new Bundle();\n// bundle.putString(\"regionfilter\", regionList.get(binding.regionspinner.getSelectedItemPosition()).id);\n// bundle.putString(\"jobfilter\", binding.etJobticketno.getText().toString().split(\"-\")[0]);\n// fgm.setArguments(bundle);\n// }\n Bundle bundle = new Bundle();\n bundle.putString(\"calDate\", binding.firstlastDatecal.getText().toString());\n fgm.setArguments(bundle);\n replaceFragmentWithoutBack(fgm);\n }" ]
[ "0.68929076", "0.67917496", "0.6769201", "0.64766186", "0.6428839", "0.6395244", "0.63728774", "0.6332578", "0.6298532", "0.62774557", "0.6244965", "0.62404656", "0.6232382", "0.6232365", "0.62162894", "0.62118715", "0.6207272", "0.620654", "0.6196433", "0.6196186", "0.6191836", "0.6187461", "0.6184841", "0.61787987", "0.61605203", "0.61594677", "0.61238736", "0.6120767", "0.6104825", "0.6104825", "0.6104825", "0.6104825", "0.6104825", "0.6073672", "0.60482794", "0.60402244", "0.60363215", "0.60355896", "0.6019709", "0.5999241", "0.5994618", "0.59945333", "0.5993193", "0.5990707", "0.5982762", "0.5960665", "0.5954699", "0.5952989", "0.594861", "0.59421295", "0.59421295", "0.59318054", "0.5927369", "0.5923253", "0.5910002", "0.590888", "0.58980906", "0.5897499", "0.5887431", "0.58798754", "0.5876429", "0.58711356", "0.5862767", "0.5853289", "0.5852789", "0.5844055", "0.5842353", "0.5839423", "0.58391654", "0.5831868", "0.5822621", "0.58045924", "0.5799936", "0.5798385", "0.57976544", "0.57964444", "0.5792842", "0.5791157", "0.57858783", "0.5783083", "0.5779948", "0.57666326", "0.5755699", "0.5752639", "0.5752338", "0.5750093", "0.57475734", "0.5746318", "0.57281226", "0.57265264", "0.57262653", "0.5725796", "0.57184494", "0.57183343", "0.57081914", "0.57081914", "0.57081914", "0.5707922", "0.5698658", "0.56951356" ]
0.5895076
58
logging, safe to ignore
@Override public CommandResult execute(String commandText) throws CommandException, ParseException { logger.info("----------------[USER COMMAND][" + commandText + "]"); CommandResult commandResult; //Parse user input from String to a Command Command command = weeblingoParser.parseCommand(commandText); //Executes the Command and stores the result commandResult = command.execute(model); try { // Whenever a command is successfully executed, we will store all the content of FlashcardBook. storage.saveFlashcardBook(model.getFlashcardBook()); } catch (IOException ioe) { throw new CommandException(FILE_OPS_ERROR_MESSAGE + ioe, ioe); } return commandResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void log()\n {\n }", "String getLogHandled();", "public void disableLogging();", "public void enableLogging();", "void log();", "abstract protected void _log(TrackingEvent event) throws Exception;", "@Override\n public void logs() {\n \n }", "abstract protected void _log(TrackingActivity activity) throws Exception;", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "abstract protected void _log(Snapshot snapshot) throws Exception;", "private void logToFile() {\n }", "private Log() {\r\n\t}", "@Override\n public void log(String message) {\n }", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }", "private void logUser() {\n }", "abstract protected void logInternal(int level, String message);", "abstract protected void _log(Source src, OpLevel sev, String msg, Object... args) throws Exception;", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "void initializeLogging();", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "abstract void initiateLog();", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "public boolean isLogging();", "private void logika_rozpocznij(){\n\t}", "public void logData(){\n }", "protected void log(String msg) {\n\t\tif(isLogging) {\n\t\t\tSystem.out.println(\"[TRACKER \" + id() + \"] \" + msg);\n\t\t}\n\t}", "@Test\r\n public void test_logEntrance2_NoLogging() throws Exception {\r\n log = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues, true, Level.INFO);\r\n\r\n assertEquals(\"'logEntrance' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }", "@SuppressWarnings({\"UNUSED_SYMBOL\"})\r\n private void plog(String m) {\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "private LogUtil() {\r\n /* no-op */\r\n }", "@Test\r\n public void test_logEntrance1_NoLogging() throws Exception {\r\n log = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues);\r\n\r\n assertEquals(\"'logEntrance' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }", "private void Log(String action) {\r\n\t}", "@Override\n public boolean isUseInOutLogging() {\n return true;\n }", "void setupFileLogging();", "public void setLogging(boolean logging);", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "@Override\n public void forceMlog() {\n }", "void log(Log log);", "@Override\n public void log(Request request, Response response)\n {\n int committedStatus = response.getCommittedMetaData().getStatus();\n\n // only interested in error cases - bad request & server errors\n if ((committedStatus >= 500) || (committedStatus == 400))\n {\n super.log(request, response);\n }\n else\n {\n System.err.println(\"### Ignored request (response.committed.status=\" + committedStatus + \"): \" + request);\n }\n }", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "private JavaUtilLogHandlers() { }", "static void ignore() {\n }", "default boolean isActivityLoggingEnabled() {\n return false;\n }", "public void log(boolean log) {\n this.log = log;\n }", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "IFileLogger log();", "public void log(String msg) {\n\n\t}", "public boolean logging() {\n\treturn logging;\n }", "private static void log_d( String msg ) {\n\t if (D) Log.d( TAG, TAG_SUB + \" \" + msg );\n}", "public abstract void CancelLog();", "public void imprimir(String log){\n System.out.println(log);\n\n }", "private static void log(String msg) {\n System.out.println(msg);\n }", "@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }", "private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}", "private TypicalLogEntries() {}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "@Override\r\n\tpublic boolean isLoggable(LogRecord record) {\n\t\treturn false;\r\n\t}", "Appendable getLog();", "private void log_d( String msg ) {\n\t if (D) Log.d( TAG, TAG_SUB + \" \" + msg );\n}", "private static void log( java.io.PrintStream out, String message )\r\n { // Log message if requested\r\n if (out != null)\r\n {\r\n out.println(message);\r\n }\r\n }", "final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }", "@Test\r\n public void test_logEntrance2_NoParameter() throws Exception {\r\n paramNames = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues, true, Level.INFO);\r\n\r\n TestsHelper.checkLog(\"logEntrance\",\r\n \"INFO\",\r\n \"] Entering method [method_signature].\");\r\n }", "@Test\n public void testCheckNullWithLogging() {\n Helper.checkNullWithLogging(\"obj\", \"obj\", \"method\", LogManager.getLog());\n }", "public void setLog(boolean log)\n {\n this.log = log;\n }", "void fixLoggingControls(){\n if((hardware==null || (hardware!=null && !hardware.isOpen())) && playMode!=playMode.PLAYBACK ){ // we can log from live input or from playing file (e.g. after refiltering it)\n loggingButton.setEnabled(false);\n loggingMenuItem.setEnabled(false);\n return;\n }else{\n loggingButton.setEnabled(true);\n loggingMenuItem.setEnabled(true);\n }\n if(!loggingEnabled && playMode==PlayMode.PLAYBACK){\n loggingButton.setText(\"Start Re-logging\");\n loggingMenuItem.setText(\"Start Re-logging\");\n }else if(loggingEnabled){\n loggingButton.setText(\"Stop logging\");\n loggingButton.setSelected(true);\n loggingMenuItem.setText(\"Stop logging data\");\n }else{\n loggingButton.setText(\"Start logging\");\n loggingButton.setSelected(false);\n loggingMenuItem.setText(\"Start logging data\");\n }\n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "private void logAndToast(String msg) {\n Log.d(TAG, msg);\n if (logToast != null) {\n logToast.cancel();\n }\n logToast = Toast.makeText(this, msg, Toast.LENGTH_LONG);\n logToast.show();\n }", "public abstract void logd(String str);", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "public void log(String message) {\n\t}", "abstract void initiateErrorLog();", "public void logImportant(String str) {\n\t\tSystem.out.println(str);\n\t}", "void log(Message message);", "private ExtentLogger() {}", "private static void log(String msg) {\n Log.d(LOG_TAG, msg);\n }", "@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private Log() {\n }", "public void setLogging(boolean logging){\n this.logging=logging;\n }", "@Test\r\n public void test_logEntrance1_NoParameter() throws Exception {\r\n paramNames = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues);\r\n\r\n TestsHelper.checkLog(\"logEntrance\",\r\n \"DEBUG\",\r\n \"Entering method [method_signature].\");\r\n }", "private static void initLog() {\n LogManager.mCallback = null;\n if (SettingsManager.getDefaultState().debugToasts) {\n Toast.makeText(mContext, mContext.getClass().getCanonicalName(), Toast.LENGTH_SHORT).show();\n }\n if (SettingsManager.getDefaultState().debugLevel >= LogManager.LEVEL_ERRORS) {\n new TopExceptionHandler(SettingsManager.getDefaultState().debugMail);\n }\n //Si hubo un crash grave se guardo el reporte en el sharedpreferences, por lo que al inicio\n //levanto los posibles crashes y, si el envio por mail está activado , lo envio\n String possibleCrash = StoreManager.pullString(\"crash\");\n if (!possibleCrash.equals(\"\")) {\n OtherAppsConnectionManager.sendMail(\"Stack\", possibleCrash, SettingsManager.getDefaultState().debugMailAddress);\n StoreManager.removeObject(\"crash\");\n }\n }", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "public static void logGenericUserError() {\n\n }", "String getLogExhausted();", "private void log(String msg) {\r\n\t\tif(this.out != null) {\r\n\t\t\tthis.out.println(msg);\r\n\t\t\tthis.out.flush();\r\n\t\t}\r\n\t}", "private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}", "private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}", "public static void log(String str)\r\n\t{\n\t}", "private static void LOG(String msg) {\n if ( DEBUG ) {\n Log.d(TAG, msg);\n }\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }" ]
[ "0.7321884", "0.707857", "0.7069428", "0.69702697", "0.6955559", "0.6953239", "0.69412297", "0.677809", "0.6715183", "0.6657147", "0.6640948", "0.6608122", "0.659586", "0.650753", "0.65049", "0.6474814", "0.647146", "0.64586365", "0.6454145", "0.6417969", "0.6417969", "0.6417969", "0.6396369", "0.6374356", "0.63594186", "0.6341309", "0.63359064", "0.6323654", "0.63184965", "0.6303411", "0.63033456", "0.62912375", "0.62774795", "0.62594295", "0.6251679", "0.62229836", "0.62219447", "0.62118757", "0.6199181", "0.61958414", "0.6162536", "0.6145549", "0.61398", "0.61364925", "0.61235726", "0.612014", "0.60868126", "0.60834396", "0.6062489", "0.60566634", "0.60445625", "0.60164887", "0.59991974", "0.59956867", "0.5984531", "0.59800875", "0.5973129", "0.5966592", "0.5958776", "0.59534305", "0.5950474", "0.5948183", "0.5943562", "0.59404856", "0.5935373", "0.59328216", "0.59307504", "0.5923499", "0.59196174", "0.59182143", "0.59111047", "0.59077954", "0.5892529", "0.5890972", "0.58803284", "0.5871979", "0.58694136", "0.58687574", "0.5861418", "0.58582944", "0.58552784", "0.5855098", "0.5853366", "0.58503723", "0.5847435", "0.5838355", "0.5831618", "0.58300537", "0.5821125", "0.581221", "0.5809295", "0.580568", "0.5803814", "0.58020014", "0.5801581", "0.58012426", "0.57914096", "0.57890916", "0.5784581", "0.5784581", "0.5783693" ]
0.0
-1
Gets current index of quiz question if a quiz session has started. Otherwise return LIST_INDEX.
@Override public int getCurrentIndex() { if (getCurrentMode() == Mode.MODE_QUIZ_SESSION || getCurrentMode() == Mode.MODE_CHECK_SUCCESS) { int currentIndex = model.getCurrentIndex(); assert currentIndex != LIST_INDEX; return currentIndex; } else { return LIST_INDEX; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getQuestionIndex (SurveyQuestion question) {\n return questions.indexOf(question);\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "public int getAnsweredQuestions(int index){\n\t\treturn _answeredQuestions[index];\n\n\t}", "int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex()\n {\n return index;\n }", "public String getConcreteIndex() {\n return getCurrentItem().index();\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getQuizNumber() {\n\t\treturn quizNumber;\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index;\n }", "public int getCurrentIdx() {\n\t\treturn this.currentIdx;\n\t}", "public String getQuestionIndexToString(String question) {\n return String.valueOf(questions.indexOf(question));\n }", "public int getCurrentIdx() {\n\t\treturn currentIdx;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "@Override\n public synchronized int getCurrentIndex() {\n return mCurrentIndex;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public final int getIndex(){\n return index_;\n }", "public Integer getIndex() {\n return index;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getIndex(){\r\n \treturn index;\r\n }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public int index() {\n\t\treturn this.index;\n\t}", "public Integer index() {\n return this.index;\n }", "public static int getSelectedSongIndex() {\n\t\tint x =list.getSelectedIndex();\n\t\treturn x;\n\t}", "int getCurrentIdx() {\n return currentIdx;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n\t\treturn this.index;\n\t}", "static int getIndexSelected() {\n return indexSelected;\n }", "public Question getCurrentQuestion() {\n Question question = null;\n for (Question q : questions) {\n if (q.getSequence() == sequence) {\n question = q;\n break;\n }\n }\n return question;\n }", "public boolean isIndex() {\n return index;\n }", "public int getIdQuiz() {\r\n\t\treturn idQuiz;\r\n\t}", "protected final int getIndex() {\n return index;\n }", "public synchronized final int getIndex() {\r\n return f_index;\r\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIdx() {\n return idx;\n }", "public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}", "public int getIndex(\n )\n {return index;}", "public int getIndex() {\n return mIndex;\n }", "public int getIndex() { return this.index; }", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public static int currentPlayerIndex() {\n return turn-1;\n }", "private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }", "public int getCurrentSongIndex() {\n\t\treturn this.currentSongIndex;\n\t}", "public String getIndex() {\n return index;\n }", "public String getIndex() {\n\t\treturn index;\n\t}", "public String getIndex() {\n\t\treturn index;\n\t}", "public Question getCurrentQuestion() {\n\t\treturn currentQuestion;\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public String getProfileIndex() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"PROFILEINDEX\", null);\n\t}", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getIndex();", "public int getIndex();", "public int getIndex();", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int currentChannelIndex() {\n int i = 0;\n for (YouTubeData data : mChannels) {\n if (data.mChannel.equals(mCurrentChannelID))\n return i;\n\n i++;\n }\n\n DUtils.log(\"should not get here: \" + DUtils.currentMethod());\n return 0;\n }", "public Index getIndex() {\n return index;\n }", "@Override\n public final int getIndex() {\n return index;\n }", "public int getPositionIndex()\n {\n return positionIndex;\n }", "public int getCurrentIndex() {\n\t\treturn mCurrentSegment;\n\t}", "public String getIndex() {\n return this.index;\n }", "public int index();", "public int getSelectedAnswer(int questionNumber) {\n return selectedAnswers[questionNumber-1];\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }" ]
[ "0.6983353", "0.6007321", "0.5922492", "0.58820176", "0.5871148", "0.58665496", "0.58632505", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.58595693", "0.5859037", "0.58449525", "0.5833702", "0.5829547", "0.5829547", "0.5829547", "0.5828732", "0.58237237", "0.58237237", "0.58237237", "0.58237237", "0.58237237", "0.5801428", "0.580122", "0.57969695", "0.57969695", "0.57969695", "0.57969695", "0.57969695", "0.57969695", "0.5796175", "0.5780209", "0.57762146", "0.5775428", "0.57693756", "0.57693756", "0.5760949", "0.5755125", "0.5755125", "0.5755125", "0.57282674", "0.5725058", "0.57212764", "0.57183343", "0.57154435", "0.57090896", "0.56982213", "0.5695983", "0.5694757", "0.5693447", "0.5693447", "0.5690534", "0.5685343", "0.5685343", "0.56787705", "0.5656169", "0.5653629", "0.56513274", "0.5650743", "0.56478673", "0.5644874", "0.5628224", "0.56193376", "0.55841285", "0.5567908", "0.5557047", "0.5554074", "0.5538256", "0.5537438", "0.5535522", "0.5514468", "0.5509966", "0.54970855", "0.54970855", "0.54937744", "0.5492975", "0.5491513", "0.5491337", "0.5432297", "0.54264885", "0.54264885", "0.54264885", "0.5425672", "0.542358", "0.542358", "0.542358", "0.54172933", "0.5403007", "0.539389", "0.5392658", "0.53911287", "0.5391126", "0.538787", "0.53723794", "0.53656715", "0.5352839" ]
0.74747175
0
return a total heuristic value
public int hValue() { if (value != GameParameters.draw) { if (Math.abs(value) > xWin) { return value > 0 ? xWin : oWin; } return value; } return GameParameters.draw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public int getHeuristicScore() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \tint cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic + cost;\r\n }", "public int heuristic()\n {\n if (this.heuristic != Integer.MIN_VALUE)\n return this.heuristic;\n this.heuristic = 0;\n if (!this.safe)\n return 0;\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.heuristic = (this.d.size() * 100) + (this.NE * 10) + bonus;\n // value:\n return this.heuristic;\n }", "public double getHeuristicValue(Object state) {\n\n LinternaEstado estado = (LinternaEstado) state;\n\n double heuristica = 0.0;\n int[] actual = estado.getCalzada();\n int aux = 0;\n for (int i = 0; i < 5; i++) {\n if (actual[i] == 1)\n aux = aux + estado.getTiempo(i);\n }\n heuristica = (aux / actual[6]) * 100; //lo dejo sin multiplicar¿¿¿\n return heuristica;\n }", "public int getHeuristicScore2() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \t//int cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic; //+ cost;\r\n }", "public int evaluate() {\n\t\treturn history + heuristic;\n\t}", "private double heuristicCost(Point p) {\n\t\treturn distance(p, goal);\n\t}", "public abstract double getHeuristic(State state);", "private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }", "private Double calculateTotalFitness() {\n double totalFitnessScore = 0;\n\n IgniteCache<Long, Chromosome> cache = ignite.cache(GAGridConstants.POPULATION_CACHE);\n\n SqlFieldsQuery sql = new SqlFieldsQuery(\"select SUM(FITNESSSCORE) from Chromosome\");\n\n // Iterate over the result set.\n try (QueryCursor<List<?>> cursor = cache.query(sql)) {\n for (List<?> row : cursor)\n totalFitnessScore = (Double)row.get(0);\n }\n\n return totalFitnessScore;\n }", "public double computeHeuristicGrade();", "public int getHeuristic() {\n\t\treturn this.heuristic;\n\t}", "private int computeHeuristicValue(Point currentPoint) {\n return Math.abs(currentPoint.x - endPoint.x) + Math.abs(currentPoint.y - endPoint.y);\n }", "private int computeHeuristicValue(Point currentPoint) {\n return Math.abs(currentPoint.x - endPoint.x) + Math.abs(currentPoint.y - endPoint.y);\n }", "private int HeuristicValue(PuzzleState aState, PuzzleState goalState)\n\t{\n\t\tint heuristic = 0;\n\t\tfor(int i = 0; i < aState.Puzzle.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < aState.Puzzle[i].length; j++)\n\t\t\t{\n\t\t\t\tif(aState.Puzzle[i][j] != goalState.Puzzle[i][j])\n\t\t\t\t\theuristic++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn heuristic;\n\t}", "double getTotalCost();", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "protected Double avoidResultHeuristicValue(AvoidResult r) {\n\t\tdouble adjustedSteps = 100-slowestArrivalStep(r.getPaths());\n\t\t// bonus points if we don't crash\n\t\tint noCrashFactor = 250;\n\t\tint globalCollisionCrashFactor = r.getNextGlobalCollision() == null ? 200 : 0;\n\t\tif(r.getNextCollision() != null) { \n\t\t\tnoCrashFactor = 0;\n\t\t}\n\t\t\n\t\treturn adjustedSteps + noCrashFactor + globalCollisionCrashFactor; \n\t}", "public int heuristic() {\n if (heuristic == -1)\r\n heuristic = Puzzle.this.heuristic(this);\r\n return heuristic;\r\n }", "public int getHealthCost();", "private double getHeuristic(MapLocation current, MapLocation goal) {\n\t\treturn Math.max(Math.abs(current.x - goal.x), Math.abs(current.y - goal.y));\n\t}", "protected double eval(S state, P player) {\n if (game.isTerminal(state)) {\n return game.getUtility(state, player);\n } else {\n heuristicEvaluationUsed = true;\n return (utilMin + utilMax) / 2;\n }\n }", "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "static double addHeuristic2(GameState c, boolean isMaxNode) {\n\t\tint i;\n\t\tint self_total_weight = 0;\n\t\tint opponent_total_weight = 0;\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_total_weight += i;\n\t\t\t}\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_total_weight += i;\n\t\t\t}\n\t\t}\n\n\t\treturn (double) (-self_total_weight + opponent_total_weight) / 78.0;\n\t}", "private float getTotal(HashMap<Integer, Integer> distances){\n float result = 0.0f;\n Iterator it = distances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n result += (1/(Math.pow(2, (Integer)pair.getKey()))) * (Integer)pair.getValue();\n }\n return result;\n }", "double getTotal();", "private int scoreCalc(HousingLocation h) {\n\t\tint score = 0;\n\t\tscore += managementScore*h.managementScore;\n\t\tscore += amenitiesScore*h.amenitiesScore;\n\t\tscore += locationScore*h.locationScore;\n\t\tscore += communityChillFactorScore*h.communityChillFactorScore;\n\t\t\n\t\treturn score;\n\t\t\n\t}", "@Override\n public int calculateBattleValue() {\n return calculateBattleValue(false, false);\n }", "public double getCosts();", "public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}", "public int getHeuristic(){\n\t\tint count = 0;\n\t\tfor (int i = 0; i < getRows(); i++) {\n\t\t\tfor (int j = 0; j < getColumns(); j++) {\n\t\t\t\tif (cells[i][j].getSand() != getK()) \n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t} \n\t\treturn count;\n\t}", "private int heuristicValue(String boardString) {\n String[] tokens = boardString.split(\"\\n\");\n int blackScore = Integer.parseInt(tokens[0].split(\",\")[9]);\n int whiteScore = Integer.parseInt(tokens[1].split(\",\")[9]);\n\n return blackScore - whiteScore;\n }", "public double calculateVal(DraughtsState s, int depth) {\n int[] pieces = s.getPieces(); \n \n \n // This is where the actual heuristic is calculated. because the situation is slightly different for the white and black\n // player their heuristic is calculated seperately.\n double h = 0;\n int enemypieces = 0;\n for (int i = 1; i < pieces.length; i++) {\n int piece = pieces[i];\n \n // If we are white, substract 1, giving the white piece of the same category.\n if (piece == BLACKPIECE + ((isWhite) ? -1 : 0) || piece == BLACKKING + ((isWhite) ? -1 : 0)) {\n enemypieces++;\n }\n \n //for the kings it is not checked whether they are on the sides of the board or not since they have more movement freedom\n //and their is no real benifit for them to be at the sides.\n h += SQ_LEFT(i) * SQ_RIGHT(i) * ((piece == WHITEPIECE) ? 1.5 : 0) - SQ_LEFT(i) * SQ_RIGHT(i) * ((piece == BLACKPIECE) ? 1 : 0) + \n ((piece == WHITEKING) ? 4 : 0) - ((piece == BLACKKING) ? 5 : 0) + 0.3 * is_square(i, pieces);\n \n }\n \n // Victory rush\n if(enemypieces < 4) {\n h += 1;\n }\n\n \n if (isWhite) {\n return h;\n } else\n \n return -h;\n }", "int getHPValue();", "public double totalPotential(Configuration conf) {\n \n return getValue(conf);\n}", "public int getHomeScore();", "int getSat(){\n return getPercentageValue(\"sat\");\n }", "@Override\n public Double getValue()\n {\n final ApdexSnapshot snapshot = getSnapshot();\n if (snapshot == null || snapshot.getSize() == 0)\n return 0.0D;\n\n final int satisfied = snapshot.getSatisfiedSize();\n final int tolerating = snapshot.getToleratingSize();\n final int total = snapshot.getSize();\n double score = (satisfied + (tolerating / 2.0)) / total;\n\n return score;\n }", "public int totalScore() {\n return 0;\n }", "Integer total();", "public int totalGemValue() {\r\n\t\ttotal = 0;\r\n\t\ttotal += gemPile[0];\r\n\t\ttotal += gemPile[1] * 2;\r\n\t\ttotal += gemPile[2] * 3;\r\n\t\ttotal += gemPile[3] * 4;\r\n\t\treturn total;\r\n\t}", "double getTotalReward();", "public double getHpns(){\r\n switch(this.grlType){\r\n case \"The Choosy\":\r\n return this.chGrlfrnd.iLevel;\r\n case \"The Normal\":\r\n return this.nGrlfrnd.iLevel;\r\n case \"The Desperate\":\r\n return this.dsGrlfrnd.iLevel;\r\n \r\n }\r\n return 0;\r\n }", "int getChestsAmount();", "@Override\n public int estimatedDistanceToGoal() {\n return manhattan();\n }", "int getScoreValue();", "public int getHandValue() {\n \n totalScore += nobValue();\n totalScore += flushValue();\n totalScore += pairValue();\n totalScore += fifteenValue();\n totalScore += runValue();\n \n return totalScore;\n }", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "public double heuristic(game Game){\n // int l[] = {0,1};\n // board b = Game.getBoard();\n // tic smallBoard = b.getState(l); \n \n /* if O wins the game */\n if(Game.getState() == 2){return 99;}\n \n /* X wins the game */\n if(Game.getState() == 1){return -99;}\n \n return 0;\n }", "protected double h(Point point) {\r\n Point goalPoint=getGoalNode().getPoint();\r\n return getHeuristicFunction().computeHeuristic(point.getCoordinate(),\r\n goalPoint.getCoordinate());\r\n }", "float getBonusPercentHP();", "float getGte();", "int getBonusHP();", "public double getAccuracy(){\n return (numOfHits/numOfGuesses);\n }", "public abstract double totalWeight();", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "double getCost();", "double getCost();", "private static int getHeuristic(MazeState current, HashSet<MazeState> goals) {\n\t\tint lowestCost = Integer.MAX_VALUE;\n\t\tint currentCost = 0;\n\t\tfor (MazeState goal : goals) {\n\t\t\tcurrentCost = Math.abs(current.col - goal.col) + Math.abs(current.row - goal.row);\n\t\t\tif (currentCost <= lowestCost) {\n\t\t\t\tlowestCost = currentCost;\n\t\t\t}\n\t\t}\n\t\treturn currentCost;\n\t}", "static double addHeuristic1(GameState c, boolean isMaxNode) {\n\t\t// Value returned will be absolute. If its max node, this config is good\n\t\t// then value will be positive. If its min node,\n\t\t// and this config is good for min, then value will be negative\n\n\t\tint i, j, vacant_spaces;\n\t\t// Compute : Feasible Moves for self\n\t\tint self_feasible_moves = 0;\n\t\tint self_remaining_moves = 0;\n\t\tint opponent_feasible_moves = 0;\n\t\tint opponent_remaining_moves = 0;\n\n\t\t// Go through the board and figure out vacant spots\n\t\tvacant_spaces = 0;\n\t\tfor (i = -GameState.HALF_BOARD; i <= GameState.HALF_BOARD; i = i + 1) {\n\t\t\tif (c.getWeight(i) == 0) {\n\t\t\t\tvacant_spaces++;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\t// Check if self have the weight\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\t// Place it and see if you tip\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\tself_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check if opponent has this weight\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\t// Place the weight and see if you tip\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\topponent_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Need to take the max because one of the players may have played one\n\t\t// chance less\n\t\tif (self_remaining_moves == 0 && opponent_remaining_moves == 0) {\n\t\t\treturn 0.0;\n\t\t} else if (self_remaining_moves > opponent_remaining_moves)\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (self_remaining_moves * vacant_spaces);\n\t\telse\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (opponent_remaining_moves * vacant_spaces);\n\t}", "public double getEfficiencyPercentual()\n\t{\n\t\t//Difference from Jsprit algorithm path cost and transport service provider path cost\n\t\tdouble difference = algBestPathDistance - providerBestPathDistance;\n\t\t\n\t\t//Efficiency percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (1 - difference / providerBestPathDistance));\n\t}", "public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }", "public Double getTotalMatched(){\n return totalMatched;\n }", "public void sethVal(Node goal, int heuristic){\n switch (heuristic){\n case 0: //Euclidean distance\n case 4:\n System.out.println(\"Euclidean distance\");\n euclidean(goal, heuristic);\n break;\n case 1: //Manhattan\n System.out.println(\"Manhattan distance\");\n manhattan(goal);\n break;\n case 2:\n case 3:\n diagonal(goal, heuristic);\n break;\n }\n }", "int getCost();", "int getCost();", "int getCost();", "float getMatch();", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public int getAwayScore();", "public int getTotalDistance() {\n return totalDistance;\n }", "public int getGoal() {\n\t\treturn this.map.getGoal();\n\t}", "public int getHealthGain();", "@Override\n\tprotected double evaluate(final IChromosome a_subject) {\n\n\t\tdouble s = 0;\n\n\t\t// Get the genes represented by the chromosome\n\t\tGene[] genes = a_subject.getGenes();\n\n\t\t// Iterate through each of those genes\n\t\tfor (int i = 0; i < genes.length - 1; i++) {\n\n\t\t\t// Add all of the edge distances in the chromosome\n\t\t\ts += m_salesman.distance(genes[i], genes[i + 1]);\n\t\t}\n\n\t\t// add cost of coming back:\n\t\ts += m_salesman.distance(genes[genes.length - 1], genes[0]);\n\t\treturn s;\n\t}", "@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }", "public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n if (!list.isEmpty())\n value = tempVal;\n }\n }\n weight = Math.abs(value);\n return value;\n }", "public int getResult() {\n return Math.abs(greenLeafSum - nonLeafEvenDepthSum);\n }", "public Double getTotal();", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "float getScore();", "float getScore();", "public int getMaxTotalCost();", "int getPercentageHeated();", "public int cost() {\n\t\treturn value;\n\t}", "public int getFitness(){\n\t\treturn getEnergy()*-1; \n\t}", "int getWeight();", "int getWeight();", "double getSolutionCost();", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "public WeightedPoint getGoal()\n {\n return map.getGoal();\n }", "public double calculateHpPercent();", "public int rawDistance() {\r\n\t\tus.fetchSample(usData, 0); // acquire data\r\n\t\tdistance=(int) (usData[0] * 100.0);// extract from buffer, cast to int and add to total\r\n\t\t\t\r\n\t\treturn distance; \r\n\t}", "public int getCost() { return hki.getBound(); }", "public double getBestScore();", "private int getHeuristic(Player player) {\n int whitePieces = 0;\n int blackPieces = 0;\n\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n if (boardObject.getSlot(r, c).getColor() == Slot.WHITE) {\n whitePieces++;\n } else if (boardObject.getSlot(r, c).getColor() == Slot.BLACK) {\n blackPieces++;\n }\n }\n }\n\n if (player.equals(playerBlack)) {\n return blackPieces - whitePieces;\n } else {\n return whitePieces - blackPieces;\n }\n }", "private List<Double> calculateHeuristic(GameState misState){\n List<Double> heuristics = new ArrayList();\n for (int i = 0; i < misState.getNrPlayers(); i++){\n if (misState.isDead(i)){\n heuristics.add(-1000.0); //minimax player is dead, i.e. really bad\n }\n else{\n double score = 500.0;\n //score returned euals 500 - distance to food.\n heuristics.add(score - calculateDistance(misState.getPlayerX(i).get(0), misState.getPlayerY(i).get(0), misState.getTargetX(), misState.getTargetY()));\n } \n }\n return heuristics;\n }", "public int getFitness(){\n return fitness;\n }", "public double getTotal() {\n return totalCost;\n }" ]
[ "0.766298", "0.7552137", "0.7419484", "0.71712154", "0.7058474", "0.6978859", "0.6978625", "0.6963036", "0.676883", "0.67251444", "0.6708578", "0.66970295", "0.66824657", "0.66824657", "0.660618", "0.6574195", "0.6539217", "0.65340793", "0.65334463", "0.64670116", "0.64657545", "0.6444938", "0.6410863", "0.6388044", "0.6382341", "0.6378443", "0.6372603", "0.63714504", "0.6359748", "0.6345571", "0.6345271", "0.6344924", "0.6341005", "0.6338151", "0.632836", "0.6314045", "0.63085306", "0.63019615", "0.6293877", "0.62930524", "0.6284854", "0.62764275", "0.62541085", "0.6244623", "0.6238687", "0.6231792", "0.6219081", "0.6217971", "0.6211589", "0.62034667", "0.6202398", "0.6201418", "0.61854243", "0.6179411", "0.6163842", "0.61583596", "0.61556816", "0.61556816", "0.61480695", "0.61436427", "0.61292833", "0.61238027", "0.6119574", "0.6118647", "0.61172366", "0.61172366", "0.61172366", "0.61066663", "0.61006457", "0.60993385", "0.6092493", "0.60922086", "0.6083669", "0.6077714", "0.60749364", "0.60736275", "0.6063671", "0.6062839", "0.6053035", "0.6042921", "0.60387725", "0.60330313", "0.60330313", "0.60324496", "0.6026892", "0.601991", "0.60190755", "0.6018971", "0.6018971", "0.6016139", "0.6014737", "0.6004317", "0.6003786", "0.5998364", "0.5997176", "0.59960335", "0.5994623", "0.599273", "0.5972198", "0.59709024", "0.5970879" ]
0.0
-1
cal value for each line in root node
private void calValue() { for (char[] array : root.lines()) { int[] nums = HeuristicAdvanNode.checkLine(array); value += calHValue(nums[0], nums[1]); if (Math.abs(value) > xWin) { return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n if (!list.isEmpty())\n value = tempVal;\n }\n }\n weight = Math.abs(value);\n return value;\n }", "@Override\n public void initialize(CounterInitializationContext context) {\n assertThat(context.getLeaf().getChildren()).isEmpty();\n\n Optional<Measure> measureOptional = context.getMeasure(LINES_KEY);\n if (measureOptional.isPresent()) {\n value += measureOptional.get().getIntValue();\n }\n }", "public void calculateNewIntensity() {\r\n \r\n // call the recursive method with the root\r\n calculateNewIntensity(root);\r\n }", "@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }", "int sumRootToLeafNumbers();", "private void processCalculation(String line) {\n\t\t//TODO: fill\n\t}", "public int calculate() {\n \ttraversal(root);\n \tif(!calResult.isEmpty()){\n \t\tint answer = Integer.parseInt(calResult.pop());\n \t\treturn answer;\n \t}\n return 0;\n }", "@Override\n\tpublic void visit(AdditionNode node) {\n\t\t/**\n\t\t * verificam intai sintaxa: in cazde eroare nu mergem mai departe in\n\t\t * evaluare\n\t\t */\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam fiii nodului\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\tInteger i, j;\n\t\t/**\n\t\t * Salvam valorile calculate in urma evaluarii copiilor in 2 variabile\n\t\t * Integer. Daca unul dintre fii este de tip Variable ii luam valoarea\n\t\t * din HashMap-ul din Evaluator. Altfel, valoarea e reprezentata de\n\t\t * numele nodului.\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\t/**\n\t\t * realizam suna celor doua valori si updatam numele nodului curent cu\n\t\t * valoarea calculata\n\t\t */\n\t\tInteger n = i + j;\n\n\t\tnode.setName(n.toString());\n\n\t}", "@Override\n\tpublic double evaluate() {\n\t\tString var = myChildren.get(0).myChildren.get(0).toString(); //goes two levels down to get variable\n\t\tint start = (int) myChildren.get(0).myChildren.get(1).evaluate(); \n\t\tint end = (int) myChildren.get(0).myChildren.get(2).evaluate(); \n\t\tint increment = (int) myChildren.get(0).myChildren.get(3).evaluate(); \n\t\tdouble returnVal = 0;\n\t\tfor(int i = start; i < end; i += increment) {\n\t\t\tUserVariables.add(var, i);\n\t\t\tfor(Node child : myChildren) {\n\t\t\t\treturnVal = child.evaluate(); //repeatNode will contain a GroupNode, but GroupNodes know how to evaluate themselves\n\t\t\t}\n\t\t}\n\t\treturn returnVal;\n\t}", "public int getDecoratedLine (Node node);", "public void visitLeaf(TreeLeaf leaf) {\n if(leaf.getColor()==Color.GREEN){\n greenLeafSum+=leaf.getValue();\n }\n }", "Node<UnderlyingData> getCurrentLineNode();", "@Override\n public void visit(CalcExpr node) {\n }", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }", "double treeNodeTargetFunctionValue(){\n\t\t\t//loop counter variable\n\t\t\tint i;\n\t\t\t\n\t\t\t//stores the cost\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(i=0; i<this.n; i++){\n\t\t\t\t//stores the distance\n\t\t\t\tdouble distance = 0.0;\n\n\t\t\t\t//loop counter variable\n\t\t\t\tint l;\n\n\t\t\t\tfor(l=0;l<this.points[i].dimension;l++){\n\t\t\t\t\t//centroid coordinate of the point\n\t\t\t\t\tdouble centroidCoordinatePoint;\n\t\t\t\t\tif(this.points[i].weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l] / this.points[i].weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\t//centroid coordinate of the centre\n\t\t\t\t\tdouble centroidCoordinateCentre;\n\t\t\t\t\tif(this.centre.weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l] / this.centre.weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\tdistance += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tsum += distance*this.points[i].weight;\t\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public int scoreLeafNode();", "public void valueChanged(TreeSelectionEvent e) {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n \r\n Node n = (Node)node.getUserObject();\r\n \r\n if (tree == null) return;\r\n \r\n htmlPane.setText(Homework1.inorder(n)+\"=\"+Homework1.calculate(n));\r\n \r\n }", "protected int fillDateValues(HashMap<String, SupplyValue> dateValue,ZoneNode currentNode) {\r\n\t\t\tif (currentNode == null) return NULL_VALUE;\r\n\t\t\tSupplyValue supplyValue = dateValue.get(currentNode.getZoneName());\r\n\t\t\tif (supplyValue.getSupplyValue() != NULL_VALUE) return supplyValue.getSupplyValue();\r\n\t\t\t//case no actual value and no children\r\n\t\t\tif (currentNode.getChildren().size() == 0) return NULL_VALUE;\r\n\t\t\tint currentValue = 0,childValue = 0;\r\n\t\t\tfor (ZoneNode childNode : currentNode.getChildren())\r\n\t\t\t{\r\n\t\t\t\tchildValue = fillDateValues(dateValue, childNode);\r\n\t\t\t\tif (childValue == NULL_VALUE) return NULL_VALUE;\r\n\t\t\t\tcurrentValue += childValue;\r\n\t\t\t}\r\n\t\t\tdateValue.get(currentNode.getZoneName()).setSupplyValue(currentValue);\r\n\t\t\treturn currentValue;\r\n\t\t}", "public int eval() \n\t { \n\t \treturn eval(root);\n\t }", "private void iterativeDataPropertyMetrics() {\n\t}", "public int sumNumbers(TreeNode root) {\n if(root == null)\n return 0;\n res = 0;\n sumnum(root,0);\n return res;\n }", "public String getNodeValue ();", "public void setupAbnormality(int total){\r\n\t\t\tabnormality = new int[ANOMALIES_CALCULATORS];\r\n\t\t\tif(syscall.equals(rootNodeName)){\r\n\t\t\t\tfor(int i = 0; i < setters.size(); i++){\r\n\t\t\t\t\tabnormality[i] = 0;\r\n\t\t\t\t\t//System.out.println(\"Traité comme root\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tfor(int i = 0; i < setters.size(); i++){\r\n\t\t\t\t\tabnormality[i] = setters.get(i).calculAnomaly(total, frequency);\r\n\t\t\t\t\t//System.out.println(\"Anomaly set to: \"+ abnormality[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tIterator<TreeNode> i = children();\r\n\t\t\tTreeNode child;\r\n\t\t\twhile(i.hasNext()){\r\n\t\t\t\t// Loop on children nodes\r\n\t\t\t\tchild = i.next();\r\n\t\t\t\tchild.setupAbnormality(total);\r\n\t\t\t}\r\n\t\t}", "public String Calcular(Nodo tree) throws Exception {\n String resultado=tree.getRoot().Resultado();\n return resultado;\n }", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "public void total() {\n\t\t\n\t}", "private int dfs_my(TreeNode root, int sum) {\n if (root == null) return 0;\n int rsum = dfs(root.right, sum);\n int oval = root.val;\n root.val += sum + rsum;\n int lsum = dfs(root.left, root.val);\n return oval + lsum + rsum;\n }", "public RegressionTreeNode traverseNode(Serializable value){\n\t\tif(value instanceof Number && this.value instanceof Number){\n\t\t\tDouble number = ((Number) value).doubleValue();\n\t\t\treturn this.traverseNumericalNode(number);\n\t\t}else{\n\t\t\treturn this.traverseNominalNode(value);\n\t\t}\n\t}", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "private void calculateNewIntensity(BSTNode node) {\r\n \r\n // if the node is NOT null, execute if statement\r\n if (node != null) {\r\n \r\n // call method on left node\r\n calculateNewIntensity(node.getLeft());\r\n \r\n // visit the node (calculate and assign new intensity value)\r\n node.newIntensity(node);\r\n \r\n // call method on right node\r\n calculateNewIntensity(node.getRight());\r\n }\r\n }", "private void test(NFV root) throws Exception{\n\t\tlong beginAll=System.currentTimeMillis();\n\t\tNFV rootTest = init(root);\n\t\tlong endAll=System.currentTimeMillis();\n //System.out.println(\"Total time -> \" + ((endAll-beginAll)/1000) + \"s\");\n\t\trootTest.getPropertyDefinition().getProperty().forEach(p ->{\n \tif(p.isIsSat()){\n\t\t\t\tmaxTotTime = maxTotTime<(endAll-beginAll)? (endAll-beginAll) : maxTotTime;\n\t\t\t\tSystem.out.print(\"time: \" + (endAll-beginAll) + \"ms;\");\n\t\t\t\ttotTime += (endAll-beginAll);\n \t\tnSAT++;\n \t}\n \telse{\n \t\tnUNSAT++;\n \t}\n });\n return;\n\t}", "public void recalculateStatistics() {\n\tthis.resetNodes();\n\tfor (LayoutNode n: this.getNodeList()) \n\t if (!n.isLocked()) \n\t\tupdateMinMax(n.getX(), n.getY());\n }", "@Override\r\n public double eval() {\r\n return (this.child == null) ? 0.0 : this.child.eval();\r\n }", "private double getAngleDisplacement(SkeletonNode root, int f) {\r\n\r\n\t\t/**------------------------------------------------------**/\r\n\t\tdouble ang = 0;\r\n\t\tint ang_counter = 0;\r\n\t\t/**------------------------------------------------------**/\r\n\t\t/**||||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t/**------------------------------------------------------**/\r\n\t\tSkeletonNode parent =\troot.getParent();\r\n\t\tif(parent==null) return ang;\r\n\t\tString root_name = \t\troot.getName();\r\n\t\t/**------------------------------------------------------**/\r\n\t\t/**||||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t/**------------------------------------------------------**/\r\n\t\tint group_size = ControlVariables.third_level_ang_filter_size;\r\n\t\tint group_size_half = (group_size/2)+(group_size % 2);\r\n\t\tint total_filter_size_i = (group_size_half*2) +\r\n\t\t\t\t(Math.min(f-group_size_half, 0)) +\r\n\t\t\t\t(Math.min(skeletonNodes.length - (f+group_size_half+1), 0));\r\n\t\t/**------------------------------------------------------**/\r\n\t\t/**||||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t/**------------------------------------------------------**/\r\n\t\tfor(int j = f-group_size_half; j < f; j++) {\r\n\t\t\tif(j < 0) continue;\r\n\t\t\telse {\r\n\r\n\t\t\t\tSkeletonNode root_j_1 = skeletonWrappers[j+1].getFromHash(root_name);\r\n\t\t\t\tSkeletonNode parent_j_1 = root_j_1.getParent();\r\n\r\n\t\t\t\tSkeletonNode root_j = skeletonWrappers[j].getFromHash(root_name);\r\n\t\t\t\tSkeletonNode parent_j = root_j.getParent();\r\n\r\n\r\n\t\t\t\tdouble [] r_j = root_j.getPoint();\r\n\t\t\t\tdouble [] p_j = parent_j.getPoint();\r\n\r\n\t\t\t\tdouble [] r_j_1 = root_j_1.getPoint();\r\n\t\t\t\tdouble [] p_j_1 = parent_j_1.getPoint();\r\n\r\n\t\t\t\tdouble [] par_diff = VectorTools.sub(p_j, p_j_1);\r\n\t\t\t\tr_j_1 = VectorTools.add(par_diff, r_j_1);\r\n\r\n\t\t\t\tang += VectorTools.ang(r_j_1, p_j, r_j);\r\n\t\t\t\tang_counter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t/**------------------------------------------------------**/\r\n\t\t/**||||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t/**------------------------------------------------------**/\r\n\t\tfor(int j = f; j < f+group_size_half; j++) {\r\n\t\t\tif((j+1) >= skeletonWrappers.length) continue;\r\n\t\t\telse {\r\n\r\n\t\t\t\tSkeletonNode root_j_1 = skeletonWrappers[j+1].getFromHash(root_name);\r\n\t\t\t\tSkeletonNode parent_j_1 = root_j_1.getParent();\r\n\r\n\t\t\t\tSkeletonNode root_j = skeletonWrappers[j].getFromHash(root_name);\r\n\t\t\t\tSkeletonNode parent_j = root_j.getParent();\r\n\r\n\r\n\t\t\t\tdouble [] r_j = root_j.getPoint();\r\n\t\t\t\tdouble [] p_j = parent_j.getPoint();\r\n\r\n\t\t\t\tdouble [] r_j_1 = root_j_1.getPoint();\r\n\t\t\t\tdouble [] p_j_1 = parent_j_1.getPoint();\r\n\r\n\t\t\t\tdouble [] par_diff = VectorTools.sub(p_j, p_j_1);\r\n\t\t\t\tr_j_1 = VectorTools.add(par_diff, r_j_1);\r\n\r\n\t\t\t\tang += VectorTools.ang(r_j_1, p_j, r_j);\r\n\t\t\t\tang_counter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t/**------------------------------------------------------**/\r\n\t\t/**||||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t/**------------------------------------------------------**/\r\n\t\tif(total_filter_size_i != ang_counter) {\r\n\t\t\tSystem.out.println(total_filter_size_i);\r\n\t\t\tSystem.out.println(ang_counter);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn((1.0)/(ang_counter+0.0))*ang;\r\n\t\t/**------------------------------------------------------**/\r\n\t}", "public double sum() {\n double sum = x;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n sum += iter.next.x;\n iter = iter.next;\n }\n return sum;\n }", "private void init() {\n for (Node n : reader.getNodes().values()) {\n da_collegare.add(n);\n valori.put(n, Double.MAX_VALUE);\n precedenti.put(n, null);\n }\n valori.put(start_node, 0.0);\n da_collegare.remove(start_node);\n }", "protected abstract void calculateH(Node node);", "public float influence(ArrayList<String> s)\n {\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n\n for(String node : s){\n if(!graphVertexHashMap.containsKey(node)) continue;\n //At the end nodeDistances will contain min distance from all nodes to all other nodes\n getMinDistances(node, distances, nodeDistances);\n }\n distances = new HashMap<>();\n Iterator it = nodeDistances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n Integer distance = (Integer) entry.getValue();\n if(distances.containsKey(distance)){\n distances.put(distance, distances.get(distance)+1);\n }else{\n distances.put(distance, 1);\n }\n }\n return getTotal(distances);\n\n\n\n// float sum = 0.0f;\n// for(int i =0; i < numVertices; i++){\n// int y = gety(s, i);\n//// System.out.println(\"i is \" + i + \" and nodes at distance are \" + y);\n// sum += (1/(Math.pow(2,i)) * y);\n// }\n// return sum;\n }", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int runCount = context.getConfiguration().getInt(\"runCount\", 1);\n\n String page = key.toString();\n\n Node node = null;\n if (runCount == 1) {\n node = Node.formatNode(\"1.0\" , value.toString());\n } else {\n node = Node.formatNode(value.toString());\n }\n context.write(new Text(page), new Text(node.toString()));\n if(node.constainsAdjances()){\n double outValue = node.getPageRank() / node.getAdjacentNodeNames().length;\n\n for (String adjacentNodeName : node.getAdjacentNodeNames()) {\n// System.out.println(\"--------------------\"+ adjacentNodeName +\"------\" +outValue);\n\n context.write(new Text(adjacentNodeName),new Text(outValue + \"\"));\n }\n }\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(5);\n root.right = new TreeNode(12);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(7);\n List<List<Integer>> result = pathSum(root, 22);\n for(List<Integer> i: result) {\n System.out.println(i);\n }\n }", "public void recalculateNodes(int width) {\n int x, y, minX, minY, maxX, maxY;\n List<Set<String>> inputData = new ArrayList<Set<String>>();\n // use squar of distance\n for (ReferenceNode node : nodeList) {\n Point location = node.getLocation();\n x = location.x;\n y = location.y;\n minX = Math.max(0, x - width);\n minY = Math.max(0, y - width);\n maxX = Math.min(SOM.X_LENGTH - 1, x + width);\n maxY = Math.min(SOM.Y_LENGTH - 1, y + width);\n inputData.clear();\n for (x = minX; x < maxX + 1; x++) {\n for (y = minY; y < maxY + 1; y++) {\n ReferenceNode neighborNode = getNodeAt(x, y);\n List<Set<String>> data = neighborNode.getInputData();\n if (data != null)\n inputData.addAll(data);\n }\n }\n // Set<String> newData = average(inputData);\n // node.setReferenceData(newData);\n node.setInputReferenceData(inputData);\n }\n // Have to empty input nodes\n for (ReferenceNode node : nodeList)\n node.resetInputData();\n }", "private List<Node> compute() {\n\t\t\tgetGraphFromResolvedTree(root);\n\t\t\tdepthFirst(root);\n\t\t\treturn result;\n\t\t}", "String getValueOfNode(String path)\n throws ProcessingException;", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "public static void main(String[] args) {\n BinaryTreeNode root=new BinaryTreeNode(20);\n root.left=new BinaryTreeNode(8);\n root.right=new BinaryTreeNode(12);\n root.right.left=new BinaryTreeNode(3);\n root.right.right=new BinaryTreeNode(9);\n System.out.println(ChildrenSumProperty.sol(root));\n }", "private static void findLevelSums(Node node, Map<Integer, Integer> sumAtEachLevelMap, int treeLevel){\n if(node == null){\n return;\n }\n //get the sum at current \"treeLevel\"\n Integer currentLevelSum = sumAtEachLevelMap.get(treeLevel);\n //if the current level was not found then we put the current value of the node in it\n //if it was was found then we add the current node value to the total sum currently present\n sumAtEachLevelMap.put(treeLevel, (currentLevelSum == null) ? node.data : currentLevelSum+node.data);\n \n //goes through all nodes in the tree\n findLevelSums(node.left, sumAtEachLevelMap, treeLevel+1);\n findLevelSums(node.right, sumAtEachLevelMap, treeLevel+1);\n \n }", "public void add(int value) {\n overallRoot = add(overallRoot, value);\n }", "public static void query(String parent, node tree){\n\t\ttree = names.get(parent);\r\n\t\tint tSales = sumSubTree(tree);\r\n\t\tSystem.out.println(tSales);\r\n\t}", "@Override\n\t\t\tpublic void onLine(String line) {\n\t\t\t\tPoint p = Point.parse(line);\n\t\t\t\tNearestPointStats stats = p.getNearestPoint(centers);\n\t\t\t\tsum.set(0, sum.get(0) + stats.distance);\n\t\t\t}", "@Override\n public void initialize(CounterInitializationContext context) {\n assertThat(context.getLeaf().getChildren()).isEmpty();\n\n Optional<Measure> measureOptional = context.getMeasure(NEW_LINES_TO_COVER_KEY);\n if (!measureOptional.isPresent()) {\n return;\n }\n this.values.increment((int) measureOptional.get().getVariation());\n }", "public void recalculate(){\n\t\t\n\t\tLinkedList<Line> primaryLines = lineLists.get(0);\n\t\t\n\t\tfor (int i = 0; i < controlPoints.size()-1; i++){\n\t\t\tControlPoint current = controlPoints.get(i);\n\t\t\tControlPoint next = controlPoints.get(i+1);\n\t\t\t\n\t\t\tLine line = primaryLines.get(i);\n\t\t\t\n\t\t\tline.setStartX(current.getCenterX());\n\t\t\tline.setStartY(current.getCenterY());\n\t\t\tline.setEndX(next.getCenterX());\n\t\t\tline.setEndY(next.getCenterY());\n\t\t}\n\t}", "private RegressionTreeNode traverseNominalNode(Serializable value) {\n\t\tif(value.equals(this.value)){\n\t\t\treturn this.leftChild;\n\t\t}else{\n\t\t\treturn this.rightChild;\n\t\t}\n\t}", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public List<Double> calculate1a(List<C> listOfNodes,double a, double b);", "@Override\r\n\tpublic int height() {\r\n\t\tif (this.root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn height_sub(this.root);\r\n\t}", "@Override\n public double calcValue() throws IllegalArgumentException {\n // calcolo ricorsivo del risultato dell'operazione\n double l = leftChild.calcValue();\n double r = rightChild.calcValue();\n // effettivo calcolo del risultato\n return oper.getOperation().calcValue(l, r);\n }", "public int getSum(RedBlackTree.Node<Grade> root) {\r\n int sum, leftSum, rightSum;\r\n if (root == null) {\r\n sum = 0;\r\n return sum;\r\n } else {\r\n leftSum = getSum(root.leftChild);\r\n rightSum = getSum(root.rightChild);\r\n sum = root.data.getGrade() + leftSum + rightSum;\r\n return sum;\r\n }\r\n }", "public double sumOfFrequencies() {\r\n\t\tdouble output = 0.0;\r\n\t\tfor(int i=0; i<this.treeNodes.length; i++) {\r\n\t\t\toutput += this.treeNodes[i].getFrequency();\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public void recursiveComputeMaxTotal()\r\n {\r\n if (parents.size() == 0)\r\n {\r\n this.maxTotal = this.content;\r\n }\r\n else\r\n {\r\n if (parents.size() == 1)\r\n {\r\n this.maxTotal = this.content + parents.get(0).maxTotal;\r\n }\r\n else\r\n {\r\n this.maxTotal = this.content + Math.max(parents.get(0).maxTotal, parents.get(1).maxTotal);\r\n }\r\n }\r\n \r\n for (P018Node n : children)\r\n {\r\n n.recursiveComputeMaxTotal();\r\n }\r\n }", "public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}", "public int sumNumbers(TreeNode root) {\n int solution = 0;\n\n String currentPath = \"\";\n\n // execute a dfs to find the leaf nodes\n findLeafNodes(root, currentPath);\n\n // loop through all the paths, convert to int, add to solution\n for(String curr:rootToLeafs){\n // save the current string as an integer\n int currentVal = Integer.parseInt(curr);\n\n // add the current value to the solution\n solution+=currentVal;\n }\n\n // return the solution\n return solution;\n }", "@Override\n public Paint getInitialValue(Shape node) {\n return node.impl_cssGetStrokeInitialValue();\n }", "public static void main(String[] args) {\n TreeNode root = build(1, build(2, null, build(1)), build(3));\n System.out.println(new SumRootToLeaf().sum(root));\n }", "private void getSum() {\n double sum = 0;\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n sum = sum + parseDouble(remindersTable.getValueAt(i, 3).toString());\n }\n String rounded = String.format(\"%.2f\", sum);\n ledgerTxtField.setText(rounded);\n }", "double getTotal();", "public void averageTicketPayable() {\n\t\tnodes.stream().filter(sc->sc instanceof Payable).mapToDouble(sc->((Payable) sc).getEntryFee()).average().stream().forEach(System.out::println);\n\t}", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "private void modify(seg_node root, int l, int r, int a, int b, int v) {\n push_down(root);\n if (l == a && r == b) {\n root._sum += v * root.tot ;\n root._product = root._product * power_mod(root._product_of_di, v) % mod;\n root._lazy_sum += v;\n return;\n }\n int m = (l + r) / 2;\n if (b <= m) {\n modify(root.left, l, m, a, b, v);\n } else if (a >= m + 1) {\n modify(root.right, m + 1, r, a, b, v);\n } else {\n modify(root.left, l, m, a, m, v);\n modify(root.right, m + 1, r, m + 1, b, v);\n }\n push_up(root);\n }", "private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squareRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "private Node handleValueDefinition(XPath xPath) throws XPathExpressionException {\n Node valueDef = (Node)xPath.evaluate(\"./*/cda:repeatNumber\", this.entry, XPathConstants.NODE);\n if (valueDef == null) {\n // TODO: HQMF needs better differentiation between SUM & COUNT...\n // currently using presence of repeatNumber...\n if (this.type.equals(\"COUNT\")) {\n this.type = \"SUM\";\n }\n valueDef = (Node)xPath.evaluate(\"./*/cda:value\", this.entry, XPathConstants.NODE);\n }\n\n // TODO: Resolve extracting values embedded in criteria within outboundRel's\n if (this.type.equals(\"SUM\")) {\n valueDef = (Node)xPath.evaluate(\"./*/*/*/cda:value\", this.entry, XPathConstants.NODE);\n }\n\n if (valueDef != null) {\n String valueType = XmlHelpers.getAttributeValue(valueDef, xPath, \"./@type\", \"\");\n if (valueType.equals(\"ANY\")) {\n this.value = new AnyValue();\n }\n }\n\n return valueDef;\n }", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public double getTotal (){ \r\n return total;\r\n }", "@Override\n public float getTreeBalance() {\n\treturn 0;\n }", "private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }", "public int calcHeight(){\n\t\t\t\treturn calcNodeHeight(this.root);\n\t\t}", "protected void saveIndirectTotalValues(){\n\n }", "private int dfs(TreeNode root, int sum) {\n if (root == null) return sum;\n int rsum = dfs(root.right, sum);\n root.val += rsum;\n return dfs(root.left, root.val);\n }", "void setCurrentLineNode(Node<UnderlyingData> currentLineNode);", "@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }", "public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }", "public abstract void apply(ALinearizableNode node);", "public abstract int getNodesQuantity();", "public abstract MetricTreeNode getRoot();", "private void cubeRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubeRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "@Override\n public double getTotal() {\n return total;\n }", "public void add(int value) {\n\t\taddRecursive(root, value);\n\t\t// System.out.print(\"root\" + String.valueOf(root.value));\n\t}", "void visit(ArithmeticValue value);", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode TreeN = (DefaultMutableTreeNode)\n tree.getLastSelectedPathComponent();\n \n if (TreeN == null) return;\n \n Object nodeIn = TreeN.getUserObject();\n Node y = (Node)nodeIn;\n Homework1.inorder(y);\n htmlPane.setText(y.value.toString());\n \n }", "public void calcOutput()\n\t{\n\t}", "public int getLineWeight()\n {\n return lineaspessore;\n }", "@Override\n\tpublic int totalPathLength() {\n\t\treturn totalPathLength(root, sum);// returns total path lenght number\n\t}", "abstract long calculateChildCount() throws TskCoreException;", "@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}", "public int sumNumbers(TreeNode root) {\n\t if(null == root) return 0;\n\t int bsum = 0;\n\t int tsum = 0;\n\t return sum (root, bsum, tsum);\n\t \n\t }", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}", "public ArrayList<Double> getValues() {\n\n ArrayList<Double> values = new ArrayList<Double>(); //create new arraylist to return\n FreqNode tmpNode; //create temp node \n\n //traverse entire table \n for (FreqNode node : frequencyTable) {\n //set node \n tmpNode = node;\n while (true) {\n if (tmpNode == null) {\n break;\n } else {\n //add value to node in table and cast to double \n values.add((node.getValue() * 1.0));\n //set it to the next node \n tmpNode = tmpNode.getNext();\n } //end else \n }//end if \n }\n // Return the keys\n return values;\n }" ]
[ "0.6158086", "0.5889588", "0.5671609", "0.56495357", "0.55863285", "0.5533046", "0.5404473", "0.5397152", "0.5364882", "0.5318926", "0.5311668", "0.5308528", "0.5299478", "0.52439237", "0.5167239", "0.51477814", "0.5134883", "0.51337445", "0.51055074", "0.5098645", "0.508265", "0.5044031", "0.5017921", "0.5005413", "0.49957174", "0.4987234", "0.4983941", "0.49476776", "0.49471447", "0.49459305", "0.49425137", "0.49420676", "0.49069756", "0.4899093", "0.48940867", "0.4885485", "0.4872785", "0.48648354", "0.48634344", "0.48557836", "0.485167", "0.48394844", "0.48380193", "0.48299742", "0.4829289", "0.48147038", "0.4814023", "0.48111516", "0.48042193", "0.47940978", "0.47934446", "0.47892135", "0.4772788", "0.47593367", "0.47487828", "0.4744816", "0.47406104", "0.4737945", "0.47378424", "0.47233674", "0.47163075", "0.47129458", "0.47111923", "0.4697063", "0.46959192", "0.46937522", "0.46927035", "0.46873048", "0.4683659", "0.46829545", "0.46798885", "0.46786606", "0.46770674", "0.4676479", "0.46698463", "0.46671417", "0.4656835", "0.46527764", "0.46516493", "0.4651614", "0.46453923", "0.46445578", "0.46398214", "0.4636398", "0.4631782", "0.462918", "0.46280986", "0.46275368", "0.46260625", "0.4625699", "0.46235335", "0.46235096", "0.4622084", "0.46169454", "0.46140304", "0.4607511", "0.46050173", "0.460311", "0.4601275", "0.4597471" ]
0.64515436
0
cal heuristic value for one line of node
private int calHValue(int xNum, int oNum) { if (xNum > 0 && oNum > 0) { return GameParameters.draw; } switch (xNum + oNum) { case 1: return xNum > 0 ? onePoint : -onePoint; case 2: return xNum > 0 ? twoPoint : -twoPoint; case 3: return xNum > 0 ? threePoint : -threePoint; case 4: return xNum > 0 ? xWin : oWin; } return GameParameters.draw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }", "private void heuristicSetter(Node node){\n int goalNodeFirstDigit = Integer.parseInt(goalNode.getDigit().getFirst_digit());\n int goalNodeSecondDigit = Integer.parseInt(goalNode.getDigit().getSecond_digit());\n int goalNodeThirdDigit = Integer.parseInt(goalNode.getDigit().getThird_digit());\n\n int nodeFirstDigit = Integer.parseInt(node.getDigit().getFirst_digit());\n int nodeSecondDigit = Integer.parseInt(node.getDigit().getSecond_digit());\n int nodeThirdDigit = Integer.parseInt(node.getDigit().getThird_digit());\n\n int heuristic = Math.abs(goalNodeFirstDigit - nodeFirstDigit)+\n Math.abs(goalNodeSecondDigit - nodeSecondDigit)+\n Math.abs(goalNodeThirdDigit - nodeThirdDigit);\n\n node.setHeuristic(heuristic);\n }", "public int getHeuristicScore() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \tint cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic + cost;\r\n }", "public int getHeuristicScore2() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \t//int cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic; //+ cost;\r\n }", "@Override\n\t\t\tpublic void onLine(String line) {\n\t\t\t\tPoint p = Point.parse(line);\n\t\t\t\tNearestPointStats stats = p.getNearestPoint(centers);\n\t\t\t\tsum.set(0, sum.get(0) + stats.distance);\n\t\t\t}", "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public int calculateLineBonus()\r\n {\r\n int bonus = 0;\r\n \r\n switch(line[0])\r\n {\r\n case 1:\r\n bonus = gameBoard.getTile(0,0).getTileValue() + gameBoard.getTile(0,1).getTileValue() + gameBoard.getTile(0,2).getTileValue();\r\n break;\r\n case 2:\r\n bonus = gameBoard.getTile(1,0).getTileValue() + gameBoard.getTile(1,1).getTileValue() + gameBoard.getTile(1,2).getTileValue();\r\n break;\r\n case 3:\r\n bonus = gameBoard.getTile(2,0).getTileValue() + gameBoard.getTile(2,1).getTileValue() + gameBoard.getTile(2,2).getTileValue();\r\n break;\r\n case 4: \r\n bonus = gameBoard.getTile(0,0).getTileValue() + gameBoard.getTile(1,0).getTileValue() + gameBoard.getTile(2,0).getTileValue();\r\n break;\r\n case 5:\r\n bonus = gameBoard.getTile(0,1).getTileValue() + gameBoard.getTile(1,1).getTileValue() + gameBoard.getTile(2,1).getTileValue();\r\n break;\r\n case 6: \r\n bonus = gameBoard.getTile(0,2).getTileValue() + gameBoard.getTile(1,2).getTileValue() + gameBoard.getTile(2,2).getTileValue();\r\n break;\r\n case 7: \r\n bonus = gameBoard.getTile(0,0).getTileValue() + gameBoard.getTile(1,1).getTileValue() + gameBoard.getTile(2,2).getTileValue();\r\n break;\r\n case 8:\r\n bonus = gameBoard.getTile(2,0).getTileValue() + gameBoard.getTile(1,1).getTileValue() + gameBoard.getTile(0,2).getTileValue();\r\n break;\r\n }\r\n \r\n return bonus;\r\n }", "protected abstract void calculateH(Node node);", "public int heuristic()\n {\n if (this.heuristic != Integer.MIN_VALUE)\n return this.heuristic;\n this.heuristic = 0;\n if (!this.safe)\n return 0;\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.heuristic = (this.d.size() * 100) + (this.NE * 10) + bonus;\n // value:\n return this.heuristic;\n }", "public float getCost(Node n){\n char t1 = this.type;\n char t2 = n.getType();\n int row1 = this.row;\n int col1 = this.col;\n int row2 = n.getRow();\n int col2 = n.getCol();\n boolean straight;\n\n if(row1 == row2 || col1 == col2)\n straight = true;\n else\n straight = false;\n\n if(straight){\n switch (t1){\n case '1':\n switch (t2){\n case '1':\n return 1;\n case '2':\n return (float)1.5;\n case 'a':\n return 1;\n case 'b':\n return (float)1.5;\n }\n break;\n case '2':\n switch (t2){\n case '1':\n return (float)1.5;\n case '2':\n return 2;\n case 'a':\n return (float)1.5;\n case 'b':\n return 2;\n }\n break;\n case 'a':\n switch (t2){\n case '1':\n return 1;\n case '2':\n return (float)1.5;\n case 'a':\n return (float).25;\n case 'b':\n return (float).375;\n }\n break;\n case 'b':\n switch (t2){\n case '1':\n return (float)1.5;\n case '2':\n return 2;\n case 'a':\n return (float).375;\n case 'b':\n return (float).25;\n }\n break;\n }\n } else{\n switch(t1){\n case '1':\n switch (t2){\n case 'a':\n case '1':\n return (float)Math.sqrt(2);\n case '2':\n case 'b':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n }\n break;\n case '2':\n switch (t2){\n case 'a':\n case '1':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n case '2':\n case 'b':\n return (float)Math.sqrt(8);\n }\n break;\n case 'a':\n switch (t2){\n case 'a':\n case '1':\n return (float)Math.sqrt(2);\n case '2':\n case 'b':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n }\n break;\n case 'b':\n switch (t2){\n case 'a':\n case '1':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n case '2':\n case 'b':\n return (float)Math.sqrt(8);\n }\n break;\n }\n }\n\n return 0;\n }", "public int evaluate() {\n\t\treturn history + heuristic;\n\t}", "public float influence(ArrayList<String> s)\n {\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n\n for(String node : s){\n if(!graphVertexHashMap.containsKey(node)) continue;\n //At the end nodeDistances will contain min distance from all nodes to all other nodes\n getMinDistances(node, distances, nodeDistances);\n }\n distances = new HashMap<>();\n Iterator it = nodeDistances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n Integer distance = (Integer) entry.getValue();\n if(distances.containsKey(distance)){\n distances.put(distance, distances.get(distance)+1);\n }else{\n distances.put(distance, 1);\n }\n }\n return getTotal(distances);\n\n\n\n// float sum = 0.0f;\n// for(int i =0; i < numVertices; i++){\n// int y = gety(s, i);\n//// System.out.println(\"i is \" + i + \" and nodes at distance are \" + y);\n// sum += (1/(Math.pow(2,i)) * y);\n// }\n// return sum;\n }", "Integer cost(PathFindingNode node, PathFindingNode neighbour);", "public int scoreLeafNode();", "public abstract float getCost(AStarNode paramAStarNode);", "public void sethVal(Node goal, int heuristic){\n switch (heuristic){\n case 0: //Euclidean distance\n case 4:\n System.out.println(\"Euclidean distance\");\n euclidean(goal, heuristic);\n break;\n case 1: //Manhattan\n System.out.println(\"Manhattan distance\");\n manhattan(goal);\n break;\n case 2:\n case 3:\n diagonal(goal, heuristic);\n break;\n }\n }", "public abstract float getEstimatedCost(AStarNode paramAStarNode);", "public int getLineWeight()\n {\n return lineaspessore;\n }", "protected double h(Point point) {\r\n Point goalPoint=getGoalNode().getPoint();\r\n return getHeuristicFunction().computeHeuristic(point.getCoordinate(),\r\n goalPoint.getCoordinate());\r\n }", "private int getGoalValueForBlock(int row, int column) {\n \tif (row == dimension() - 1 && column == dimension() - 1) {\n \t\treturn 0;\n \t\t\n \t} else {\n \t\treturn (row * dimension()) + column + 1;\n \t}\n }", "private void processCalculation(String line) {\n\t\t//TODO: fill\n\t}", "private int computeHeuristicValue(Point currentPoint) {\n return Math.abs(currentPoint.x - endPoint.x) + Math.abs(currentPoint.y - endPoint.y);\n }", "private int computeHeuristicValue(Point currentPoint) {\n return Math.abs(currentPoint.x - endPoint.x) + Math.abs(currentPoint.y - endPoint.y);\n }", "private double heuristic(Node a, Node b){\n\n // absolute value of the differences in floors\n return Math.abs(a.getFloor() - b.getFloor());\n }", "double treeNodeTargetFunctionValue(){\n\t\t\t//loop counter variable\n\t\t\tint i;\n\t\t\t\n\t\t\t//stores the cost\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(i=0; i<this.n; i++){\n\t\t\t\t//stores the distance\n\t\t\t\tdouble distance = 0.0;\n\n\t\t\t\t//loop counter variable\n\t\t\t\tint l;\n\n\t\t\t\tfor(l=0;l<this.points[i].dimension;l++){\n\t\t\t\t\t//centroid coordinate of the point\n\t\t\t\t\tdouble centroidCoordinatePoint;\n\t\t\t\t\tif(this.points[i].weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l] / this.points[i].weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\t//centroid coordinate of the centre\n\t\t\t\t\tdouble centroidCoordinateCentre;\n\t\t\t\t\tif(this.centre.weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l] / this.centre.weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\tdistance += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tsum += distance*this.points[i].weight;\t\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "private void manhattan(Node node){\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n int x = Math.abs(row1-row2);\n int y = Math.abs(col1-col2);\n\n this.hVal = x+y;\n }", "public abstract double getHeuristic(State state);", "@Override\n\tpublic float estimate (Node node, Node endNode) {\n\t\treturn (float) Math.abs(endNode.position.distance(node.position));\n\t}", "private double heuristicCost(Point p) {\n\t\treturn distance(p, goal);\n\t}", "private int heuristicValue(String boardString) {\n String[] tokens = boardString.split(\"\\n\");\n int blackScore = Integer.parseInt(tokens[0].split(\",\")[9]);\n int whiteScore = Integer.parseInt(tokens[1].split(\",\")[9]);\n\n return blackScore - whiteScore;\n }", "public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n if (!list.isEmpty())\n value = tempVal;\n }\n }\n weight = Math.abs(value);\n return value;\n }", "public double getHeuristicValue(Object state) {\n\n LinternaEstado estado = (LinternaEstado) state;\n\n double heuristica = 0.0;\n int[] actual = estado.getCalzada();\n int aux = 0;\n for (int i = 0; i < 5; i++) {\n if (actual[i] == 1)\n aux = aux + estado.getTiempo(i);\n }\n heuristica = (aux / actual[6]) * 100; //lo dejo sin multiplicar¿¿¿\n return heuristica;\n }", "private int getValueOfLine(int[] line) {\n int p1 = 0, p2 = 0;\n for (int n : line) {\n if (n == PLAYER_1)\n p1++;\n if (n == PLAYER_2)\n p2++;\n }\n if (p1 > 0 && p2 > 0)\n return 0;\n // Three in a line means winning\n if (p1 == 3)\n return VALUE_WIN;\n if (p1 == 2)\n return VALUE_TWO_IN_LINE;\n if (p1 == 1)\n return VALUE_ONE_IN_LINE;\n // Three in a line of the other player means losing\n if (p2 == 3)\n return VALUE_LOSE;\n if (p2 == 2)\n return -VALUE_TWO_IN_LINE;\n if (p2 == 1)\n return -VALUE_ONE_IN_LINE;\n return 0;\n }", "static double addHeuristic1(GameState c, boolean isMaxNode) {\n\t\t// Value returned will be absolute. If its max node, this config is good\n\t\t// then value will be positive. If its min node,\n\t\t// and this config is good for min, then value will be negative\n\n\t\tint i, j, vacant_spaces;\n\t\t// Compute : Feasible Moves for self\n\t\tint self_feasible_moves = 0;\n\t\tint self_remaining_moves = 0;\n\t\tint opponent_feasible_moves = 0;\n\t\tint opponent_remaining_moves = 0;\n\n\t\t// Go through the board and figure out vacant spots\n\t\tvacant_spaces = 0;\n\t\tfor (i = -GameState.HALF_BOARD; i <= GameState.HALF_BOARD; i = i + 1) {\n\t\t\tif (c.getWeight(i) == 0) {\n\t\t\t\tvacant_spaces++;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\t// Check if self have the weight\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\t// Place it and see if you tip\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\tself_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check if opponent has this weight\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\t// Place the weight and see if you tip\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\topponent_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Need to take the max because one of the players may have played one\n\t\t// chance less\n\t\tif (self_remaining_moves == 0 && opponent_remaining_moves == 0) {\n\t\t\treturn 0.0;\n\t\t} else if (self_remaining_moves > opponent_remaining_moves)\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (self_remaining_moves * vacant_spaces);\n\t\telse\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (opponent_remaining_moves * vacant_spaces);\n\t}", "String getValueOfNode(String path)\n throws ProcessingException;", "private int HeightCalc(IAVLNode node) {\r\n\t\tif (node.isRealNode()) \r\n\t\t\treturn Math.max(node.getLeft().getHeight(), node.getRight().getHeight())+1;\r\n\t\treturn -1; //external's height is -1 \r\n\t}", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "private double actionCost(StarNode node) {\n StarNode previous = node.getPreviousNode();\n double xDist = previous.getXCoord() - node.getXCoord();\n double yDist = previous.getYCoord() - node.getYCoord();\n double totalDist = Math.sqrt(xDist*xDist + yDist*yDist);\n node.setG(previous.getG() + totalDist);\n return node.getG();\n }", "private int getValue(int marker) { return (marker>CONCEALED && marker<CONCEALED_END)? concealedpathvalue : pathvalue; }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "public int getDecoratedLine (Node node);", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "void calcScore() {\n\t\t\tMat points = new Mat(nodes.size(),2,CvType.CV_32FC1);\n\t\t\tMat line = new Mat(4,1,CvType.CV_32FC1);\n\n\t\t\tif(nodes.size() > 2) {\n\t\t\t\t// We know for sure here that the size() is at least 3\n\t\t\t\tfor(int i = 0; i < nodes.size(); i++) {\n\t\t\t\t\tpoints.put(i, 0, nodes.get(i).x);\n\t\t\t\t\tpoints.put(i, 1, nodes.get(i).y);\n\t\t\t\t}\n\t\n\t\t\t\tImgproc.fitLine(points, line, Imgproc.CV_DIST_L2, 0, 0.01, 0.01);\n\t\t\t\tPoint2 lineNormale = new Point2(line.get(0, 0)[0], line.get(1, 0)[0]);\n\t\t\t\tPoint2 linePoint = new Point2(line.get(2, 0)[0], line.get(3, 0)[0]);\n\t\n\t\t\t\tscore = 0;\n\t\t\t\tdouble totalLength = 0;\n\t\t\t\tdouble[] lengths = new double[nodes.size() - 1];\n\t\t\t\tfor(int i = 0; i < nodes.size(); i++) {\n\t\t\t\t\t// First score is the distance from each point to the fitted line\n\t\t\t\t\t// We normalize the distances by the base size so the size doesn't matter\n\t\t\t\t\tscore += Math.abs(nodes.get(i).distanceToLine(linePoint, lineNormale) / base().norm());\n\t\t\t\t\tif(i > 0) {\n\t\t\t\t\t\t// Then the collinearity of the steps with the base\n\t\t\t\t\t\t// That is cosine -> 1.0, where cosine = a dot b / |a|*|b|\n\t\t\t\t\t\tPoint2 step = nodes.get(i).minus(nodes.get(i-1));\n\t\t\t\t\t\tdouble dotProduct = step.dot(base());\n\t\t\t\t\t\tscore += Math.abs(dotProduct/(base().norm()*step.norm()) - 1);\n\t\t\t\t\t\ttotalLength += step.norm();\n\t\t\t\t\t\tlengths[i-1] = step.norm();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Normalize by the number of nodes so the shorter sequences don't have advantage\n\t\t\t\tscore /= nodes.size();\n\t\t\t\t// Add scores (penalties) for missing nodes\n\t\t\t\t// If we divide the total length by the expected number of steps\n\t\t\t\t// the result should be close to the length of the majority of the visible steps \n\t\t\t\tArrays.sort(lengths);\n\t\t\t\tdouble median = lengths.length % 2 == 0\n\t\t\t\t\t\t? (lengths[nodes.size()/2] + lengths[nodes.size()/2-1]) / 2\n\t\t\t\t\t\t: lengths[nodes.size()/2];\n\t\t\t\tscore += Math.abs(median - totalLength/(maxNodes-1)) / median;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Two or less nodes is not a chain. So give it the worst score possible \n\t\t\t\tscore = Double.MAX_VALUE;\n\t\t\t}\n\t\t}", "private void lineScore(int nbLine) {\n switch (nbLine) {\n case 1:\n score += level * 100;\n break;\n case 2:\n score += level * 300;\n break;\n case 3:\n score += level * 500;\n break;\n case 4:\n score += level * 800;\n break;\n }\n }", "public double getFinalDistance(){\n return valori.get(end_node);\n }", "public int heuristic() {\n if (heuristic == -1)\r\n heuristic = Puzzle.this.heuristic(this);\r\n return heuristic;\r\n }", "private static float getGpaFromLine(String line) {\n\t\treturn Float.parseFloat(line.split(\" \")[1]);\n\t}", "@Override\n public double computeLikeliness(Node node1, Node node12) {\n return 0;\n }", "public int getHeuristic() {\n\t\treturn this.heuristic;\n\t}", "protected int algo(Node node, int alpha, int beta) {\r\n int children = node.getChildren().size();\r\n // Zeile 0\r\n\r\n mark(0);\r\n if (!failHigh) {\r\n setSeen();\r\n }// Zaehlt fuer die Endauswertung\r\n else {\r\n if (prunedMap.containsKey(node.getId())) {\r\n setSeen();\r\n prunedMap.remove(node.getId());\r\n } else {\r\n failed++;\r\n setFailed(node);\r\n }\r\n }\r\n\r\n lightsOut(0);\r\n updateBorders(node, alpha, beta);\r\n setExplain(0, alpha, beta);\r\n highlightNode(node);\r\n\r\n // Zeile 1\r\n mark(1);\r\n code.highlight(1);\r\n setExplain(1, 0, 0);\r\n if (node.isLeaf()) {\r\n\r\n // Zeile 2\r\n mark(2);\r\n setExplain(2, node.getValue(), 0);\r\n lastT = \"window\" + node.getId();\r\n colorObject(\"tVal\" + node.getId(), nodeValueHighlightColor);\r\n return node.getValue();\r\n\r\n }\r\n\r\n // Zeile 3\r\n int a = alpha;\r\n mark(3);\r\n code.unhighlight(1);\r\n setExplain(3, alpha, 0);\r\n\r\n // Zeile 4\r\n int b = beta;\r\n mark(4);\r\n setExplain(4, beta, 0);\r\n\r\n // Zeile 5\r\n mark(5);\r\n setExplain(5, 0, 0);\r\n colorChildren(node);\r\n for (int j = 0; j < children; j++) {\r\n Node child = node.getChildren().get(j);\r\n\r\n // Zeile 6\r\n mark(6);\r\n lightsOut(6);\r\n uncolorChildren(node);\r\n if (j == 0) {\r\n setExplain(60, 0, 0);\r\n } else {\r\n setExplain(61, 0, 0);\r\n }\r\n\r\n colorLine(child);\r\n int score = -algo(child, -b, -a);\r\n mark(6);\r\n lightsOut(6);\r\n if (child.isLeaf()) {\r\n pMap.get(\"tVal\" + child.getId()).changeColor(\"\", seenNodeValueColor,\r\n null, null);\r\n }\r\n setExplain(62, score, 0);\r\n seenNode(child);\r\n showReturn(child, score);\r\n\r\n // Zeile 7\r\n mark(7);\r\n hideReturn(child);\r\n setExplain(7, 0, 0);\r\n\r\n if (a < score && score < beta && j > 0) {\r\n\r\n // Zeile 8\r\n mark(8);\r\n setFailed(child);\r\n setExplain(8, 0, 0);\r\n drawFailHigh(node, j);\r\n cleanAfterFail(child);\r\n colorLine(child);\r\n failHigh = true;\r\n // Zaehlt FailHighs fuer den Endbericht\r\n score = -algo(child, -beta, -score);\r\n failHigh = false;\r\n\r\n mark(8);\r\n if (child.isLeaf()) {\r\n pMap.get(\"tVal\" + child.getId()).changeColor(\"\", seenNodeValueColor,\r\n null, null);\r\n }\r\n lightsOut(8);\r\n setExplain(62, score, 0);\r\n seenNode(child);\r\n showReturn(child, score);\r\n }\r\n\r\n // Zeile 9\r\n mark(9);\r\n lightsOut(9);\r\n hideReturn(child);\r\n if (a > score) {\r\n setExplain(90, a, score);\r\n } else {\r\n setExplain(91, a, score);\r\n a = score;\r\n }\r\n\r\n // Zeile 10\r\n mark(10);\r\n if (a >= beta) {\r\n setExplain(100, a, beta);\r\n // Zeile 11\r\n mark(11);\r\n setPruned(child);\r\n setPrunedMap(node, j);\r\n if (j == children - 1) {\r\n setExplain(111, 0, 0);\r\n } else {\r\n setExplain(110, 0, 0);\r\n\r\n }\r\n drawCut(node, j);\r\n return a;\r\n } else {\r\n setExplain(101, a, beta);\r\n }\r\n\r\n // Zeile 12\r\n b = a + 1;\r\n mark(12);\r\n setExplain(12, a + 1, 0);\r\n code.unhighlight(10);\r\n\r\n }\r\n // Zeile 14\r\n mark(14);\r\n code.unhighlight(12);\r\n setExplain(14, 0, 0);\r\n return a;\r\n\r\n }", "public float influence(String u)\n {\n if(influences.containsKey(u)) return influences.get(u);\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n getMinDistances(u, distances, nodeDistances);\n\n if(distances.size() == 0) return 0.0f;\n\n float sum = getTotal(distances);\n influences.putIfAbsent(u, sum);\n return sum;\n\n// float sum = 0.0f;\n// for(int i =0; i < numVertices; i++){\n// int y = gety(u, i);\n// sum += (1/(Math.pow(2,i)) * y);\n// }\n//\n// return sum;\n }", "@Override\n public double proposal() {\n Tree tree = treeInput.get();\n\n Node node;\n if (useNodeNumbers) {\n int leafNodeCount = tree.getLeafNodeCount();\n int i = Randomizer.nextInt(leafNodeCount);\n node = tree.getNode(i);\n } else {\n int i = Randomizer.nextInt(taxonIndices.length);\n node = tree.getNode(taxonIndices[i]);\n }\n\n double value = node.getHeight();\n\n if (value == 0.0) {\n return Double.NEGATIVE_INFINITY;\n }\n double newValue = value;\n\n boolean drawFromDistribution = samplingDateTaxonNames.contains(node.getID());\n if (drawFromDistribution) {\n SamplingDate taxonSamplingDate = samplingDatesInput.get().get(samplingDateTaxonNames.indexOf(node.getID()));\n double range = taxonSamplingDate.getUpper() - taxonSamplingDate.getLower();\n newValue = taxonSamplingDate.getLower() + Randomizer.nextDouble() * range;\n } else {\n if (useGaussian) {\n newValue += Randomizer.nextGaussian() * windowSize;\n } else {\n newValue += Randomizer.nextDouble() * 2 * windowSize - windowSize;\n }\n }\n\n\n Node fake = null;\n double lower, upper;\n\n if (((ZeroBranchSANode)node).isDirectAncestor()) {\n fake = node.getParent();\n lower = getOtherChild(fake, node).getHeight();\n if (fake.getParent() != null) {\n upper = fake.getParent().getHeight();\n } else upper = Double.POSITIVE_INFINITY;\n } else {\n //lower = Double.NEGATIVE_INFINITY;\n lower = 0.0;\n upper = node.getParent().getHeight();\n }\n\n if (newValue < lower || newValue > upper) {\n return Double.NEGATIVE_INFINITY;\n }\n\n if (newValue == value) {\n // this saves calculating the posterior\n return Double.NEGATIVE_INFINITY;\n }\n\n if (fake != null) {\n fake.setHeight(newValue);\n }\n node.setHeight(newValue);\n\n if (newValue < 0) {\n for (int i=0; i<tree.getNodeCount(); i++){\n double oldHeight = tree.getNode(i).getHeight();\n tree.getNode(i).setHeight(oldHeight-newValue);\n }\n } else {\n boolean dateShiftDown = true;\n for (int i=0; i< tree.getLeafNodeCount(); i++){\n if (tree.getNode(i).getHeight() == 0){\n dateShiftDown = false;\n break;\n }\n }\n if (dateShiftDown) {\n ArrayList<Double> tipNodeHeights= new ArrayList<Double>();\n for (int i=0; i<tree.getLeafNodeCount(); i++){\n tipNodeHeights.add(tree.getNode(i).getHeight());\n }\n Collections.sort(tipNodeHeights);\n double shiftDown = tipNodeHeights.get(0);\n for (int i=0; i<tree.getNodeCount(); i++){\n double oldHeight = tree.getNode(i).getHeight();\n tree.getNode(i).setHeight(oldHeight-shiftDown);\n }\n }\n }\n\n boolean check = true;\n for (int i=0; i<tree.getNodeCount(); i++){\n if (tree.getNode(i).getHeight() < 0) {\n System.out.println(\"Negative height found\");\n System.exit(0);\n }\n if (tree.getNode(i).getHeight() == 0) {\n check = false;\n }\n }\n if (check) {\n System.out.println(\"There is no 0 height node\");\n System.exit(0);\n }\n\n //tree.setEverythingDirty(true);\n\n return 0.0;\n }", "float getGte();", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "float getMatch();", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "private float getQScore(Stone[][] board, int line, int col,\n int depth, int initialDepth){\n Chain chain = new Chain();\n Stone stone;\n if(depth % 2 == 1) stone = new Stone(color ? \"black\" : \"white\", chain);\n else stone = new Stone(color ? \"white\" : \"black\", chain);\n stone.setPosition(line, col);\n int nrStonesRemoved, chainSize, chainLiberties, score;\n board[line][col] = stone;\n //verific daca am luat pietre detinute de oponent\n nrStonesRemoved = Control.verifyNeighbourStones(board, stone.getColor(),\n line, col, false);\n //efectuez eventualele modificari ale lanturilor proprii ce pot aparea in urma plasarii pietrei\n Control.combineChains(board, stone, stone.getColor(), line, col);\n chainSize = stone.getChain().getStones().size();\n chainLiberties = stone.getChain().getLibertiesNumber();\n //aflu scorul starii\n score = nrStonesRemoved * 10 + chainSize * 30 + chainLiberties * 50;\n\n if(depth == 0){\n return (initialDepth % 2 == 1) ? -score : score;\n }\n\n float currentScore, max = 0;\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++){\n chain = new Chain();\n if(depth % 2 == 1) stone = new Stone(color ? \"white\" : \"black\", chain);\n else stone = new Stone(color ? \"black\" : \"white\", chain);\n stone.setPosition(i, j);\n int[] lib = Control.verifyLiberties(board, stone, i, j);\n if(board[i][j] == null && lib[0] + lib[1] != 0){\n currentScore = getQScore(board, i, j, depth - 1, initialDepth);\n if(currentScore > max){\n max = currentScore;\n }\n }\n }\n\n score += max * (depth / initialDepth);\n return (depth % 2 == 1) ? score : -score;\n }", "public static CheckResult extractStats4ALI(String line) {\n String[] splits = SEMI.split(line);\n if(splits!=null && splits.length>41) {\n Double sales = splits[22].equals(\"\")?Double.valueOf(\"0.00\"):Double.valueOf(splits[22]);\n\n return new CheckResult(1,sales,\"ALI\");\n }\n return new CheckResult(1,0.00,null);\n }", "private double getHeuristic(MapLocation current, MapLocation goal) {\n\t\treturn Math.max(Math.abs(current.x - goal.x), Math.abs(current.y - goal.y));\n\t}", "protected Double avoidResultHeuristicValue(AvoidResult r) {\n\t\tdouble adjustedSteps = 100-slowestArrivalStep(r.getPaths());\n\t\t// bonus points if we don't crash\n\t\tint noCrashFactor = 250;\n\t\tint globalCollisionCrashFactor = r.getNextGlobalCollision() == null ? 200 : 0;\n\t\tif(r.getNextCollision() != null) { \n\t\t\tnoCrashFactor = 0;\n\t\t}\n\t\t\n\t\treturn adjustedSteps + noCrashFactor + globalCollisionCrashFactor; \n\t}", "private double calcErrForNeighbour(GNode node) {\n return 0.0;\n }", "public int generateScore(List<Integer> line){\r\n\t\tif (line.get(0)+line.get(1)+line.get(2)==2 ) {\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\telse if (line.get(0)==line.get(1)&&line.get(1)==line.get(2) && line.get(0)==line.get(2)) {\r\n\t\t\treturn 5;\r\n\t\t}\r\n\t\telse if (line.get(0)!=line.get(1)&&line.get(0)!=line.get(2)) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\t\r\n\t\r\n\t}", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public int selectForwardLine() {\n int bestLine = 0;\n for (int i = 0; i < forwardLines.length; i++) {\n double averageStamina = getForwardAverageStamina(i);\n System.out.println(forwardLines[i][1] + \" avg line Stamina (Line:\" + (i+1) + \") :\" + averageStamina);\n if (averageStamina > getForwardAverageStamina(bestLine)) {\n bestLine = i;\n }\n }\n return bestLine;\n }", "public int calculateH(Node destination){\n\t\tint tempH;\n\t\tint xDistance = Math.abs(x-destination.getX());\n\t\tint yDistance = Math.abs(y-destination.getY());\n\t\tif(xDistance>yDistance){\n\t\t\ttempH=14*yDistance + 10*(xDistance-yDistance);\n\t\t}\n\t\telse\n\t\t\ttempH=14*xDistance + 10*(yDistance - xDistance);\n\t\treturn tempH;\n\t}", "protected void processLine(String aLine){\n\t\t \t\t String temp=aLine.substring(0, 7);\n\t\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t\t \t\t int ID=Integer.parseInt(temp);\n\t \t\t String name=aLine.substring(7, 12);\n\t \t\t //int forget=;//epoch\n\t \t\t temp=aLine.substring(31, 42);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t double a=Double.parseDouble(temp);//TODO determine what the scale of simulation should be\n\t \t\t temp=aLine.substring(42, 53);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t double e=Double.parseDouble(temp);\n\t \t\t \n\t \t\t asteriod newBody=new asteriod(a,e);//TODO find asteriodal angular shit\n\t \t\t \n\t \t\t double temp2;\n\t \t\t //54 to 63 for inclination\n\t \t\t temp=aLine.substring(54,63);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t temp2=Double.parseDouble(temp);\n\t \t\t newBody.Inclination=Math.toRadians(temp2);\n\t \t\t //64 for argument of periapsis\n\t \t\t temp=aLine.substring(63, 74);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t temp2=Double.parseDouble(temp);\n\t \t\t newBody.ArgPeriapsis=Math.toRadians(temp2);\n\t \t\t //Longitude of ascending node\n\t \t\t temp=aLine.substring(73, 84);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t temp2=Double.parseDouble(temp);\n\t \t\t newBody.LongAscenNode=Math.toRadians(temp2);\n\t \t\t //Mean Anommally/PHI\n\t \t\t temp=aLine.substring(83,96);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t temp2=Double.parseDouble(temp);\n\t \t\t temp2=Math.toRadians(temp2);\n\t \t\t newBody.meanAnomaly0=temp2;\n\t \t\t \n\t \t\t temp=aLine.substring(95,100);\n\t \t\t temp=temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t \t\t temp2=Double.parseDouble(temp);\n\t \t\t newBody.H=temp2;\n\t \t\t \n\t \t\t newBody.ID=ID;\n\t \t\t newBody.name=name;\n\t \t\t newBody.setType();\n\t \t\t runnerMain.bodies.add(newBody);\n\t \t\t System.out.println(\"e:\"+newBody.eccentricity+\" ID:\"+ID+\" name: \"+name+\" LongAsnNd: \"+newBody.LongAscenNode+\" Peri: \"+newBody.ArgPeriapsis+\" MeanAn0: \"+newBody.meanAnomaly0);\n\t\t }", "private List< PlotData > valueOfDesireAlongLine( final Line line, final int which_one_my_master )\n\t{\n\t\tfinal Img< UnsignedShortType > img = ImagePlusAdapter.wrap( imgPlus );\n\t\tfinal Cursor< UnsignedShortType > cursor = img.cursor();\n\n\t\t// get 'line' as vector based at 0\n\t\tfinal double vec_x = line.x2 - line.x1;\n\t\tfinal double vec_y = line.y2 - line.y1;\n\t\t// direction of 'line' as normalized vecter at 0\n\t\tfinal Vector2D vec_line_direction = new Vector2D( vec_x, vec_y );\n\n\t\tfinal int frames = imgPlus.getDimensions()[ 4 ]; // 4 happens to be the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// time-dimension...\n\t\tfinal List< PlotData > summed_intensities = new ArrayList< PlotData >();\n\t\tfinal List< PlotData > volume = new ArrayList< PlotData >();\n\t\tfinal List< PlotData > concentrations = new ArrayList< PlotData >();\n\n\t\tfor ( int i = 0; i < frames; i++ )\n\t\t{\n\t\t\tsummed_intensities.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t\tvolume.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t\tconcentrations.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t}\n\n\t\tdouble pixel_value;\n\t\tfinal double voxel_depth = this.imgPlus.getCalibration().getZ( 1.0 );\n\t\twhile ( cursor.hasNext() )\n\t\t{\n\t\t\tpixel_value = 0.0;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpixel_value = cursor.next().get();\n\t\t\t}\n\t\t\tcatch ( final ClassCastException e )\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tIJ.error( \"ClassCastException\", \"Please make source image 16bit!\" );\n\t\t\t}\n\t\t\tfinal double xpos = cursor.getIntPosition( 0 ) - line.x1;\n\t\t\tfinal double ypos = cursor.getIntPosition( 1 ) - line.y1;\n\t\t\t// final int zpos = cursor.getIntPosition( 2 );\n\t\t\tfinal int tpos = cursor.getIntPosition( 3 );\n\n\t\t\t// vector to current pixel\n\t\t\tfinal Vector2D vec_pos = new Vector2D( xpos, ypos );\n\n\t\t\t// compute projection onto line-ROI\n\t\t\tfinal Vector2D lineProjection = vec_line_direction.project( vec_pos );\n\t\t\tfinal double fractional_slice_num = lineProjection.getLength();\n\t\t\t// don't do anything in case voxel is below or above line\n\t\t\tif ( lineProjection.dot( vec_line_direction ) < 0 || fractional_slice_num > vec_line_direction.getLength() )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// add the shit\n\t\t\tif ( pixel_value > 0.0 )\n\t\t\t{\n\t\t\t\tsummed_intensities.get( tpos ).addValueToXValue( fractional_slice_num, pixel_value );\n\t\t\t\tvolume.get( tpos ).addValueToXValue( fractional_slice_num, voxel_depth );\n\t\t\t}\n\t\t}\n\n\t\t// compute concentrations (iterate over summed intensities and divide by\n\t\t// volume)\n\t\tfor ( int t = 0; t < summed_intensities.size(); t++ )\n\t\t{\n\t\t\tfor ( int i = 0; i < summed_intensities.get( t ).getXData().length; i++ )\n\t\t\t{\n\t\t\t\tdouble concentration = summed_intensities.get( t ).getYData()[ i ] / volume.get( t ).getYData()[ i ];\n\t\t\t\tif ( Double.isNaN( concentration ) )\n\t\t\t\t\tconcentration = 0.0;\n\t\t\t\tconcentrations.get( t ).addValueToXValue( summed_intensities.get( t ).getXData()[ i ], concentration );\n\t\t\t}\n\t\t}\n\n\t\tif ( which_one_my_master == WISH_CONCENTRATION )\n\t\t{\n\t\t\treturn concentrations;\n\t\t}\n\t\telse if ( which_one_my_master == WISH_SUM_INTENSITIES )\n\t\t{\n\t\t\treturn summed_intensities;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn volume;\n\t\t}\n\t}", "protected double eval(S state, P player) {\n if (game.isTerminal(state)) {\n return game.getUtility(state, player);\n } else {\n heuristicEvaluationUsed = true;\n return (utilMin + utilMax) / 2;\n }\n }", "private static int getHeuristic(MazeState current, HashSet<MazeState> goals) {\n\t\tint lowestCost = Integer.MAX_VALUE;\n\t\tint currentCost = 0;\n\t\tfor (MazeState goal : goals) {\n\t\t\tcurrentCost = Math.abs(current.col - goal.col) + Math.abs(current.row - goal.row);\n\t\t\tif (currentCost <= lowestCost) {\n\t\t\t\tlowestCost = currentCost;\n\t\t\t}\n\t\t}\n\t\treturn currentCost;\n\t}", "private Point getF(Point x) throws OptimizerException, Exception\n {\n Point r = opt.getF(x);\n r.setComment(\"Linesearch.\");\n opt.report(r, Optimizer.SUBITERATION);\n return r;\n }", "@Override\r\n\tpublic int compareTo(Node other) {\r\n\t\tfloat f = cost + heuristic;\r\n\t\tfloat otherF = other.cost + other.heuristic;\r\n\t\tif(f < otherF) return -1;\r\n\t\telse if(f > otherF) return 1;\r\n\t\telse return 0;\r\n\t}", "public double get_additional_line_cost() {\n\t\treturn additionallinecost;\n\t}", "private void evaluateNode(final Node expansionCandidate) {\n\t\tif (this.extraDebug)\n\t\t\tSystem.out.print(\" { \");\n\t\tTile tile = expansionCandidate.getTile();\n\t\tNodeValue nodeValue = expansionCandidate.getValue();\n\n\t\tfloat risk = 0;\n\t\tfloat pathCost = 0;\n\t\tfloat distanceCost = 0;\n\n\t\tif (this.goal.useRisk) {\n\t\t\tif (tile.getTileType() == TileType.UNKNOWN) {\n\t\t\t\tfor (TileType type : tile.getPossibleTypes()) {\n\t\t\t\t\tif (type == TileType.WALL) {\n\t\t\t\t\t\tif (this.extraDebug)\n\t\t\t\t\t\t\tSystem.out.print(\"posWall+\" + this.searchValues.getWall());\n\t\t\t\t\t\trisk += this.searchValues.getWall();\n\t\t\t\t\t} else if (type == TileType.PIT) {\n\t\t\t\t\t\tif (this.extraDebug)\n\t\t\t\t\t\t\tSystem.out.print(\" posPit+\" + this.searchValues.getPit());\n\t\t\t\t\t\trisk += this.searchValues.getPit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (tile.getWumpusIds() != null && !tile.getWumpusIds().isEmpty()) {\n\t\t\t\tfloat wumpusRisk = 0;\n\t\t\t\tfor (int id : tile.getWumpusIds()) {\n\t\t\t\t\tSystem.out.println(\" id: \" + id + \" has distance: \" + tile.getWumpusDistance(id) + \" \");\n\t\t\t\t\tif (tile.getWumpusDistance(id) != 0) {\n\t\t\t\t\t\tif (this.extraDebug)\n\t\t\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t\t\t\" wumpi+\" + this.searchValues.getWumpusDistanceFac() / tile.getWumpusDistance(id));\n\n\t\t\t\t\t\tif (tile.getWumpusDistance(id) > wumpusRisk) {\n\t\t\t\t\t\t\twumpusRisk = tile.getWumpusDistance(id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trisk += this.searchValues.getWumpusDistanceFac() / wumpusRisk;\n\t\t\t}\n\t\t\tif (this.state.getHistoryStench(tile.getPosVector()) != 0) {\n\t\t\t\tif (this.extraDebug)\n\t\t\t\t\tSystem.out.print(\" historyWumpi+\" + this.searchValues.getWumpusDistanceFac()\n\t\t\t\t\t\t\t/ this.state.getHistoryStench(tile.getPosVector()));\n\t\t\t\trisk += this.searchValues.getWumpusDistanceFac() / this.state.getHistoryStench(tile.getPosVector()) / 2;\n\t\t\t}\n\t\t}\n\n\t\tif (this.goal.usePathCost) {\n\t\t\tpathCost = nodeValue.getPathCost() + expansionCandidate.getParentNode().getValue().getPathCost() + 1;\n\t\t}\n\n\t\tif (this.goal.useDistanceCost) {\n\t\t\tVector2 goalLoc = ((GoalLocation) this.goal).getLocation(); // TODO: Dont like this cast here\n\t\t\tdistanceCost = Math.abs(goalLoc.getX() - expansionCandidate.getTile().getPosX())\n\t\t\t\t\t+ Math.abs(goalLoc.getY() - expansionCandidate.getTile().getPosY());\n\n\t\t\tif (tile.getTileType() == TileType.UNKNOWN) {\n\t\t\t\tpathCost += this.searchValues.getUnknown();\n\t\t\t}\n\t\t}\n\n\t\tnodeValue.setRisk(risk);\n\t\tnodeValue.setPathCost(pathCost);\n\t\tnodeValue.setDistanceCost(distanceCost);\n\t\tif (this.extraDebug)\n\t\t\tSystem.out.println(\" } \");\n\t}", "int getLineHeight() {\n\treturn ascent + descent;\n}", "public double computeHeuristicGrade();", "private static double weightedNodeHeightHelper(PhyloTreeNode node) {\n if(node == null) {\n return 0;\n }\n else{\n return Math.max(node.getDistanceToChild() + weightedNodeHeightHelper(node.getLeftChild()),\n node.getDistanceToChild() + weightedNodeHeightHelper(node.getRightChild()));\n }\n }", "private int heuristic(Node node, int currentDepth) {\n\n int ef, w1 = 1, w2 = 1, w3 = 0, w4 = 10, w5 = 1, w6 = 35, e1 = 0, e2 = 0, e3 = 0, e4 = 0, e5 = 0, e6 = 0;\n\n int ourSeedsInStore = node.getBoard().getSeedsInStore(ourSide);\n int oppSeedsInStore = node.getBoard().getSeedsInStore(ourSide.opposite());\n\n\n // hardcode fix.\n int parentOurSeedsInStore = 0;\n int parentOppSeedsInStore = 0;\n int parentMove = 0;\n int parentOurSeedsInHouse = 0;\n int parentOppSeedsInHouse = 0;\n\n if (currentDepth != 1) {\n parentOurSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide);\n parentOppSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide.opposite());\n parentMove = node.getName();\n parentOurSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide, parentMove);\n parentOppSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), parentMove);\n }\n\n int ourFreeHouse = 0;\n int oppFreeHouse = 0;\n int ourSeeds = ourSeedsInStore;\n int oppSeeds = oppSeedsInStore;\n\n int asdf1 = ourSeedsInStore - parentOurSeedsInStore;\n int asdf2 = oppSeedsInStore - parentOppSeedsInStore;\n\n e6 = asdf1 - asdf2;\n\n for (int i = 1; i <= 7; i++) {\n ourSeeds += node.getBoard().getSeeds(ourSide, i);\n oppSeeds += node.getBoard().getSeeds(ourSide.opposite(), i);\n }\n\n for (int i = 1; i <= 7; i++) {\n if (node.getBoard().getSeeds(ourSide, i) == 0)\n ourFreeHouse++;\n if (node.getBoard().getSeeds(ourSide.opposite(), i) == 0)\n oppFreeHouse++;\n }\n\n e1 = ourSeeds - oppSeeds;\n e2 = ourFreeHouse - oppFreeHouse;\n\n // hardcode fix.\n if (currentDepth != 1) {\n if (node.getParent().getPlayerSide() == this.getOurSide()) {\n // if last move puts seed into store\n if ((parentMove + parentOurSeedsInHouse) % 8 == 0) {\n e4 = 1;\n e3 = (parentMove + parentOurSeedsInHouse) / 8;\n } else if (parentMove + parentOurSeedsInStore > 8) {\n e4 = 0;\n e3 = (parentMove + parentOurSeedsInStore) / 8;\n }\n\n for (int i = 1; i <= 7; i++) {\n int parentOurSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide, i);\n int parentOppSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), 8 - i);\n int oppSeedsInFrontHouse = node.getBoard().getSeeds(ourSide.opposite(), 8 - i);\n // if there's no seed in current house && there is seed right in front of us\n if ((parentOurSeedsInCurrentHouse == 0 || parentOurSeedsInCurrentHouse == 15) && parentOppSeedsInFrontHouse != 0 && oppSeedsInFrontHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n }\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n\n }\n } else if (node.getParent().getPlayerSide() == this.getOurSide().opposite()) {\n\n if (parentMove + parentOppSeedsInHouse == 8) {\n e4 = -1;\n e3 = -1 * (parentMove + parentOppSeedsInHouse) / 8;\n } else if (parentMove + parentOppSeedsInStore > 8) {\n e4 = 0;\n e3 = -(parentMove + parentOppSeedsInStore) / 8;\n }\n\n\n for (int i = 1; i <= 7; i++) {\n int parentOppSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), i);\n int parentOurSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide, 8 - i);\n int oppSeedsInCurrentHouse = node.getBoard().getSeeds(ourSide, 8 - i);\n\n if ((parentOppSeedsInCurrentHouse == 0 || parentOppSeedsInCurrentHouse == 15) && parentOurSeedsInFrontHouse != 0 && oppSeedsInCurrentHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n }\n }\n ef = w1 * e1 + w2 * e2 + w3 * e3 + w4 * e4 + w5 * e5 + w6 * e6;\n return ef;\n }", "int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }", "public void updateSingleNode(Node n) {\r\n\t\t//update val\r\n\t\tn.val = n.left.getVal() + n.p + n.right.getVal();\r\n\r\n\t\t//update eval and emax\r\n\t\tint case1 = n.left.getMaxVal();\r\n\t\tint case2 = n.left.getVal() + n.p;\r\n\t\tint case3 = n.left.getVal() + n.p + n.right.getMaxVal();\r\n\t\tif( case1 >= case2 && case1 >= case3 ) {\r\n\t\t\t//case 1\r\n\t\t\tn.maxval = case1;\r\n\t\t\t//if the left node is the nilNode, make emax this node\r\n\t\t\tif( n.left.isNil ) {\r\n\t\t\t\tn.emax = n.getEndpoint();\r\n\t\t\t} else {\r\n\t\t\t\t//otherwise get emax of left\r\n\t\t\t\tn.emax = n.left.getEmax();\r\n\t\t\t}\r\n\t\t} else if( case2 >= case1 && case2 >= case3 ) {\r\n\t\t\t//case 2\r\n\t\t\tn.maxval = case2;\r\n\t\t\tn.emax = n.getEndpoint();\r\n\t\t} else if( case3 >= case1 && case3 >= case2 ) {\r\n\t\t\t//case 3\r\n\t\t\tn.maxval = case3;\r\n\t\t\t//if the left node is the nilNode, make emax this node\r\n\t\t\tif( n.right.isNil ) {\r\n\t\t\t\tn.emax = n.getEndpoint();\r\n\t\t\t} else {\r\n\t\t\t\t//otherwise get emax of right\r\n\t\t\t\tn.emax = n.right.getEmax();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract Integer gethourNeed();", "protected abstract int weightedValue(int charValue, int leftPos, int rightPos) throws Exception;", "private void calculateNewIntensity(BSTNode node) {\r\n \r\n // if the node is NOT null, execute if statement\r\n if (node != null) {\r\n \r\n // call method on left node\r\n calculateNewIntensity(node.getLeft());\r\n \r\n // visit the node (calculate and assign new intensity value)\r\n node.newIntensity(node);\r\n \r\n // call method on right node\r\n calculateNewIntensity(node.getRight());\r\n }\r\n }", "private Point backtrack(Point p){\n\t\t// coordinates of the point\n\t\tint x = (int)p.getX();\n\t\tint y = (int)p.getY();\n\t\t// neigh hold the return value\n\t\tPoint neigh= p;\n\t\t// the lowest score\n\t\tint score=10000;\n\t\t// look at all the neighbor and compare them\n\t\tif(x>0\t && topology[x-1][y]>=0){\n\t\t\tscore = topology[x-1][y];\n\t\t\tneigh = new Point(x-1,y);\n\t\t}\n\t\tif(x<row-1 && topology[x+1][y]>=0 && score > topology[x+1][y]) {\n\t\t\tscore = topology[x+1][y];\n\t\t\tneigh = new Point(x+1,y);\n\t\t}\n\t\tif(y<col-1 && topology[x][y+1]>=0 && score > topology[x][y+1]) {\n\t\t\tscore = topology[x][y+1];\n\t\t\tneigh = new Point(x,y+1);\n\t\t}\n\t\tif(y>0 && topology[x][y-1]>=0 && score > topology[x][y-1]) {\n\t\t\tscore = topology[x][y-1];\n\t\t\tneigh = new Point(x,y-1);\n\t\t}\n\t\treturn neigh;\n\t}", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}", "private static int getOptimalValue(int depth, int nodeIndex, boolean isMax,\n int[] scores, int h) {\n if (depth == h) \n return scores[nodeIndex];\n \n if (isMax) {\n return Math.max(getOptimalValue(depth+1, nodeIndex*2, false, scores, h), \n getOptimalValue(depth+1, nodeIndex * 2 + 1, false, scores, h));\n } else {\n return Math.min(getOptimalValue(depth+1, nodeIndex*2, true, scores, h), \n getOptimalValue(depth+1, nodeIndex * 2 + 1, true, scores, h));\n }\n }", "public double h_function(Node node, Node targetNode, boolean isTime){\n double h = node.location.distance(targetNode.location);\n if(isTime) h = h/110;\n return h;\n // distance between two Nodes\n }", "public abstract int getNodeDegree(N value);", "@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int runCount = context.getConfiguration().getInt(\"runCount\", 1);\n\n String page = key.toString();\n\n Node node = null;\n if (runCount == 1) {\n node = Node.formatNode(\"1.0\" , value.toString());\n } else {\n node = Node.formatNode(value.toString());\n }\n context.write(new Text(page), new Text(node.toString()));\n if(node.constainsAdjances()){\n double outValue = node.getPageRank() / node.getAdjacentNodeNames().length;\n\n for (String adjacentNodeName : node.getAdjacentNodeNames()) {\n// System.out.println(\"--------------------\"+ adjacentNodeName +\"------\" +outValue);\n\n context.write(new Text(adjacentNodeName),new Text(outValue + \"\"));\n }\n }\n }", "int getGoalConfigLevelValue();", "protected void scoreActivePath () \n {\n String callerID = \"jActiveModules\";\n ActivePathsFinder apf = new ActivePathsFinder(generateExpressionMap(),attrNames,cyNetwork,apfParams,mainFrame);\n\n long start = System.currentTimeMillis ();\n Vector result = new Vector();\n Iterator it = cyNetwork.getFlaggedNodes().iterator();\n while(it.hasNext()){\n result.add(it.next());\n }\n\t\n double score = apf.scoreList(result);\n long duration = System.currentTimeMillis () - start;\n System.out.println (\"-------------- back from score: \" + duration + \" msecs\");\n System.out.println (\"-------------- score: \" + score + \" \\n\");\n JOptionPane.showMessageDialog (mainFrame, \"Score: \" + score);\n }", "private int heuristic(int x, int y, MapLocation goal) {\n return Math.max(Math.abs(x - goal.x), Math.abs(y - goal.y));\n }", "public Node getGoal(){\n return goal;\n }", "private T bestValue(MatchTreeNode<T> node) {\n T value = null;\n if (node != null) {\n if (node.child(\"/\") != null) {\n value = node.child(\"/\").value();\n } else {\n value = bestValue(node.parent());\n }\n }\n return value;\n }", "public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }", "public int calculateNodeHeigth(Node startNode) {\n\t\tif (startNode == mSentinel) {\n\t\t\treturn 0;\n\t\t\t// if the start node is empty return 0\n\t\t} else {\n\t\t\treturn 1 + Math.max(calculateNodeHeigth(startNode.getLeftChild()),\n\t\t\t\t\tcalculateNodeHeigth(startNode.getrightChild()));\n\t\t\t// otherwise recursively call the same function on the right and\n\t\t\t// left child of the node(until u meet the recursion's end - empty\n\t\t\t// node/0 and get the higher result)\n\t\t}\n\t}", "public double calculateVal(DraughtsState s, int depth) {\n int[] pieces = s.getPieces(); \n \n \n // This is where the actual heuristic is calculated. because the situation is slightly different for the white and black\n // player their heuristic is calculated seperately.\n double h = 0;\n int enemypieces = 0;\n for (int i = 1; i < pieces.length; i++) {\n int piece = pieces[i];\n \n // If we are white, substract 1, giving the white piece of the same category.\n if (piece == BLACKPIECE + ((isWhite) ? -1 : 0) || piece == BLACKKING + ((isWhite) ? -1 : 0)) {\n enemypieces++;\n }\n \n //for the kings it is not checked whether they are on the sides of the board or not since they have more movement freedom\n //and their is no real benifit for them to be at the sides.\n h += SQ_LEFT(i) * SQ_RIGHT(i) * ((piece == WHITEPIECE) ? 1.5 : 0) - SQ_LEFT(i) * SQ_RIGHT(i) * ((piece == BLACKPIECE) ? 1 : 0) + \n ((piece == WHITEKING) ? 4 : 0) - ((piece == BLACKKING) ? 5 : 0) + 0.3 * is_square(i, pieces);\n \n }\n \n // Victory rush\n if(enemypieces < 4) {\n h += 1;\n }\n\n \n if (isWhite) {\n return h;\n } else\n \n return -h;\n }", "public double heuristic(Bitboard board) {\n double h = 0;\n\n // mobility\n int p1Mobility = 0;\n int p2Mobility = 0;\n // strength of piece positions\n double p1Position = 0;\n double p2Position = 0;\n // number of pieces\n int p1Pieces = 0;\n int p2Pieces = 0;\n // number of connected components\n int p1CC = 0;\n int p2CC = 0;\n // number of isolated circle pieces\n int p1Isolated = 0;\n int p2Isolated = 0;\n\n double weight;\n\n visited = 0;\n // check p1's pieces\n int posMasks = board.getPieces(0);\n int posMask;\n while (posMasks != 0) {\n posMask = posMasks & ~(posMasks - 1);\n posMasks ^= posMask;\n if ((visited & posMask) == 0) {\n if (exploreCC(board, posMask, 0) == 1)\n if (!board.isSquare(posMask))\n p1Isolated++;\n p1CC++;\n }\n weight = board.isSquare(posMask) ? weights[0] : weights[1];\n if (!boardValues.containsKey(posMask)) {\n System.out.println(\"I don't have \" + (int) (Math.log(posMask) / Math.log(2)));\n board.show();\n }\n p1Position += weight * boardValues.get(posMask);\n p1Pieces++;\n }\n // check p2's pieces\n visited = 0;\n posMasks = board.getPieces(1);\n while (posMasks != 0) {\n posMask = posMasks & ~(posMasks - 1);\n posMasks ^= posMask;\n if ((visited & posMask) == 0) {\n if (exploreCC(board, posMask, 1) == 1)\n if (!board.isSquare(posMask))\n p2Isolated++;\n p2CC++;\n }\n weight = board.isSquare(posMask) ? weights[0] : weights[1];\n p2Position += weight * boardValues.get(posMask);\n p2Pieces++;\n }\n\n // perform connected component analysis on empty spaces\n posToAdjCCID.clear();\n ccIDToOwner.clear();\n ownerToCCs.clear();\n int toCheck = (BitMasks.valid & (~board.getPieces()));\n int check;\n int ccId = 0;\n while (toCheck != 0) {\n check = toCheck & ~(toCheck - 1);\n toCheck ^= SearchUtils.checkSpaces(board, check, ccId++, posToAdjCCID, ccIDToOwner,\n ownerToCCs);\n }\n\n // check how close each player's circles are to an \"owned\" connected component\n int circles, circleMask, searchDistance;\n boolean adjacent;\n for (int turn = 0; turn < 2; turn++) {\n circles = board.getCircles(turn);\n while (circles != 0) {\n adjacent = false;\n circleMask = circles & ~(circles - 1);\n circles ^= circleMask;\n if (posToAdjCCID.containsKey(circleMask)) {\n for (int id : posToAdjCCID.get(circleMask)) {\n if (ccIDToOwner.get(id) == turn) {\n adjacent = true;\n break;\n }\n }\n }\n if (!adjacent) {\n searchDistance = search(board, circleMask, turn);\n if (turn == 0 && searchDistance > GameUtils.NUM_SLIDES) {\n h += -weights[6] * searchDistance;\n } else if (turn == 1 && searchDistance > GameUtils.NUM_SLIDES) {\n h += weights[6] * searchDistance;\n }\n }\n }\n }\n\n // a player missing a piece is the ultimate bad position\n if (p1Pieces != 5) {\n return -10000.0;\n }\n if (p2Pieces != 5) {\n return 10000.0;\n }\n // weight the components of the heuristic\n h += weights[2] * p1Mobility;\n h += -weights[2] * p2Mobility;\n h += weights[3] * p1Position;\n h += -weights[3] * p2Position;\n\n // make it so only > 1 connected components impacts heuristic\n h += -weights[4] * (p1CC - 1);\n h += weights[4] * (p2CC - 1);\n\n h += -weights[5] * p1Isolated;\n h += weights[5] * p2Isolated;\n\n h /= 6200; // normalize\n return h;\n }", "private int getHeuristic(Player player) {\n int whitePieces = 0;\n int blackPieces = 0;\n\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n if (boardObject.getSlot(r, c).getColor() == Slot.WHITE) {\n whitePieces++;\n } else if (boardObject.getSlot(r, c).getColor() == Slot.BLACK) {\n blackPieces++;\n }\n }\n }\n\n if (player.equals(playerBlack)) {\n return blackPieces - whitePieces;\n } else {\n return whitePieces - blackPieces;\n }\n }", "public int cost(Edge e) {\n\t\tif(mcg!=null)\n\t\t{\n\t\t\treturn mcg.cost(e);\n\t\t}\n\t\treturn 0;\n\t}", "private double getCurbHeight(ReaderWay way) {\n\t\tdouble res = 0d;\n\t\tString str = null;\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#overview: 90% nodes, 10% ways\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#values\n\t\tif (way.hasTag(\"sloped_curb\")) {\n\t\t\tstr = way.getTag(\"sloped_curb\").toLowerCase();\n\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\tstr = str.replace(\"both\", \"0.03\");\n\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\tstr = str.replace(\"one\", \"0.15\");\n\t\t\tstr = str.replace(\"at_grade\", \"0.0\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"low\", \"0.03\");\n\t\t}\n\t\telse if (way.hasTag(\"kerb\")) {\n\t\t\tif (way.hasTag(\"kerb:height\")) {\n\t\t\t\tstr = way.getTag(\"kerb:height\").toLowerCase();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstr = way.getTag(\"kerb\").toLowerCase();\n\t\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\t\tstr = str.replace(\"raised\", \"0.15\");\n\t\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\t\tstr = str.replace(\"unknown\", \"0.03\");\n\t\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\t\tstr = str.replace(\"dropped\", \"0.03\");\n\t\t\t\tstr = str.replace(\"rolled\", \"0.03\");\n\t\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\t}\n\t\t}\n \n\t\t// http://taginfo.openstreetmap.org/keys/curb#overview: 70% nodes, 30% ways\n\t\t// http://taginfo.openstreetmap.org/keys/curb#values\n\t\telse if (way.hasTag(\"curb\")) {\n\t\t\tstr = way.getTag(\"curb\").toLowerCase();\n\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\tstr = str.replace(\"regular\", \"0.15\");\n\t\t\tstr = str.replace(\"flush;lowered\", \"0.0\");\n\t\t\tstr = str.replace(\"sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"lowered_and_sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\tstr = str.replace(\"flush_and_lowered\", \"0.0\");\n\t\t}\n\n\t\tif (str != null) {\n\t\t\tboolean isCm = false;\n\t\t\ttry {\n\t\t\t\tif (str.contains(\"c\")) {\n\t\t\t\t\tisCm = true;\n\t\t\t\t}\n\t\t\t\tres = Double.parseDouble(str.replace(\"%\", \"\").replace(\",\", \".\").replace(\"m\", \"\").replace(\"c\", \"\"));\n\t\t\t\tif (isCm) {\n\t\t\t\t\tres /= 100d;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\t//\tlogger.warning(\"Error parsing value for Tag kerb from this String: \" + stringValue + \". Exception:\" + ex.getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// check if the value makes sense (i.e. maximum 0.3m/30cm)\n\t\tif (-0.15 < res && res < 0.15) {\n\t\t\tres = Math.abs(res);\n\t\t}\n\t\telse {\n\t\t\t// doubleValue = Double.NaN;\n\t\t\tres = 0.15;\n\t\t}\n\t\t\n\t\treturn res;\n\t}" ]
[ "0.73416007", "0.66546714", "0.6412433", "0.6222556", "0.6121988", "0.6109851", "0.6069212", "0.6045279", "0.5979808", "0.5905445", "0.59005237", "0.587288", "0.58688414", "0.5844952", "0.58288157", "0.57947564", "0.5793688", "0.5779455", "0.57741666", "0.57734084", "0.57707894", "0.5765338", "0.5765338", "0.5745119", "0.5736942", "0.5715041", "0.569973", "0.56923866", "0.569118", "0.5685928", "0.56765544", "0.5664397", "0.5653708", "0.5568411", "0.5567732", "0.5539265", "0.55184007", "0.55069673", "0.5498191", "0.54788226", "0.5447326", "0.5407617", "0.5403992", "0.53949386", "0.53588915", "0.53450024", "0.53240937", "0.5314336", "0.53025895", "0.52990687", "0.52843344", "0.5283975", "0.5278501", "0.5271888", "0.5266743", "0.5265672", "0.5254959", "0.5249615", "0.52473474", "0.52442765", "0.52436066", "0.5242286", "0.5222355", "0.5219943", "0.5219733", "0.5219149", "0.5198918", "0.5190395", "0.5183539", "0.5177579", "0.5168947", "0.5168068", "0.51566577", "0.5144761", "0.51428413", "0.51389086", "0.5135193", "0.51263964", "0.5125768", "0.5117857", "0.511498", "0.51134896", "0.51125604", "0.51072717", "0.51039624", "0.5102193", "0.5093698", "0.5089949", "0.5081848", "0.5081076", "0.50793594", "0.5073259", "0.50674903", "0.5065005", "0.5063887", "0.50617933", "0.5058216", "0.5054684", "0.5041202", "0.5037028", "0.50364304" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_doctors_list, 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 getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@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\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\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}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\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\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\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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@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 boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_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\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\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.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\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 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\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\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\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.7249256", "0.72037125", "0.7197713", "0.7180111", "0.71107703", "0.70437056", "0.70412415", "0.7014533", "0.7011124", "0.6983377", "0.69496083", "0.69436663", "0.69371194", "0.69207716", "0.69207716", "0.6893342", "0.6886841", "0.6879545", "0.6877086", "0.68662405", "0.68662405", "0.68662405", "0.68662405", "0.68546635", "0.6850904", "0.68238425", "0.6820094", "0.6817109", "0.6817109", "0.6816499", "0.6809805", "0.68039787", "0.6801761", "0.6795609", "0.6792361", "0.67904586", "0.67863315", "0.67613983", "0.67612505", "0.67518395", "0.6747958", "0.6747958", "0.67444956", "0.674315", "0.672999", "0.67269987", "0.67268807", "0.67268807", "0.67242754", "0.67145765", "0.6708541", "0.6707851", "0.6702594", "0.6702059", "0.6700578", "0.6698895", "0.66905326", "0.6687487", "0.6687487", "0.66857284", "0.66845626", "0.6683136", "0.66816247", "0.66716284", "0.66714823", "0.66655463", "0.6659545", "0.6659545", "0.6659545", "0.6658646", "0.6658646", "0.6658646", "0.6658615", "0.6656098", "0.665457", "0.6653698", "0.66525924", "0.6651066", "0.66510355", "0.6649152", "0.6648921", "0.6648275", "0.6647936", "0.66473657", "0.66471183", "0.6644802", "0.66427094", "0.66391647", "0.66359305", "0.6635502", "0.6635502", "0.6635502", "0.66354305", "0.66325855", "0.66324854", "0.6630521", "0.66282266", "0.66281354", "0.66235965", "0.662218", "0.66216594" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79036397", "0.78051436", "0.77656627", "0.7726445", "0.7630767", "0.76211494", "0.75842685", "0.75296193", "0.74868536", "0.74574566", "0.74574566", "0.7437983", "0.7422003", "0.7402867", "0.7391276", "0.73864174", "0.7378494", "0.73696834", "0.736246", "0.7355139", "0.73449135", "0.7340738", "0.7329403", "0.7327573", "0.7325295", "0.7318255", "0.73159224", "0.7312879", "0.73033696", "0.73033696", "0.73008657", "0.7297531", "0.72929823", "0.7285663", "0.7282749", "0.72806233", "0.7277895", "0.72592133", "0.72592133", "0.72592133", "0.725875", "0.72585285", "0.7249446", "0.72242975", "0.72188604", "0.721602", "0.7203672", "0.720087", "0.71988416", "0.7192238", "0.7184499", "0.71768767", "0.71679133", "0.71665394", "0.7153183", "0.71526414", "0.71351266", "0.71341896", "0.71341896", "0.7128609", "0.7128064", "0.7123341", "0.7122453", "0.712232", "0.71210843", "0.7116595", "0.7116595", "0.7116595", "0.7116595", "0.7116421", "0.71161103", "0.71159387", "0.7114029", "0.71116006", "0.71088904", "0.71078885", "0.7104719", "0.70989364", "0.7097548", "0.7096198", "0.7092782", "0.7092782", "0.70853245", "0.7082456", "0.70802784", "0.70795983", "0.7073409", "0.70673656", "0.7060751", "0.70591253", "0.7058957", "0.7050524", "0.70371544", "0.70371544", "0.70350724", "0.70344317", "0.70344317", "0.7031844", "0.70303893", "0.70286727", "0.7017757" ]
0.0
-1
Getters, setters y constructores
public String prenda() { if(this.getColorSecundario()==null) return this.getTipo().tipo+" de "+this.getTela().toString() +" de color "+this.getColorPrimario().toString(); else return this.getTipo().tipo+" de "+this.getTela().toString() +" de color "+this.getColorPrimario()+" y "+this.getColorSecundario().toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Propuestas() {}", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public Caso_de_uso () {\n }", "public Alojamiento() {\r\n\t}", "public Carrera(){\n }", "Petunia() {\r\n\t\t}", "public Corso() {\n\n }", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "private DittaAutonoleggio(){\n \n }", "public CianetoClass() {\r\n this.cianetoMethods = new Hashtable<String, Object>();\r\n this.cianetoAttributes = new Hashtable<String, Object>();\r\n }", "public ValorVariavel() {\r\n }", "private ControleurAcceuil(){ }", "public Kullanici() {}", "public Pasien() {\r\n }", "private TMCourse() {\n\t}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Manusia() {}", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "public contrustor(){\r\n\t}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public Cohete() {\n\n\t}", "public void inicializar();", "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}", "public Exercicio(){\n \n }", "public prueba()\r\n {\r\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}", "public AntrianPasien() {\r\n\r\n }", "public Livro() {\n\n\t}", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public Curso() {\r\n }", "public Troco() {\n }", "private UsineJoueur() {}", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public Clade() {}", "private Parser() {\n objetos = new ListaEnlazada();\n }", "private BaseDatos() {\n }", "public VPacientes() {\n initComponents();\n inicializar();\n }", "Constructor() {\r\n\t\t \r\n\t }", "public SlanjePoruke() {\n }", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "Compuesta createCompuesta();", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Vehiculo() {\r\n }", "public Busca(){\n }", "protected Asignatura()\r\n\t{}", "public Propiedad(){\n\t}", "public MPaciente() {\r\n\t}", "public Aritmetica(){ }", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public Plato(){\n\t\t\n\t}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "private void __sep__Constructors__() {}", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "public Carrinho() {\n\t\tsuper();\n\t}", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "public Datos(){\n }", "public Libro() {\r\n }", "public Gasto() {\r\n\t}", "Objet getObjetAlloue();", "Compleja createCompleja();", "public Candidatura (){\n \n }", "public MorteSubita() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public FiltroMicrorregiao() {\r\n }", "public ControllerProtagonista() {\n\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public Corrida(){\n\n }", "public ObjetosBeans() {\n this.init();\n }", "public PessoaTest() {\n pessoa.setNome(\"Thiago\");\n pessoa.setSobrenome(\"Cury\"); \n pessoa.setIdade(36); \n }", "public TebakNusantara()\n {\n }", "public void init() {\n \n }", "public Veiculo() {\r\n\r\n }", "public Doc_estado() {\n }", "public void init(){\n \n }", "public Constructor(){\n\t\t\n\t}", "public Estado() {\r\n }", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public Coche() {\n super();\n }", "public Sistema(){\r\n\t\t\r\n\t}", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public Transportista() {\n }", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }", "private Get() {}", "private Get() {}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "@Override // opcional\n public void init(){\n\n }", "public Valvula(){}", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "private MApi() {}", "public Cgg_jur_anticipo(){}", "public Respuesta() {\n }", "public Estado() {\n }", "public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }", "public ControladorCoche() {\n\t}", "protected Approche() {\n }", "private QuadradoPerfeito() {\n }", "public Odontologo() {\n }", "public Ctacliente() {\n\t}" ]
[ "0.66497916", "0.6573632", "0.64457494", "0.64429647", "0.64211416", "0.6392464", "0.6383176", "0.63447887", "0.63296235", "0.632744", "0.63059384", "0.6303178", "0.6299057", "0.62667936", "0.6262182", "0.62477714", "0.62409115", "0.62395895", "0.62378937", "0.6237747", "0.6220586", "0.6220033", "0.6206287", "0.6199608", "0.61992204", "0.61981696", "0.6196081", "0.6191816", "0.6189389", "0.6185109", "0.6178443", "0.6171622", "0.6168426", "0.6161247", "0.61601436", "0.61552256", "0.61504877", "0.6145849", "0.61422074", "0.6134186", "0.6124781", "0.6120549", "0.61085725", "0.6107308", "0.61061406", "0.6104666", "0.6090963", "0.60884154", "0.60879207", "0.6082915", "0.60806376", "0.6078415", "0.6077012", "0.60630786", "0.60619915", "0.60596997", "0.60557735", "0.6053504", "0.605271", "0.6051259", "0.6029182", "0.6014742", "0.6008602", "0.60069585", "0.6006149", "0.5993751", "0.5990052", "0.5983973", "0.5983873", "0.59824026", "0.59803325", "0.59774506", "0.597741", "0.59771806", "0.59735066", "0.5973012", "0.59695596", "0.5967621", "0.596621", "0.596536", "0.5965245", "0.5965066", "0.5964674", "0.59547114", "0.59496063", "0.59478396", "0.59478396", "0.5944667", "0.5944595", "0.5942325", "0.5941518", "0.59411424", "0.5937399", "0.5936821", "0.593666", "0.5935729", "0.59343064", "0.5933042", "0.5932874", "0.5929325", "0.5928461" ]
0.0
-1
populated from javadoc custom tag Create a doclet of the appropriate type and generate the FreeMarker templates properties.
public static boolean start(final com.sun.javadoc.RootDoc rootDoc) throws IOException { return new GATKHelpDoclet().startProcessDocs(rootDoc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Documentation createDocumentation();", "Documentation createDocumentation();", "public void generarDoc(){\n generarDocP();\n }", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "DocumentationFactory getDocumentationFactory();", "DocBook createDocBook();", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "public abstract void setTemplDesc(String templDesc);", "public abstract String getTemplDesc();", "private void generarDocP(){\n generarPdf(this.getNombre());\n }", "private static Documentation generateDocumentation(Processor processor, IJavaProject project) {\r\n\r\n\t\tString processorclassname = processor.getClazz();\r\n\r\n\t\ttry {\r\n\t\t\tIType type = project.findType(processorclassname, new NullProgressMonitor());\r\n\t\t\tif (type != null) {\r\n\t\t\t\tReader reader = JavadocContentAccess.getHTMLContentReader(type, false, false);\r\n\t\t\t\tif (reader != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tStringBuilder javadoc = new StringBuilder();\r\n\t\t\t\t\t\tint nextchar = reader.read();\r\n\t\t\t\t\t\twhile (nextchar != -1) {\r\n\t\t\t\t\t\t\tjavadoc.append((char)nextchar);\r\n\t\t\t\t\t\t\tnextchar = reader.read();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tDocumentation documentation = new Documentation();\r\n\t\t\t\t\t\tdocumentation.setValue(javadoc.toString());\r\n\t\t\t\t\t\treturn documentation;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfinally {\r\n\t\t\t\t\t\treader.close();\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\tcatch (JavaModelException ex) {\r\n\t\t\tlogError(\"Unable to access \" + processorclassname + \" in the project\", ex);\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\tlogError(\"Unable to read javadocs from \" + processorclassname, ex);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public T caseDoclet(Doclet object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void javadoc(JDefinedClass cls) {\n\n\t}", "@Override\r\n\tprotected void generateToc() {\r\n\t}", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "public manageDoc() {\r\r\r\n\r\r\r\n }", "String getDocumentation();", "String getDocumentation();", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "public abstract ModuleDoc doc();", "public DynamicDriveToolTipTagFragmentGenerator() {}", "public void add(PhotonDoc doc);", "default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }", "@Override\n public String getServletInfo() {\n return \"Adds document\";\n }", "Documentable createDocumentable();", "public void saveBeforeJavadoc() { }", "public void saveBeforeJavadoc() { }", "List<DocumentationItem> documentation();", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public Doc() {\n\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "public void preDefine()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\theadblk = mgr.newASPBlock(\"HEAD\");\n\n\t\theadblk.disableDocMan();\n\n\t\theadblk.addField(\"OBJID\").\n setHidden();\n\n headblk.addField(\"OBJVERSION\").\n setHidden();\n \n headblk.addField(\"OBJSTATE\").\n setHidden();\n \n headblk.addField(\"OBJEVENTS\").\n setHidden();\n\n\t\theadblk.addField(\"LU_NAME\").\n\t\tsetMandatory().\n\t\tsetMaxLength(8).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"KEY_REF\").\n\t\tsetMandatory().\n\t\tsetMaxLength(600).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"VIEW_NAME\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"DOC_COUNT\").\n\t\tsetHidden();\n\n\t\theadblk.addField(\"SLUDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_LOGICAL_UNIT_DESCRIPTION(:LU_NAME)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESLUDESCRIPTION: Object\");\n\n\t\theadblk.addField(\"SINSTANCEDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_INSTANCE_DESCRIPTION(:LU_NAME,'',:KEY_REF)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESINSTANCEDESC: Object Key\");\n\n\t\theadblk.addField(\"DOC_OBJECT_DESC\").\n\t\tsetReadOnly().\n\t\tsetMaxLength(200).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCOBJECTDESC: Object Desc\");\n\n\t\theadblk.addField(\"STATE\").\n setReadOnly().\n setSize(10).\n setLabel(\"DOCMAWDOCREFERENCESTATE: State\");\n\t\t\n\t\theadblk.addField(\"INFO\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ATTRHEAD\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ACTION\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.setView(\"DOC_REFERENCE\");\n\t\theadblk.defineCommand(\"DOC_REFERENCE_API\",\"New__,Modify__,Remove__,Set_Lock__,Set_Unlock__\");\n\n\t\theadset = headblk.getASPRowSet();\n\n\t\theadbar = mgr.newASPCommandBar(headblk);\n\t\theadbar.disableCommand(headbar.FIND);\n\t\theadbar.disableCommand(headbar.DUPLICATEROW);\n\t\theadbar.disableCommand(headbar.NEWROW);\n\t\theadbar.disableCommand(headbar.EDITROW);\n\t\theadbar.disableCommand(headbar.DELETE);\n\t\theadbar.disableCommand(headbar.BACK);\n\n headbar.addSecureCustomCommand(\"SetLock\", \"DOCMAWDOCREFERENCESETLOCK: Lock\", \"DOC_REFERENCE_API.Set_Lock__\");\n headbar.addSecureCustomCommand(\"SetUnlock\", \"DOCMAWDOCREFERENCESETUNLOCK: Unlock\", \"DOC_REFERENCE_API.Set_Unlock__\");\n\n headbar.addCommandValidConditions(\"SetLock\", \"OBJSTATE\", \"Enable\", \"Unlocked\");\n headbar.addCommandValidConditions(\"SetUnlock\", \"OBJSTATE\", \"Enable\", \"Locked\");\n \n\t\theadtbl = mgr.newASPTable(headblk);\n\t\theadtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECONDOCU: Connected Documents\"));\n\n\n\t\theadlay = headblk.getASPBlockLayout();\n\t\theadlay.setDialogColumns(2);\n\t\theadlay.setDefaultLayoutMode(headlay.SINGLE_LAYOUT);\n\n\n\t\t//\n\t\t// Connected documents\n\t\t//\n\n\t\titemblk = mgr.newASPBlock(\"ITEM\");\n\n\t\titemblk.disableDocMan();\n\n\t\titemblk.addField(\"ITEM_OBJID\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJID\");\n\n\t\titemblk.addField(\"ITEM_OBJVERSION\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJVERSION\");\n\n\t\titemblk.addField(\"ITEM_LU_NAME\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"LU_NAME\");\n\n\t\titemblk.addField(\"ITEM_KEY_REF\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"KEY_REF\");\n\t\t\n\t\titemblk.addField(\"VIEW_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCEVIEWFILE: View File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=VIEW&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\t\t\n\t\titemblk.addField(\"CHECK_IN_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCECHECKINFILE: Check In File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=CHECKIN&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\n\t\titemblk.addField(\"DOC_CLASS\").\n\t\tsetSize(10).\n\t\tsetMaxLength(12).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCCLASS1: List of Document Class\")).\n\t\tsetCustomValidation(\"DOC_CLASS\",\"SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCCLASS: Doc Class\");\n\n\t\titemblk.addField(\"SDOCCLASSNAME\").\n\t\tsetDbName(\"DOC_NAME\").\n\t\tsetSize(10).\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCCLASSNAME: Doc Class Desc\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS\").\n setSize(10).\n setReadOnly().\n setHidden().\n setDynamicLOV(\"DOC_SUB_CLASS\",\"DOC_CLASS\").\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASS: Sub Class\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS_NAME\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASSNAME: Sub Class Name\");\n\n\t\titemblk.addField(\"DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCCODE: Doc Code\");\n\t\t\n\t\titemblk.addField(\"INNER_DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESINNERDOCCODE: Inner Doc Code\");\n\t\t\n\t\titemblk.addField(\"SDOCTITLE\").\n\t\tsetDbName(\"DOC_TITLE\").\n\t\tsetSize(40).\n\t\tsetReadOnly().\n\t\tsetFieldHyperlink(\"DocIssue.page\", \"PAGE_URL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCTITLE: Title\");\n\n\t\titemblk.addField(\"DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_ISSUE\",\"DOC_CLASS,DOC_NO,DOC_SHEET\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCREV1: List of Document Revision\")).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCREV: Doc Rev\");\n\t\t\n\t\titemblk.addField(\"DOC_STATE\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCSTATE: Doc State\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON\").\n setSize(10).\n setReadOnly().\n setDynamicLOV(\"PERSON_INFO_LOV\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSON: Connected Person\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON_NAME\").\n setSize(10).\n setReadOnly().\n setFunction(\"Person_Info_API.Get_Name(:CONNECTED_PERSON)\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSONNAME: Connected Person Name\");\n\t\tmgr.getASPField(\"CONNECTED_PERSON\").setValidation(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDDATE: Connected Date\");\n\t\t\n\t\titemblk.addField(\"SEND_UNIT_NAME\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSENDUNITNAME: Send Unit Name\");\n\t\t\n\t\titemblk.addField(\"SIGN_PERSON\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSIGNPERSON: Sign Person\");\n\t\t\n\t\titemblk.addField(\"COMPLETE_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESCOMPLETEDATE: Complete Date\");\n\n\t\titemblk.addField(\"DOCTSATUS\").\n\t\tsetSize(20).\n\t\tsetReadOnly().\n\t\tsetFunction(\"substr(DOC_ISSUE_API.Get_State(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV),1,200)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCTSATUS: Status\");\n\n\t\t//\n\t\t// Hidden Fields\n\t\t//\n\t\t\n\t\titemblk.addField(\"DOC_NO\").\n setSize(20).\n setMaxLength(120).\n setMandatory().\n setUpperCase().\n setHidden().\n setLOV(\"DocNumLov.page\",\"DOC_CLASS\").\n setCustomValidation(\"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"SDOCTITLE,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCNO1: List of Document No\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCNO: Doc No\");\n\t\t\n\t\titemblk.addField(\"DOC_SHEET\").\n setSize(20).\n //Bug 61028, Start\n setMaxLength(10).\n //Bug 61028, End\n setMandatory().\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_ISSUE_LOV1\",\"DOC_CLASS,DOC_NO,DOC_REV\").\n setLOVProperty(\"TITLE\", mgr.translate(\"DOCMAWDOCREFERENCEDOCSHEET1: List of Doc Sheets\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCSHEET: Doc Sheet\");\n\t\t\n\t\titemblk.addField(\"CATEGORY\").\n setSize(20).\n setMaxLength(5).\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_REFERENCE_CATEGORY\").\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCAT: List of Document Category\")).\n setLabel(\"DOCMAWDOCREFERENCECATEGORY: Association Category\");\n\n itemblk.addField(\"COPY_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"Doc_Reference_Copy_Status_API\").\n setLabel(\"DOCMAWDOCREFERENCECOPYFLAG: Copy Status\");\n\n itemblk.addField(\"KEEP_LAST_DOC_REV\").\n setSize(20).\n setMaxLength(100).\n setMandatory().\n setSelectBox().\n setHidden().\n unsetSearchOnDbColumn().\n enumerateValues(\"Always_Last_Doc_Rev_API\").\n setCustomValidation(\"KEEP_LAST_DOC_REV,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLabel(\"DOCMAWDOCREFERENCEKEEPLASTDOCREV: Update Revision\");\n\n //Bug Id 85361. Start\n itemblk.addField(\"KEEP_LAST_DOC_REV_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Always_Last_Doc_Rev_API.Encode(:KEEP_LAST_DOC_REV)\");\n //Bug Id 85361. End\n\n itemblk.addField(\"SURVEY_LOCKED_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"LOCK_DOCUMENT_SURVEY_API\").\n unsetSearchOnDbColumn().\n //Bug 57719, Start\n setCustomValidation(\"SURVEY_LOCKED_FLAG\",\"SURVEY_LOCKED_FLAG_DB\").\n //Bug 57719, End\n setLabel(\"DOCMAWDOCREFERENCESURVEYLOCKEDFLAG: Doc Connection Status\");\n\t\t\n\t\titemblk.addField(\"SURVEY_LOCKED_FLAG_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Lock_Document_Survey_Api.Encode(:SURVEY_LOCKED_FLAG)\");\n\t\t\n\t\titemblk.addField(\"FILE_TYPE\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_FILE_TYPE(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,'ORIGINAL')\");\n\n\t\t//Bug Id 67336, start\n\t\titemblk.addField(\"STRUCTURE\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_TITLE_API.Get_Structure_(DOC_CLASS,DOC_NO)\");\n\t\t//Bug Id 67336, end\n\n\t\t// Bug Id 89939, start\n\t\titemblk.addField(\"CAN_ADD_TO_BC\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_ISSUE_API.can_add_to_bc(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"BRIEFCASE_NO\"). \n\t\tsetHidden().\n\t\tsetDynamicLOV(\"DOC_BC_LOV1\").\n\t\tsetFunction(\"DOC_BRIEFCASE_ISSUE_API.GET_BRIEFCASE_NO(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"EDMSTATUS\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_DOC_STATE_NO_USER(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV, 'ORIGINAL')\");\n\t\t\n\t\titemblk.addField(\"IS_ELE_DOC\").\n setCheckBox(\"FALSE,TRUE\").\n setFunction(\"EDM_FILE_API.Have_Edm_File(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden().\n setLabel(\"DOCMAWDOCREFERENCEISELEDOC: Is Ele Doc\").\n setSize(5);\n\t\t\n\t\titemblk.addField(\"PAGE_URL\").\n setFunction(\"Doc_Issue_API.Get_Page_Url(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_EDIT_ACCESS\").\n\t\tsetFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE') || NVL(Doc_Issue_API.Get_Edit_Access_For_Rep_(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV), 'FALSE')\").\n\t\tsetHidden();\n\t\t\n\t\titemblk.addField(\"COMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Comp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"DOC_OBJSTATE\").\n setFunction(\"DOC_ISSUE_API.Get_Objstate__(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setHidden().\n setLabel(\"DOCMAWDOCISSUESTATE: Doc Status\");\n\t\t\n\t\titemblk.addField(\"CHECK_CONNECTED_PERSON\").\n\t\tsetFunction(\"DECODE(connected_person, Person_Info_API.Get_Id_For_User(Fnd_Session_API.Get_Fnd_User), 'TRUE', 'FALSE')\").\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCECHECKCONNECTEDPERSON: Check Connected Person\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TRANSFERED\").\n\t\tsetCheckBox(\"FALSE,TRUE\").\n\t\tsetReadOnly().\n setHidden();\n\t\t// Bug Id 89939, end\n\n\t\titemblk.setView(\"DOC_REFERENCE_OBJECT\");\n\t\titemblk.defineCommand(\"DOC_REFERENCE_OBJECT_API\",\"New__,Modify__,Remove__\");\n\t\titemblk.setMasterBlock(headblk);\n\t\titemset = itemblk.getASPRowSet();\n\t\titembar = mgr.newASPCommandBar(itemblk);\n\t\titembar.enableCommand(itembar.FIND);\n\t\titembar.disableCommand(itembar.NEWROW);\n\t\titembar.disableCommand(itembar.DUPLICATEROW);\n\t\titembar.disableCommand(itembar.OVERVIEWEDIT);\n\t\titembar.disableCommand(itembar.DELETE);\n\t\titembar.disableCommand(itembar.EDITROW);\n\t\t\n\t\t//Bug 57719, Start, Added check on function checkLocked()\n\t\titembar.defineCommand(itembar.SAVERETURN,\"saveReturnITEM\",\"checkLocked()\");\n\t\t//Bug 57719, End\n\t\titembar.defineCommand(itembar.OKFIND, \"okFindITEMWithErrorMsg\");\n\t\titembar.defineCommand(itembar.COUNTFIND,\"countFindITEM\");\n\t\titembar.defineCommand(itembar.NEWROW, \"newRowITEM\");\n\t\titembar.defineCommand(itembar.SAVENEW, \"saveNewITEM\");\n\t\titembar.defineCommand(itembar.DELETE, \"deleteITEM\");\n\t\t\n\t\t//Bug Id 85487, Start\n\t\titembar.addCustomCommand(\"createNewDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATEDOC: Create New Document\"));\n\t\titembar.addSecureCustomCommand(\"createConnectDefDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATECONNDEFDOC: Create And Connect Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/createConnectDefDoc.gif\", true);\n\t\t// itembar.setCmdConfirmMsg(\"createConnectDefDoc\", \"DOCMAWDOCREFERENCECREATECONNDEFDOCMSG: Confirm create and connect document?\");\n\t\titembar.addSecureCustomCommand(\"insertExistingDoc\",mgr.translate(\"DOCMAWDOCREFERENCEINEXISTDOC: Insert Existing Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/addDocument.gif\", true);\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.forceEnableMultiActionCommand(\"createNewDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"createConnectDefDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"createNewDoc\");\n\t\titembar.removeFromRowActions(\"createConnectDefDoc\");\n\t\t//Bug Id 85487, End\n\n\t\t//Bug Id 89939, start\n\t\t// itembar.addSecureCustomCommand(\"startAddingToBriefcase\",\"DOCMAWDOCREFERENCEADDTOBC: Add to Briefcase...\",\"DOC_BRIEFCASE_ISSUE_API.Add_To_Briefcase\"); \n\t\t// itembar.addCustomCommand(\"goToBriefcase\",\"DOCMAWDOCREFERENCEGOTOBC: Go to Briefcase\"); \n\t\t// itembar.addCommandValidConditions(\"goToBriefcase\",\"BRIEFCASE_NO\",\"Disable\",null);\n\t\t//Bug Id 89939, end\n\n\t\t// File Operations\n\t\t// itembar.addSecureCustomCommand(\"editDocument\",mgr.translate(\"DOCMAWDOCREFERENCEEDITDOC: Edit Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"deleteDoc\",mgr.translate(\"DOCMAWDOCREFERENCEDELETEDOC: Delete\"),\"DOC_REFERENCE_OBJECT_API.Remove__\"); //Bug Id 70286\n\t\titembar.setCmdConfirmMsg(\"deleteDoc\", \"DOCMAWDOCREFERENCEDELETEDOCCONFIRM: Confirm delete document(s)?\");\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.addSecureCustomCommand(\"viewOriginal\",mgr.translate(\"DOCMAWDOCREFERENCEVIEVOR: View Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"checkInDocument\",mgr.translate(\"DOCMAWDOCREFERENCECHECKINDOC: Check In Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"undoCheckOut\",mgr.translate(\"DOCMAWDOCREFERENCEUNDOCHECKOUT: Undo Check Out Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewOriginalWithExternalViewer\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWOREXTVIEWER: View Document with Ext. App\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewCopy\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWCO: View Copy\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"printDocument\",mgr.translate(\"DOCMAWDOCREFERENCEPRINTDOC: Print Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"copyFileTo\",mgr.translate(\"DOCMAWDOCISSUECOPYFILETO: Copy File To...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"sendToMailRecipient\",mgr.translate(\"DOCMAWDOCREFERENCEWSENDMAIL: Send by E-mail...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addCustomCommand(\"documentInfo\",mgr.translate(\"DOCMAWDOCREFERENCEDOCINFO: Document Info...\"));\n\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TEMP_EDIT_ACCESS\", \"Enable\", \"TRUETRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TEMP_EDIT_ACCESS\", \"Disable\", \"TRUEFALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\t// Add operations to comand groups\n\t\t// itembar.addCustomCommandGroup(\"FILE\", mgr.translate(\"DOCMAWDOCREFERENCEFILECMDGROUP: File Operations\"));\n\t\t// itembar.setCustomCommandGroup(\"editDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"checkInDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"undoCheckOut\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginal\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginalWithExternalViewer\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewCopy\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"printDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"copyFileTo\", \"FILE\");\n\n\n\t\titembar.enableMultirowAction();\n\t\t// itembar.removeFromMultirowAction(\"viewOriginalWithExternalViewer\");\n\t\t// itembar.removeFromMultirowAction(\"undoCheckOut\");\n\n\n\t\titemtbl = mgr.newASPTable(itemblk);\n\t\titemtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCEDOCUCC: Documents\"));\n\t\titemtbl.enableRowSelect();\n\n\t\titemlay = itemblk.getASPBlockLayout();\n\t\titemlay.setDialogColumns(2);\n\t\titemlay.setDefaultLayoutMode(itemlay.MULTIROW_LAYOUT);\n\n\t\titemlay.setSimple(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\t//\n\t\t// Create and connect documents\n\t\t//\n\n\t\tdlgblk = mgr.newASPBlock(\"DLG\");\n\n\t\tdlgblk.addField(\"DLG_DOC_CLASS\").\n\t\tsetSize(20).\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetCustomValidation(\"DLG_DOC_CLASS\",\"DLG_DOC_REV,FIRST_SHEET_NO,NUMBER_GENERATOR,NUM_GEN_TRANSLATED,ID1,ID2\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCCLASS: Doc Class\");\n\n\t\tdlgblk.addField(\"DLG_DOC_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCNO: No\");\n\n\t\tdlgblk.addField(\"FIRST_SHEET_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEFIRSTSHEETNO: First Sheet No\");\n\n\t\tdlgblk.addField(\"DLG_DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCTITLE: Revision\");\n\n\t\tdlgblk.addField(\"DLG_DOC_TITLE\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCREV: Title\");\n\n\t\t// Configurable doc no\n\n\t\tdlgblk.addField(\"NUMBER_GENERATOR\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\tdlgblk.addField(\"NUM_GEN_TRANSLATED\").\n\t\tsetReadOnly().\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLabel(\"DOCREFERENCENUMBERGENERATOR: Number Generator\");\n\n\n\t\tdlgblk.addField(\"ID1\").\n\t\tsetReadOnly().\n\t\tsetFunction(\"''\").\n\t\tsetUpperCase().\n\t\tsetLOV(\"Id1Lov.page\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID1: Number Counter ID1\");\n\n\t\tdlgblk.addField(\"ID2\").\n\t\tsetSize(20).\n\t\tsetUpperCase().\n\t\tsetMaxLength(30).\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"Id2Lov.page\",\"ID1\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID2: Number Counter ID2\");\n\n\t\tdlgblk.addField(\"BOOKING_LIST\").\n\t\tsetSize(20).\n\t\tsetMaxLength(30).\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"BookListLov.page\", \"ID1,ID2\").//Bug Id 73606\n\t\tsetLabel(\"DOCREFERENCEBOOKINGLIST: Booking List\");\n\n\t\tdlgblk.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECREANDCONNDOC: Create and Connect New Document\"));\n\n\t\tdlgset = dlgblk.getASPRowSet();\n\t\tdlgbar = mgr.newASPCommandBar(dlgblk);\n\t\tdlgbar.enableCommand(dlgbar.OKFIND);\n\t\tdlgbar.defineCommand(dlgbar.OKFIND,\"dlgOk\");\n\t\tdlgbar.enableCommand(dlgbar.CANCELFIND);\n\t\tdlgbar.defineCommand(dlgbar.CANCELFIND,\"dlgCancel\");\n\n\t\tdlglay = dlgblk.getASPBlockLayout();\n\t\tdlglay.setDialogColumns(2);\n\t\tdlglay.setDefaultLayoutMode(dlglay.CUSTOM_LAYOUT);\n\t\tdlglay.setEditable();\n\n\n\t\t//\n\t\t// dummy block\n\t\t//\n\n\t\tdummyblk = mgr.newASPBlock(\"DUMMY\");\n\n\t\tdummyblk.addField(\"DOC_TYPE\");\n\t\tdummyblk.addField(\"RETURN\");\n\t\tdummyblk.addField(\"ATTR\");\n\t\tdummyblk.addField(\"TEMP1\");\n\t\tdummyblk.addField(\"TEMP2\");\n\t\tdummyblk.addField(\"TEMP3\");\n\t\tdummyblk.addField(\"DUMMY\");\n\t\tdummyblk.addField(\"DUMMY_TYPE\");\n\t\tdummyblk.addField(\"DUMMY1\");\n\t\tdummyblk.addField(\"DUMMY2\");\n\t\tdummyblk.addField(\"DUMMY3\");\n\t\tdummyblk.addField(\"DUMMY4\");\n\t\tdummyblk.addField(\"DUMMY5\");\n\t\tdummyblk.addField(\"DUMMY6\");\n\t\tdummyblk.addField(\"LOGUSER\");\n\t\tdummyblk.addField(\"OUT_1\");\n\t}", "@Builder\n public DocFragment(\n final String objectType,\n final String name,\n final String atPath,\n final String templateText) {\n this.objectType = objectType;\n this.name = name;\n setAtPath(atPath);\n setTemplateText(templateText);\n }", "public void setDocumentType(String documentType);", "public void setDocumentType (String DocumentType);", "public void newDocument();", "public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }", "public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }", "@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }", "public void javadocStarted() { }", "public void javadocStarted() { }", "String buildDoc(ControllerNode controllerNode) throws IOException;", "private void updateDescTemplate(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\telse if(propertiesObj instanceof FormDef){\n\t\t\t((FormDef)propertiesObj).setDescriptionTemplate(txtDescTemplate.getText());\n\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t}\n\t}", "public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);", "void inlineToDocx(WordprocessingMLPackage wordPackage, Text destination, Object paramValue, Matcher paramsMatcher);", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "private void createStructuredDocumentTag(CTSdtPr sdtPr, String text) {\n\t\t// The properties contain (among others) aliases (<w:alias>), tag names (w:tag)\n\t\t// and a flag (<w:showingPlcHdr>) whether the content is placeholder or real content.\n\t\tString alias = getCTStringVal(getFirst(sdtPr.getAliasArray()));\n\t\tString tagName = getCTStringVal(getFirst(sdtPr.getTagArray()));\n\t\tboolean isPlaceholder = sdtPr.getShowingPlcHdrArray().length > 0;\n\n\t\tObject value = null;\n\t\t// If placeholder is set, the element is not filled by the user\n\t\tif (!isPlaceholder) {\n\t\t\tvalue = text;\n\n\t\t\t// The following child element can occur and determine the type of the structured\n\t\t\t// document tag: equation, comboBox (*), date (*), docPartObj, docPartList,\n\t\t\t// dropDownList (*), picture, richText (*), text (*), citation, group, bibliography.\n\n\t\t\t// Note that we can't use the typed method (e.g sdtPr.getComboBoxArray()) here\n\t\t\t// because in the small (poi-)ooxml-schemas.jar bundled with POI, the specialized\n\t\t\t// classes (e.g. CTStdComboBox) are missing. Trying to use these methods will fail\n\t\t\t// with a NoClassDefFoundError exception (cf. POI FAQ).\n\t\t\t// But we can work with the plain XmlObjects or DOM nodes, if we extract them by\n\t\t\t// a generic path expression.\n\t\t\tElement sdtType;\n\t\t\tif ((sdtType = getFirstAsDomElement(sdtPr, \"w:text\")) != null\n\t\t\t\t|| (sdtType = getFirstAsDomElement(sdtPr, \"w:richText\")) != null) {\n\t\t\t\t// Value is the text (in the case of richText without formatting)\n\t\t\t} else if ((sdtType = getFirstAsDomElement(sdtPr, \"w:date\")) != null) {\n\t\t\t\t// 17.5.2.7: fullDate contains the \"full date and time last entered\"\n\t\t\t\t// in XML Schema DateTime syntax\n\t\t\t\tString fullDate = sdtType.getAttributeNS(WORDPROCESSINGML_NS, \"fullDate\");\n\t\t\t\tif (fullDate != null) {\n\t\t\t\t\tXMLGregorianCalendar calendar;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(fullDate);\n\t\t\t\t\t\tlong timeMillis = calendar.toGregorianCalendar(null, null, null).getTimeInMillis();\n\t\t\t\t\t\tfinal String dateText = text;\n\t\t\t\t\t\tvalue = new Date(timeMillis) {\n\t\t\t\t\t\t\t@Override \n\t\t\t\t\t\t\tpublic String toString() { \n\t\t\t\t\t\t\t\treturn dateText; \n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t} catch(DatatypeConfigurationException e) {\n\t\t\t\t\t\tLOG.warn(\"createStructuredDocumentTag failed: \", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((sdtType = getFirstAsDomElement(sdtPr, \"w:comboBox\")) != null\n\t\t\t\t|| (sdtType = getFirstAsDomElement(sdtPr, \"w:dropDownList\")) != null) {\n\t\t\t\t// 17.5.2.5 (comboBox), 17.5.2.15 (dropDownList)\n\t\t\t\t// Try to find the associated value with the extract text (if possible)\n\t\t\t\tNodeList listItems = sdtType.getElementsByTagNameNS(WORDPROCESSINGML_NS, \"listItem\");\n\t\t\t\tfor (int i = 0, n = listItems.getLength(); i < n; i++) {\n\t\t\t\t\tElement listItem = (Element) listItems.item(i);\n\t\t\t\t\tString displayText = listItem.getAttributeNS(WORDPROCESSINGML_NS, \"displayText\");\n\t\t\t\t\tif (text.equals(displayText)) {\n\t\t\t\t\t\tvalue = listItem.getAttributeNS(WORDPROCESSINGML_NS, \"value\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((getFirstAsDomElement(sdtPr, \"equation\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"docPartObj\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"docPartList\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"picture\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"citation\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"group\") != null)\n\t\t\t\t\t|| (getFirstAsDomElement(sdtPr, \"bibliography\") != null)) {\n\t\t\t\t// ignore (unsupported type)\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t// type is unspecified, treat as text\n\t\t\t}\n\t\t}\n\n\t\tStructuredDocumentTag sdt = new StructuredDocumentTag(alias, tagName, value, text);\n\t\tstructuredDocumentTags.add(sdt);\n\t}", "protected String extractDocumentation(AnnotatedBase element) {\n if (m_schemaCustom.isJavaDocDocumentation()) {\n StringWriter writer = new StringWriter();\n AnnotationElement anno = element.getAnnotation();\n if (anno != null) {\n FilteredSegmentList items = anno.getItemsList();\n for (int i = 0; i < items.size(); i++) {\n AnnotationItem item = (AnnotationItem)items.get(i);\n if (item instanceof DocumentationElement) {\n DocumentationElement doc = (DocumentationElement)item;\n List contents = doc.getContent();\n if (contents != null) {\n for (Iterator iter = contents.iterator(); iter.hasNext();) {\n Node node = (Node)iter.next();\n DOMSource source = new DOMSource(node);\n StreamResult result = new StreamResult(writer);\n try {\n s_transformer.transform(source, result);\n } catch (TransformerException e) {\n s_logger.error(\"Failed documentation output transformation\", e);\n }\n }\n }\n }\n }\n }\n StringBuffer buff = writer.getBuffer();\n if (buff.length() > 0) {\n \n // make sure there's no embedded comment end marker\n int index = buff.length();\n while ((index = buff.lastIndexOf(\"*/\", index)) >= 0) {\n buff.replace(index, index+2, \"* /\");\n }\n return buff.toString();\n }\n }\n return null;\n }", "public void setContent(Document doc) {\n\t\tString text = doc.getContent().toString();\n\t\txmldoc = new NlptoolsshareType();\n\t\tDocumentType docxml = new DocumentType();\n\t\tdocxml.setText(text);\n\t\txmldoc.setDocument(docxml);\n\t}", "@Override\n public void init(final DocletEnvironment env, final jdk.javadoc.doclet.Doclet doclet) {\n reporter = ((Doclet) doclet).reporter;\n }", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public interface IControllerDocBuilder {\n\n /**\n * build api docs and return as string\n *\n * @param controllerNode\n * @return\n */\n String buildDoc(ControllerNode controllerNode) throws IOException;\n\n}", "interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }", "springfox.documentation.schema.Model create(ModelContext context);", "TargetTemplate(String antName, String bundleKey, boolean mandatory, String artifactIncludes, String artifactExcludes,\n String javadocDir, boolean checkForTests, String testResults, String properties) {\n this.antName = antName;\n this.bundleKey = bundleKey;\n assert !mandatory || !checkForTests;\n this.mandatory = mandatory;\n this.artifactIncludes = artifactIncludes;\n this.artifactExcludes = artifactExcludes;\n this.javadocDir = javadocDir;\n this.checkForTests = checkForTests;\n this.testResults = testResults;\n this.properties = properties;\n }", "public void setDocAction (String DocAction);", "public void setDocAction (String DocAction);", "public abstract WalkerDocument newDocument(IOptions options);", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "private void templateDocActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_templateDocActionPerformed\n // Autogenerated code, no need to do anything here\n }", "private Doc addDoc(String title, String text) {\n\t\tDoc doc = objectFactory.createDoc();\n\t\tdoc.setTitle(title);\n\t\tdoc.setLang(ParserConstants.english.toString());\n\t\tdoc.getContent().add(text);\n\t\treturn doc;\n\t}", "protected void addJavadocTag(JavaElement javaElement, boolean markAsDoNotDelete) {\n javaElement.addJavaDocLine(\" *\");\n StringBuilder sb = new StringBuilder();\n sb.append(\" * \");\n sb.append(MergeConstants.NEW_ELEMENT_TAG);\n if (markAsDoNotDelete) {\n sb.append(\" do_not_delete_during_merge\");\n }\n String s = getDateString();\n if (s != null) {\n sb.append(' ');\n sb.append(s);\n }\n javaElement.addJavaDocLine(sb.toString());\n }", "public DocRootTaglet() {\n name = DOC_ROOT.tagName;\n }", "Para createPara();", "void tag4() \n\t{\n\t\t/** javadoc_single_style_tag: This is a JavaDoc single style tag.\n\t}\n\t\n\t/** Test a JavaDoc multi style comment in souce code.\n\t * \n\t */\n\tvoid tag5() \n\t{\n\t\t/** \n\t\t * javadoc_multi_style_tag: This is a JavaDoc multi style tag.\n\t\t */\n\t}\n\t\n\t/** Test a tag not at the start of a line.\n\t * \n\t */\n\tvoid tag6() \n\t{\n\t\t/** \n\t\t * The tag \"not_start_of_line_tag\" should NOT be found.\n\t\t */\n\t}\n\t\n\t/** Test a tag variable in source code.\n\t * \n\t */\n\tvoid tag7() \n\t{\n\t\tint source_code_variable_tag;\n\t\t\n\t\tsource_code_variable_tag += 7;\n\t}\n\n}", "public Framework_annotation<T> build_annotation();", "private void startGeneration(RootDoc root) throws Configuration.Fault, Exception {\n if (root.classes().length == 0) {\n configuration.message.\n error(\"doclet.No_Public_Classes_To_Document\");\n return;\n }\n configuration.setOptions();\n configuration.getDocletSpecificMsg().notice(\"doclet.build_version\",\n configuration.getDocletSpecificBuildDate());\n ClassTree classtree = new ClassTree(configuration, configuration.nodeprecated);\n\n generateClassFiles(root, classtree);\n Util.copyDocFiles(configuration, DocPaths.DOC_FILES);\n\n PackageListWriter.generate(configuration);\n generatePackageFiles(classtree);\n generateProfileFiles();\n\n generateOtherFiles(root, classtree);\n configuration.tagletManager.printReport();\n }", "org.hl7.fhir.String getDocumentation();", "private static void loadDocletList(String location) {\n\t\ttry {\n\t\t\tFile docletListFile = new File (location, \"docletList.properties\");\n\t\t\tif (docletListFile.exists()) {\n\t\t\t\tdocPropList.load(new FileInputStream(docletListFile));\n\n\t\t\t} else {\n\t\t\t\tlogger.error(\"A 'docletList.properties' file must exist, providing the fully \" +\n\t\t\t\t\t\"qualified class names of the doclets to execute as a Javadoc list of name value \" +\n\t\t\t\t\t\"pairs for the doclet[x] name.\\nFor example: \");\n\t\t\t\tlogger.error(\"\\tdoclet1 : org.comtor.analyzers.SpellCheck\");\n\t\t\t\tlogger.error(\"\\tdoclet2 : org.comtor.analyzers.ReadingLevel\");\n\t\t\t\tlogger.error(\"This file should be located at: \" + location + File.separator + \"docletList.properties\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.error(ioe);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void execute() throws XDocletException {\n\t\tsetPublicId(DD_PUBLICID_20);\n\t\tsetSystemId(DD_SYSTEMID_20);\n\n\t\t// will not work .... dumper.xdt does not exist\n\t\t/*\n\t\tsetTemplateURL(getClass().getResource(\"resources/dumper.xdt\"));\n\t\tsetDestinationFile(\"dump\");\n\t\tSystem.out.println(\"Generating dump\");\n\t\tstartProcess();\n\t\t*/\n\n\n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_EJB_JAR_XML_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"ejb-jar.xml\");\n\t\tSystem.out.println(\"Generating ejb-jar.xml\");\n\t\tstartProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_BND_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_BND_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_BND_FILE_NAME);\n startProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_FILE_NAME);\n startProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_PME_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_PME_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_PME_FILE_NAME);\n startProcess();\n\n /*\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_ACCESS_BEAN_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_ACCESS_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_ACCESS_FILE_NAME);\n startProcess();\n */\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_MAPXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tstartProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_DBXMI_TEMPLATE_FILE));\n setDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n System.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n startProcess();\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_SCHXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tstartProcess();\n\t\t\n\t\tCollection classes = getXJavaDoc().getSourceClasses();\n\t\tfor (ClassIterator i = XCollections.classIterator(classes); i.hasNext();) {\n\t\t\tXClass clazz = i.next();\n\t\t\t//System.out.print(\">> \" + clazz.getName());\n\t\t\t// check tag ejb:persistence + sub tag table-name\n\t\t\tXTag tag = clazz.getDoc().getTag(\"ejb:persistence\");\n\t\t\tif (tag != null) {\n\t\t\t\tString tableName = tag.getAttributeValue(\"table-name\");\n\t\t\t\t//System.out.println(\"ejb:persistence table-name = '\" + tableName + \"'\");\n\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\tSystem.out.println(\"Generating \" + destinationFileName);\n\t\t\t\t\n\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_TBLXMI_TEMPLATE_FILE));\n\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\tsetHavingClassTag(\"ejb:persistence\");\n\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\tstartProcess();\n\t\t\t}\n\t\t\t// Now, check for relationships \n\t\t\tfor (Iterator methods = clazz.getMethods().iterator(); methods.hasNext();) {\n\t\t\t\tXMethod method = (XMethod)methods.next();\n\t\t\t\tif (method.getDoc().hasTag(\"websphere:relation\")) {\n\t\t\t\t\tString tableName = method.getDoc().getTagAttributeValue(\"websphere:relation\",\"table-name\");\n\t\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_RELATIONSHIP_TBLXMI_TEMPLATE_FILE));\n\t\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\t\tsetCurrentMethod(method);\n\t\t\t\t\tSystem.out.println(\"\\tGenerating M-M Relationship table: \" + destinationFileName);\n\t\t\t\t\tstartProcess();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\n/*\n if (atLeastOneCmpEntityBeanExists()) {\n setTemplateURL(getClass().getResource(WEBSPHERE_SCHEMA_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_SCHEMA_FILE_NAME);\n startProcess();\n }\n*/\n }", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {\n config.setParamsDataToTree(true);\n RpcDocBuilderTemplate builderTemplate = new RpcDocBuilderTemplate();\n builderTemplate.checkAndInit(config);\n ProjectDocConfigBuilder configBuilder = new ProjectDocConfigBuilder(config, javaProjectBuilder);\n RpcDocBuildTemplate docBuildTemplate = new RpcDocBuildTemplate();\n List<RpcApiDoc> apiDocList = docBuildTemplate.getApiData(configBuilder);\n buildTorna(apiDocList, config);\n }", "Paragraph createParagraph();", "DirectiveDefinition createDirectiveDefinition();", "private void getDocumentation(Document doc, SemSimModel semsimmodel){\n\t\tElement docel = doc.getRootElement().getChild(\"documentation\", RDFNamespace.DOC.createJdomNamespace());\n\t\tif(docel!=null){\n\t\t\tString text = getUTFformattedString(xmloutputter.outputString(docel));\n\t\t\tsemsimmodel.addAnnotation(new Annotation(SemSimRelations.SemSimRelation.CELLML_DOCUMENTATION, text));\n\t\t}\n\t}", "public interface LinkGenerator {\n\n String ATTRIBUTE_CONTROLLER = \"controller\";\n String ATTRIBUTE_RESOURCE = \"resource\";\n String ATTRIBUTE_ACTION = \"action\";\n String ATTRIBUTE_METHOD = \"method\";\n String ATTRIBUTE_URI = \"uri\";\n String ATTRIBUTE_RELATIVE_URI = \"relativeUri\";\n String ATTRIBUTE_INCLUDE_CONTEXT = \"includeContext\";\n String ATTRIBUTE_CONTEXT_PATH = \"contextPath\";\n String ATTRIBUTE_URL = \"url\";\n String ATTRIBUTE_BASE = \"base\";\n String ATTRIBUTE_ABSOLUTE = \"absolute\";\n String ATTRIBUTE_ID = \"id\";\n String ATTRIBUTE_FRAGMENT = \"fragment\";\n String ATTRIBUTE_PARAMS = \"params\";\n String ATTRIBUTE_MAPPING = \"mapping\";\n String ATTRIBUTE_EVENT = \"event\";\n String ATTRIBUTE_ELEMENT_ID = \"elementId\";\n String ATTRIBUTE_PLUGIN = \"plugin\";\n String ATTRIBUTE_NAMESPACE = \"namespace\";\n \n\n Set<String> LINK_ATTRIBUTES = CollectionUtils.newSet(\n ATTRIBUTE_RESOURCE,\n ATTRIBUTE_METHOD,\n ATTRIBUTE_CONTROLLER,\n ATTRIBUTE_ACTION,\n ATTRIBUTE_URI,\n ATTRIBUTE_RELATIVE_URI,\n ATTRIBUTE_CONTEXT_PATH,\n ATTRIBUTE_URL,\n ATTRIBUTE_BASE,\n ATTRIBUTE_ABSOLUTE,\n ATTRIBUTE_ID,\n ATTRIBUTE_FRAGMENT,\n ATTRIBUTE_PARAMS,\n ATTRIBUTE_MAPPING,\n ATTRIBUTE_EVENT,\n ATTRIBUTE_ELEMENT_ID,\n ATTRIBUTE_PLUGIN,\n ATTRIBUTE_NAMESPACE\n );\n\n Map<String, String> REST_RESOURCE_ACTION_TO_HTTP_METHOD_MAP = CollectionUtils.<String, String>newMap(\n \"create\", \"GET\",\n \"save\", \"POST\",\n \"show\", \"GET\",\n \"index\", \"GET\",\n \"edit\", \"GET\",\n \"update\", \"PUT\",\n \"patch\", \"PATCH\",\n \"delete\", \"DELETE\"\n );\n\n Map<String, String> REST_RESOURCE_HTTP_METHOD_TO_ACTION_MAP = CollectionUtils.<String, String>newMap(\n \"GET_ID\", \"show\",\n \"GET\", \"index\",\n \"POST\", \"save\",\n \"DELETE\", \"delete\",\n \"PUT\", \"update\",\n \"PATCH\", \"patch\"\n );\n\n\n /**\n * Generates a link to a static resource for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>base - The base path of the URL, typically an absolute server path</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>dir - The directory to link to</li>\n * <li>file - The file to link to (relative to the directory if specified)</li>\n * <li>plugin - The plugin that provides the resource</li>\n * <li>absolute - Whether the link should be absolute or not</li>\n * </ul>\n *\n * @param params The named parameters\n * @return The link to the static resource\n */\n String resource(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @param encoding The character encoding to use\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);\n\n /**\n * Obtains the context path from which this link generator is operating.\n *\n * @return The base context path\n */\n String getContextPath();\n\n /**\n * The base URL of the server used for creating absolute links.\n *\n * @return The base URL of the server\n */\n String getServerBaseURL();\n}", "Annotation createAnnotation();", "Annotation createAnnotation();", "public Framework_annotation<T> build_normal();", "public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }", "public interface PHPDocTagKinds {\n\n public static final int ABSTRACT = 0;\n\n public static final int AUTHOR = 1;\n\n public static final int DEPRECATED = 2;\n\n public static final int FINAL = 3;\n\n public static final int GLOBAL = 4;\n\n public static final int NAME = 5;\n\n public static final int RETURN = 6;\n\n public static final int PARAM = 7;\n\n public static final int SEE = 8;\n\n public static final int STATIC = 9;\n\n public static final int STATICVAR = 10;\n\n public static final int TODO = 11;\n\n public static final int VAR = 12;\n\n public static final int PACKAGE = 13;\n\n public static final int ACCESS = 14;\n\n public static final int CATEGORY = 15;\n\n public static final int COPYRIGHT = 16;\n\n public static final int DESC = 17;\n\n public static final int EXAMPLE = 18;\n\n public static final int FILESOURCE = 19;\n\n public static final int IGNORE = 20;\n\n public static final int INTERNAL = 21;\n\n public static final int LICENSE = 22;\n\n public static final int LINK = 23;\n\n public static final int SINCE = 24;\n\n public static final int SUBPACKAGE = 25;\n\n public static final int TUTORIAL = 26;\n\n public static final int USES = 27;\n\n public static final int VERSION = 28;\n\n public static final int THROWS = 29;\n\n public static final int PROPERTY = 30;\n\n public static final int PROPERTY_READ = 31;\n\n public static final int PROPERTY_WRITE = 32;\n\n public static final int METHOD = 33;\n\n}", "@AutoEscape\n\tpublic String getDocumentType();", "public interface SwaggerDescriptions {\n\n String VIN = \"Identifies a vehicle. This is a required parameter unless year, make, and model are provided as input values.\";\n String COUNTRY = \"Identifies a country. This country could be different than the country in which the vehicle was manufactured.\";\n String USED = \"Identifies whether the vehicle is used. If set to true, you can specify install options for the vehicle using other input values.\";\n String VEHICLE_YEAR = \"Identifies the year in which the vehicle was manufactured. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MAKE = \"Identifies the vehicle make. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MODEL = \"Identifies the vehicle model. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_TRIM = \"Identifies the vehicle trim. If you submit a VIN that returns multiple style ids, you can specify a trim to focus the response on one style id.\";\n String VEHICLE_BODY_STYLE = \"Identifies the vehicle body style to install on the vehicle.\";\n String VEHICLE_ENGINE = \"Identifies the vehicle engine code to install on the vehicle.\";\n String VEHICLE_TRANS = \"Identifies the vehicle transmission to install on the vehicle.\";\n String VEHICLE_EXT_COLOR = \"Identifies the vehicle's exterior color to install on the vehicle.\";\n String VEHICLE_INT_COLOR = \"Identifies the vehicle's interior color to install on the vehicle.\";\n String LIST_OPTIONS = \"Identifies a list of vehicle options to install on the vehicle.\";\n String LIST_UNSTRUCTURED = \"Identifies unstructured text that is mapped to the vehicle features you want installed on the vehicle.\";\n\n String INCLUDE_DEBUG_INFO = \"Include debug information in the response object\";\n String INCLUDE_SUPPORT_INFO = \"Include support information in the response object\";\n\n String LANGUAGE = \"Language\";\n\n String GET_WS_VERSION = \"Get the version of the web service\";\n String GET_WS_HEALTH = \"Check the health of the services\";\n String GET_WS_CONNECTION = \"Get the status of micro service connections\";\n\n String WS_RESPONSE_ID = \"Displays a unique identifier of the web service response.\";\n String WS_DATE_TIME = \"Displays the date and time on the server when the request was made.\";\n\n String WS_MESSAGE = \"Displays messages from the server.\";\n String WS_ERROR = \"Identifies whether an error occurred with the request.\";\n String EXECUTION_TIME = \"Displays the execution time of the request in milliseconds.\";\n String WS_DEBUG_INFO = \"Displays debug information.\";\n String WS_SUPPORT_INFO = \"Displays support information.\";\n String WS_RESULT = \"Displays the web service results.\";\n String WS_EXECUTION_DETAILS = \"Displays Akana related billing informations.\";\n String WS_COPYRIGHT = \"Displays the copywrite message.\";\n\n}", "public RepresentsType createRepresents(DocType doc, VarType var) {\n\t\tRepresentsType represents = mappingFactory.createRepresentsType();\n\t\trepresents.getDocument().add(doc);\n\t\trepresents.setVariable(var);\n\t\treturn represents;\n\t}", "public interface DocumentRenderer\n{\n /** Plexus lookup role. */\n String ROLE = DocumentRenderer.class.getName();\n\n /**\n * Render a document from a set of files, depending on a rendering context.\n *\n * @param files the path name Strings (relative to a common base directory)\n * of files to include in the document generation.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files from the Collection of files will be processed.\n * If the model is null, render all files individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any.\n * @throws java.io.IOException if any.\n */\n void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n /**\n * Render a document from the files found in a source directory, depending on a rendering context.\n *\n * @param baseDirectory the directory containing the source files.\n * This should follow the standard Maven convention, ie containing all the site modules.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files found under baseDirectory will be processed.\n * If the model is null, render all files from baseDirectory individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n// * @deprecated since 1.1.2, use {@link #render(File, File, DocumentModel, DocumentRendererContext)}\n */\n void render( File baseDirectory, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n// /**\n// * Render a document from the files found in a source directory, depending on a rendering context.\n// *\n// * @param baseDirectory the directory containing the source files.\n// * This should follow the standard Maven convention, ie containing all the site modules.\n// * @param outputDirectory the output directory where the document should be generated.\n// * @param documentModel the document model, containing all the metadata, etc.\n// * If the model contains a TOC, only the files found in this TOC are rendered,\n// * otherwise all files found under baseDirectory will be processed.\n// * If the model is null, render all files from baseDirectory individually.\n// * @param context the rendering context when processing files.\n// * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n// * @throws java.io.IOException if any\n// * @since 1.1.2\n// */\n// void render( File baseDirectory, File outputDirectory, DocumentModel documentModel,\n// DocumentRendererContext context )\n// throws DocumentRendererException, IOException;\n\n /**\n * Read a document model from a file.\n *\n * @param documentDescriptor a document descriptor file that contains the document model.\n * @return the document model, containing all the metadata, etc.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n */\n DocumentModel readDocumentModel( File documentDescriptor )\n throws DocumentRendererException, IOException;\n\n /**\n * Get the output extension associated with this DocumentRenderer.\n *\n * @return the ouput extension.\n */\n String getOutputExtension();\n}", "Map<String, Object> createConfig(VirtualHost vhost, String configtype, Map<String, Object> doc);", "@Override\n\tpublic Object visit(ASTDoc node, Object data) {\n\t\tSystem.out.print(\"doc(\" + node.fileName + \")\");\n\t\treturn null;\n\t}", "private void createGenericPage() throws IOException {\r\n\t\tFileOutputStream pageStream = new FileOutputStream(page, false);\r\n\t\tpageStream.write(DEFAULT_STRING.getBytes());\r\n\t\tpageStream.close();\r\n\t}", "public void ach_doc_type_txt_test () {\n\t\t\n\t}", "private void addMetaData() {\r\n\t\tdocument.open();\r\n\t\tdocument.addTitle(\"My first PDF\");\r\n\t\tdocument.addSubject(\"Using iText\");\r\n\t\tdocument.addKeywords(\"Java, PDF, iText\");\r\n\t\tdocument.addAuthor(\"Lars Vogel\");\r\n\t\tdocument.addCreator(\"Lars Vogel\");\r\n\t\tdocument.close();\r\n\t}", "public Builder from(Javadoc javadoc) {\n this.generate = true;\n this.deprecation.addAll(javadoc.deprecation());\n this.returnDescription.addAll(javadoc.returnDescription());\n this.contentBuilder.append(String.join(\"\\n\", javadoc.content()));\n this.parameters.putAll(javadoc.parameters());\n this.genericArguments.putAll(javadoc.genericsTokens());\n this.throwsDesc.putAll(javadoc.throwsDesc());\n this.otherTags.putAll(javadoc.otherTags());\n return this;\n }", "Help createHelp();", "public void setDocType(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_docType == null)\n jcasType.jcas.throwFeatMissing(\"docType\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_docType, v);}", "public static void main(final String[] args) {\n String docletProjectRootDir = new File(System.getProperty(\"user.dir\")).getAbsolutePath();\n docletProjectRootDir = docletProjectRootDir.replaceAll(\"\\\\\\\\\", \"/\");\n\n String repositoryRootDir = new File(System.getProperty(\"user.dir\")).getParentFile().getParent();\n repositoryRootDir = repositoryRootDir.replaceAll(\"\\\\\\\\\", \"/\");\n\n final String projectDir = repositoryRootDir + \"/../org.eclipse.ease.modules/plugins/org.eclipse.ease.modules.platform\";\n\n // @formatter:off\n final String[] javadocargs = {\n \"-sourcepath\", \"/home/saul/eclipse-workspace/debrief/org.mwc.debrief.scripting/src:/home/saul/eclipse-workspace/debrief/org.mwc.cmap.legacy/src:/home/saul/eclipse-workspace/debrief/org.mwc.debrief.legacy/src\",\n \"-root\", \"/home/saul/eclipse-workspace/debrief/org.mwc.debrief.scripting\",\n \"-doclet\", ModuleDoclet.class.getName(),\n \"-docletpath\", docletProjectRootDir + \"/lib\",\n\n \"-failOnHTMLError\", \"false\",\n \"-failOnMissingDocs\", \"false\",\n\n \"-linkoffline\", \"https://docs.oracle.com/en/java/javase/11/docs/api/\", \"package-list\",\n\t\t\t\t//\"-link\", \"https://docs.oracle.com/javase/8/docs/api\",\n\t\t\t\t\"--ignore-source-errors\",\n\n \"-subpackages\",\n \"org.mwc.debrief.scripting.wrappers\"\n };\n\t\t// @formatter:on\n\n\t\tfinal DocumentationTool systemDocumentationTool = getSystemDocumentationTool();\n\t\tfinal DocumentationTool.DocumentationTask toolTask = systemDocumentationTool.getTask(null, null, null, ModuleDoclet.class, List.of(javadocargs), null);\n\t\ttoolTask.call();\n\t}", "public DocumentationGenerator() throws Exception {\n sourceRoot = JavadocWrapper.getDocletEnv();\n }" ]
[ "0.7059317", "0.7059317", "0.67494416", "0.6083844", "0.6018367", "0.6018192", "0.5937425", "0.59150046", "0.5906148", "0.5629692", "0.553133", "0.5441533", "0.5441533", "0.5419304", "0.5356307", "0.5352928", "0.5313174", "0.53067446", "0.5279754", "0.5279754", "0.5237263", "0.52230185", "0.5213626", "0.51966625", "0.51796013", "0.5171472", "0.51660734", "0.5159327", "0.5159327", "0.51579154", "0.51501685", "0.51036084", "0.50759417", "0.50642866", "0.50608385", "0.5031713", "0.5017529", "0.50139356", "0.5012279", "0.5002075", "0.5001942", "0.49973652", "0.49945298", "0.4994391", "0.49942818", "0.49942818", "0.49891785", "0.4985591", "0.49798062", "0.49719423", "0.4965476", "0.49633673", "0.4958992", "0.49464864", "0.49436992", "0.49406004", "0.49353892", "0.49293417", "0.4902621", "0.48992243", "0.48972824", "0.4896335", "0.4896335", "0.4891358", "0.48736185", "0.4866337", "0.4865898", "0.48645437", "0.4859286", "0.4848592", "0.4844387", "0.48423", "0.48419103", "0.48394704", "0.48363206", "0.48282048", "0.4827565", "0.48238674", "0.48226812", "0.48168972", "0.4815824", "0.48059383", "0.47981265", "0.47981265", "0.47947705", "0.4794563", "0.47670415", "0.47657603", "0.47532204", "0.47514892", "0.4750482", "0.4750404", "0.47498223", "0.47410288", "0.47405407", "0.4736291", "0.47297424", "0.4727861", "0.47267592", "0.4721374", "0.47202718" ]
0.0
-1
Return the name of the freemarker template to be used for the index generated by Barclay. Must reside in the folder passed to the Barclay Javadc Doclet via the "settingsdir" parameter.
@Override public String getIndexTemplateName() { return GATK_FREEMARKER_INDEX_TEMPLATE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemplateName()\n {\n return MY_TEMPLATE;\n }", "protected abstract String getTemplateFilename();", "String getTemplate();", "public File getTemplateFile();", "public String getTemplateName() {\r\n\t\treturn templateName;\r\n\t}", "public String getTemplateName() {\n\t\treturn templateName;\n\t}", "public String getTemplateName() {\n return templateName;\n }", "public String getTemplateFilename() {\n\t\treturn templateFilename;\n\t}", "public String fileNameTemplate() {\n return this.fileNameTemplate;\n }", "protected abstract String getTemplateName();", "private static FreeMarkerEngine createEngine() {\n Configuration config = new Configuration();\n File templates = new File(\"src/main/resources/spark/template/freemarker\");\n try {\n config.setDirectoryForTemplateLoading(templates);\n } catch (IOException ioe) {\n System.out.printf(\"ERROR: Unable use %s for template loading.%n\", templates);\n System.exit(1);\n }\n return new FreeMarkerEngine(config);\n }", "public abstract String getTemplateName();", "protected String getPageTemplateName() {\n return \"page.ftl\";\n }", "public java.lang.Object getTemplateName() {\n return templateName;\n }", "public String download(){\r\n\t\treturn \"template\";\r\n\t}", "public PathTemplate getNameTemplate() {\n return nameTemplate;\n }", "public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }", "public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}", "@Override\n public Integer call() {\n if (properties != null && !properties.isEmpty()) {\n System.getProperties().putAll(properties);\n }\n\n final List<File> templateDirectories = getTemplateDirectories(baseDir);\n\n final Settings settings = Settings.builder()\n .setArgs(args)\n .setTemplateDirectories(templateDirectories)\n .setTemplateName(template)\n .setSourceEncoding(sourceEncoding)\n .setOutputEncoding(outputEncoding)\n .setOutputFile(outputFile)\n .setInclude(include)\n .setLocale(locale)\n .isReadFromStdin(readFromStdin)\n .isEnvironmentExposed(isEnvironmentExposed)\n .setSources(sources != null ? sources : new ArrayList<>())\n .setProperties(properties != null ? properties : new HashMap<>())\n .setWriter(writer(outputFile, outputEncoding))\n .build();\n\n try {\n return new FreeMarkerTask(settings).call();\n } finally {\n if (settings.hasOutputFile()) {\n close(settings.getWriter());\n }\n }\n }", "public Template getTemplate(final String name) throws IOException\n {\n return this.cfg.getTemplate(name);\n }", "public String tplName() {\n return this.tplName;\n }", "@RequestMapping(value = \"index\")\n public String index(ModelMap map){\n map.addAttribute(\"resource\",freemarkerResource);\n return \"freemarker/index\";\n }", "@Override\n public String doMapping(String template)\n {\n log.debug(\"doMapping({})\", template);\n // Copy our elements into an array\n List<String> components\n = new ArrayList<>(Arrays.asList(StringUtils.split(\n template,\n String.valueOf(TemplateService.TEMPLATE_PARTS_SEPARATOR))));\n int componentSize = components.size() - 1 ;\n\n // This method never gets an empty string passed.\n // So this is never < 0\n String templateName = components.get(componentSize);\n components.remove(componentSize--);\n\n log.debug(\"templateName is {}\", templateName);\n\n // Last element decides, which template Service to use...\n TemplateService templateService = (TemplateService)TurbineServices.getInstance().getService(TemplateService.SERVICE_NAME);\n TemplateEngineService tes = templateService.getTemplateEngineService(templateName);\n\n if (tes == null)\n {\n return null;\n }\n\n String defaultName = \"Default.vm\";\n\n // This is an optimization. If the name we're looking for is\n // already the default name for the template, don't do a \"first run\"\n // which looks for an exact match.\n boolean firstRun = !templateName.equals(defaultName);\n\n for(;;)\n {\n String templatePackage = StringUtils.join(components.iterator(), String.valueOf(separator));\n\n log.debug(\"templatePackage is now: {}\", templatePackage);\n\n StringBuilder testName = new StringBuilder();\n\n if (!components.isEmpty())\n {\n testName.append(templatePackage);\n testName.append(separator);\n }\n\n testName.append((firstRun)\n ? templateName\n : defaultName);\n\n // But the Templating service must look for the name with prefix\n StringBuilder templatePath = new StringBuilder();\n if (StringUtils.isNotEmpty(prefix))\n {\n templatePath.append(prefix);\n templatePath.append(separator);\n }\n templatePath.append(testName);\n\n log.debug(\"Looking for {}\", templatePath);\n\n if (tes.templateExists(templatePath.toString()))\n {\n log.debug(\"Found it, returning {}\", testName);\n return testName.toString();\n }\n\n if (firstRun)\n {\n firstRun = false;\n }\n else\n {\n // We run this loop only two times. The\n // first time with the 'real' name and the\n // second time with \"Default\". The second time\n // we will end up here and break the for(;;) loop.\n break;\n }\n }\n\n log.debug(\"Returning default\");\n return getDefaultName(template);\n }", "public Object findTemplateSource(String name)\r\n/* 33: */ throws IOException\r\n/* 34: */ {\r\n/* 35:67 */ if (this.logger.isDebugEnabled()) {\r\n/* 36:68 */ this.logger.debug(\"Looking for FreeMarker template with name [\" + name + \"]\");\r\n/* 37: */ }\r\n/* 38:70 */ Resource resource = this.resourceLoader.getResource(this.templateLoaderPath + name);\r\n/* 39:71 */ return resource.exists() ? resource : null;\r\n/* 40: */ }", "private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "public String getTemplateName(WikiSystem wiki, WikiPage page) {\n Properties props = wiki.getProperties();\n \tString template = props.getProperty (\"ViewPageAction.Template\");\n if (page != null) {\n template = props.getProperty (page.getTitle());\n } \n \n \treturn template;\n }", "private String getTemplate(String templateFile) throws IOException{\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tFileReader in;\r\n \t\tint c;\r\n \t\tin = new FileReader(new File(templateFolder,templateFile));\r\n \r\n \t\twhile ((c = in.read()) != -1){\r\n \t\t\ttemplateBuffer.append((char) c);\r\n \t\t}\r\n \r\n \t\tString templateString = templateBuffer.toString();\r\n \t\tif (templateString.indexOf(\"startCell\") == (-1)){\r\n \t\t\treturn templateString;\r\n \t\t}else{\r\n \t\t\ttemplateString = templateString.substring(templateString.indexOf(\"startCell\") + 12, templateString.indexOf(\"<!--endCell\"));\r\n \t\t\treturn templateString;\r\n \t\t}\r\n \t}", "public void setTemplateName(String templateName) {\n this.templateName = templateName;\n }", "public void setTemplateName(String templateName) {\r\n\t\tthis.templateName = templateName;\r\n\t}", "@ApiModelProperty(value = \"Gets or sets Template Name.\")\n public String getTemplateName() {\n return templateName;\n }", "public static String getTemplate(String template) {\n return templates.get(template);\n }", "java.lang.String getTemplateId();", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "public void setTemplateFileName( String templateFileName )\n {\n _strTemplateFileName = templateFileName;\n }", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "String template();", "public Function2<Object, TemplateOptions, String> template(String templateString);", "private static File generateTemplateFile(String templateFilename) {\n\t\treturn new File(templateFilename);\n\t}", "public String artifactsLocationTemplate() {\n String pipeline = get(\"GO_PIPELINE_NAME\");\n String stageName = get(\"GO_STAGE_NAME\");\n String jobName = get(\"GO_JOB_NAME\");\n\n String pipelineCounter = get(\"GO_PIPELINE_COUNTER\");\n String stageCounter = get(\"GO_STAGE_COUNTER\");\n return artifactsLocationTemplate(pipeline, stageName, jobName, pipelineCounter, stageCounter);\n }", "final public String getTemplateSource()\n {\n return ComponentUtils.resolveString(getProperty(TEMPLATE_SOURCE_KEY));\n }", "String localizedTemplateString(String templateName);", "public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }", "public TemplateEngine getEngine( String name );", "public abstract String getImportFromFileTemplate( );", "String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}", "public String templateId() {\n return this.templateId;\n }", "public String getAuthTemplateName() {\n return getProperty(Property.AUTH_TEMPLATE_NAME);\n }", "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "protected String getBuilderNameFor( final String filename )\n throws AntException\n {\n return DEFAULT_BUILDER;\n }", "protected BeautiSubTemplate getStartTemplate() {\n\t\treturn template.get();\n\t}", "@RequestMapping(value = ViewNameConstants.TEMPLATE)\n\tpublic void Viewtemplate() {\n\t}", "public Template getDefaultTemplate() {\r\n\t\treturn templateDao.findAll().iterator().next();\r\n\t}", "protected String getFileTemplate(String sTemplate, String sPath)\n {\n String sFileName = sTemplate;\n\n if (sFileName.length() == 0)\n {\n log(\"Report writer:No output file specified. Report terminated\");\n return null;\n }\n\n try\n {\n sFileName = new File(sPath).getCanonicalPath() + File.separatorChar + sFileName;\n }\n catch (IOException e)\n {\n // leave the problem for caller\n sFileName = sPath + sFileName;\n }\n\n return sFileName;\n }", "private String calcIndexName(NamePool pool, \n String fingerName,\n List definitions,\n Configuration config) \n {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append(\"key|\" + fingerName);\n for (int k = 0; k < definitions.size(); k++) \n {\n KeyDefinition def = (KeyDefinition)definitions.get(k);\n \n // Capture the match pattern.\n String matchStr = def.getMatch().toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(matchStr), 16));\n \n // Capture the 'use' expression\n if (def.getUse() instanceof Expression) \n {\n // Saxon likes to dump debug stuff to a PrintStream, and we need to\n // capture to a buffer.\n //\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(bytes);\n \n ((Expression)def.getUse()).display(10, ps, config);\n ps.flush();\n String useStr = bytes.toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(useStr), 16));\n }\n else\n sbuf.append(\"|non-exp\");\n } // for k\n \n return sbuf.toString();\n }", "public java.lang.String getTemplateId() {\n java.lang.Object ref = templateId_;\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 templateId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "TemplateSpecifier getName();", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "TemplatesPackage getTemplatesPackage();", "@ApiModelProperty(required = true, value = \"The name of the template\")\n public String getName() {\n return name;\n }", "public int getTemplateId() {\n return templateId;\n }", "private String createTemplateServerRequest(String servletPath,String templateName) {\n String pathInfo = servletPath.substring(servletPath.indexOf(\"/\",TEMPLATE_LOAD_PROTOCOL.length()));\n if (templateName != null) { \n pathInfo = pathInfo + templateName;\n }\n return pathInfo;\n }", "@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }", "public String getTemplateId() {\n\t\treturn templateId;\n\t}", "public void setTemplateFilename(String templateFilename) {\n\t\tthis.templateFilename = StringUtil.replaceExtension(templateFilename, \"html\");\n\t}", "@Override\n public void setTplPath(String arg0) {\n\n }", "public String getName() {\n return _index.getName();\n }", "public static String getTemplateBaseName(String name) {\n\t\tint startOfTemplate =\n\t\t\tname.indexOf('<', name.startsWith(OPERATOR_LSHIFT_STR) ? OPERATOR_LSHIFT_STR.length()\n\t\t\t\t\t: name.startsWith(OPERATOR_LT_STR) ? OPERATOR_LT_STR.length() : 0);\n\t\treturn (startOfTemplate > 0 && name.indexOf('>') > 0)\n\t\t\t\t? name.substring(0, startOfTemplate).trim()\n\t\t\t\t: null;\n\t}", "public String outputTemplateBase() throws IOException {\n\t\tVelocityEngine ve = new VelocityEngine();\n\t\tve.setProperty(RuntimeConstants.RESOURCE_LOADER, \"classpath\");\n\t\tve.setProperty(\"classpath.resource.loader.class\",\n\t\t\t\tClasspathResourceLoader.class.getName());\n\n\t\tve.init();\n\t\t/* next, get the Template */\n\t\tTemplate t = ve.getTemplate(\"de/velocityTest/helloworld.vm\");\n\t\t/* create a context and add data */\n\t\tVelocityContext context = new VelocityContext();\n\t\tcontext.put(\"name\", \"World\");\n\t\t/* now render the template into a StringWriter */\n\t\tFile file = new File(\"./test.txt\");\n\t\tFileWriter out = new FileWriter(file);\n\t\tBufferedWriter w = new BufferedWriter(out);\n\t\tStringWriter writer = new StringWriter();\n\t\tt.merge(context, w);\n\t\tw.flush();\n\t\t/* show the World */\n\t\treturn w.toString();\n\t}", "default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }", "String renderTemplate(String filename, Map<String, Object> context) {\n if (sEngine == null) {\n // PebbleEngine caches compiled templates by filename, so as long as we keep using the\n // same engine instance, it's okay to call getTemplate(filename) on each render.\n sEngine = new PebbleEngine();\n sEngine.addExtension(new PebbleExtension());\n }\n try {\n StringWriter writer = new StringWriter();\n sEngine.getTemplate(filename).evaluate(writer, context);\n return writer.toString();\n } catch (Exception e) {\n StringWriter writer = new StringWriter();\n e.printStackTrace(new PrintWriter(writer));\n return \"<div style=\\\"font-size: 150%\\\">\" + writer.toString().replace(\"&\", \"&amp;\").replace(\"<\", \"&lt;\").replace(\"\\n\", \"<br>\");\n }\n }", "@java.lang.Override\n public java.lang.String getTemplateId() {\n java.lang.Object ref = templateId_;\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 templateId_ = s;\n return s;\n }\n }", "private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;", "@RequestMapping(value = ViewNameConstants.TEMPLATEBS)\n\tpublic void ViewtemplateBS() {\n\t}", "public Object mainTemplate() {\n return this.mainTemplate;\n }", "static String composeIndexName() {\n\t\treturn TYPE.toLowerCase();\n\t}", "public String getTemplateCode() {\n return templateCode;\n }", "public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtension(filename);\n if (isInspecting){\n filename = filename + \".in\";\n } else {\n filename = filename + \".bp\";\n }\n boolean hasSaved = FileManager.createTemplate(filename, blueprint);\n if (hasSaved){\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(this, \"Did not save\", Toast.LENGTH_LONG).show();\n }\n }", "public String index() {\r\n\t\treturn \"index\";\r\n\t}", "public void setTemplateId(String tmp) {\n this.setTemplateId(Integer.parseInt(tmp));\n }", "@Bean\n public SpringTemplateEngine templateEngine() {\n SpringTemplateEngine templateEngine = new SpringTemplateEngine();\n templateEngine.setTemplateResolver(templateResolver());\n templateEngine.setEnableSpringELCompiler(true);\n return templateEngine;\n }", "@Bean\n public SpringTemplateEngine templateEngine() {\n SpringTemplateEngine templateEngine = new SpringTemplateEngine();\n templateEngine.setTemplateResolver(templateResolver());\n templateEngine.setEnableSpringELCompiler(true);\n return templateEngine;\n }", "public Template(String name) throws IOException, TemplateException, JDOMException {\n this(Assets.loadTemplate(name));\n }", "public Long getTemplateId() {\r\n return templateId;\r\n }", "static void freemarkerDo(Map datamodel, String template) throws Exception\n\t{\n\t\tConfiguration cfg = new Configuration();\n\t\tcfg.setDirectoryForTemplateLoading(new File(dirForTemplateLoading));\n\t\tTemplate tpl = cfg.getTemplate(template);\n\t\tOutputStreamWriter output = new OutputStreamWriter(System.out);\n\t\t/*try {\n\t\t BufferedWriter output = new BufferedWriter(new FileWriter(\"outputFile01\"));\n\t\t\ttpl.process(datamodel, output);\n\t\t} catch (IOException e) {\n\t\t}*/\n\n\t\ttpl.process(datamodel, output);\n\t}", "public TemplateEngine getTemplateEngine() {\n return queryCreator;\n }", "public TemplateStore getTemplateStore() {\n \t\treturn fTemplateStore;\n \t}", "public static List<String> getTemplates() {\n\t\tFile templatesDir = new File(PathUtils.getExtensionsTemplatePath());\n\t\tList<String> templates = Arrays.stream(templatesDir.listFiles(File::isDirectory)).map(File::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tList<String> customTemplates = Arrays.stream(projects).filter(ExtensionUtils::isTemplate)\n\t\t\t\t.map(IProject::getName).collect(Collectors.toList());\n\t\ttemplates.addAll(customTemplates);\n\t\treturn templates;\n\t}", "@DISPID(2)\r\n\t// = 0x2. The runtime will prefer the VTID if present\r\n\t@VTID(8)\r\n\tint templateID();", "public void setTemplateId(int tmp) {\n this.templateId = tmp;\n }", "StringTemplate createStringTemplate();", "@Bean\n\tpublic SpringResourceTemplateResolver templateResolver() {\n\n\t\tSystem.out.println(\"execution is reaching templateResolver()\");\n\t\tSpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();\n\t\tresolver.setApplicationContext(applicationContext);\n\t\tresolver.setPrefix(\"/WEB-INF/views/templetes/\");\n\t\tresolver.setSuffix(\".html\");\n\t\tresolver.setTemplateMode(TemplateMode.HTML);\n\t\tresolver.setCacheable(false);\n\t\treturn resolver;\n\t}", "@Deprecated(since = \"2020.1\", forRemoval = true)\n @NotNull\n TemplateGenerator getGenerator();", "public String getTemplateSrc(String templateName) throws IOException {\n String outSource = \"\";\n \n try {\n BufferedReader in = new BufferedReader(new FileReader(templateName)); \n String inline;\n \n while ((inline = in.readLine()) != null) {\n outSource += inline + NEWL_;\n }\n in.close();\n } catch (FileNotFoundException e) {\n throw new IOException(\"template error:\" + e.getMessage() + \" not found.\");\n } catch (IOException e) {\n throw new IOException(\"read template error:\" + e.getMessage());\n }\n \n return outSource;\n }", "protected String formatTemplate(String template, FaxJob faxJob) {\n return SpiUtil.formatTemplate(template, faxJob, null, true, false);\n }", "public Builder setTemplateId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n templateId_ = value;\n onChanged();\n return this;\n }", "@Bean\n public SpringResourceTemplateResolver templateResolver() {\n SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();\n templateResolver.setApplicationContext(applicationContext);\n templateResolver.setPrefix(\"/WEB-INF/views/\");\n templateResolver.setSuffix(\".html\");\n return templateResolver;\n }", "public String generateFromContext(Map<String, Object> mailContext, String template);", "public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }", "public void init() \n { Prepare the FreeMarker configuration;\n // - Load templates from the WEB-INF/templates directory of the Web app.\n //\n cfg = new Configuration();\n cfg.setServletContextForTemplateLoading(\n getServletContext(), \n \"WEB-INF/templates\"\n );\n }", "public com.google.protobuf.ByteString\n getTemplateIdBytes() {\n java.lang.Object ref = templateId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n templateId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.6248292", "0.6159301", "0.6041331", "0.60347384", "0.5960071", "0.59378797", "0.59090704", "0.58516455", "0.57523036", "0.5749658", "0.573728", "0.571944", "0.57155806", "0.567983", "0.5677496", "0.5561057", "0.55289817", "0.54569125", "0.540866", "0.5407811", "0.53561485", "0.5347579", "0.53447217", "0.53261495", "0.52720344", "0.52655053", "0.5262669", "0.52467096", "0.52335024", "0.5228328", "0.5227737", "0.52150244", "0.52047175", "0.52026963", "0.51721454", "0.5163669", "0.5101506", "0.509731", "0.5076597", "0.5068904", "0.50364786", "0.5016621", "0.4999039", "0.49954525", "0.49772453", "0.4966069", "0.49580258", "0.49578354", "0.49357623", "0.4877511", "0.48198783", "0.48173037", "0.47995263", "0.47814035", "0.4762499", "0.4762353", "0.47465754", "0.47272608", "0.47214603", "0.4719473", "0.4710709", "0.47057235", "0.47020742", "0.46724424", "0.46672595", "0.4651894", "0.4649562", "0.46473145", "0.46403137", "0.4639593", "0.46391836", "0.46219778", "0.4596343", "0.45928687", "0.45886695", "0.45863247", "0.4581556", "0.45720124", "0.4568951", "0.4567717", "0.4567717", "0.4559615", "0.45534348", "0.45512", "0.45435566", "0.45343578", "0.45300767", "0.45267287", "0.45208392", "0.4508114", "0.44920075", "0.4457397", "0.44538057", "0.44320312", "0.4431304", "0.4429304", "0.4421536", "0.44198117", "0.44175467", "0.44151214" ]
0.7000479
0
Create a GSONWorkUnitderived object that holds our custom data. This method should create the object, and propagate any custom javadoc tags from the template map to the newly created GSON object; specifically "walkertype", which is pulled from a custom javadoc tag.
@Override protected GSONWorkUnit createGSONWorkUnit( final DocWorkUnit workUnit, final List<Map<String, String>> groupMaps, final List<Map<String, String>> featureMaps) { GATKGSONWorkUnit gatkGSONWorkUnit = new GATKGSONWorkUnit(); gatkGSONWorkUnit.setWalkerType((String)workUnit.getRootMap().get(WALKER_TYPE_MAP_ENTRY)); return gatkGSONWorkUnit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}", "public DynamicDriveToolTipTagFragmentGenerator() {}", "protected abstract void instantiateDataForAddNewTemplate (AsyncCallback<DATA> callbackOnSampleCreated) ;", "@Override\n public void generate(ToolContext context) throws ToolException {\n //Sorry but I needed to rewrite the code, doesn't have any point to override\n boolean initialized = getFieldValue(\"initialized\");\n if (!initialized) {\n initialize(context);\n }\n\n S2JJAXBModel rawJaxbModelGenCode = getFieldValue(\"rawJaxbModelGenCode\");\n if (rawJaxbModelGenCode == null) {\n return;\n }\n\n if (context.getErrorListener().getErrorCount() > 0) {\n return;\n }\n\n try {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n CustomOutputStreamCodeWriter fileCodeWriter = new CustomOutputStreamCodeWriter(stream, \"utf-8\", results);\n ClassCollector classCollector = context.get(ClassCollector.class);\n for (JClass cls : rawJaxbModelGenCode.getAllObjectFactories()) {\n classCollector.getTypesPackages().add(cls._package().name());\n }\n JCodeModel jcodeModel = rawJaxbModelGenCode.generateCode(null, null);\n\n jcodeModel.build(fileCodeWriter);\n\n context.put(JCodeModel.class, jcodeModel);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public ObservationTemplate(CDAStandard standard) {\n\t\tthis(null, standard);\n\t}", "@Override\n protected PoliceStory createPoliceStory() {\n if (isUseRuntimeDirectPoliceStory()) {\n return new PoliceStory(this, getRuntimeProjectDir());\n } else {\n return super.createPoliceStory();\n }\n }", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "@Override\n\tpublic void generate() {\n\t\tJavaObject objectInterface = new JavaObject(interfaceType);\n\t\tif (hasFields() && getBean().get().isCompare()) {\n\t\t\tobjectInterface.addExtends(getComparableInterface());\n\t\t}\n\t\tif (bean.isExecutable()) {\n\t\t\tIJavaType type = resolve(IExecutableBean.class, bean.getReturnType());\n\t\t\tobjectInterface.addExtends(type);\n\t\t} else {\n\t\t\tIJavaType type = resolve(IBean.class);\n\t\t\tobjectInterface.addExtends(type);\n\t\t}\n\t\taddExtends(objectInterface);\n\t\tif (isImmutable()) {\n\t\t\tobjectInterface.addExtends(resolve(IImmutable.class));\n\t\t}\n\n\t\t// For each bean we generate a class\n\t\tJavaObject object = new JavaObject(classType);\n\t\tobject.addExtends(interfaceType);\n\t\taddExtends(object);\n\n\t\t// Add the fields, getters and setter methods\n\t\taddBlocks(object, objectInterface);\n\n\t\t// Done!\n\t\twrite(object);\n\t\twrite(objectInterface);\n\t}", "@Override\n public void generateClass(ClassVisitor classVisitor) throws Exception {\n ClassEmitter ce = new ClassEmitter(classVisitor);\n\n Map<Function, String> converterFieldMap = initClassStructure(ce);\n\n initDefaultConstruct(ce, converterFieldMap);\n\n buildMethod_getTargetInstanceFrom(ce);\n\n buildMethod_mergeProperties(ce, converterFieldMap);\n\n ce.end_class();\n }", "private static void constructGson() {\n\t\tGsonBuilder builder = new GsonBuilder();\n\t\tbuilder.registerTypeAdapter(Bitmap.class, new BitmapJsonConverter());\n\t\tgson = builder.create();\n\t}", "public GosuClassParseInfo createNewParseInfo() {\n if( _parseInfo == null ) {\n _parseInfo = new GosuClassParseInfo((IGosuClassInternal) getOrCreateTypeReference());\n }\n return _parseInfo;\n }", "private Template() {\r\n\r\n }", "public SDefOntologyWriter(String templateURI) throws OntologyLoadException {\r\n\t\towlModel = ProtegeOWL.createJenaOWLModelFromURI(templateURI);\r\n\t\tinstanceCounter = 0;\r\n\t\texistingKeywords = new Hashtable<String,String>();\r\n\t\texistingRegex = new Hashtable<String,String>();\r\n\t}", "CreationData creationData();", "public JsonGenerator createGenerator(Writer w)\n/* */ throws IOException\n/* */ {\n/* 1129 */ IOContext ctxt = _createContext(w, false);\n/* 1130 */ return _createGenerator(_decorate(w, ctxt), ctxt);\n/* */ }", "protected void generateViewHolder() {\n // view holder class\n String holderClassName = mViewHolderName + Utils.getViewHolderClassName();\n String modelClassName = mViewHolderName + Utils.getViewModelClassName();\n PsiClass innerClass = mClass.findInnerClassByName(holderClassName, false);\n if (innerClass != null) {\n// Utils.showErrorNotification(mProject, holderClassName + \" is exist!\");\n// return;\n }\n StringBuilder holderBuilder = new StringBuilder();\n\n // generator of view holder class\n StringBuilder generatorForView = new StringBuilder();\n generatorForView.append(\"public \" + holderClassName + \"(android.view.View view) {\\n\");\n\n // rootView\n\n holderBuilder.append(\"\\n\\t\\t// \" + holderClassName + \" create by \" + mLayoutFileName + \"\\n\\n\");\n\n String rootViewName = \"view\";\n holderBuilder.append(\"public \" + \"android.view.View \" + rootViewName + \";\\n\");\n generatorForView.append(\"this.\" + rootViewName + \" = \" + rootViewName + \";\\n\");\n\n String viewModel = \"viewModel\";\n holderBuilder.append(\"public \" + modelClassName + \" \" + viewModel + \";\\n\");\n\n for (Element element : mElements) {\n if (!element.used) {\n continue;\n }\n\n // field\n holderBuilder.append(\"public \" + element.name + \" \" + element.getFieldName() + \";\\n\");\n\n // findViewById in generator\n generatorForView.append(\"this.\" + element.getFieldName() + \" = (\" + element.name + \") \"\n + rootViewName + \".findViewById(\" + element.getFullID() + \");\\n\");\n\n if (isAutoImplements) {\n\n if (element.isClickable) {\n generatorForView.append(\"this.\" + element.getFieldName() + \".setOnClickListener(this);\\n\");\n }\n\n if (element.isLongClickable) {\n generatorForView.append(\"this.\" + element.getFieldName() + \".setOnLongClickListener(this);\\n\");\n }\n }\n }\n generatorForView.append(\"this.\" + viewModel + \" = new \" + modelClassName + \"(this);\\n\");\n generatorForView.append(\"}\\n\");\n\n StringBuilder generatorForLayoutId = new StringBuilder();\n generatorForLayoutId.append(\"public \" + holderClassName + \"(android.content.Context context,int layoutId) {\\n\");\n generatorForLayoutId.append(\"this(LayoutInflater.from(context).inflate(layoutId, null));\\n\");\n generatorForLayoutId.append(\"}\\n\");\n\n StringBuilder onResume = new StringBuilder();\n onResume.append(\"@Override\\npublic void onResume(){\");\n onResume.append(\"this.viewModel.resume();\\n\");\n onResume.append(\"}\\n\");\n\n StringBuilder onPause = new StringBuilder();\n onPause.append(\"@Override\\npublic void onPause(){\");\n onPause.append(\"this.viewModel.pause();\\n\");\n onPause.append(\"}\\n\");\n\n StringBuilder getView = new StringBuilder();\n getView.append(\"@Override\\npublic View getView(){\");\n getView.append(\"return view;\\n\");\n getView.append(\"}\\n\");\n\n holderBuilder.append(generatorForLayoutId.toString());\n holderBuilder.append(generatorForView.toString());\n\n PsiClass viewHolder = mFactory.createClassFromText(holderBuilder.toString(), mClass);\n viewHolder.setName(holderClassName);\n\n GlobalSearchScope searchScope = GlobalSearchScope.allScope(mProject);\n PsiClass[] psiClasses = PsiShortNamesCache.getInstance(mProject).getClassesByName(CreateViewHolderConfig.VIEWHOLDER_INTERFACE_NAME, searchScope);\n if (psiClasses.length > 0) {\n for (int i = 0; i < psiClasses.length; i++) {\n if (psiClasses[i].getQualifiedName().equals(CreateViewHolderConfig.VIEWHOLDER_INTERFACE_FULL_NAME)) {\n viewHolder.getImplementsList().add(mFactory.createClassReferenceElement(psiClasses[i]));\n }\n }\n }\n\n if (isAutoImplements) {\n generatorOnClick(viewHolder);\n generatorLongOnClick(viewHolder);\n generatorEditSubmit(viewHolder);\n }\n\n PsiMethod onResumeMethod = mFactory.createMethodFromText(onResume.toString(), viewHolder);\n PsiMethod onPauseMethod = mFactory.createMethodFromText(onPause.toString(), viewHolder);\n PsiMethod getViewMethod = mFactory.createMethodFromText(getView.toString(), viewHolder);\n\n viewHolder.add(onResumeMethod);\n viewHolder.add(onPauseMethod);\n viewHolder.add(getViewMethod);\n generateViewModel(viewHolder);\n\n mClass.add(viewHolder);\n mClass.addBefore(mFactory.createKeyword(\"public\", mClass), mClass.findInnerClassByName(holderClassName, true));\n\n if (innerClass != null) {\n innerClass.delete();\n }\n }", "protected ReportGenerator()\r\n {\r\n helperObjects = new HashMap();\r\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "public ClassTemplate() {\n\t}", "public interface Sample {\n\n /**\n * Returns the sample's platform name.\n *\n * @return the platform name\n */\n String getPlatformName();\n\n /**\n * Returns the sample's cruise name.\n *\n * @return the cruise name\n */\n String getCruiseName();\n\n /**\n * Returns the sample's name.\n *\n * @return the name\n */\n String getName();\n\n /**\n * Returns the date on which sample collection begun.\n *\n * @return the collection begin date\n */\n LocalDate getCollectionBeginDate();\n\n /**\n * Returns the date on which sample collection ended.\n *\n * @return the collection end date\n */\n LocalDate getCollectionEndDate();\n\n /**\n * Returns the sample's latitude using the WGS 84 datum.\n *\n * @return the WGS 84 latitude\n */\n BigDecimal getWgs84Latitude();\n\n /**\n * Returns the sample's ending latitude using the WGS 84 datum.\n *\n * @return the WGS 84 ending latitude\n */\n BigDecimal getWgs84EndingLatitude();\n\n /**\n * Returns the sample's longitude using the WGS 84 datum.\n *\n * @return the WGS 84 longitude\n */\n BigDecimal getWgs84Longitude();\n\n /**\n * Returns the sample's ending longitude using the WGS 84 datum.\n *\n * @return the WGS 84 ending longitude\n */\n BigDecimal getWgs84EndingLongitude();\n\n /**\n * Returns the sample's elevation in meters.\n *\n * @return the elevation in meters\n */\n BigDecimal getElevation();\n\n /**\n * Returns the sample's ending elevation in meters.\n *\n * @return the ending elevation in meters\n */\n BigDecimal getEndingElevation();\n\n /**\n * Returns the sample's material.\n *\n * @return the material\n */\n String getMaterial();\n\n /**\n * Returns the sample's type.\n *\n * @return the type\n */\n String getType();\n\n}", "public interface IJSCmdBase {\r\n\r\n public abstract void run();\r\n\r\n /** \\brief unMarshall\r\n * \r\n * \\details\r\n *\r\n * \\return Object\r\n *\r\n * @param pobjFile\r\n * @return */\r\n public abstract Object unMarshal(File pobjFile); // private Object\r\n // unMarshall\r\n\r\n /** \\brief marshal\r\n * \r\n * \\details\r\n *\r\n * \\return Object\r\n *\r\n * @param objO\r\n * @param objF */\r\n public abstract Object marshal(Object objO, File objF); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n public abstract String toXMLString(Object objO); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n public abstract String toXMLString(); // private\r\n // SchedulerObjectFactoryOptions\r\n // marshal\r\n\r\n}", "protected JSONWriter(JSONWriter base, int features,\n ValueWriterLocator loc, TreeCodec tc,\n JsonGenerator g)\n {\n _features = features;\n _writeNullValues = JSON.Feature.WRITE_NULL_PROPERTIES.isEnabled(features);\n _treeCodec = tc;\n _writerLocator = loc.perOperationInstance(this, features);\n _generator = g;\n _timezone = DEFAULT_TIMEZONE;\n }", "public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}", "PagespeedType createPagespeedType();", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "public Framework_annotation<T> build_normal();", "For createFor();", "public <T> AutoGauge createAutoGaugeWithInternalReport(\n String metric, MetricLevel metricLevel, T obj, ToDoubleFunction<T> mapper, String... tags) {\n AutoGauge gauge = metricManager.createAutoGauge(metric, metricLevel, obj, mapper, tags);\n internalReporter.addAutoGauge(gauge, metric, tags);\n return gauge;\n }", "@Override\r\n protected IntermediateData generateTaggedMapOutput(Object o)\r\n {\n TaggedWritable value = new TaggedWritable((Text) o);\r\n value.setTag(inputTag);\r\n return value;\r\n }", "@Override\n protected void doBuildTemplate(PipelineData data, Context context)\n \t\tthrows Exception\n {\n \tcontext.put(\"success\", \"Congratulations, it worked!\");\n }", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "void writeObj(MyAllTypesFirst myFirst, StrategyI xmlStrat);", "public interface TxtBuilder {\r\n\r\n\t/**\r\n\t * Generates textual information about some graph data.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String build();\r\n\r\n}", "public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }", "@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }", "public AnnotatedTypeBuilder() {\n\t\ttypeAnnotations = new AnnotationBuilder();\n\t\tconstructors = new HashMap<Constructor<?>, AnnotationBuilder>();\n\t\tconstructorParameters = new HashMap<Constructor<?>, Map<Integer, AnnotationBuilder>>();\n\t\tconstructorParameterTypes = new HashMap<Constructor<?>, Map<Integer, Type>>();\n\t\tfields = new HashMap<Field, AnnotationBuilder>();\n\t\tfieldTypes = new HashMap<Field, Type>();\n\t\tmethods = new HashMap<Method, AnnotationBuilder>();\n\t\tmethodParameters = new HashMap<Method, Map<Integer, AnnotationBuilder>>();\n\t\tmethodParameterTypes = new HashMap<Method, Map<Integer, Type>>();\n\t}", "Documentation createDocumentation();", "Documentation createDocumentation();", "public abstract String getTemplDesc();", "public WCSpan(String name,\n NSDictionary<String, WOAssociation> someAssociations,\n WOElement template)\n {\n super(\"span\", someAssociations, template);\n\n if (_dojoType == null)\n {\n throw new WODynamicElementCreationException(\n \"<\" + getClass().getName() + \"> 'dojoType' binding must \"\n + \"be specified.\");\n }\n }", "public GenericDomainObject() {\n\tkeys = new LinkedHashMap<String, Object>();\n\tattributes = new LinkedHashMap<String, Object>();\n }", "public Template(String html) {\r\n\t\tjsObj = create(html.replaceAll(\"'\", \"\\\"\"));\r\n\t\tthis.html = html;\r\n\t}", "private <T extends BaseRecord> T createRecord(\n String data, Stat stat, Class<T> clazz) throws IOException {\n T record = newRecord(data, clazz, false);\n record.setDateCreated(stat.getCtime());\n record.setDateModified(stat.getMtime());\n return record;\n }", "public WriterBasedJsonGenerator(IOContext ctxt, int features, com.fasterxml.jackson.core.ObjectCodec codec, Writer w)\n/* */ {\n/* 87 */ super(ctxt, features, codec);\n/* 88 */ this._writer = w;\n/* 89 */ this._outputBuffer = ctxt.allocConcatBuffer();\n/* 90 */ this._outputEnd = this._outputBuffer.length;\n/* */ }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public interface ISpecial\n{\n\tJSONObject generate();\n\n\tString getName();\n}", "@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \n \t\t\t\t}", "protected ObservableWork(String type) {\r\n\t\tsuper(type);\r\n\t}", "public ScreenDefaultTemplateMapper()\n {\n \t// empty\n }", "public Object create( DataWrapper data) {\n return LoadManager.getItem(data.getString(\"type\"),data.getName());\n }", "private XContentBuilder createMappingObject() throws IOException {\n return XContentFactory.jsonBuilder()\n .startObject()\n .startObject(type)\n .startObject(ES_PROPERTIES)\n .startObject(\"externalId\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"sourceUri\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"kind\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"fields\")\n .field(ES_TYPE, ES_TYPE_NESTED)\n .startObject(ES_PROPERTIES)\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"value\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject();\n }", "DataElement createDataElement();", "public OrotParser() {\n createPackagesJson();\n }", "Parse createParse();", "public ODocument create(@Generic(\"T\") final Class<?> type) {\n dbProvider.get();\n return new ODocument(type.getSimpleName());\n }", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "protected abstract D createData();", "public Gps_dataResource() {\n }", "public interface CustomObjectExpansionModel<T> {\n\n static <T> CustomObjectExpansionModel<CustomObject<T>> of(){\n return new CustomObjectExpansionModelImpl<>();\n }\n}", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "public Object createCustomNodeBean(IParserHandler parserHandler, BeanNode node, XMLAttributeMap att, Locator locator);", "public Base(Class<T> cls, ObjectMapper objectMapper, Type type, int dbType, String pgType, DocPropertyType docType) {\n super(cls, false, dbType);\n this.pgType = pgType;\n this.docType = docType;\n this.objectMapper = objectMapper;\n this.javaType = objectMapper.getTypeFactory().constructType(type);\n }", "public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }", "public TranslatorGeneratorBaseClientWeb(final String translatorType,\r\n\t\t\t\t\t\t\t\t final GenerationParameters generationParams,\r\n\t\t\t\t\t\t\t\t final ParsedInfoHandler parsedInfoHandler,\r\n\t\t\t\t\t\t\t\t final String generationPackage)\r\n\t{\r\n\t\tsuper(translatorType, generationParams, parsedInfoHandler, generationPackage) ;\r\n\t}", "public interface CreatePageMarker {\n}", "public MgtFactoryImpl()\n {\n super();\n }", "public GoogleanalyticsFactoryImpl() {\n\t\tsuper();\n\t}", "public GeometricObject() {\n dateCreated = new java.util.Date();\n }", "DataModel createDataModel();", "Traditional createTraditional();", "ObjectTypeDefinition createObjectTypeDefinition();", "@Override\n protected void generateDocument(Object object, Document document) throws Exception {\n\n if (object instanceof Record) {\n createRecord((Record) object, document);\n } else if (object instanceof RecordCompleteEvent) {\n \tcreateRecordCompleteEvent((RecordCompleteEvent) object, document);\n } else if (object instanceof RecordPauseCommand) {\n createPauseCommand((RecordPauseCommand) object, document);\n } else if (object instanceof RecordResumeCommand) {\n createResumeCommand((RecordResumeCommand) object, document);\n }\n }", "Generalization createGeneralization();", "private <T extends MwsObject> T newResponse(\n Class<T> cls) {\n InputStream is = null;\n try {\n is = this.getClass().getResourceAsStream(cls.getSimpleName()+\".xml\");\n MwsXmlReader reader = new MwsXmlReader(is);\n T obj = cls.newInstance();\n obj.readFragmentFrom(reader);\n ResponseHeaderMetadata rhmd = new ResponseHeaderMetadata(\n \"mockRequestId\", Arrays.asList(\"A\",\"B\",\"C\"), \"mockTimestamp\", 0d, 0d, new Date());\n cls.getMethod(\"setResponseHeaderMetadata\", rhmd.getClass()).invoke(obj, rhmd);\n return obj;\n } catch (Exception e) {\n throw MwsUtl.wrap(e);\n } finally {\n MwsUtl.close(is);\n }\n }", "@Override\r\n\tpublic int buildPage(String name, Map<?, ?> data, String filePath, String fileName) {\n\t\treturn 0;\r\n\t}", "public JsonWriter object() {\n startValue();\n\n stack.push(context);\n context = new JsonContext(JsonContext.Mode.MAP);\n writer.write('{');\n\n return this;\n }", "OBJECT createOBJECT();", "public SampletypeBean createSampletypeBean()\n {\n return new SampletypeBean();\n }", "public DocumentReport() {\n\n\t\tLOGGER.info(\"Create Document Processor\");\n\n\t\tresultsXMLWriter = new ResultsXMLWriter();\n\t\tgaugesWriter = new GaugeJSONWriter();\n\t\tgaugesWriter.setMode(processMode.toString());\n\t\tgaugesXMLWriter = new GaugeXMLWriter();\n\t\tstylesXMLWriter = new StylesXMLWriter();\n\t\tstylesWriter = new StylesJSONWriter();\n\t\tstylesWriter.setMode(processMode.toString());\n\t\t\n\t\txPathWriter = new XPathJSONWriter();\n\t\txPathDotWriter = new DotWriter();\n\t\txPathXMLWriter = new XMLWriter();\n\t\txPathWriter.setMode(processMode.toString());\n\t\t\n//\t\tdotWriter = new DotWriter();\n\t}", "public abstract OwObjectSkeleton createObjectSkeleton(OwObjectClass objectclass_p, OwResource resource_p) throws Exception;", "interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }", "InlineDataExample createInlineDataExample();", "abstract public Content createContent();", "public ApiBuilder() \n\t{\n\t\tthis._data = new LinkedHashMap<String,Object>();\n\t}", "public abstract T create(T obj);", "public ShiftTemplate() {\n }", "public static IngestHelperInterface create() {\n ClassLoader cl = SimpleDataTypeHelper.class.getClassLoader();\n return (IngestHelperInterface) Proxy.newProxyInstance(cl, new Class[] {IngestHelperInterface.class}, new SimpleDataTypeHelper());\n }", "public Document buildDocument(JSONObject jsonObject) {\n Document doc = new Document();\n\n //Add text field so that the text is what is searchable\n doc.add(new TextField(\"text\",(String) jsonObject.get(\"Text\"), Field.Store.YES));\n //Add tweet id field for unique tweet check and embedding in front end\n doc.add(new StoredField(\"id\", (String) (\"\" + jsonObject.get(\"ID\") )));\n //convert long data type to string (concatenate \"\" with long)\n\n // Give timestamp field to boost on most recent tweets\n doc.add(new NumericDocValuesField(\"timestamp\", (long) jsonObject.get(\"Timestamp\")));\n\n // Add as numeric field (twitter 4j suggestion)\n doc.add(new LongPoint(\"time\", (long) jsonObject.get(\"Timestamp\")));\n\n return doc;\n }", "private TemplateReader() {\n }", "public SystemExportGeneratorContent() {\n }", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "private void createGrape(Element temp) {\n Grape grape = new Grape(); //new instance of Objects.Grape\n for(int i = 0; i < temp.getAttributeCount(); i++) { //iterates through all the attributes placed by the user\n Attribute attribute = temp.getAttribute(i); //instantiates a specific attribute (eg. id = \"1\")\n String name = attribute.getQualifiedName(); //takes the attribute name (eg. id)\n String value = attribute.getValue(); //takes the attribute value (eg. \"1\")\n\n switch (name) {\n case(\"id\"):\n grape.setId(value);\n break;\n\n case (\"class\"):\n try {\n grape.setGrapeClass(Class.forName(\"Examples.\"+value)); //creates a new Class based on the attribute's value\n\n } catch (ReflectiveOperationException e) {\n e.printStackTrace();\n\n }\n break;\n\n case (\"scope\"):\n if(value.equals(\"singleton\")) {\n grape.setSingleton(true);\n super.singletonGrapes.put(grape.getId(), null); //create a new instance of the grape and store it in its map\n }\n else\n grape.setSingleton(false);\n\n break;\n\n case (\"init-method\"):\n if (grape.getGrapeClass() != null) {\n Class grapeClass = grape.getGrapeClass();\n try {\n grape.setInitMethod(grapeClass.getMethod(value, null));\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n } else {\n System.err.print(\"Objects.Grape parameters not in correct order. Class should be before methods. \");\n }\n break;\n\n case (\"destroy-method\"):\n if (grape.getGrapeClass() != null) {\n Class grapeClass = grape.getGrapeClass();\n try {\n grape.setDestroyMethod(grapeClass.getMethod(value, null));\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n } else {\n System.err.print(\"Objects.Grape parameters not in correct order. Class should be before methods. \");\n }\n break;\n\n case (\"property\"):\n if (grape.getGrapeClass() != null) {\n if (value.equals(\"type\")) {\n autowired =! autowired;\n grape.setAutowiring(\"type\");\n } else if (value.equals(\"name\")) {\n autowired =! autowired;\n grape.setAutowiring(\"name\");\n } else if (value.equals(\"no\") && autowired) {\n if (searchAndCreateDep(grape)) {\n return;\n }\n }\n } else {\n System.err.print(\"Objects.Grape parameters not in correct order. Class should be before methods. \");\n }\n break;\n\n default:\n System.err.print(\"Invalid parameter \" + name);\n break;\n }\n }\n super.grapes.put(grape.getId(), grape);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public JSONWriter perOperationInstance(int features,\n ValueWriterLocator loc, TreeCodec tc,\n JsonGenerator g)\n {\n if (getClass() != JSONWriter.class) { // sanity check\n throw new IllegalStateException(\"Sub-classes MUST override perOperationInstance(...)\");\n }\n return new JSONWriter(this, features, loc, tc, g);\n }", "public abstract mapnik.Map createMap(Object recycleTag);", "public TestRunJsonParser(){\n }", "public TemplateCodec() {\n this.documentCodec = new DocumentCodec();\n }" ]
[ "0.5054361", "0.50454336", "0.49629635", "0.49264336", "0.47998956", "0.47714442", "0.47136465", "0.47106636", "0.47105166", "0.4682312", "0.46489546", "0.46445203", "0.46214244", "0.4620566", "0.4618621", "0.46083727", "0.46073827", "0.4593872", "0.45480046", "0.45440266", "0.4537587", "0.45041132", "0.44997066", "0.44917363", "0.44860736", "0.44785452", "0.44776672", "0.44747624", "0.44704825", "0.4469725", "0.44475278", "0.44392893", "0.4429134", "0.4428507", "0.44284463", "0.44236678", "0.44073665", "0.44054294", "0.44042796", "0.44042796", "0.44036674", "0.4391083", "0.43878818", "0.4387317", "0.43840945", "0.4381209", "0.43716145", "0.43680337", "0.43623528", "0.43605474", "0.4360134", "0.43599963", "0.43571573", "0.43561313", "0.4354776", "0.43475685", "0.43349683", "0.43334112", "0.43310076", "0.43305588", "0.43269464", "0.4325745", "0.4316787", "0.43164358", "0.43160087", "0.42946747", "0.42931226", "0.42918316", "0.42877567", "0.42874253", "0.42839164", "0.42686427", "0.4255833", "0.42557716", "0.42497888", "0.42495608", "0.42492685", "0.42459026", "0.4243359", "0.42429242", "0.42397267", "0.42369133", "0.4236263", "0.4232079", "0.4230974", "0.4227779", "0.4226453", "0.42227608", "0.4218475", "0.421839", "0.42177862", "0.42166913", "0.42159048", "0.42138883", "0.4212787", "0.42115673", "0.42098564", "0.4207082", "0.4205821", "0.42028323" ]
0.7028912
0
Adds a supercategory so that we can customorder the categories in the doc index
@Override protected final Map<String, String> getGroupMap(final DocWorkUnit docWorkUnit) { final Map<String, String> root = super.getGroupMap(docWorkUnit); /** * Add-on super-category definitions. The super-category and spark value strings need to be the * same as used in the Freemarker template. */ root.put("supercat", HelpConstants.getSuperCategoryProperty(docWorkUnit.getGroupName())); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "void addCategory(Category category);", "public Document addCategoryToTheDocument(Document document, Integer docCategoryId) {\n DocCategory docCategoryToAdd = docCategoryRepository.findById(docCategoryId).orElseThrow(EntityNotFoundException::new);\n docCategoryToAdd.getDocumentsOfTheCategory().add(document);\n document.getDocCategories().add(docCategoryToAdd);\n return documentRepository.save(document);\n }", "@Override\r\n\tpublic boolean addSubCategory(List<SubCategory> subCategories) throws IOException {\n\t\treturn categoryDao.addSubCategory(subCategories);\r\n\t}", "public int addCategory(Category cat) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void add(SecondCategory scategory) {\n\t\tscategory.setCreattime(new Date());\r\n\t\tscategoryDao.add(scategory);\r\n\t}", "Category addNewCategory(Category category);", "private void toggleSubCategoryView() {\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) ivHookCat.getLayoutParams();\n // -1 will decrease the top margin of the hook (hide sub-category), 1 will increase it\n int hookMovDir = lp.topMargin == HOOK_TOP_MARGIN ? 1 : -1;\n toggleSubCategoryView(hookMovDir, AppConstants.CAT_BASE);\n }", "public void addCategoryToCategory(PortletCategory child,\n\t\t\tPortletCategory parent);", "@Override\r\n\tpublic int AddCategory(String name, int parentid) {\n\t\tConnection conn=getConn();\r\n\t\tString sql=\"insert into easybuy_product_category values(?,?)\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, name);\r\n\t\t\tps.setInt(2, parentid);\r\n\t\t\treturn ps.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}finally{\r\n\t\t\tcloseConn();\r\n\t\t}\r\n\t}", "public void addSuperType(TypeReference superType) {\n\t\tif (superList == null) superList = new ArrayList<TypeReference>();\n\t\tsuperList.add(superType);\n\t}", "public void setCategory(String newCategory) {\n category = newCategory;\n }", "public Categorie addCategorie(Categorie c);", "public void addSubCategory_WithoutSelectingOrder(String maincategoryname, String subcategoryname) {\n\t\t select_MainCategoryName(maincategoryname);\n\t\t edit_SubCategoryName(subcategoryname);\n\t\t click_SubmitButton();\n\t\t \n\t}", "public void newCategory() {\n btNewCategory().push();\n }", "void add(ProductCategory category);", "public void addNewCategory(Category category) throws CostManagerException;", "@Override\n\tpublic Category addCategory(Category cat) {\n\t\treturn dao.addCategory(cat);\n\t}", "@Override\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn \"category\";\n\t\t\t\t}", "@Override\n\tpublic boolean addCategory(String catName) {\n\t\tTransaction tx=sessionFactory.getCurrentSession().beginTransaction();\n\t\tboolean found =categoryhome.isFound(catName);\n\t\tif(found==true)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\tCategory cat =new Category();\n\t\tcat.setName(catName);\n\t\tsessionFactory.getCurrentSession().save(cat);\n\t\ttx.commit();\n\t\t\treturn true;\n\t\t}\n\t}", "private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }", "public String addSubCategoryListing(SubCategoryItem s){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\treturn daoObject.addSubCategories(s.getSubCategoryName(), s.getCategoryID());\n\t}", "public SubCategory getSubCategoryId(Integer catId);", "@Test\n public void addItemSubCategoryTest() throws ApiException {\n ItemSubCategory body = null;\n ItemSubCategory response = api.addItemSubCategory(body);\n\n // TODO: test validations\n }", "public void addCat(Cat catToAdd)\r\n {\r\n if(catToAdd != null){\r\n catCollection.add(catToAdd);\r\n }\r\n }", "@Override\n\tpublic ZuelResult addContentCategory(TbContentCategory contentCategory) throws ServiceException {\n\t\ttry {\n contentCategory.setId(ZuelIdUtil.getId());\n contentCategory.setIsParent(false);\n contentCategory.setSortOrder(1);\n contentCategory.setStatus(ZuelContentStatus.CONTENT_CATEGORY_OK);\n Date now = new Date();\n contentCategory.setCreated(now);\n contentCategory.setUpdated(now);\n boolean isCreated = service.addContentCategory(contentCategory);\n if (isCreated) { \n return ZuelResult.ok(contentCategory);\n }\n }catch (ServiceException e){\n e.printStackTrace();\n throw e; \n }\n return ZuelResult.error(\"服务器忙,请稍后重试!\");\n\t}", "@Override\r\n\tpublic boolean add(Se_cat se_cat) {\n\t\t\t\treturn se_catdao.add(se_cat);\r\n\t}", "public void setAdditionalCategoryCat(java.lang.Integer additionalCategoryCat) {\r\n this.additionalCategoryCat = additionalCategoryCat;\r\n }", "public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }", "@Override\n\tpublic boolean add(ProductCategory procate) {\n\t\n\t\treturn false;\n\t}", "public void addCategory(String categoryName) {\n if(!containsCategory(categoryName)) {\n Category cat = new Category(categoryName);\n categories.add(cat);\n }\n }", "@Test\n public void addItemSubCategoryTagTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String itemSubCategoryTag = null;\n api.addItemSubCategoryTag(itemSubCategoryId, itemSubCategoryTag);\n\n // TODO: test validations\n }", "@Override\n\tpublic List<CategoryVO> subCategory(Integer cate_code_pk) {\n\t\treturn mapper.subCategory(cate_code_pk);\n\t}", "public int addCategory(String catName, int sessionID) {\r\n\t\tfor (int i=0;i<sessions.size();i++) {\r\n\t\t\tSession s = sessions.get(i);\r\n\t\t\tif (s.getID() == sessionID && s.getUser() instanceof Administrator) {\r\n\t\t\t\tAdministrator ad = (Administrator)(s.getUser());\r\n\t\t\t\treturn ad.addCategory(catName);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "String getCategoryBySubCategory(String subCategory) throws DataBaseException;", "public java.lang.Integer getAdditionalCategoryCat() {\r\n return additionalCategoryCat;\r\n }", "public static void edit_SubCategoryName(String subcategoryname) {\n\t\tboolean bstatus;\n\n\t\tbstatus = setEditValue(edit_SubCategory, subcategoryname);\n\t\tReporter.log(bstatus, \"Sub Category name is Entered\", \"Sub Category name not entered\");\n\t\t\n\t}", "public boolean addToCategory (Message msg) {\n return addToCategory(msg.ADDTOCATgetName(), Crypto.decodeKey(msg.ADDTOCATgetKey()));\n }", "public void setDocumentCategory(java.lang.String documentCategory)\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(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOCUMENTCATEGORY$0);\r\n }\r\n target.setStringValue(documentCategory);\r\n }\r\n }", "public DocCategory createDocCategory(DocCategory docCategory) {\n if (docCategoryRepository.findDocCategoryByName(docCategory.getName()).isPresent()) {\n return null;\n }\n return docCategoryRepository.save(docCategory);\n }", "private CIECADocument updateCoverageCategory(final CIECADocument inDoc, final java.util.logging.Logger mLogger) {\n\t\t\n\t\tif (inDoc != null && inDoc.getCIECA() != null && inDoc.getCIECA().getAssignmentAddRq() != null) {\n\t\t\t\n\t\t\t//\n\t\t\t// <ClaimInfo>/<PolicyInfo>/<CoverageInfo>/<Coverage>/<CoverageCategory>\n\t\t\t//\n\t\t\tfinal ClaimInfoType claimInfo = inDoc.getCIECA().getAssignmentAddRq().getClaimInfo();\n\t\t\tif (claimInfo != null) {\n\t\t\t\tif (claimInfo.isSetPolicyInfo()) {\n\t\t\t\t\tfinal PolicyInfoType policyInfo = claimInfo.getPolicyInfo();\n\t\t\t\t\tif (policyInfo != null) {\n\t\t\t\t\t\tif (policyInfo.isSetCoverageInfo()) {\n\t\t\t\t\t\t\tfinal CoverageInfoType coverageInfo = policyInfo.getCoverageInfo();\n\t\t\t\t\t\t\tif (coverageInfo != null && coverageInfo.sizeOfCoverageArray() > 0) {\n\t\t\t\t\t\t\t\tfinal Coverage coverage = coverageInfo.getCoverageArray(0);\n\t\t\t\t\t\t\t\tif (coverage != null) {\n\t\t\t\t\t\t\t\t\tif (coverage.isSetCoverageCategory()) {\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* BEFORE updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t// TypeOfLoss - C maps to G, P maps to A, M maps to D, \n\t\t\t\t\t\t\t\t\t\t// A (Animal) maps to 0 Else no mapping \n\t\t\t\t\t\t\t\t\t\tif (coverage.getCoverageCategory() != null) {\n\t\t\t\t\t\t\t\t\t\t\tfinal String inCoverageCategory = coverage.getCoverageCategory();\n\t\t\t\t\t\t\t\t\t\t\tif (inCoverageCategory.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"G\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"P\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"A\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"M\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"D\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"A\")) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Map A (Animal) to O (Other) - preventing collision with A (Property)\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"0\");\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\t// else NO MAPPING of remaining LossTypes\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* AFTER updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inDoc;\n\t}", "public int getFirstCategoryIndex() { return this.firstCategoryIndex; }", "public void setSuper(String sSuper)\n {\n ensureLoaded();\n m_clzSuper = (sSuper == null ? (ClassConstant) null : new ClassConstant(sSuper));\n setModified(true);\n }", "public int getCategory(){\n\t\treturn this.cat;\n\t}", "public void setSuperMenu(Menu superMenu) {\n\tthis.superMenu = superMenu;\n }", "public void createCategory(String name, int fatherId) throws SQLException {\n \t\tString query = \"INSERT INTO category (name, `index`, father_id) VALUES (?, ?, ?)\";\n\n \t\ttry {\n \t \t\tint index = getNextIndex(fatherId);\n \t\t\tPreparedStatement pstatement = connection.prepareStatement(query);\n \t\t\tpstatement.setString(1, name);\n \t\t\tpstatement.setInt(2, index);\n \t\t\tpstatement.setObject(3, fatherId);\n \t\t\tpstatement.executeUpdate();\n \t\t} catch (SQLException e) {\n \t\t\tthrow new SQLException(\"Failed to create the category.\");\n \t\t}\n \t}", "public void xsetDocumentCategory(org.erdc.cobie.cobielite.core.DocumentCategorySimpleType documentCategory)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.erdc.cobie.cobielite.core.DocumentCategorySimpleType target = null;\r\n target = (org.erdc.cobie.cobielite.core.DocumentCategorySimpleType)get_store().find_element_user(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.erdc.cobie.cobielite.core.DocumentCategorySimpleType)get_store().add_element_user(DOCUMENTCATEGORY$0);\r\n }\r\n target.set(documentCategory);\r\n }\r\n }", "public void assignAddingCategory(final boolean val) {\n addingCategory = val;\n }", "public java.lang.String HR_ScaleByServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory, java.lang.String subServiceCategory) throws java.rmi.RemoteException;", "public void addSubCategory(String maincategoryname, String subcategoryname, String assignorder,String filePath) {\n\t\t\n\t\tselect_MainCategoryName(maincategoryname);\n\t\tedit_SubCategoryName(subcategoryname);\n\t\tselect_AssignedOrderValue(assignorder);\n\t\tupload_Image(filePath);\n\t\twait(20);\n\t\tclick_SubmitButton();\n\n\t}", "private void addSuperClasses(Integer directSuperClass,\n\t\t\tClassRecord subClassRecord) {\n\t\tif (subClassRecord.superClasses.contains(directSuperClass)) {\n\t\t\treturn;\n\t\t}\n\t\tsubClassRecord.superClasses.add(directSuperClass);\n\t\tClassRecord superClassRecord = getClassRecord(directSuperClass);\n\t\tif (superClassRecord == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Integer superClass : superClassRecord.directSuperClasses) {\n\t\t\taddSuperClasses(superClass, subClassRecord);\n\t\t}\n\t}", "public void secondaryAddSuperRegionAccs(com.hps.july.persistence.SuperRegionAcc arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddSuperRegionAccs(arg0);\n }", "public Gel_BioInf_Models.ChiSquare1KGenomesPhase3Pop.Builder setKGSuperPopCategory(Gel_BioInf_Models.KGSuperPopCategory value) {\n validate(fields()[0], value);\n this.kGSuperPopCategory = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}", "public void setCategoryName(final String categoryName);", "@ApiMethod(name = \"insertSubCategory\",\n path = \"subcategory\",\n httpMethod = ApiMethod.HttpMethod.POST)\n public void insertSubCategory(final User user, SubCategory subCategory)\n throws ConflictException, UnauthorizedException {\n\n if (user == null) {\n throw new UnauthorizedException(Constants.AUTHORIZATION_REQUIRED);\n }\n\n mSubCategoryService.insert(subCategory);\n }", "public void createCategory(String name) {\n\t\t\n\t\tFlashCategory cat = (\n\t\t\t\t\t\t\t\t\t\t\tselectionListener.selectedComponents.size() == 0\n\t\t\t\t\t\t\t\t\t\t?\troot\n\t\t\t\t\t\t\t\t\t\t:\t(FlashCategory) selectionListener.selectedComponents.iterator().next()\n\t\t);\n\t\t\n\t\tcat.add(new FlashCategory(name));\n\t\t\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "public com.walgreens.rxit.ch.cda.StrucDocSub addNewSub()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().add_element_user(SUB$2);\n return target;\n }\n }", "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }", "public void visitCAT( DevCat devCat ) {}", "@Override\n\tpublic void saveCollapsedCategories(String userName, String categoryId,\n\t\t\tboolean isAdd) throws Exception {\n\n\t}", "List<SubCategory> getSubCategory(Category category) throws DataBaseException;", "public void setCategory(String category);", "@Override\n\tpublic Catlog addCatlog(CatlogRequest catlogRequest) {\n\t\ttry {\n\t\t\tCatlog catlogEntity = new Catlog();\n\t\t\t// catlogEntity.setCatlogId(catlogRequest.getCatlogId());\n\t\t\tcatlogEntity.setCatlogName(catlogRequest.getCatlogName());\n\t\t\tCatlog catlogdata = catlogRepository.save(catlogEntity);\n\t\t\treturn catlogdata;\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String getCategoryLabel() {\n return categoryLabel;\n }", "@Override\n\tpublic int add(FoodCategory foodCategory) {\n\t\treturn foodCategoryDao.add(foodCategory);\n\t}", "public void addDirectSuperClass(int disjident) {\n\t\tif (directSuperclasses==null)\n\t\t\tthis.directSuperclasses = new HashSet<Integer>();\n\t\t\n\t\tthis.directSuperclasses.add(disjident);\n\t\t\n\t}", "public void addCategory(AtomCategory category) {\n if(!categories.contains(category)) {\n \tthis.categories.add(category);\n }\n }", "public int AddCategory(Inventory inventory, String description) throws ExistingCatException{\r\n\t\tif (description != null && description.length() != 0){\r\n\t\t\tfor (Category c: inventory.category_list)\r\n\t\t\t\tif (c.description.equals(description)){\r\n\t//\t\t\t\tSystem.out.println(\"existed\");\r\n\t\t\t\t\tthrow new ExistingCatException();\r\n\t\t\t\t}\r\n\t\t\tCategory c = new Category(description,inventory);\r\n\t\t\tinventory.category_list.add(c);\r\n\t\t\treturn c.code;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public void setName(String ac) {\n categoryName = ac;\n }", "@Test\n public void addItemSubCategoryFileTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String fileName = null;\n api.addItemSubCategoryFile(itemSubCategoryId, fileName);\n\n // TODO: test validations\n }", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "protected int AddCategory(String categoryName, String categoryColor) {\n int resnum = Integer.parseInt(this.IniFile.getIniString(this.appIniFile,\n \"resource\", \"resnum\", \"0\", (byte) 0));\n for (int i = 1; i <= resnum; i++) {\n String resname = this.IniFile.getIniString(this.appIniFile, \"resource\",\n \"resname\" + i, \"0\", (byte) 0);\n if (resname.equals(categoryName)) {\n return 0;\n }\n }\n resnum = resnum + 1;\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resnum\", resnum + \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resid\" + resnum,\n \"group\" + resnum);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resname\" + resnum,\n categoryName);\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resicon\" + resnum, \"\");\n this.IniFile.writeIniString(this.appIniFile, \"resource\", \"resbkcolor\" + resnum,\n categoryColor);\n Map<String, String> group = new HashMap<String, String>();\n group.put(\"group\", categoryName);\n this.groups.add(group);\n List<Map<String, String>> child = new ArrayList<Map<String, String>>();\n this.childs.add(child);\n this.exlist_adapter.notifyDataSetChanged();\n return 1;\n }", "private void addCollectionType(Class type, Class superType)\r\n\t{\r\n\t\tVector v;\r\n\t\tif(!collectionTypes.containsKey(type))\r\n\t\t{\r\n\t\t\tv = new Vector();\r\n\t\t\tv.add(superType);\r\n\t\t\tcollectionTypes.put(type, v);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tv = (Vector) collectionTypes.get(type);\r\n\t\t\tif(! v.contains(superType))\r\n\t\t\t\tv.add(superType);\r\n\t\t}\r\n\t}", "public void setFirstCategoryIndex(int first) {\n/* 118 */ if (first < 0 || first >= this.underlying.getColumnCount()) {\n/* 119 */ throw new IllegalArgumentException(\"Invalid index.\");\n/* */ }\n/* 121 */ this.firstCategoryIndex = first;\n/* 122 */ fireDatasetChanged();\n/* */ }", "public void addDocument(Document d) throws IndexerException {\n\t\t\n\t//if (!isvaliddir) {System.out.println(\"INVALID PATH/execution !\");return;}\n\t\n\t\n\t//Tokenizing\n\t//one thgread\n\tDocID did=new DocID(d.getField(FieldNames.FILEID),\n\t\t\td.getField(FieldNames.CATEGORY),\n\t\t\td.getField(FieldNames.AUTHOR));\n\t\n\tTokenStream stream=tokenize(FieldNames.CATEGORY,d);\n\tAnalyzer analyz=analyze(FieldNames.CATEGORY, stream);\n\tCategoryIndex.getInst().doIndexing(did.getdID(), stream);\n\t/*\t}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);\n\t}\n\ttry{*/TokenStream stream1=tokenize(FieldNames.AUTHOR,d);\n\tAnalyzer analyz1=analyze(FieldNames.AUTHOR, stream1);\n\tAuthorIndex.getInst().doIndexing(did.getdID(), stream1);\n\t/*}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\ttry{*/TokenStream stream2=tokenize(FieldNames.PLACE,d);\n\tAnalyzer analyz2=analyze(FieldNames.PLACE, stream2);\n\tPlaceIndex.getInst().doIndexing(did.getdID(), stream2);\n/*}catch(Exception e)\n\t{\n\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t);}\n\ttry{*/tkizer = new Tokenizer();\n\tTokenStream stream3=tokenize(FieldNames.CONTENT,d);\n\tfactory = AnalyzerFactory.getInstance();\n\tAnalyzer analyz3=analyze(FieldNames.CONTENT, stream3);\n\tnew Indxr(IndexType.TERM).doIndexing(did, stream3);\n\t/*}\tcatch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\t*/\n\tdocs.add(did==null?\" \":did.toString());\n\t \n\t\na_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.AUTHOR);\nc_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.CATEGORY);\np_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.PLACE);\nt_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.TERM);\n\t\t}", "@RequestMapping(\"/subcategoryrequest\")\r\n\t\tpublic String getCategoryView(ModelMap map) {\r\n\t\t\t// return the category DO object\r\n\t\t\tmap.addAttribute(\"subcate\", new SubCategory());\r\n\t\t\t// return value true validated in view(admin.jsp)\r\n\t\t\tmap.addAttribute(\"subcategoryrequest\", true);\r\n\t\t\tmap.addAttribute(\"savesubcate\", true);\r\n\t\t\tString category_list=prod.getCategoryList(new Category());\r\n\t map.addAttribute(\"cate_list\",category_list);\r\n\r\n\t\t\tString cate_list=subcatdao.getCategoryList(new SubCategory());\r\n\t map.addAttribute(\"subcate_list\",cate_list);\r\n\t\t\treturn \"admin\";\r\n\r\n\t\t}", "public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }", "public category() {\r\n }", "boolean add(DishCategory dishCategory );", "public final EObject ruleCategory() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n AntlrDatatypeRuleToken lv_title_1_0 = null;\n\n AntlrDatatypeRuleToken lv_description_3_0 = null;\n\n EObject lv_pages_4_0 = null;\n\n EObject lv_pages_5_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:322:28: ( (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:1: (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:1: (otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:323:3: otherlv_0= 'category' ( (lv_title_1_0= ruleEString ) ) (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )? ( (lv_pages_4_0= rulePage ) ) ( (lv_pages_5_0= rulePage ) )*\n {\n otherlv_0=(Token)match(input,15,FollowSets000.FOLLOW_15_in_ruleCategory626); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getCategoryAccess().getCategoryKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:327:1: ( (lv_title_1_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:328:1: (lv_title_1_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:328:1: (lv_title_1_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:329:3: lv_title_1_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getCategoryAccess().getTitleEStringParserRuleCall_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleCategory647);\n lv_title_1_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCategoryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"title\",\n \t\tlv_title_1_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:345:2: (otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) ) )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==13) ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:345:4: otherlv_2= 'description' ( (lv_description_3_0= ruleEString ) )\n {\n otherlv_2=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleCategory660); \n\n \tnewLeafNode(otherlv_2, grammarAccess.getCategoryAccess().getDescriptionKeyword_2_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:349:1: ( (lv_description_3_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:350:1: (lv_description_3_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:350:1: (lv_description_3_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:351:3: lv_description_3_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getCategoryAccess().getDescriptionEStringParserRuleCall_2_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleCategory681);\n lv_description_3_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCategoryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"description\",\n \t\tlv_description_3_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:367:4: ( (lv_pages_4_0= rulePage ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:368:1: (lv_pages_4_0= rulePage )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:368:1: (lv_pages_4_0= rulePage )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:369:3: lv_pages_4_0= rulePage\n {\n \n \t newCompositeNode(grammarAccess.getCategoryAccess().getPagesPageParserRuleCall_3_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_rulePage_in_ruleCategory704);\n lv_pages_4_0=rulePage();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCategoryRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"pages\",\n \t\tlv_pages_4_0, \n \t\t\"Page\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:385:2: ( (lv_pages_5_0= rulePage ) )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==18) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:386:1: (lv_pages_5_0= rulePage )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:386:1: (lv_pages_5_0= rulePage )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:387:3: lv_pages_5_0= rulePage\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getCategoryAccess().getPagesPageParserRuleCall_4_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_rulePage_in_ruleCategory725);\n \t lv_pages_5_0=rulePage();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getCategoryRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"pages\",\n \t \t\tlv_pages_5_0, \n \t \t\t\"Page\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\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 void clickSupercatNextLevel(String CategoryName){\r\n\t\tString supercartlink2 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink2);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink2+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCatNext\"));\r\n\t\t\tclickSpecificElementContains(locator_split(\"BylnkSuperCatNext\"),supercartlink2);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink2+\"link clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink2+\"' link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- '\"+supercartlink2+\"' link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "@Override\n public String getCategory() {\n return category;\n }", "public void setSuperCUGNameProp(java.lang.String superCUGNameProp)\n\t{\n\t\tthis.superCUGNameProp = superCUGNameProp;\n\t}", "public void clickSupercatlink(String CategoryName){\r\n\t\tString supercartlink1 = getValue(CategoryName);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+supercartlink1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- '\"+supercartlink1+\"' link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"BylnkSuperCat\"));\r\n\t\t\tclickSpecificElement(locator_split(\"BylnkSuperCat\"),supercartlink1);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(supercartlink1+\" link is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- '\"+supercartlink1+\"' link is clicked\");\r\n\t\t\tsleep(3000);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+supercartlink1+\" link is not clicked\");\r\n\r\n\t\t}\r\n\t}", "@Override\n public void setCategoryLabel(String categoryLabel) {\n this.categoryLabel = categoryLabel;\n }", "public @NotNull Category newCategory(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String description, @NotNull final Category parent);", "void setSuperEffectiveTo(List<Type> superEffectiveTo) {\n this.superEffectiveTo = superEffectiveTo;\n }", "public void setCatLevel(int value) {\n this.catLevel = value;\n }", "protected boolean addCategory(int conId, Category cat) {\n\t\tContest cs = getContest(conId);\n\t\tif(cs == null) {\n\t\t\treturn false;\n\t\t}\n\t\tcs.addCategory(cat);\n\t\treturn true;\n\t}", "Category(int num) {\n this.num = num;\n }", "void insertItemSubdocuments(String doc) {\n\t\tSystem.out.println(\"Subdocuments\");\n\t\tJSONObject obj1 = null;\n\t\ttry {\n\t\t\tobj1 = (JSONObject) JSON.parse(doc);\n\t\t} catch (Exception e) { // multiple exceptions possible\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString aoItem = \"ao\" + COLON_REPLACEMENT + \"item\";\n\t\tJSONArray aoItems = (JSONArray) (obj1.get(aoItem));\n\t\tSystem.out.println(\"Subdocuments found: \" + aoItems);\n\t\tif (aoItems != null) {\n\t\t\tSystem.out.println(\"Subdocuments found!\");\n\t\t\tfor (int i = 0; i < aoItems.size(); i++) {\n\t\t\t\tJSONObject item = (JSONObject) aoItems.get(i);\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint resCode = doHttpOperation(esInsertDeleteSubdocUrl,\n\t\t\t\t\t\tHTTP_POST, item.toString());\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.warning(\"No subdocuments found!\");\n\t\t\tSystem.out.println(\"No subdocuments found!\");\n\t\t}\n\t}", "public boolean addCategory(Category newCat) {\n\t\tfor(Category cat : categoriesList) {\n\t\t\tif(cat.getName().equals(newCat.getName())) return false;\n\t\t}\n\t\tcategoriesList.add(newCat);\n\t\t//this.notifyDataSetChanged();\n\t\treturn true;\n\t}", "void addCatFood(Long catId, Long foodId);", "@Override\n\t\tpublic void oncreateItem(String tag, View convertView) {\n\t\t\tmGuanzhuList.add(new Category(tag));// empty\n\t\t}", "@Override\n\tpublic void inc(Rule rule, String categoryOrContextProperty,\n\t\t\tString subCategoryOrVocabulary, String counterName, String term,\n\t\t\tlong incrementOffset) throws Exception {\n\t\t\n\t}", "public boolean addCategory (String name, boolean can_see_private_details) {\n Logger.write(\"VERBOSE\", \"DB\", \"addCategory(...)\");\n try {\n execute(DBStrings.addCategory.replace(\"__catID__\", name)\n .replace(\"__canSeePDATA__\", can_see_private_details?\"1\":\"0\"));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }", "public String categoryTech() {\n\t\treturn \"Computer Science\";\n\t}", "public void addToCategoryScores(entity.ReviewSummaryCategoryScore element);" ]
[ "0.60145706", "0.56734705", "0.56259435", "0.5596687", "0.55765617", "0.55708635", "0.54429096", "0.5395706", "0.5392998", "0.5339311", "0.53139824", "0.53021044", "0.52991754", "0.52824485", "0.5265345", "0.5221611", "0.518341", "0.51705086", "0.51697075", "0.5166594", "0.514636", "0.5141765", "0.5122345", "0.51149756", "0.51124376", "0.5109168", "0.5098089", "0.5083658", "0.50526875", "0.50500774", "0.50492364", "0.5044446", "0.503602", "0.5013308", "0.5012866", "0.49849343", "0.49695542", "0.49557883", "0.49444088", "0.49435383", "0.49343905", "0.49314445", "0.4918137", "0.49076784", "0.4904042", "0.489679", "0.48840913", "0.48735392", "0.48674396", "0.4860035", "0.48582837", "0.4832204", "0.4829776", "0.4822318", "0.48201308", "0.4808995", "0.4800398", "0.47938338", "0.47911456", "0.4779358", "0.47638065", "0.47496375", "0.47459438", "0.4736248", "0.47293574", "0.47238195", "0.47181284", "0.4709558", "0.47083512", "0.47002947", "0.46997216", "0.46989068", "0.468957", "0.4688038", "0.46868023", "0.46768332", "0.4661564", "0.46598116", "0.46597868", "0.46584836", "0.46575707", "0.46536145", "0.46477157", "0.46442866", "0.46429306", "0.46399215", "0.46295154", "0.46284145", "0.46191776", "0.46119478", "0.46096686", "0.46083722", "0.46037173", "0.45968038", "0.4594163", "0.45795807", "0.45786482", "0.4575304", "0.4571779", "0.4568879" ]
0.5000905
35
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_dashboard, container, false); SharedPreferences pref = getActivity().getApplicationContext().getSharedPreferences("Prefs", 0); if (!pref.contains("semester")) { SharedPreferences.Editor editor = pref.edit(); editor.putInt("semester", 0); editor.apply(); } int semester = pref.getInt("semester", 0); final TextView scoreLabel = view.findViewById(R.id.score_label); Spinner semesterPicker = view.findViewById(R.id.semester_picker); semesterPicker.setSelection(semester); semesterPicker.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { SharedPreferences pref = getActivity().getApplicationContext().getSharedPreferences("Prefs", 0); SharedPreferences.Editor editor = pref.edit(); editor.putInt("semester", position); editor.apply(); int semester = pref.getInt("semester", 0); updateScore(view, semester, scoreLabel); } @Override public void onNothingSelected(AdapterView<?> parent) { } }); updateScore(view, semester, scoreLabel); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@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 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 parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, 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(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\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, 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 return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\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 }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\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 }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, 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_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, 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 View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\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 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(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@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 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 View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), 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_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, 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\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 if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\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 view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, 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 binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\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,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, 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 View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\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, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\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.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\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_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Interface for serialization of instances. Implementations should be registered for specific scheme/method/mediatype using registerSerializer method for given connector.
public interface InstanceSerializer { /** * Serialize instance into the <tt>SerializerWrapperObject</tt> * * @param submission submission information. * @param instance instance to serialize. * @param serializerRequestWrapper object to write into. * @param defaultEncoding use this encoding in case user did not provide one. */ void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, String defaultEncoding) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Serializer {\r\n /**\r\n * Gets the value which indicates the encoding mechanism used.\r\n */\r\n String getContentEncoding();\r\n\r\n /**\r\n * Gets the MIME-type suffix\r\n */\r\n String getContentFormat();\r\n\r\n /**\r\n * Serializes the object graph provided and writes a serialized\r\n * representation to the output stream provided.\r\n */\r\n void serialize(OutputStream output, Object graph);\r\n\r\n /**\r\n * Deserializes the stream provided and reconstructs the corresponding\r\n * object graph.\r\n */\r\n Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);\r\n}", "@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }", "public interface ICustomObjectSerializer {\n\n\t/**\n\t * Must return true if the handler can serialize this object.\n\t * @param object\n\t * @return\n\t */\n\tpublic boolean handlesObject(Object object);\n\t\n\t/**\n\t * Must return true if the handler can deserialize objects of this type.\n\t * @param clazz\n\t * @return\n\t */\n\tpublic boolean handlesType(Class<?> clazz);\n\t\n\t/**\n\t * Serialize an object.\n\t * @param elm\n\t * @param object\n\t */\n\tpublic void serialize(Element elm, Object object) throws TransportException;\n\t\n\t/**\n\t * Deserialize an object.\n\t * @param elm\n\t * @return\n\t */\n\tpublic Object deserialize(Element elm) throws TransportException;\n\t\n}", "public abstract <T> SerializationStream writeObject(T t);", "public interface Serializer {\n\n /**\n * Serializes the given object to the given output stream.\n *\n * @param <T> the object type\n * @param obj the object to serialize\n * @param type the class type\n * @param os the output stream\n *\n * @throws SerializationException if serialization fails\n */\n public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;\n\n /**\n * Deserializes an object of the given type from the given input stream.\n *\n * @param <T> the object type\n * @param type the class type\n * @param is the input stream\n *\n * @return the object\n *\n * @throws SerializationException if serialization fails\n */\n public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;\n\n}", "public abstract void serialize(OutputStream stream, T object) throws IOException;", "SerializeFactory getSerializeFactory();", "public interface SerializationAdapter {\n\t\n\t/**\n\t * Tells plate model to save given plate specifications.\n\t * @param nickname - name to later refer to this specification as\n\t * @param plateSpecs - object encompassing all datasheet information\n\t */\n\tpublic void saveSpecs(String nickname, PlateSpecifications plateSpecs);\n\n\t/**\n\t * Loads the previously saved PlateSpecifications with the given filename.\n\t * @param nickname - name of the file specifications are actually saved in\n\t */\n\tpublic PlateSpecifications loadSpecs(String nickname);\n\t\n\t/**\n\t * Load workflow from a file.\n\t */\n\tpublic void loadWorkflow(String filename);\n\t\n\t/**\n\t * Save workflow to a file.\n\t */\n\tpublic void saveWorkflow(String filename);\n\t\n\t/**\n\t * Deletes previously saved data that matches the given filename and type.\n\t * @param filename - name of the data to delete\n\t */\n\tpublic void deleteData(String filename, SaveType type);\n\t\n\t/**\n\t * Gets all data of a certain type that are saved.\n\t * @return Iterable of each file name\n\t */\n\tpublic Iterable<String> updateDataList(SaveType type);\n\t\n}", "public interface CustomObjectSerializer <T> {\n\n Class<T> type();\n\n void serializeObject(JsonSerializerInternal serializer, T instance, CharBuf builder );\n\n}", "Serializer<T> getSerializer();", "public interface TransactionSerializer extends ObjectSerializer<Transaction> {\n}", "private void registerAvailableSerializers() {\r\n LOG.info(\"Registering available serializer object\");\r\n mSerializers.put(XML, new XmlObjectBaseSerializer());\r\n mSerializers.put(PHP, new PHPObjectBaseSerializer());\r\n }", "public interface ISerializable {\n /**\n * visitor pattern method where the object implementing this interface will\n * call back on the IRestSerializer with the correct method to run to\n * serialize the output of the object to the stream.\n * \n * @param serializer\n * @throws HBaseRestException\n */\n public void restSerialize(IRestSerializer serializer)\n throws HBaseRestException;\n}", "public interface Serializer {\n /**\n * Serializes given serializable object into the byte array.\n *\n * @param object object that will be serialized\n * @return serialized byte array\n */\n byte[] serialize(Serializable object);\n\n /**\n * Deserializes byte array that serialized by {@link #serialize(Serializable)} method.\n *\n * @param bytes byte array that will be deserialized\n * @return deserialized object\n */\n Object deserialize(byte[] bytes);\n}", "public interface Serializable {\n\n\t/**\n\t * Method to convert the object into a stream\n\t *\n\t * @param out OutputSerializer to write the object to\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid writeObject(OutputSerializer out) throws java.io.IOException;\n\n\t/** \n\t * Method to build the object from a stream of bytes\n\t *\n\t * @param in InputSerializer to read from\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid readObject(InputSerializer in) throws java.io.IOException;\n}", "public interface Serialize {\n\n String serialize(Object obj);\n\n <T> T deSerialize(String content, Class<T> t);\n\n}", "@Test\n @DisplayName(\"Tests serializing a connector.\")\n @SneakyThrows(IOException.class)\n void testSerialization() {\n TestConnector testConnector = new TestConnector();\n testConnector.setId(TestConnector.CONNECTOR_ID);\n testConnector.setName(\"connector-name\");\n testConnector.setIntParam(1);\n testConnector.setIntegerParam(2);\n testConnector.setLongParam(Long.MIN_VALUE);\n testConnector.setLongObjectParam(Long.MAX_VALUE);\n testConnector.setBooleanParam(Boolean.TRUE);\n testConnector.setBooleanObjectParam(Boolean.FALSE);\n testConnector.setStringParam(\"string-param\");\n testConnector.setSecuredStringParam(\"secured-string-param\");\n\n Writer serializedConnector = new StringWriter();\n\n connectorObjectMapper.writeValue(serializedConnector, testConnector);\n\n Files.writeString(Paths.get(\"target/connector-reference.json\"), serializedConnector.toString());\n\n String serializedJson = serializedConnector.toString();\n String referenceJson = Files.readString(Paths.get(\"src/test/resources/connector-reference.json\"));\n\n assertTrue(isJsonEqual(referenceJson, serializedJson));\n }", "public abstract String serialise();", "public interface Serialization {\n\n byte[] objSerialize(Object obj);\n\n Object ObjDeserialize(byte[] bytes);\n}", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "public interface Serializer extends Deserialize, Serialize {\n\n}", "public interface Serialization {\n\n byte[] serialize(Object obj);\n\n default void serialize(Object obj, OutputStream outputStream) {\n throw new UnsupportedOperationException();\n }\n\n <T> T deserialize(byte[] in, Class<T> type);\n\n @SuppressWarnings(\"unchecked\")\n default <T> T deserialize(byte[] in, Type type) {\n if (type instanceof Class) {\n return this.deserialize(in, (Class<T>) type);\n } else {\n throw new UnsupportedOperationException();\n }\n }\n\n default <T> T deserialize(InputStream input, Type type) {\n throw new UnsupportedOperationException();\n }\n\n default <T> T deserialize(InputStream input, Class<T> type) {\n throw new UnsupportedOperationException();\n }\n}", "void serialize(Object obj, OutputStream stream) throws IOException;", "public abstract TypeSerializer<IN> getInputTypeSerializer();", "public void setSerializer(Object serializer);", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "@Override\n public abstract void serialize(JsonGenerator jgen, SerializerProvider ctxt)\n throws JacksonException;", "@Override\n public byte[] serialize(T object) {\n if (object == null) {\n return null;\n }\n\n if (glueSchemaRegistryJsonSchemaCoder == null) {\n glueSchemaRegistryJsonSchemaCoder = glueSchemaRegistryJsonSchemaCoderProvider.get();\n }\n return glueSchemaRegistryJsonSchemaCoder.registerSchemaAndSerialize(object);\n }", "OutputStream serialize(OutputStream toSerialize);", "void serialize(OutputStream output, Object graph);", "public abstract JsonElement serialize();", "public abstract OMElement serialize();", "public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;", "void writeObject(OutputSerializer out) throws java.io.IOException;", "java.lang.String getSer();", "@Override\n public Class<? extends AbstractSerDe> getSerDeClass() {\n return AzureEntitySerDe.class;\n }", "public void serialize() {\n\t\t\n\t}", "@Override\n public byte[] serialize() throws IOException {\n throw new UnsupportedOperationException(\"Not implemented\");\n }", "private boolean handleCustomSerialization(Method method, Object o, Type genericType, OutputStream stream)\n throws IOException {\n CustomSerialization customSerialization = method.getAnnotation(CustomSerialization.class);\n if ((customSerialization == null)) {\n return false;\n }\n Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> biFunctionClass = customSerialization.value();\n ObjectWriter objectWriter = perMethodWriter.computeIfAbsent(method,\n new MethodObjectWriterFunction(biFunctionClass, genericType, originalMapper));\n objectWriter.writeValue(stream, o);\n return true;\n }", "public interface IStreamConnector extends IConnector {\r\n\r\n\t/** \r\n\t * Returns an input stream that can be used to receive data. This\r\n\t * method should only be called once per connector, although a connector can\r\n\t * declare that it supports multiple calls to this method. The specific type\r\n\t * returned by this method can be queries using the get type method. \r\n\t * \r\n\t * @return An input stream that can be used to receive data. \r\n\t * @throws IOException Thrown if the connector cannot open an input stream.\r\n\t */\r\n\tpublic InputStream getInputStream() throws IOException;\r\n\t\r\n\t/**\r\n\t * Returns an output stream that can be used to transfer data. Be\r\n\t * aware that this method should only be called once per connector. The \r\n\t * specific type returned by this method is defined by the get type method.\r\n\t * \r\n\t * @return An output stream that can be used to transfer data.\r\n\t * @throws IOException Thrown if the connector cannot open an output stream.\r\n\t */\r\n\tpublic OutputStream getOutputStream() throws IOException;\r\n\t\r\n}", "@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}", "public interface Serializable {\n /** Convert object into byte sequence. */\n void serialize(@NotNull OutputStream out) throws IOException;\n /** Replace object with one converted from byte sequence. */\n void deserialize(@NotNull InputStream in) throws IOException;\n}", "public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;", "public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "public interface ConnectionCalculator extends Serializable {\r\n /**\r\n * @param connections\r\n * - list of connections to calculate\r\n * @param valuesProvider\r\n * - values provider for the connections\r\n * @param targetLayer\r\n * - the target layer, to which \"output\" is associated\r\n */\r\n public void calculate(List<Connections> connections, ValuesProvider valuesProvider, Layer targetLayer);\r\n}", "public interface Connector {\n}", "private void writeObject(ObjectOutputStream out) throws IOException {\n out.writeObject(avroObject.getSchema().toString());\n DatumWriter<T> writer = new GenericDatumWriter<>();\n writer.setSchema(avroObject.getSchema());\n Encoder encoder = EncoderFactory.get().binaryEncoder(out, null);\n writer.write(avroObject, encoder);\n encoder.flush();\n }", "void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, \n String defaultEncoding) throws Exception;", "public SerializerAdapter getSerializerAdapter() {\n return this.serializerAdapter;\n }", "public SerializerAdapter getSerializerAdapter() {\n return this.serializerAdapter;\n }", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "@XmlJavaTypeAdapter(AbstractOutputMetric.Adapter.class)\r\npublic interface OutputMetric {\r\n\r\n @SuppressWarnings(\"unused\")\r\n public String getKey();\r\n\r\n @JsonValue\r\n @SuppressWarnings(\"unused\")\r\n public String getDescription();\r\n\r\n @SuppressWarnings(\"unused\")\r\n public String getVersion();\r\n\r\n @JsonIgnore\r\n public String[] getXsdNameList();\r\n\r\n public List<ValidationError> validate(File inputXML) throws ValidationException;\r\n\r\n}", "public static BinaryMessageEncoder<VehicleInfoAvro> getEncoder() {\n return ENCODER;\n }", "@Override\n public abstract void serializeWithType(JsonGenerator jgen, SerializerProvider ctxt,\n TypeSerializer typeSer)\n throws JacksonException;", "private static Serializer getSerializer() {\n\t\tConfiguration config = new Configuration();\n\t\tProcessor processor = new Processor(config);\n\t\tSerializer s = processor.newSerializer();\n\t\ts.setOutputProperty(Property.METHOD, \"xml\");\n\t\ts.setOutputProperty(Property.ENCODING, \"utf-8\");\n\t\ts.setOutputProperty(Property.INDENT, \"yes\");\n\t\treturn s;\n\t}", "public interface ITagAdapter extends Serializable{\r\n}", "public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If the client wants to keep a copy of the object, the\n * client needs to clone the returned deserialized value by calling\n * ObjectInspectorUtils.getStandardObject().\n *\n * @param blob\n * The Writable object containing a serialized object\n * @return A Java object representing the contents in the blob.\n */\n Object deserialize(Writable blob) throws SerDeException;\n\n /**\n * Get the object inspector that can be used to navigate through the internal\n * structure of the Object returned from deserialize(...).\n */\n ObjectInspector getObjectInspector() throws SerDeException;\n\n}", "public interface JsonConverter {\n\n /**\n * Encode the given object in a compatible form for the event bus.\n *\n * @param value the value to encode\n * @return the encoded object\n */\n Object encodeObject(Object value);\n\n /**\n * Decode the given object encoded with the encodeObject method.\n *\n * @param value the value to decode\n * @return the decoded object\n */\n Object decodeObject(Object value);\n}", "public void restSerialize(IRestSerializer serializer)\n throws HBaseRestException;", "public byte[] serialize();", "public interface ILynxObjectMapper {\n\n /**\n * Serialize an object\n * @param object the object to be serialized\n * @return the raw byte data representing the object.\n */\n <V> byte[] serialize(V object);\n\n /**\n * Deserialize an object\n * @param data the raw data to be deserialized into an object.\n * @param cls the class of the object that data represents\n * @return an instance of cls represented by data\n */\n <V> V deserialize(byte[] data, Class<V> cls);\n\n /**\n * Same as {@link ILynxObjectMapper#deserialize(byte[], Class)} but with an input stream instead of a byte array\n */\n <V> V deserialize(InputStream inputStream, Class<V> cls);\n}", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}", "@Override\n public Serializer<ResponseContainer> serializer() {\n return new Serializer<ResponseContainer>() {\n @Override\n public void configure(Map<String, ?> configs, boolean isKey) {\n // This method is left empty until needed.\n }\n\n @Override\n public byte[] serialize(String topic, ResponseContainer responseContainer) {\n return gson.toJson(responseContainer.getResponseData()).getBytes(StandardCharsets.UTF_8);\n }\n\n @Override\n public void close() {\n // This method is left empty until needed.\n }\n };\n }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }", "@Override\n\t\tpublic void registerResource(FlexoResource<?> resource, InJarResourceImpl serializationArtefact) {\n\t\t\tregisterResource(resource);\n\t\t}", "public <T> Registry registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, \n int id);", "public void serialize( final SerializerOutputStream out )\n throws SerializationException\n {\n out.writeByte( (byte) 1 ); // version\n out.writeString( name );\n if( properties != null && properties.size() > 0 )\n {\n out.writeInt( properties.size() );\n for( final Enumeration i = properties.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final ScriptingClass clazz = (ScriptingClass)\n properties.get( name );\n out.writeString( name );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( methods != null && methods.size() > 0 )\n {\n out.writeInt( methods.size() );\n for( final Enumeration i = methods.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final Method method = (Method) methods.get( name );\n out.writeString( name );\n method.serialize( out );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( ancestors != null && ancestors.size() > 0 )\n {\n final int size = ancestors.size();\n out.writeInt( size );\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n }", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\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 ser_ = s;\n }\n return s;\n }\n }", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "public void registerSerializer(ExtensionRegistry registry) {\n // Register and map Rest Binding\n registry.registerSerializer(Binding.class, RestConstants.QNAME_BINDING, this);\n registry.registerDeserializer(Binding.class, RestConstants.QNAME_BINDING, this);\n registry.mapExtensionTypes(Binding.class, RestConstants.QNAME_BINDING, RestBinding.class);\n\n // Register and map Rest Operation\n registry.registerSerializer(BindingOperation.class, RestConstants.QNAME_OPERATION, this);\n registry.registerDeserializer(BindingOperation.class, RestConstants.QNAME_OPERATION, this);\n registry.mapExtensionTypes(BindingOperation.class, RestConstants.QNAME_OPERATION, RestOperation.class);\n\n // Register and map Rest Address\n registry.registerSerializer(Port.class, RestConstants.QNAME_ADDRESS, this);\n registry.registerDeserializer(Port.class, RestConstants.QNAME_ADDRESS, this);\n registry.mapExtensionTypes(Port.class, RestConstants.QNAME_ADDRESS, RestAddress.class);\n }", "@Override\n public void serialize(final MastershipData mastershipData,\n final JsonGenerator jsonGenerator,\n final SerializerProvider serializerProvider)\n throws IOException {\n\n //\n // TODO: For now, the JSON format of the serialized output should\n // be same as the JSON format of the corresponding class Mastership\n // (if such class exists).\n // In the future, we will use a single serializer.\n //\n\n jsonGenerator.writeStartObject();\n jsonGenerator.writeStringField(TopologyElement.TYPE, mastershipData.getType());\n jsonGenerator.writeStringField(\"dpid\",\n mastershipData.getDpid().toString());\n jsonGenerator.writeStringField(\"onosInstanceId\",\n mastershipData.getOnosInstanceId().toString());\n jsonGenerator.writeStringField(\"role\",\n mastershipData.getRole().name());\n jsonGenerator.writeObjectFieldStart(\"stringAttributes\");\n for (Entry<String, String> entry : mastershipData.getAllStringAttributes().entrySet()) {\n jsonGenerator.writeStringField(entry.getKey(), entry.getValue());\n }\n jsonGenerator.writeEndObject(); // stringAttributes\n jsonGenerator.writeEndObject();\n }", "@Override\n public void serializeWithType(final QuadBackgroundComponent value, final JsonGenerator generator,\n final SerializerProvider provider, final TypeSerializer serializer) throws IOException {\n serialize(value, generator, provider);\n }", "public interface MessageSerializer<T> {\r\n\r\n\t/**\r\n\t * The content type that identifies the message serializer\r\n\t * \r\n\t * @return MIME format string\r\n\t */\r\n\tString getContentType();\r\n\r\n\t/**\r\n\t * Serialize the message to the stream\r\n\t * \r\n\t * @param <T>The implicit type of the message to serialize\r\n\t * @param stream\r\n\t * \">The stream to write the context to\r\n\t * @param context\r\n\t * \">The context to send\r\n\t */\r\n\tpublic void serialize(OutputStream stream, T message, SendContext<T> ctx)\r\n\t\t\tthrows IOException;\r\n\r\n\t/**\r\n\t * Deserialize a message from the stream by reading the\r\n\t * \r\n\t * @param context\r\n\t * \">The context to deserialize\r\n\t * @return An Object that was deserialized\r\n\t */\r\n\t//\r\n\r\n\t/**\r\n\t * Since we don't receive messages I short-circuited the original signature\r\n\t * \r\n\t * @param stream\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tT deserialize(InputStream stream) throws IOException;\r\n}", "@Override\n public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) {\n Preconditions.checkState(\n elements != null,\n \"The output type should've been specified before shipping the graph to the cluster\");\n checkIterable(elements, outTypeInfo.getTypeClass());\n TypeSerializer<T> newSerializer = outTypeInfo.createSerializer(executionConfig);\n if (Objects.equals(serializer, newSerializer)) {\n return;\n }\n serializer = newSerializer;\n try {\n serializeElements();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }", "public final void serialize(OutputStream out){\n }", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic void serialize() throws XMLStreamException {\n\t}", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "int getSerializationId();", "@Override\n public void serializeObject(Object o, int hashCode, String destDir) {\n // throw new NotImplementedException();\n }", "public MyEncodeableUsingEncoderDecoderClass() {}", "private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n //perform the default serialization for all non-transient, non-static fields\n aOutputStream.defaultWriteObject();\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "protected abstract Map<Integer, VersionedSerializer<T>> createVersionedSerializers();", "public abstract Object toJson();", "public interface SmeltValueSerializationStrategy extends SmeltJSONSerializationStrategy<SmeltValueWrapper<?, ?>> {\n}", "public Serializer getSerializer()\r\n\t{\r\n\t\treturn settings.getSerializer();\r\n\t}", "public interface IFacet extends Serializable {\n}", "public void onEncodeSerialData(StreamWriter streamWriter) {\n }", "public JacksonAdapter() {\n simpleMapper = initializeObjectMapper(new ObjectMapper());\n //\n xmlMapper = initializeObjectMapper(new XmlMapper());\n xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);\n xmlMapper.setDefaultUseWrapper(false);\n //\n ObjectMapper flatteningMapper = initializeObjectMapper(new ObjectMapper())\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper()));\n jsonMapper = initializeObjectMapper(new ObjectMapper())\n // Order matters: must register in reverse order of hierarchy\n .registerModule(AdditionalPropertiesSerializer.getModule(flatteningMapper))\n .registerModule(AdditionalPropertiesDeserializer.getModule(flatteningMapper))\n .registerModule(FlatteningSerializer.getModule(simpleMapper()))\n .registerModule(FlatteningDeserializer.getModule(simpleMapper())); }", "protected Serializer getSerializerAsInternal(String mechanismType)\n throws JAXRPCException {\n Serializer serializer = getSpecialized(mechanismType);\n \n // Try getting a general purpose Serializer via constructor\n // invocation\n if (serializer == null) {\n serializer = getGeneralPurpose(mechanismType);\n }\n\n try { \n // If not successfull, try newInstance\n if (serializer == null) {\n serializer = (Serializer) serClass.newInstance();\n }\n } catch (Exception e) {\n throw new JAXRPCException(\n Messages.getMessage(\"CantGetSerializer\", \n serClass.getName()),\n e);\n }\n return serializer;\n }", "Object defaultReplaceObject(Object obj) throws IOException {\n\t logger.log(Level.FINEST, \"Object in stream instance of: {0}\", obj.getClass());\n\t try {\n\t\tif (obj instanceof DynamicProxyCodebaseAccessor ){\n\t\t logger.log(Level.FINEST, \"Object in stream instance of DynamicProxyCodebaseAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (DynamicProxyCodebaseAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t} else if (obj instanceof ProxyAccessor ) {\n\t\t logger.log(Level.FINEST, \"Object in stream instance of ProxyAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (ProxyAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t}\n\t } catch (IOException e) {\n\t\tlogger.log(Level.FINE, \"Unable to create ProxyAccessorSerializer\", e);\n\t\tthrow e;\n\t }\n\t Class c = obj.getClass();\n\t Class s = serializers.get(c);\n\t if (c.isAnnotationPresent(AtomicSerial.class)){} // Ignore\n\t else if (c.isAnnotationPresent(AtomicExternal.class)){} // Ignore\n\t // REMIND: stateless objects, eg EmptySet?\n\t else if (s != null){\n\t\ttry {\n\t\t Constructor constructor = s.getDeclaredConstructor(c);\n\t\t obj = constructor.newInstance(obj);\n\t\t} catch (NoSuchMethodException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (SecurityException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InstantiationException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InvocationTargetException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t}\n\t }\n\t else if (obj instanceof Map) obj = new MapSerializer((Map) obj);\n\t else if (obj instanceof Set) obj = new SetSerializer((Set) obj);\n\t else if (obj instanceof Collection) obj = new ListSerializer((Collection) obj);\n\t else if (obj instanceof Permission) obj = new PermissionSerializer((Permission) obj);\n\t else if (obj instanceof Throwable) obj = new ThrowableSerializer((Throwable) obj);\n\t logger.log(Level.FINEST, \"Returning object in stream instance of: {0}\", obj.getClass());\n\t return obj;\n\t}", "public interface Transformer<T> extends Serializable{\n\n\t/**\n\t * Transform an input dataset into an output dataset (for example by adding an additional prediction attribute)\n\t */\n\tIStreamList<T> transform(IStreamList<T> dataset);\n\t\n}", "private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}" ]
[ "0.6332361", "0.61993873", "0.6127247", "0.60971814", "0.60879195", "0.6057096", "0.59863424", "0.59511596", "0.5865501", "0.5855005", "0.58425117", "0.58153385", "0.575912", "0.5704201", "0.56984067", "0.5680726", "0.56621486", "0.565281", "0.56427246", "0.5599899", "0.5577514", "0.5555944", "0.5554774", "0.55544865", "0.5538894", "0.55375415", "0.54365176", "0.5429232", "0.54040825", "0.5396107", "0.53945494", "0.53895366", "0.5339155", "0.53242767", "0.5292917", "0.526989", "0.5259152", "0.5258012", "0.5255496", "0.5242466", "0.52397543", "0.52360356", "0.5234012", "0.5214959", "0.5209552", "0.51983577", "0.515644", "0.51332396", "0.5101414", "0.50746334", "0.50746334", "0.50667065", "0.50665313", "0.5033083", "0.50257593", "0.5019995", "0.5019672", "0.50191766", "0.5013417", "0.50129765", "0.50112665", "0.5003132", "0.49992064", "0.4992859", "0.49919215", "0.49845406", "0.49796274", "0.4978776", "0.49664164", "0.49640906", "0.49634373", "0.49549204", "0.49542704", "0.49489373", "0.4928494", "0.4913517", "0.49132738", "0.49046046", "0.49041572", "0.4901356", "0.4901356", "0.4901356", "0.4901356", "0.4901356", "0.4901356", "0.4891302", "0.48887718", "0.48812917", "0.4876289", "0.4868357", "0.48675287", "0.48630366", "0.48577493", "0.48483697", "0.48358774", "0.48301336", "0.48194483", "0.48168862", "0.48111433", "0.48064172" ]
0.63215154
1
Serialize instance into the SerializerWrapperObject
void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, String defaultEncoding) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InstanceSerializer {\n\n /**\n * Serialize instance into the <tt>SerializerWrapperObject</tt>\n *\n * @param submission submission information.\n * @param instance instance to serialize.\n * @param serializerRequestWrapper object to write into.\n * @param defaultEncoding use this encoding in case user did not provide one.\n */\n void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, \n String defaultEncoding) throws Exception;\n\n}", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "public abstract <T> SerializationStream writeObject(T t);", "@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "public void serialize() {\n\t\t\n\t}", "void writeObject(OutputSerializer out) throws java.io.IOException;", "public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }", "void serialize(Object obj, OutputStream stream) throws IOException;", "public abstract void serialize(OutputStream stream, T object) throws IOException;", "public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "public abstract JsonElement serialize();", "private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}", "public void setSerializer(Object serializer);", "public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;", "SerializeFactory getSerializeFactory();", "public void serialize( final SerializerOutputStream out )\n throws SerializationException\n {\n out.writeByte( (byte) 1 ); // version\n out.writeString( name );\n if( properties != null && properties.size() > 0 )\n {\n out.writeInt( properties.size() );\n for( final Enumeration i = properties.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final ScriptingClass clazz = (ScriptingClass)\n properties.get( name );\n out.writeString( name );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( methods != null && methods.size() > 0 )\n {\n out.writeInt( methods.size() );\n for( final Enumeration i = methods.keys(); i.hasMoreElements(); )\n {\n final String name = (String) i.nextElement();\n final Method method = (Method) methods.get( name );\n out.writeString( name );\n method.serialize( out );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n if( ancestors != null && ancestors.size() > 0 )\n {\n final int size = ancestors.size();\n out.writeInt( size );\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n out.writeString( clazz.getName() );\n }\n }\n else\n {\n out.writeInt( 0 );\n }\n }", "public abstract String serialise();", "public interface TransactionSerializer extends ObjectSerializer<Transaction> {\n}", "public interface CustomObjectSerializer <T> {\n\n Class<T> type();\n\n void serializeObject(JsonSerializerInternal serializer, T instance, CharBuf builder );\n\n}", "private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n //perform the default serialization for all non-transient, non-static fields\n aOutputStream.defaultWriteObject();\n }", "@Override\n\tpublic byte[] serialize(Object obj) throws SerializationException {\n\t\tif(obj==null) \n\t\t{\n\t\t\treturn EMPTY_BYTE_ARRAY;\n\t\t}\n\t\treturn serializingConverter.convert(obj);\n\t}", "public abstract OMElement serialize();", "OutputStream serialize(OutputStream toSerialize);", "@Override\n public void serializeObject(Object o, int hashCode, String destDir) {\n // throw new NotImplementedException();\n }", "Serializer<T> getSerializer();", "public void writeExternal(ObjectOutput objectOutput)\n throws IOException\n {\n objectOutput.writeLong(serialVersionUID);\n objectOutput.writeObject(_wrapped);\n objectOutput.writeObject(_label);\n }", "protected void writeObject(ObjectOutputStream out) throws IOException {\n\t\tout.defaultWriteObject();\n\t\tout.writeObject(new Long(getSerialSubVersionUID()));\n\t\tout.writeObject(this.getProperties());\n\t}", "Object defaultReplaceObject(Object obj) throws IOException {\n\t logger.log(Level.FINEST, \"Object in stream instance of: {0}\", obj.getClass());\n\t try {\n\t\tif (obj instanceof DynamicProxyCodebaseAccessor ){\n\t\t logger.log(Level.FINEST, \"Object in stream instance of DynamicProxyCodebaseAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (DynamicProxyCodebaseAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t} else if (obj instanceof ProxyAccessor ) {\n\t\t logger.log(Level.FINEST, \"Object in stream instance of ProxyAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (ProxyAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t}\n\t } catch (IOException e) {\n\t\tlogger.log(Level.FINE, \"Unable to create ProxyAccessorSerializer\", e);\n\t\tthrow e;\n\t }\n\t Class c = obj.getClass();\n\t Class s = serializers.get(c);\n\t if (c.isAnnotationPresent(AtomicSerial.class)){} // Ignore\n\t else if (c.isAnnotationPresent(AtomicExternal.class)){} // Ignore\n\t // REMIND: stateless objects, eg EmptySet?\n\t else if (s != null){\n\t\ttry {\n\t\t Constructor constructor = s.getDeclaredConstructor(c);\n\t\t obj = constructor.newInstance(obj);\n\t\t} catch (NoSuchMethodException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (SecurityException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InstantiationException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InvocationTargetException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t}\n\t }\n\t else if (obj instanceof Map) obj = new MapSerializer((Map) obj);\n\t else if (obj instanceof Set) obj = new SetSerializer((Set) obj);\n\t else if (obj instanceof Collection) obj = new ListSerializer((Collection) obj);\n\t else if (obj instanceof Permission) obj = new PermissionSerializer((Permission) obj);\n\t else if (obj instanceof Throwable) obj = new ThrowableSerializer((Throwable) obj);\n\t logger.log(Level.FINEST, \"Returning object in stream instance of: {0}\", obj.getClass());\n\t return obj;\n\t}", "@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }", "@Override\n\tpublic String serialize() {\n\t\treturn null;\n\t}", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public SerDes getWrapper() {\r\n \t\treturn serdes;\r\n \t}", "private void writeObject(ObjectOutputStream out) throws IOException\r\n\t{\r\n\t\tthis.serialize(out);\r\n\t}", "@Override\n public Serializer<ResponseContainer> serializer() {\n return new Serializer<ResponseContainer>() {\n @Override\n public void configure(Map<String, ?> configs, boolean isKey) {\n // This method is left empty until needed.\n }\n\n @Override\n public byte[] serialize(String topic, ResponseContainer responseContainer) {\n return gson.toJson(responseContainer.getResponseData()).getBytes(StandardCharsets.UTF_8);\n }\n\n @Override\n public void close() {\n // This method is left empty until needed.\n }\n };\n }", "@Override\n public void serializeAsElement(Object object, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws Exception {\n JsonSerializer<Object> jsonSerializer;\n Object object2 = this._accessorMethod == null ? this._field.get(object) : this._accessorMethod.invoke(object, new Object[0]);\n if (object2 == null) {\n if (this._nullSerializer == null) {\n jsonGenerator.writeNull();\n return;\n }\n this._nullSerializer.serialize(null, jsonGenerator, serializerProvider);\n return;\n }\n JsonSerializer<Object> jsonSerializer2 = jsonSerializer = this._serializer;\n if (jsonSerializer == null) {\n Class class_ = object2.getClass();\n PropertySerializerMap propertySerializerMap = this._dynamicSerializers;\n jsonSerializer2 = jsonSerializer = propertySerializerMap.serializerFor(class_);\n if (jsonSerializer == null) {\n jsonSerializer2 = this._findAndAddDynamic(propertySerializerMap, class_, serializerProvider);\n }\n }\n if (this._suppressableValue != null) {\n if (MARKER_FOR_EMPTY == this._suppressableValue) {\n if (jsonSerializer2.isEmpty(object2)) {\n this.serializeAsPlaceholder(object, jsonGenerator, serializerProvider);\n return;\n }\n } else if (this._suppressableValue.equals(object2)) {\n this.serializeAsPlaceholder(object, jsonGenerator, serializerProvider);\n return;\n }\n }\n if (object2 == object && this._handleSelfReference(object, jsonGenerator, serializerProvider, jsonSerializer2)) return;\n {\n if (this._typeSerializer == null) {\n jsonSerializer2.serialize(object2, jsonGenerator, serializerProvider);\n return;\n }\n }\n jsonSerializer2.serializeWithType(object2, jsonGenerator, serializerProvider, this._typeSerializer);\n }", "public byte[] serializeForSR(ServiceInstanceInner instance)\n/* */ {\n/* 109 */ return new byte[0];\n/* */ }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@Override\n public abstract void serialize(JsonGenerator jgen, SerializerProvider ctxt)\n throws JacksonException;", "private void writeObject(ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n /*if(serializeEverything) {\n //The cast to Serializable is necessary to avoid Sonar bug issues because List does not implement Serializable but all implementations of List (such as ArrayList) in effect implements Serializable\n //oos.writeObject((Serializable)cardPower);\n oos.writeObject((Serializable)weapons);\n oos.writeInt(points);\n }\n serializeEverything = false;*/\n }", "private void writeObject (ObjectOutputStream out) throws IOException {\n\t\tout.writeInt (CURRENT_SERIAL_VERSION);\n\t\tout.writeObject(inputPipe);\n\t\tout.writeObject(outputPipe);\n\t\tout.writeObject(sumLatticeFactory);\n\t\tout.writeObject(maxLatticeFactory);\n\t}", "public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }", "public ElementSerializer() {\n _lock = new Object();\n }", "public abstract Object toJson();", "private static Serializer getSerializer() {\n\t\tConfiguration config = new Configuration();\n\t\tProcessor processor = new Processor(config);\n\t\tSerializer s = processor.newSerializer();\n\t\ts.setOutputProperty(Property.METHOD, \"xml\");\n\t\ts.setOutputProperty(Property.ENCODING, \"utf-8\");\n\t\ts.setOutputProperty(Property.INDENT, \"yes\");\n\t\treturn s;\n\t}", "java.lang.String getSer();", "public interface Serializer {\n /**\n * Serializes given serializable object into the byte array.\n *\n * @param object object that will be serialized\n * @return serialized byte array\n */\n byte[] serialize(Serializable object);\n\n /**\n * Deserializes byte array that serialized by {@link #serialize(Serializable)} method.\n *\n * @param bytes byte array that will be deserialized\n * @return deserialized object\n */\n Object deserialize(byte[] bytes);\n}", "@Override\n public <T> byte[] serialize( final T obj )\n throws IOException\n {\n final byte[] unencrypted = serializer.serialize(obj);\n return encrypt(unencrypted);\n }", "byte[] serialize(Serializable object);", "@Override\n\tpublic int getSerializationId() {\n\t\treturn SERIALIZATION_ID;\n\t}", "public byte[] serialize();", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "private void writeObject(java.io.ObjectOutputStream out) throws IOException {\n throw new NotSerializableException();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public interface Serializable {\n\n\t/**\n\t * Method to convert the object into a stream\n\t *\n\t * @param out OutputSerializer to write the object to\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid writeObject(OutputSerializer out) throws java.io.IOException;\n\n\t/** \n\t * Method to build the object from a stream of bytes\n\t *\n\t * @param in InputSerializer to read from\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid readObject(InputSerializer in) throws java.io.IOException;\n}", "void saveData() throws SerializerException;", "private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }", "public final void serialize(OutputStream out){\n }", "@Override\n public void serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov)\n throws Exception {\n Object value = get(bean);\n if (value == null) {\n if (!_suppressNulls) {\n jgen.writeFieldName(_name);\n prov.defaultSerializeNull(jgen);\n }\n return;\n }\n // For non-nulls, first: simple check for direct cycles\n if (value == bean) {\n _reportSelfReference(bean);\n }\n if (_suppressableValue != null && _suppressableValue.equals(value)) {\n return;\n }\n\n JsonSerializer<Object> ser = _serializer;\n if (ser == null) {\n Class<?> cls = value.getClass();\n PropertySerializerMap map = _dynamicSerializers;\n ser = map.serializerFor(cls);\n if (ser == null) {\n ser = _findAndAddDynamic(map, cls, prov);\n }\n }\n\n if (_typeSerializer != null) {\n // If we are using a specific serializer, then assume it is fully functional already\n jgen.writeFieldName(_name);\n ser.serializeWithType(value, jgen, prov, _typeSerializer);\n return;\n }\n\n wrapperName = nameInfo.getWrapperName();\n startWrapping(jgen);\n wrappedName = nameInfo.getWrappedName();\n if (wrappedName != null) {\n serializeInnerField(value, jgen, prov, ser);\n } else {\n /* No specific wrappedName */\n Map<Class<?>, QName> nameMap = nameInfo.getWrappedNameMap();\n if ((nameMap != null) && (value instanceof ArrayList)) {\n serializeXmlElementsArray((ArrayList<?>)value, jgen, prov, nameMap);\n } else if ((nameInfo.isKeyValuePairs()) && (value instanceof ArrayList)) {\n serializeZmailKeyValuePairs((ArrayList<?>) value, jgen, prov);\n } else if (nameInfo.isAnyAttributeAllowed() && java.util.Map.class.isAssignableFrom(value.getClass())) {\n serializeXmlAnyAttributes((Map<?,?>) value, jgen, prov);\n } else {\n if (value instanceof ArrayList) {\n serializeXmlAnyElementsArray((ArrayList<?>) value, jgen, prov);\n } else {\n jgen.writeFieldName(_name);\n ser.serialize(value, jgen, prov);\n }\n }\n finishWrapping(jgen);\n }\n }", "public <T> SerializationStream writeValue(T value){\n return writeObject(value);\n }", "public void testSerialization() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = (XIntervalDataItem) TestUtilities.serialised(item1);\n }", "public void setSerializer(Serializer<Object> serializer) {\n this.serializer = serializer;\n }", "private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }", "private void serializeSerializable(final Serializable object, final StringBuffer buffer)\n {\n String className;\n Class<?> c;\n Field[] fields;\n int i, max;\n Field field;\n String key;\n Object value;\n StringBuffer fieldBuffer;\n int fieldCount;\n\n this.history.add(object);\n c = object.getClass();\n className = c.getSimpleName();\n buffer.append(\"O:\");\n buffer.append(className.length());\n buffer.append(\":\\\"\");\n buffer.append(className);\n buffer.append(\"\\\":\");\n\n fieldBuffer = new StringBuffer();\n fieldCount = 0;\n while (c != null)\n {\n fields = c.getDeclaredFields();\n for (i = 0, max = fields.length; i < max; i++)\n {\n field = fields[i];\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isVolatile(field.getModifiers())) continue;\n\n try\n {\n field.setAccessible(true);\n key = field.getName();\n value = field.get(object);\n serializeObject(key, fieldBuffer);\n this.history.remove(this.history.size() - 1);\n serializeObject(value, fieldBuffer);\n fieldCount++;\n }\n catch (final SecurityException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalArgumentException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalAccessException e)\n {\n // Field is just ignored when this exception is thrown\n }\n }\n c = c.getSuperclass();\n }\n buffer.append(fieldCount);\n buffer.append(\":{\");\n buffer.append(fieldBuffer);\n buffer.append(\"}\");\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "@Override\n public void marshal(T object, XMLStreamWriter output,\n AttachmentMarshaller am) throws JAXBException {\n try {\n output.flush();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SAX2StaxContentHandler handler = new SAX2StaxContentHandler(output);\n if (object instanceof DataObject) {\n serializeDataObject((DataObject) object, new SAXResult(handler),\n am);\n return;\n }\n\n try {\n String value = serializePrimitive(object, javaType);\n String prefix = output.getPrefix(xmlTag.getNamespaceURI());\n //TODO, this is a hack, seems to be wrong. why should namespace returned is \"\"?\n if (xmlTag.getNamespaceURI().equals(\"\")) {\n output.writeStartElement(\"\", xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n// } else if (prefix == null) {\n// output.writeStartElement(xmlTag.getNamespaceURI(), xmlTag.getLocalPart());\n } else {\n output.writeStartElement(prefix, xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n output.writeNamespace(prefix, xmlTag.getNamespaceURI());\n }\n output.writeCharacters(value);\n output.writeEndElement();\n } catch (XMLStreamException e) {\n throw new SDODatabindingException(e);\n }\n }", "public interface Serializer {\n\n /**\n * Serializes the given object to the given output stream.\n *\n * @param <T> the object type\n * @param obj the object to serialize\n * @param type the class type\n * @param os the output stream\n *\n * @throws SerializationException if serialization fails\n */\n public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;\n\n /**\n * Deserializes an object of the given type from the given input stream.\n *\n * @param <T> the object type\n * @param type the class type\n * @param is the input stream\n *\n * @return the object\n *\n * @throws SerializationException if serialization fails\n */\n public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;\n\n}", "@Override\n public BeanPropertyWriter withSerializer(JsonSerializer<Object> ser) {\n if (getClass() != ZmailBeanPropertyWriter.class) {\n throw new IllegalStateException(\"Sub-class does not override 'withSerializer()'; needs to!\");\n }\n return new ZmailBeanPropertyWriter(this, nameInfo, ser);\n }", "private boolean handleCustomSerialization(Method method, Object o, Type genericType, OutputStream stream)\n throws IOException {\n CustomSerialization customSerialization = method.getAnnotation(CustomSerialization.class);\n if ((customSerialization == null)) {\n return false;\n }\n Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> biFunctionClass = customSerialization.value();\n ObjectWriter objectWriter = perMethodWriter.computeIfAbsent(method,\n new MethodObjectWriterFunction(biFunctionClass, genericType, originalMapper));\n objectWriter.writeValue(stream, o);\n return true;\n }", "public com.google.protobuf.ByteString\n getSerBytes() {\n java.lang.Object ref = ser_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n ser_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }", "public abstract void writeToXml(T o, XmlSerializer serializer, Context context)\n throws IOException;", "String serialize();", "public interface Serialization {\n\n byte[] objSerialize(Object obj);\n\n Object ObjDeserialize(byte[] bytes);\n}", "private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeData(object);\n IOHelper.writeData(location, new StreamOutputDestination(out));\n } catch (final IOException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\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 ser_ = s;\n }\n return s;\n }\n }", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void testSerialization() {\n TaskSeries s1 = new TaskSeries(\"S\");\n s1.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2 = new TaskSeries(\"S\");\n s2.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c1 = new TaskSeriesCollection();\n c1.add(s1);\n c1.add(s2);\n TaskSeriesCollection c2 = (TaskSeriesCollection) TestUtilities.serialised(c1);\n }", "public void testSerialization() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = (XYBlockRenderer) TestUtilities.serialised(r1);\n }", "void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }", "private void applySerializationModifier(JsonMapper.Builder builder) {\n\t\tSerializerFactory factory = BeanSerializerFactory.instance\n\t\t\t.withSerializerModifier(new GenericSerializerModifier());\n\t\tbuilder.serializerFactory(factory);\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "public void serialize(JsonGenerator generator, JsonpMapper mapper) {\n\t\tgenerator.writeStartObject();\n\t\tserializeInternal(generator, mapper);\n\t\tgenerator.writeEnd();\n\t}", "private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n aOutputStream.defaultWriteObject();\n }", "protected abstract void declareSerializers(Builder builder);", "public com.google.protobuf.ByteString\n getSerBytes() {\n java.lang.Object ref = ser_;\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 ser_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void writeObject(ZObjectOutputStream out) throws IOException {\n }", "@SuppressWarnings(\"unchecked\")\n protected static <T> T cloneWithSerialization(final T obj) {\n\n ObjectOutputStream objectsOut = null;\n ObjectInputStream ois = null;\n try {\n try {\n final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n objectsOut = new ObjectOutputStream(bytesOut);\n\n objectsOut.writeObject(obj);\n objectsOut.flush();\n\n final byte[] bytes = bytesOut.toByteArray();\n\n ois = new ObjectInputStream(new ByteArrayInputStream(bytes));\n\n return (T) ois.readObject();\n } finally {\n if (objectsOut != null)\n objectsOut.close();\n if (ois != null)\n ois.close();\n }\n } catch (ClassNotFoundException ex) {\n throw new AssertionError(ex);\n } catch (IOException ex) {\n throw new AssertionError(ex);\n }\n }", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static void serializeObject(Serializable object, Path outputFile) {\n try {\n try (Closer closer = Closer.create()) {\n OutputStream out = closer.register(Files.newOutputStream(outputFile));\n BufferedOutputStream bout = closer.register(new BufferedOutputStream(out));\n serializeToLz4Data(object, bout);\n }\n } catch (Exception e) {\n throw new BatfishException(\"Failed to serialize object to output file: \" + outputFile, e);\n }\n }", "public String serialize(Object obj) throws PdfFillerAPIException {\n try {\n if (obj != null)\n return mapper.toJson(obj);\n else\n return null;\n } catch (Exception e) {\n throw new PdfFillerAPIException(400, e.getMessage());\n }\n }", "private void writeObject(ObjectOutputStream out) throws IOException {\n out.defaultWriteObject();\n }" ]
[ "0.6779664", "0.6605162", "0.6493539", "0.6482885", "0.6458055", "0.6338389", "0.6271906", "0.6254958", "0.62374717", "0.6165925", "0.6044645", "0.6041604", "0.5942299", "0.5934833", "0.58998686", "0.58932674", "0.5883231", "0.5837955", "0.5830544", "0.57986253", "0.57985544", "0.57909966", "0.579046", "0.5770554", "0.57526535", "0.5731743", "0.5723672", "0.5713357", "0.57079655", "0.5703606", "0.5698508", "0.5689618", "0.5685411", "0.5685411", "0.56789273", "0.56157213", "0.5569876", "0.5566509", "0.5560473", "0.5546669", "0.55318594", "0.552149", "0.5517613", "0.5513301", "0.551234", "0.5509415", "0.55090624", "0.549416", "0.54904705", "0.5470405", "0.54701406", "0.5464194", "0.5462499", "0.5462386", "0.5461793", "0.54335994", "0.5433386", "0.5427941", "0.54153377", "0.54061806", "0.5404435", "0.53901625", "0.5385339", "0.5378166", "0.5374116", "0.536262", "0.5360962", "0.53604203", "0.53522277", "0.5334649", "0.5330631", "0.53288716", "0.53141993", "0.5313639", "0.53084517", "0.5299635", "0.52893347", "0.5275475", "0.5273648", "0.5264636", "0.5254768", "0.52337366", "0.5226406", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.5226242", "0.52214104", "0.5219009", "0.5214648", "0.5212585", "0.5207783", "0.5201816", "0.5195375", "0.51881146" ]
0.60461766
10
/ renamed from: a
public boolean mo40170a(C4217w wVar) { mo40176a().mo40020d().mo40277a(wVar); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
Find the available places for these dates
@SuppressWarnings("unchecked") public JSONCalendar availableHouses(String startDate, String endDate) { // Create a new list with house ID'sz List<String> houseIDs = new ArrayList<>(); List<Calendar> dates = null; List<String> housed = null; List<Calendar> d = null; JSONCalendar ca = new JSONCalendar(); EntityManager em = JPAResource.factory.createEntityManager(); EntityTransaction tx = em.getTransaction(); tx.begin(); // Find the houses id's Query q1 = em.createQuery("SELECT h.houseID from House h"); // It has all the houseIDs housed = q1.getResultList(); //System.out.println(housed); Query q = em.createNamedQuery("Calendar.findAll"); dates = q.getResultList(); for( int i = 0; i < housed.size(); i++ ) { // Select all the dates for every house int k = 0; Query q2 = em.createQuery("SELECT c from Calendar c WHERE c.houseID = :id AND c.date >= :startDate AND c.date < :endDate"); q2.setParameter("id", housed.get(i)); q2.setParameter("startDate", startDate); q2.setParameter("endDate", endDate); d = q2.getResultList(); long idHouse = 0; for(int j = 0; j < d.size(); j++) { //System.out.println(d.get(j).getHouseID()); idHouse = d.get(j).getHouseID(); if(d.get(j).getAvailable() == true) { k++; // System.out.println(k); } // Find out if the houses are available these days } if(k == d.size() && k != 0) { // System.out.println(k); houseIDs.add(String.valueOf(idHouse)); } } // Select all the houses ca.setResults(houseIDs); ca.setNumDates(d.size()); // System.out.println(startDate + " " + endDate); // System.out.println(houseIDs); return ca; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastupdate, indate).getDays() < 0)\r\n {\r\n System.out.println(\"Less than 0\");\r\n return;\r\n }\r\n int first = Days.daysBetween(lastupdate, indate).getDays();\r\n int last = Days.daysBetween(lastupdate, outdate).getDays();\r\n for (int i = 0; i < roomtypes.size(); i++)\r\n {\r\n boolean ispossible = true;\r\n for (int j = first; j < last; j++)\r\n {\r\n if (roomtypes.get(i).reserved[j] >= roomtypes.get(i).roomcount)\r\n {\r\n ispossible = false;\r\n }\r\n } \r\n \r\n if (ispossible)\r\n System.out.println(roomtypes.get(i).roomname);\r\n }\r\n }", "public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n public List<LocalDate> getAvailableDatesForService(final com.wellybean.gersgarage.model.Service service) {\n // Final list\n List<LocalDate> listAvailableDates = new ArrayList<>();\n\n // Variables for loop\n LocalDate tomorrow = LocalDate.now().plusDays(1);\n LocalDate threeMonthsFromTomorrow = tomorrow.plusMonths(3);\n\n // Loop to check for available dates in next three months\n for(LocalDate date = tomorrow; date.isBefore(threeMonthsFromTomorrow); date = date.plusDays(1)) {\n // Pulls bookings for specific date\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n /* If there are bookings for that date, check for time availability for service,\n if not booking then date available */\n if(optionalBookingList.isPresent()) {\n if(getAvailableTimesForServiceAndDate(service, date).size() > 0) {\n listAvailableDates.add(date);\n }\n } else {\n listAvailableDates.add(date);\n }\n }\n return listAvailableDates;\n }", "@Override\n public List<LocalTime> getAvailableTimesForServiceAndDate(final com.wellybean.gersgarage.model.Service service, LocalDate date) {\n\n LocalTime garageOpening = LocalTime.of(9,0);\n LocalTime garageClosing = LocalTime.of(17, 0);\n\n // List of all slots set as available\n List<LocalTime> listAvailableTimes = new ArrayList<>();\n for(LocalTime slot = garageOpening; slot.isBefore(garageClosing); slot = slot.plusHours(1)) {\n listAvailableTimes.add(slot);\n }\n\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n\n // This removes slots that are occupied by bookings on the same day\n if(optionalBookingList.isPresent()) {\n List<Booking> bookingsList = optionalBookingList.get();\n for(Booking booking : bookingsList) {\n int bookingDurationInHours = booking.getService().getDurationInMinutes() / 60;\n // Loops through all slots used by the booking and removes them from list of available slots\n for(LocalTime bookingTime = booking.getTime();\n bookingTime.isBefore(booking.getTime().plusHours(bookingDurationInHours));\n bookingTime = bookingTime.plusHours(1)) {\n\n listAvailableTimes.remove(bookingTime);\n }\n }\n }\n\n int serviceDurationInHours = service.getDurationInMinutes() / 60;\n\n // To avoid concurrent modification of list\n List<LocalTime> listAvailableTimesCopy = new ArrayList<>(listAvailableTimes);\n\n // This removes slots that are available but that are not enough to finish the service. Example: 09:00 is\n // available but 10:00 is not. For a service that takes two hours, the 09:00 slot should be removed.\n for(LocalTime slot : listAvailableTimesCopy) {\n boolean isSlotAvailable = true;\n // Loops through the next slots within the duration of the service\n for(LocalTime nextSlot = slot.plusHours(1); nextSlot.isBefore(slot.plusHours(serviceDurationInHours)); nextSlot = nextSlot.plusHours(1)) {\n if(!listAvailableTimes.contains(nextSlot)) {\n isSlotAvailable = false;\n break;\n }\n }\n if(!isSlotAvailable) {\n listAvailableTimes.remove(slot);\n }\n }\n\n return listAvailableTimes;\n }", "List<Doctor> getAvailableDoctors(java.util.Date date, String slot) throws CliniqueException;", "private Place getPlaceWithOpeningHours() {\n\n // finds nearby place according the slot value\n List<Place> places = PlaceFinder.findNearbyPlace(GeoCoder.getLatLng(deviceAddress), slotBankNameValue);\n\n // check the list of places for one with opening hours\n return PlaceFinder.findOpeningHoursPlace(places, slotBankNameValue);\n }", "private static boolean availabilityQuery(String roomid, String date1, String date2)\n {\n String query = \"SELECT status\"\n + \" FROM (\"\n + \" SELECT DISTINCT ro.RoomId, 'occupied' AS status\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\" \n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\"\n + \" UNION\"\n + \" SELECT DISTINCT RoomId, 'empty' AS status\"\n + \" FROM myRooms\"\n + \" WHERE RoomId NOT IN (\"\n + \" SELECT DISTINCT re.Room\"\n + \" FROM myReservations re JOIN myRooms ro ON (re.Room = ro.RoomId)\"\n + \" WHERE (DATEDIFF(CheckIn, DATE(\" + date1 + \")) <= 0\"\n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) > 0)\"\n + \" OR (DATEDIFF(CheckIn, DATE(\" + date1 + \")) > 0\"\n + \" AND DATEDIFF(CheckIn, DATE(\" + date2 + \")) <= 0)\" \n + \" OR (DATEDIFF(CheckOut, DATE(\" + date1 + \")) > 0\" \n + \" AND DATEDIFF(CheckOut, DATE(\" + date2 + \")) < 0)\" \n + \" )) AS tb\"\n + \" WHERE RoomId = '\" + roomid + \"'\";\n\n PreparedStatement stmt = null;\n ResultSet rset = null;\n\n try\n {\n stmt = conn.prepareStatement(query);\n rset = stmt.executeQuery();\n rset.next();\n if(rset.getString(\"status\").equals(\"empty\"))\n return true;\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n finally {\n try {\n stmt.close();\n }\n catch (Exception ex) {\n ex.printStackTrace( ); \n } \t\n }\n \n return false;\n\n }", "private ArrayList<Room> roomAvailability(LocalDate start, LocalDate end, int small, int medium, int large) {\n ArrayList<Room> availableRooms = new ArrayList<Room>();\n // Iterate for all rooms in the venue\n for (Room room : rooms) {\n // Search the venue's reservations that contain the specified room.\n ArrayList<Reservation> reservationsWithRoom = Reservation.searchReservation(reservations, room);\n // Try to find rooms that fulfil the request.\n switch(room.getSize()) {\n case \"small\":\n // Ignore if no small rooms are needed.\n if (small > 0) {\n // If there no reservations with the room or the reserved dates do not\n // overlap, then add the room sinced it is available.\n if(reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n\n availableRooms.add(room);\n small--;\n } \n }\n break;\n\n case \"medium\":\n // Ignore if no medium rooms are needed.\n if (medium > 0) {\n \n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n medium--;\n }\n }\n break;\n\n case \"large\":\n // Ignore if no large rooms ar eneeded.\n if (large > 0) {\n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n large--;\n }\n break;\n }\n }\n }\n // A request cannot be fulfilled if there are no rooms available in the venue\n if (small > 0 || medium > 0 || large > 0) {\n \n return null;\n } else {\n return availableRooms;\n }\n }", "Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);", "@Test\n\tpublic void testFindFreeFacilityWorkplacesNotAvailible() {\n\t\t// get current date\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\t// start is current date + 1\n\t\tDate startDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 24);\n\t\tDate reservationEndDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\t\tDate findEndDate = cal.getTime();\n\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(workplace1.getId(), workplace2.getId()),\n\t\t\t\tstartDate, reservationEndDate);\n\n\t\t// search for 1 workplace\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 1);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, startDate, findEndDate, false);\n\n\t\t// should find no room because workplace1 and workplace 2 are not available\n\t\tassertNotNull(result);\n\t\tassertEquals(0, result.size());\n\t}", "public int[] computeAvailabilities(Building selected, Calendar selectedDate, Calendar now) {\n if (selected == null) {\n return null;\n }\n int day = selectedDate.get(Calendar.DAY_OF_WEEK);\n //some modulo shenanigans because weekDays[0] is monday but Calendar doesn't have the same\n day = day + 5;\n day = day % 7;\n Weekdays openingHoursWeek = new Weekdays(selected.getOpeningHours());\n String openingHoursDay = openingHoursWeek.getWeekdays().get(day);\n //if closed\n if (openingHoursDay.equals(Weekdays.CLOSED)) {\n return null;\n }\n int nowDay = now.get(Calendar.DAY_OF_WEEK);\n int nowMonth = now.get(Calendar.DAY_OF_MONTH);\n int dayClean = selectedDate.get(Calendar.DAY_OF_WEEK);\n int month = selectedDate.get(Calendar.DAY_OF_MONTH);\n int hours = now.get(Calendar.HOUR_OF_DAY);\n int minutes = now.get(Calendar.MINUTE);\n if (minutes != 0) {\n hours++;\n }\n String begin = openingHoursDay.split(\"-\")[0];\n String end = openingHoursDay.split(\"-\")[1];\n int beginTime = Integer.parseInt(begin.split(\":\")[0]);\n int endTime = Integer.parseInt(end.split(\":\")[0]);\n int[] res = new int[2];\n if (nowDay == dayClean\n && nowMonth == month && hours > beginTime) {\n beginTime = hours;\n }\n res[0] = beginTime;\n res[1] = endTime;\n return res;\n }", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "@Query(\n value = \"SELECT d\\\\:\\\\:date\\n\" +\n \"FROM generate_series(\\n\" +\n \" :startDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" :endDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" '1 day'\\n\" +\n \" ) AS gs(d)\\n\" +\n \"WHERE NOT EXISTS(\\n\" +\n \" SELECT\\n\" +\n \" FROM bookings\\n\" +\n \" WHERE bookings.date_range @> d\\\\:\\\\:date\\n\" +\n \" );\",\n nativeQuery = true)\n List<Date> findAvailableDates(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate);", "public List<Room> getReservedOn(LocalDate of) {\r\n\t\tList<Room> l= new ArrayList<>(new HashSet<Room>(this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(of, of))));\r\n\t\treturn l;\r\n\t}", "public List<Worker> getAvailableWorkers(Date date, boolean partOfDay, int branch_id)\n {\n return employees_dao.getAvailableWorkers(date,partOfDay,branch_id);\n }", "@Test\n\tpublic void testFindFreeFacility2WorkplacesNotFullyAvailible() {\n\t\t// get current date\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\t// start is current date + 1\n\t\tDate startDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 24);\n\t\tDate reservationEndDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\t\tDate findEndDate = cal.getTime();\n\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(workplace1.getId()), startDate,\n\t\t\t\treservationEndDate);\n\n\t\t// search for 2 workplaces\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, startDate, findEndDate, true);\n\n\t\t// should find no room because room1 is not fullyAvailible\n\t\tassertNotNull(result);\n\t\tassertEquals(0, result.size());\n\t}", "private List<String> findEmptyRoomsInRange(String startDate, String endDate) {\n /* startDate indices = 1,3,6 \n endDate indices = 2,4,5 */\n String emptyRoomsQuery = \"select r1.roomid \" +\n \"from rooms r1 \" +\n \"where r1.roomid NOT IN (\" +\n \"select roomid\" +\n \"from reservations\" + \n \"where roomid = r1.roomid and ((checkin <= to_date('?', 'DD-MON-YY') and\" +\n \"checkout > to_date('?', 'DD-MON-YY')) or \" +\n \"(checkin >= to_date('?', 'DD-MON-YY') and \" +\n \"checkin < to_date('?', 'DD-MON-YY')) or \" +\n \"(checkout < to_date('?', 'DD-MON-YY') and \" +\n \"checkout > to_date('?', 'DD-MON-YY'))));\";\n\n try {\n PreparedStatement erq = conn.prepareStatement(emptyRoomsQuery);\n erq.setString(1, startDate);\n erq.setString(3, startDate);\n erq.setString(6, startDate);\n erq.setString(2, endDate);\n erq.setString(4, endDate);\n erq.setString(5, endDate);\n ResultSet emptyRoomsQueryResult = erq.executeQuery();\n List<String> emptyRooms = getEmptyRoomsFromResultSet(emptyRoomsQueryResult);\n return emptyRooms;\n } catch (SQLException e) {\n System.out.println(\"Empty rooms query failed.\")\n }\n return null;\n}", "public List<Room> getFreeOn(LocalDate of) {\r\n\t\tList<Room> l= this.getAllRooms();\r\n\t\tl.removeAll(this.getReservedOn(of));\r\n\t\treturn l;\r\n\t}", "@RequestMapping(path = \"/availability\", method = RequestMethod.GET)\n public List<ReservationDTO> getAvailability(\n @RequestParam(value = \"start_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate startDate,\n @RequestParam(value = \"end_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate endDate) {\n\n Optional<LocalDate> optStart = Optional.ofNullable(startDate);\n Optional<LocalDate> optEnd = Optional.ofNullable(endDate);\n\n if (!optStart.isPresent() && !optEnd.isPresent()) {\n //case both are not present, default time is one month from now\n startDate = LocalDate.now();\n endDate = LocalDate.now().plusMonths(1);\n } else if (optStart.isPresent() && !optEnd.isPresent()) {\n //case only start date is present, default time is one month from start date\n endDate = startDate.plusMonths(1);\n } else if (!optStart.isPresent()) {\n //case only end date is present, default time is one month before end date\n startDate = endDate.minusMonths(1);\n } // if both dates are present, do nothing just use them\n\n List<Reservation> reservationList = this.service\n .getAvailability(startDate, endDate);\n\n return reservationList.stream().map(this::parseReservation).collect(Collectors.toList());\n }", "public boolean getOccupied(GregorianCalendar date)// --> Sjekker om lokalet er ledig på den datoen som blir tatt imot som parameter.\n\t{\n\t\tGregorianCalendar[] reserved = getReservedDates();\n\n\t\tif(reserved == null)\n\t\t\treturn false;\n\n\t\tGregorianCalendar check = Utilities.getCleanDate(date);\n\n\t\tfor(GregorianCalendar c : reserved)\n\t\t\tif(check.get(Calendar.YEAR) == c.get(Calendar.YEAR) && check.get(Calendar.MONTH) == c.get(Calendar.MONTH)\n\t\t\t\t&& check.get(Calendar.DAY_OF_MONTH) == c.get(Calendar.DAY_OF_MONTH))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "private void twoDateOccupancyQuery(String startDate, String endDate){\n List<String> emptyRooms = findEmptyRoomsInRange(startDate, endDate);\n List<String> fullyOccupiedRooms = findOccupiedRoomsInRange(startDate, endDate, emptyRooms);\n List<String> partiallyOccupiedRooms = \n (generateListOfAllRoomIDS().removeAll(emptyRooms)).removeAll(fullyOccupiedRooms);\n\n occupancyColumns = new Vector<String>();\n occupancyData = new Vector<Vector<String>>();\n occupancyColumns.addElement(\"RoomId\");\n occupancyColumns.addElement(\"Occupancy Status\");\n\n for(String room: emptyRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Empty\");\n occupancyData.addElement(row);\n }\n for(String room: fullyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Fully Occupied\");\n occupancyData.addElement(row);\n }\n for(String room: partiallyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Partially Occupied\");\n occupancyData.addElement(row);\n }\n return;\n}", "public void AddAvailableDates()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < openDates.size(); i++)\n\t\t\t{\n\t\t\t\tboolean inTable = CheckAvailableDate(openDates.get(i)); \n\t\t\t\tif(inTable == false)\n\t\t\t\t{\n\t\t\t\t\tquery = \"INSERT INTO Available(available_hid, price_per_night, startDate, endDate)\"\n\t\t\t\t\t\t\t+\" VALUE(\"+hid+\", \"+price+\", '\"+openDates.get(i).stringStart+\"', '\"+openDates.get(i).stringEnd+\"')\";\n\t\t\t\t\tint result = con.stmt.executeUpdate(query); \n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "@Test\n\tpublic void testFindFreeFacility2WorkplacesFullyAvailible() {\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, validStartDate, validEndDate, true);\n\n\t\t// should find the one room with the two workplaces.\n\t\tassertNotNull(result);\n\t\tassertEquals(1, result.size());\n\t\tassertEquals(validStartDate, result.iterator().next().start);\n\t}", "private static void fillReserveTimeList(ResultSet resultSet\n\t\t\t, Map<MiddayID\n\t\t\t, List<ReserveTime>> reserveTimes){\n\t\ttry {\n\t\t\tList<ReserveTime> morningReserveTimes = new ArrayList<>();\n\t\t\tList<ReserveTime> afternoonReserveTimes = new ArrayList<>();\n\t\t\twhile (resultSet.next()){\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\tfillReserveTime(resultSet, reserveTime);\n\t\t\t\tif (reserveTime.getMiddayID() == MiddayID.MORNING)\n\t\t\t\t\tmorningReserveTimes.add(reserveTime);\n\t\t\t\telse if (reserveTime.getMiddayID() == MiddayID.AFTERNOON)\n\t\t\t\t\tafternoonReserveTimes.add(reserveTime);\n\t\t\t}\n\t\t\treserveTimes.put(MiddayID.MORNING, morningReserveTimes);\n\t\t\treserveTimes.put(MiddayID.AFTERNOON, afternoonReserveTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}", "private boolean dateAvailable(List<DateGroup> dateGroups) {\n final int NOT_AVAILABLE = 0;\n return dateGroups.size() > NOT_AVAILABLE;\n }", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "public HashMap<String, String> selectMap(String date, String route) throws ParseException {\n\n String dt = String.valueOf((java.time.LocalDate.now())); //dt is the current date value\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Calendar c = Calendar.getInstance();\n c.setTime(sdf.parse(dt)); //c is the formatted date value\n String dates[] = new String[5]; //Array which holds 5 consecutive future dates\n\n for(int i=0;i<5;i++) {\n c.add(Calendar.DATE, 1);\n dt = sdf.format(c.getTime());\n dates[i]=dt;\n\n }\n\n HashMap x = new HashMap<>();\n try {\n if (route.equals(\"Colombo to Badulla\")) {\n if (date.equals(String.valueOf(dates[0]))) {\n x = (HashMap) reservedseats1;\n } else if (date.equals(String.valueOf(dates[1]))) {\n x = (HashMap) reservedseats2;\n } else if (date.equals(String.valueOf(dates[2]))) {\n x = (HashMap) reservedseats3;\n } else if (date.equals(String.valueOf(dates[3]))) {\n x = (HashMap) reservedseats4;\n }else {\n x = (HashMap) reservedseats5;\n }\n\n } else if (route.equals(\"Badulla to Colombo\")) {\n if (date.equals(String.valueOf(dates[0]))) {\n x = (HashMap) reservedseats6;\n } else if (date.equals(String.valueOf(dates[1]))) {\n x = (HashMap) reservedseats7;\n } else if (date.equals(String.valueOf(dates[2]))){\n x = (HashMap) reservedseats8;\n } else if (date.equals(String.valueOf(dates[3]))) {\n x = (HashMap) reservedseats9;\n } else {\n x = (HashMap) reservedseats10;\n }\n } else System.out.println();\n\n } catch (Exception e) {\n }\n return x; //Returns hashmap to SeatReservation Class\n }", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "List<Map<String, Object>> betweenDateFind(String date1, String date2) throws ParseException;", "public List<Available> getAllAvailablePlaces(User u1) throws Exception\n {\n \n Connection con ;\n PreparedStatement ps;\n ResultSet rs;\n String sql;\n \n con=MyConnection.getConnection();\n \n // sql=\"select * from place where userid=?\";\n \n // 1 2 3 4 5 6 7 8\n // 9 10 \n // 11 12 13 \n // 14 15 16 17 18 19 20 \n sql=\"select p.placeid,p.userid,p.email,p.placename,p.placetype,p.address,p.city,p.state,\"\n + \"p.landmark,p.description,\"\n + \"p.customertype1,p.customertype2,p.count\"\n + \",a.availableid,a.date,a.srarttime,a.endtime,a.duration,a.cost,a.status \"\n + \"from available a \"\n + \"INNER JOIN place p ON p.placeid=a.placeid where a.userid !=? AND a.status=?\"; \n \n ps=con.prepareStatement(sql);\n ps.setInt(1,u1.getUserid());\n ps.setString(2,\"not booked\");\n \n rs=ps.executeQuery();\n \n List<Available> mylist=new ArrayList<Available>();\n \n while(rs.next()){\n \n Available av=new Available();\n \n \n \n Place p=new Place();\n \n p.setPlaceid(rs.getInt(1));\n User u=new User();\n u.setUserid(rs.getInt(2));\n p.setUser(u); \n p.setEmailid(rs.getString(3)); \n p.setPlacename(rs.getString(4)); \n p.setPlacetype(rs.getString(5)); \n p.setAddress(rs.getString(6)); \n p.setCity(rs.getString(7)); \n p.setState(rs.getString(8)); \n p.setLandmark(rs.getString(9)); \n p.setDescription(rs.getString(10));\n p.setCustomertype1(rs.getString(11)); \n p.setCustomertype2(rs.getString(12));\n p.setCount(rs.getString(13));\n \n av.setP(p);\n av.setAvailableid(rs.getInt(14));\n av.setDate(rs.getString(15));\n av.setStartTime(rs.getString(16));\n av.setEndTime(rs.getString(17));\n av.setDuration(rs.getString(18));\n av.setCost(rs.getString(19));\n av.setStatus(rs.getString(20));\n \n av.setUserid(u.getUserid());\n mylist.add(av);\n p=null;\n av=null;\n }\n return mylist;\n \n }", "public void generalSearch(Connection connection, LocalDate check_in, LocalDate check_out, int party_size, String city) throws SQLException {\n\n String sql = \"SELECT I.hotel_name, I.branch_ID, I.type, I.price FROM INFORMATION I, ROOM R, HOTEL_ADDRESS HA WHERE R.capacity >= ? AND HA.city = ? AND I.date_from >= to_date(?, 'YYYY-MM-DD') AND I.date_from <= to_date(?,'YYYY-MM-DD') GROUP BY I.date_from, I.date_to HAVING I.num_avail > 0\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setPartySize(party_size);\n pStmt.setInt(1, getPartySize());\n setCity(city);\n pStmt.setString(2, getCity());\n pStmt.setString(3, check_in.toString());\n pStmt.setString(4, check_out.toString());\n\n ResultSet rs = null;\n\n try {\n\n System.out.printf(\" Hotels available: \");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2) + \" \" + rs.getString(3) + \" \" + rs.getInt(4));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if (rs != null){\n rs.close();\n }\n }\n }", "ResponseEntity<Response> registeredPlaces(int days);", "private static LocalDate[] getQuarterBounds(final LocalDate date) {\n Objects.requireNonNull(date);\n\n final LocalDate[] bounds = new LocalDate[8];\n\n bounds[0] = date.with(TemporalAdjusters.firstDayOfYear());\n bounds[1] = date.withMonth(Month.MARCH.getValue()).with(TemporalAdjusters.lastDayOfMonth());\n bounds[2] = date.withMonth(Month.APRIL.getValue()).with(TemporalAdjusters.firstDayOfMonth());\n bounds[3] = date.withMonth(Month.JUNE.getValue()).with(TemporalAdjusters.lastDayOfMonth());\n bounds[4] = date.withMonth(Month.JULY.getValue()).with(TemporalAdjusters.firstDayOfMonth());\n bounds[5] = date.withMonth(Month.SEPTEMBER.getValue()).with(TemporalAdjusters.lastDayOfMonth());\n bounds[6] = date.withMonth(Month.OCTOBER.getValue()).with(TemporalAdjusters.firstDayOfMonth());\n bounds[7] = date.with(TemporalAdjusters.lastDayOfYear());\n\n return bounds;\n }", "private static ArrayList<Map> checkAvailability(ArrayList<Map> res) {\n\t\tArrayList<Map> availableSlot = new ArrayList<Map>();\r\n\t\tfor (Map center : res) {\r\n\t\t\tint age = (int) center.get(\"min_age_limit\");\r\n\t\t\tif(age == AGE) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 45+ :\" + center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t\t//END = true;\r\n\t\t\t\t}\r\n\t\t\t}else if( age == 18) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 18+ :\" +center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn availableSlot;\r\n\t}", "@Test\n public void findReservationBetweenTest() {\n Collection<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findReservationBetween(Mockito.any(LocalDate.class), Mockito.any(LocalDate.class)))\n .thenReturn(expected);\n Collection<Reservation> result = reservationService.findReservationsBetween(LocalDate.now().minusDays(4),\n LocalDate.now().plusDays(15));\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation3));\n Assert.assertTrue(result.contains(reservation4));\n }", "public GenericResponse<Set<Room>> findAvailableRooms(LocalDate bookingDate) {\n logger.info(String.format(\"Booking date: %s\", bookingDate));\n\n GenericResponse genericResponse = HotelBookingValidation.validateBookingDate(logger, bookingDate);\n if (genericResponse != null) {\n return genericResponse;\n }\n\n Set<Room> availableRooms =\n hotel.getRooms()\n .stream()\n .filter(\n room -> !hotel.getBookings().containsKey(\n BookingRoom.NewBuilder().withRoom(room).withBookingDate(bookingDate).build()\n )\n )\n .collect(Collectors.toSet());\n return GenericResponseUtils.generateFromSuccessfulData(availableRooms);\n }", "@Test\n\tpublic void testFindFreeFacilityRoomNotAvailible() {\n\t\t// get current date\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\t// start is current date + 1\n\t\tDate startDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 24);\n\t\tDate reservationEndDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\t\tDate findEndDate = cal.getTime();\n\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(room1.getId()), startDate, reservationEndDate);\n\n\t\t// search for one workplace in room1\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 1);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, startDate, findEndDate, false);\n\n\t\t// should find no room because room is not available\n\t\tassertNotNull(result);\n\t\tassertEquals(0, result.size());\n\t}", "private void checking() {\n try {\n ResultSet rs;\n Statement st;\n Connection con = db.getDBCon();\n st = con.createStatement();\n String sql = \"select * from trainset_reservation where train_no='\" + Integer.parseInt(no.getText()) + \"'\";\n rs = st.executeQuery(sql);\n boolean b = false;\n String dat0 = null;\n String dat1 = null;\n\n while (rs.next()) {\n dat0 = rs.getString(\"start_date\");\n dat1 = rs.getString(\"end_date\");\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E MMM dd HH:mm:ss z yyyy\");\n Date f_dbdate = sdf.parse(dat0);\n Date s_dbdate = sdf.parse(dat1);\n Date f_date = s_date.getDate();\n Date s_date = e_date.getDate();\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() < f_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && f_date.getTime() < s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n\n if (f_date.getTime() > s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n\n long diffIn = Math.abs(s_date.getTime() - f_date.getTime());\n long diff = TimeUnit.DAYS.convert(diffIn, TimeUnit.MILLISECONDS);\n // t2.setText(String.valueOf(diff));\n b = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic List<ContractDetailTO> findRangedContractDetailList(HashMap<String, Object> searchDate) {\r\n\t\treturn contractApplicationService.findRangedContractDetailList(searchDate);\r\n\t}", "public void printOccupancy(ArrayList<LocalDate> dates, ArrayList<Integer> days) {\n\t\t\tint i = 0;\r\n\t\t\tint nights;\r\n\t\t\tLocalDate buffer;\r\n\t\t\tString month;\r\n\t\t\t\r\n\t\t\tif(!dates.isEmpty()) { //If there are bookings for the room\r\n\t\t\t\twhile(i < dates.size()) {\r\n\t\t\t\t\tbuffer = dates.get(i);\r\n\t\t\t\t\tnights = days.get(i);\r\n\t\t\t\t\tmonth = monthConvert(buffer.getMonthValue());\r\n\t\t\t\t\tSystem.out.print(\" \" + month + \" \" + buffer.getDayOfMonth() + \" \" + nights);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}", "public static ArrayList<String> checkWaitlist(boolean byRoom, int seats, Date date){\r\n con = DBConnection.getConnection();\r\n ArrayList<String> open = new ArrayList<>();\r\n\r\n if(byRoom){\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where SEATS <= ?\");\r\n retrieve.setInt(1, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n while(res.next()){\r\n if(open.indexOf(res.getString(2)) >= 0){\r\n continue;\r\n }\r\n open.add(res.getString(1));\r\n open.add(res.getString(2));\r\n open.add(res.getString(3));\r\n }\r\n return open;\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n } else {\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where Date = ? and SEATS <= ?\"\r\n + \"ORDER by Timestamp\");\r\n retrieve.setDate(1, date);\r\n retrieve.setInt(2, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n if(res.next()){\r\n open.add(res.getString(1));\r\n open.add(res.getString(3));\r\n }\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n }\r\n }", "public int[] boundFinderQuarters(int[] date) {\n int[] bound = {0, 0};\n int year, month, day;\n year = date[0];\n month = date[1];\n day = date[2];\n\n /*** LOWER BOUND = bound[0]***/\n bound[0] = 1;\n\n /*** UPPER BOUND ***/\n boolean leapYearFlag = false;\n for (int i = 0; i < leapYears.length; i++) {\n if (year == leapYears[i]) {\n leapYearFlag = true;\n }\n }\n\n // If leap year and month is Feb then set upperBoundMonth to 29\n if (leapYearFlag && month == 2) {\n bound[1] = 29;\n } else {\n bound[1] = calculateUpperBound(month);\n }\n return bound;\n }", "@Test\r\n public void testCalculDureeEffectiveLocation() {\r\n LocalDate date1 = LocalDate.parse(\"2018-04-02\");\r\n LocalDate date2 = LocalDate.parse(\"2018-04-10\");\r\n\r\n int res1 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(7, res1);\r\n\r\n date1 = LocalDate.parse(\"2018-01-10\");\r\n date2 = LocalDate.parse(\"2018-01-17\");\r\n\r\n int res2 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(5, res2);\r\n\r\n date1 = LocalDate.parse(\"2018-04-30\");\r\n date2 = LocalDate.parse(\"2018-05-09\");\r\n\r\n int res3 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(6, res3);\r\n }", "@Test\n\tpublic void testFindFreeFacility2Workplaces() {\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, validStartDate, validEndDate, false);\n\n\t\t// should find the one room with the two workplaces.\n\t\tassertNotNull(result);\n\t\tassertEquals(1, result.size());\n\t\tassertEquals(validStartDate, result.iterator().next().start);\n\t}", "private void checkDateBounds(PortfolioRecord portRecord) {\n List<DataPoint> history = portRecord.getHistory();\n\n if (!userSetDates) {\n fromDateBound = null;\n toDateBound = null;\n }\n\n if (history.size() > 0) {\n LocalDate minDate = history.get(0).getDate();\n LocalDate maxDate = history.get(history.size() - 1).getDate();\n\n if (fromDateBound == null && toDateBound == null) {\n fromDateBound = minDate;\n toDateBound = maxDate;\n } else if (toDateBound.compareTo(maxDate) < 0) {\n toDateBound = maxDate;\n }\n } else {\n fromDateBound = null;\n toDateBound = null;\n userSetDates = false;\n }\n }", "public List<Available> getAllAvailablePlacesAdmin() throws Exception\n {\n \n Connection con ;\n PreparedStatement ps;\n ResultSet rs;\n String sql;\n \n con=MyConnection.getConnection();\n \n // sql=\"select * from place where userid=?\";\n \n // 1 2 3 4 5 6 7 8\n // 9 10 \n // 11 12 13 \n // 14 15 16 17 18 19 20 \n sql=\"select p.placeid,p.userid,p.email,p.placename,p.placetype,p.address,p.city,p.state,\"\n + \"p.landmark,p.description,\"\n + \"p.customertype1,p.customertype2,p.count\"\n + \",a.availableid,a.date,a.srarttime,a.endtime,a.duration,a.cost,a.status \"\n + \"from available a \"\n + \"INNER JOIN place p ON p.placeid=a.placeid\"; \n \n ps=con.prepareStatement(sql);\n rs=ps.executeQuery();\n \n List<Available> mylist=new ArrayList<Available>();\n \n while(rs.next()){\n \n Available av=new Available();\n \n \n \n Place p=new Place();\n \n p.setPlaceid(rs.getInt(1));\n User u=new User();\n u.setUserid(rs.getInt(2));\n p.setUser(u); \n p.setEmailid(rs.getString(3)); \n p.setPlacename(rs.getString(4)); \n p.setPlacetype(rs.getString(5)); \n p.setAddress(rs.getString(6)); \n p.setCity(rs.getString(7)); \n p.setState(rs.getString(8)); \n p.setLandmark(rs.getString(9)); \n p.setDescription(rs.getString(10));\n p.setCustomertype1(rs.getString(11)); \n p.setCustomertype2(rs.getString(12));\n p.setCount(rs.getString(13));\n \n av.setP(p);\n av.setAvailableid(rs.getInt(14));\n av.setDate(rs.getString(15));\n av.setStartTime(rs.getString(16));\n av.setEndTime(rs.getString(17));\n av.setDuration(rs.getString(18));\n av.setCost(rs.getString(19));\n av.setStatus(rs.getString(20));\n \n av.setUserid(u.getUserid());\n mylist.add(av);\n p=null;\n av=null;\n }\n return mylist;\n \n }", "public RequestedDatesForAvailability getRequestedDatesForAvailability(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability res){\n\t\tRequestedDatesForAvailability requestedDatesForAvailability = new RequestedDatesForAvailability();\n\t\t\n\t\trequestedDatesForAvailability.setNoOfRooms( res.getNoOfRooms() );\n\t\trequestedDatesForAvailability.setBookingDate( res.getBookingDate() );\t\n\t\trequestedDatesForAvailability.setBookingDuration( res.getBookingDuration() );\n\t\trequestedDatesForAvailability.setRoomDescription( res.getRoomDescription() );\n\t\trequestedDatesForAvailability.setRoomStatus( res.getRoomStatus() );\n\t\trequestedDatesForAvailability.setMaterialNumber( res.getMaterialNumber() );\n\t\t\n\t\trequestedDatesForAvailability.setReqDates( res.getReqDates() );\n\t\t\n\t\treturn requestedDatesForAvailability;\n\t}", "public Collection<TimeRange> getAvailableTimes(List<TimeRange> unavailableTimes, long requestDuration) {\n int startTime = TimeRange.START_OF_DAY;\n Collections.sort(unavailableTimes, TimeRange.ORDER_BY_START);\n Collection<TimeRange> availableTimes = new ArrayList<>();\n \n for(TimeRange unavailableTime : unavailableTimes) {\n if(startTime < unavailableTime.start()) {\n TimeRange availableTime = TimeRange.fromStartEnd(startTime, unavailableTime.start(), false);\n if(availableTime.duration() >= requestDuration){\n availableTimes.add(availableTime);\n }\n }\n if(unavailableTime.end() > startTime){\n startTime = unavailableTime.end();\n }\n }\n\n if(startTime != TimeRange.END_OF_DAY+1){\n availableTimes.add(TimeRange.fromStartEnd(startTime, TimeRange.END_OF_DAY, true));\n }\n \n return availableTimes;\n }", "public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}", "public DateAvailableVO checkDateAvailable(String date) {\n\t\treturn null;\n\t}", "public List<FlightSchedule> getFlightsAvailables(ScheduleRepository scheduleFinderService, String from, String to,\n\t\t\tLocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tList<FlightSchedule> flightsAvailables = new ArrayList<FlightSchedule>();\n\t\tint day = 0;\n\t\tint month = 0;\n\t\tint year = startDateTime.getYear();\n\t\tLocalDateTime departureDateTime, arrivalDateTime;\n\t\tFlightSchedule flightResult;\n\t\tList<Schedule> schedules = getSchedules(scheduleFinderService, from, to, startDateTime, endDateTime);\n\t\tif (!schedules.isEmpty()) {\n\t\t\tList<DayFlight> flightsDays = schedules.stream().flatMap(schedule -> schedule.getDays().stream()).collect(Collectors.toList());\n\t\t\tList<DayFlight> flightsOfDay = flightsDays.stream().filter(getDay(startDateTime)).collect(Collectors.toList());\n\t\t\tList<Flight> flights = flightsOfDay.stream().flatMap(flight -> flight.getFlights().stream()).collect(Collectors.toList());\n\t\t\tmonth = startDateTime.getMonthValue();\n\t\t\tday = startDateTime.getDayOfMonth();\n\t\t\tfor (Flight flight : flights) {\n\t\t\t\tdepartureDateTime = createLocalDateTime(year, month, day, flight.getDepartureTime());\n\t\t\t\tarrivalDateTime = createLocalDateTime(year, month, day, flight.getArrivalTime());\n\t\t\t\tif (validFlight(startDateTime, endDateTime, departureDateTime, arrivalDateTime)) {\n\t\t\t\t\tlog.info(String.format(\"Create Fligt Result: from %s, to %s, departureTime %s, arrivalTime %s\",\n\t\t\t\t\t\t\tfrom, to, departureDateTime, arrivalDateTime));\n\t\t\t\t\tflightResult = createFlightResult(from, to, departureDateTime, arrivalDateTime);\n\t\t\t\t\tflightsAvailables.add(flightResult);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn flightsAvailables;\n\t}", "private void retrieveListings(GoogleMap googleMap) {\n Projection projection = googleMap.getProjection();\n VisibleRegion visibleRegion = projection.getVisibleRegion();\n LatLng sw = visibleRegion.latLngBounds.southwest;\n LatLng ne = visibleRegion.latLngBounds.northeast;\n double left = sw.longitude;\n double bottom = sw.latitude;\n double right = ne.longitude;\n double top = ne.latitude;\n\n // Find listings on the visible region of the map\n queryListings(left, right, top, bottom);\n }", "public void setAvailability(String date) {\n\t\tavailableAt = date;\n\t}", "private void generateMarkedDates() {\n this.markedDates = new HashMap<>();\n for (Task t : logic.getAddressBook().getTaskList()) {\n\n if (markedDates.containsKey(t.getStartDate().getDate())) {\n if (t.getPriority().getPriorityLevel() > markedDates.get(t.getStartDate().getDate())) {\n markedDates.put(t.getStartDate().getDate(), t.getPriority().getPriorityLevel());\n }\n } else {\n markedDates.put(t.getStartDate().getDate(), t.getPriority().getPriorityLevel());\n }\n\n if (markedDates.containsKey(t.getEndDate().getDate())) {\n if (t.getPriority().getPriorityLevel() > markedDates.get(t.getEndDate().getDate())) {\n markedDates.put(t.getEndDate().getDate(), t.getPriority().getPriorityLevel());\n }\n } else {\n markedDates.put(t.getEndDate().getDate(), t.getPriority().getPriorityLevel());\n }\n }\n }", "public void searchAvailability(Connection connection, String hotel_name, int branchID, java.sql.Date from, java.sql.Date to) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT type, num_avail, price FROM Information WHERE hotel_name = ? AND branch_ID = ? AND date_from >= Convert(datetime, ?) AND date_to <= Convert(datetime, ?)\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n pStmt.setDate(3, from);\n pStmt.setDate(4, to);\n\n try {\n\n System.out.printf(\" Availiabilities at %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.printf(\" Date Listing: \" + String.valueOf(from) + \" TO \" + String.valueOf(to) + \"\\n\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2) + \" \" + rs.getInt(3));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "public static List<ReserveTime> getUnitReservedTimesBetweenDays(ReserveTimeForm reserveTimeForm)\n\t{\n\t\tConnection conn = DBConnection.getConnection();\n\t\tList<ReserveTime> reserveTimes = new ArrayList<>();\n\t\tString middleQuery = reserveTimeForm.getDayNumbers() == null\n\t\t\t\t|| reserveTimeForm.getDayNumbers().isEmpty()\n\t\t\t\t?\n\t\t\t\t\"\"\n\t\t\t\t:\n\t\t\t\tgetToBeDeletedDayListMiddleQuery(reserveTimeForm.getDayNumbers());\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString command = \"SELECT\" +\n\t\t\t\t\t\" * FROM\" +\n\t\t\t\t\t\" RESERVETIMES rt , calendar cal\" +\n\t\t\t\t\t\" WHERE\" +\n\t\t\t\t\t\" rt.DAY_ID = cal.ID\" +\n\t\t\t\t\t\" AND\" +\n\t\t\t\t\t\" rt.STATUS = \" +\n\t\t\t\t\tReserveTimeStatus.RESERVED.getValue() +\n\t\t\t\t\t\" AND rt.UNIT_ID = \" +\n\t\t\t\t\treserveTimeForm.getUnitID() +\n\t\t\t\t\t\" AND rt.DAY_ID BETWEEN \" +\n\t\t\t\t\treserveTimeForm.getStartDate() +\n\t\t\t\t\t\" AND \" +\n\t\t\t\t\treserveTimeForm.getEndDate() +\n\t\t\t\t\tmiddleQuery;\n\t\t\tResultSet rs = stmt.executeQuery(command);\n\t\t\tfillReserveTimeList(rs, reserveTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tif(conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn reserveTimes;\n\t}", "public Map<String, List<Reservation>> findReservationsFor(List<Class> points){\n\t\tMap<String, List<Reservation>> reservations = new HashMap<>();\n\t\tpoints\n\t\t\t.forEach(point ->\n\t\t\t\treservations.put(point.getSimpleName(), this.sortByDate(this.findByClass(point)))\n\t\t\t);\n\t\treturn reservations;\n\t}", "@CrossOrigin(origins = \"http://campsiteclient.herokuapp.com\", maxAge = 3600)\n\t@GetMapping\n\tpublic JSONArray checkAvaibility(@RequestParam(value = \"from\") Optional<String> from,\n\t\t\t@RequestParam(value = \"to\") Optional<String> to) throws java.text.ParseException {\n\n\t\tString startDateStringFormat = from\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(1, new Date())));\n\t\tString endDateStringFormat = to\n\t\t\t\t.orElse(dateUtils.formatDate(dateUtils.addDays(31, new Date())));\n\n\t\tDate startDate = bookingServiceImpl.formatDate(startDateStringFormat);\n\t\tDate endDate = dateUtils.formatDate(endDateStringFormat);\n\n\t\tList<BookingDate> bookedDates = bookingDateRepository.getBooking(startDate, endDate);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tfor (BookingDate bookingDate : bookedDates) {\n\t\t\tDate date = bookingDate.getBookingDate();\n\t\t\tString dateToString = dateUtils.formatDate(date);\n\t\t\tlist.add(dateToString);\n\t\t}\n\n\t\tJSONArray result = bookingServiceImpl\n\t\t\t\t.getAvailableDates(new HashSet<BookingDate>(bookedDates), startDate, endDate);\n\t\treturn result;\n\t}", "public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}", "public void searchAvailabilityType(Connection connection, String hotel_name, int branchID, String type, LocalDate from, LocalDate to) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT num_avail, price FROM Information WHERE hotel_name = ? AND branch_ID = ? AND type >= ? AND date_from <= to_date(?, 'YYYY-MM-DD') AND date_to = to_date(?, 'YYYY-MM-DD')\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n setType(type);\n pStmt.setString(3, getType());\n pStmt.setString(4, from.toString());\n pStmt.setString(5, to.toString());\n\n try {\n\n System.out.printf(\" Availabilities for %S type at %S, branch ID (%d): \\n\", getType(), getHotelName(), getBranchID());\n System.out.printf(\" Date Listing: \" + String.valueOf(from) + \" TO \" + String.valueOf(to) + \"\\n\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while(rs.next()) {\n System.out.println(rs.getInt(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "public DefaultListModel<Event> getAllEventsFromDateWithPlaceDLM(Calendar date)\r\n\t{\r\n\t\tDefaultListModel<Event> eventsList = new DefaultListModel<Event>();\r\n\t\t\t\r\n\t\tArrayList<Event> list = this.getAllEventsFromDate(date);\r\n\t\tlist.sort(null);\r\n\t\t\r\n\t\tfor(Event event : list )\r\n\t\t{\r\n\t\t\tif (! event.getPlace().isEmpty())\r\n\t\t\t\teventsList.addElement(event);\r\n\t\t}\r\n\t\t\r\n\t\treturn eventsList;\r\n\t}", "public abstract List getAllOverlapAppt(String provider, Date startTime,\r\n\t\t\tDate endTime);", "void getPlacements() {\n previousTotalPlacement = 0;\n loadingPlacement = true;\n page_to_call_placement = 1;\n isFirstRunPlacement = true;\n isLastPageLoadedPlacement = false;\n lastPageFlagPlacement = 0;\n Log.d(\"PlacmentTesting\", \"previousTotalPlacement: \" + previousTotalPlacement);\n Log.d(\"PlacmentTesting\", \"page_to_call_placement: \" + page_to_call_placement);\n Log.d(\"PlacmentTesting\", \"lastPageFlagPlacement: \" + lastPageFlagPlacement);\n\n GetPlacementsByAdminMetadata();\n\n }", "public static List<ReserveTime> getUnitMiddayReservedTimesBetweenDays(ReserveTimeForm reserveTimeForm) {\n\t\tConnection conn = DBConnection.getConnection();\n\t\tList<ReserveTime> reserveTimes = new ArrayList<>();\n\t\tString middleQuery = reserveTimeForm.getDayNumbers() == null\n\t\t\t\t|| reserveTimeForm.getDayNumbers().isEmpty()\n\t\t\t\t?\n\t\t\t\t\"\"\n\t\t\t\t:\n\t\t\t\tgetToBeDeletedDayListMiddleQuery(reserveTimeForm.getDayNumbers());\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString command = \"SELECT\" +\n\t\t\t\t\t\" * FROM\" +\n\t\t\t\t\t\" RESERVETIMES rt, calendar cal\" +\n\t\t\t\t\t\" WHERE\" +\n\t\t\t\t\t\" rt.DAY_ID = cal.ID AND \" +\n\t\t\t\t\t\" rt.STATUS = \" +\n\t\t\t\t\tReserveTimeStatus.RESERVED.getValue() +\n\t\t\t\t\t\" AND rt.UNIT_ID = \" +\n\t\t\t\t\treserveTimeForm.getUnitID() +\n\t\t\t\t\t\" AND rt.DAY_ID BETWEEN \" +\n\t\t\t\t\treserveTimeForm.getStartDate() +\n\t\t\t\t\t\" AND \" +\n\t\t\t\t\treserveTimeForm.getEndDate() +\n\t\t\t\t\t\" AND rt.MIDDAY_ID = \" + reserveTimeForm.getMidday().getValue() +\n\t\t\t\t\tmiddleQuery;\n\t\t\tResultSet rs = stmt.executeQuery(command);\n\t\t\tfillReserveTimeList(rs, reserveTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tif(conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn reserveTimes;\n\t}", "@Test\n\tpublic void testFindFreeFacility2WorkplacesNext15() {\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// create a reservation for 15 miniutes for workplace 1 so it is\n\t\t// just bookable in 15 minitues\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tcal.set(Calendar.MINUTE, 15);\n\n\t\tDate bookingStart = cal.getTime();\n\n\t\tcal.add(Calendar.MINUTE, 15);\n\t\tDate bookingEnd = cal.getTime();\n\n\t\t// book one workplace of the two:\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(workplace1.getId()), bookingStart, bookingEnd);\n\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, bookingStart, bookingEnd, false);\n\n\t\t// should find the one room with the two workplaces.\n\t\tassertNotNull(result);\n\t\tassertEquals(1, result.size());\n\t\tassertEquals(bookingEnd, result.iterator().next().start);\n\t}", "public List<ICase> searchCases(Date date) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date))) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "public List<Vehicle> getVehiclesInPlace(String placeId,\n\t\t\tCalendar since, \n\t\t\tCollection<VehicleType> typesReq,\n\t\t\tVehicleState stateReq) \n\t\t\tthrows RnsServiceException\n\t{\n\t\tList<Vehicle> vehiclesInPlace = new ArrayList<Vehicle>();\n\t\tPlace p = this.getPlaceById(placeId);\n\t\tif(p==null){\n\t\t\tthrow new RnsServiceException(\n\t\t\t\"CALLER should have checked place existance\");\n\t\t}\n\t\t\n\t\tString placeUri = p.getSelf();\n\t\t\n\t\tList<Vehicle> vehs = this.getVehicles(since, typesReq, stateReq);\n\t\t\n\t\t//it should be super thread-exception safe\n\t\tfor(Vehicle v: vehs){\n\t\t\tString positionUri;\n\t\t\tsynchronized(this.getVehicleLock()){\n\t\t\t\tif( v == null)\n\t\t\t\t\tthrow new RnsServiceException();\n\t\t\t\tpositionUri = v.getPositionUri();\n\t\t\t\tif( placeUri.equals(positionUri) ){\n\t\t\t\t\tvehiclesInPlace.add(v);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\treturn vehiclesInPlace;\n\t}", "public Iterable<Place> places(){\n return places;\n }", "public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "public void getOrdersByDate() throws FlooringDaoException {\n boolean validDate = true;\n do {\n try {\n String date = view.getOrdersDate();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n validDate = true;\n view.displayOrdersByDate(ordersByDate);\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDate = false;\n }\n } while (!validDate);\n }", "@Transactional\r\n\tpublic List<Room> getFreeFromTo(LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.roomRepository.findByReservationsNotIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t\tl.addAll(this.roomRepository.findByReservationsIsNull());\r\n\t\treturn l;\r\n\t}", "public ArrayList<Room> getAvailableRooms(LocalDate start, LocalDate end,\n int small, int medium, int large) {\n // Prepare temporary variables since the function using them will change. We do not want to change the original small, medium and large parameters.\n int tmpSmall = small;\n int tmpMedium = medium;\n int tmpLarge = large;\n return roomAvailability(start, end, tmpSmall, tmpMedium, tmpLarge);\n \n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability getRequestedDatesForAvailabilityReq(RequestedDatesForAvailability requestedDatesForAvailability){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability req = \n\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.requesteddatesforavailability.v1.RequestedDatesForAvailability();\n\t\t\n\t\treq.setNoOfRooms( requestedDatesForAvailability.getNoOfRooms() );\n\t\treq.setBookingDate( requestedDatesForAvailability.getBookingDate() );\t\n\t\treq.setBookingDuration( requestedDatesForAvailability.getBookingDuration() );\n\t\treq.setRoomDescription( requestedDatesForAvailability.getRoomDescription() );\n\t\treq.setRoomStatus( requestedDatesForAvailability.getRoomStatus() );\n\t\treq.setMaterialNumber( requestedDatesForAvailability.getMaterialNumber() );\n\t\tif( (requestedDatesForAvailability.getReqDates() != null) && (requestedDatesForAvailability.getReqDates().size() > 0) ){\n\t\t\tfor(int i=0; i < requestedDatesForAvailability.getReqDates().size(); i++){\n\t\t\t\treq.getReqDates().add( requestedDatesForAvailability.getReqDates().get(i) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn req;\n\t}", "public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo, String sType)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&type=\"+sType+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "@Override\n\tpublic int getRoomAvailable(String month, int day, String type, int lengthOfStay) {\n\t\treturn 0;\n\t}", "@GetMapping(value=\"/gps\", params=\"date\")\n @ResponseBody\n public List<GPSInfo> allFromDate(@RequestParam @DateTimeFormat(pattern = \"yyyy-MM-dd\") LocalDate date) {\n return repository.findByDate(date);\n }", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public boolean placeAvailableById(String placeId)\n\t\tthrows RnsServiceException{\n\t\tPlace place = getPlaceById(placeId);\n\t\tif(place == null)\n\t\t\treturn false;\n\t\tlong nOfVehiclesInPlace = \n\t\t\tthis.getVehiclesInPlace(placeId,null,null,null).size();\n\t\tlong maxVehiclesInPlace = place.getCapacity().longValue();\n\t\treturn nOfVehiclesInPlace < maxVehiclesInPlace;\n\t}", "private void searchAvailableCar() throws Exception {\t\n\t\tString type;\n\t\tSystem.out.print(\"Enter Type (SD/SS): \");\n\t\ttype = console.nextLine().toUpperCase();\n\t\t\n\t\tif (!type.equals(\"SD\") && !type.equals(\"SS\")) {\n\t\t\tthrow new InvalidServiceTypeException(\"Error: Service Type is invalid.\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Enter Date: \");\n\t\tString dateEntered = console.nextLine();\n\t\tDateRegex dateChecker = new DateRegex(dateEntered);\n\t\tint day = Integer.parseInt(dateEntered.substring(0, 2));\n\t\tint month = Integer.parseInt(dateEntered.substring(3, 5));\n\t\tint year = Integer.parseInt(dateEntered.substring(6));\n\t\tDateTime dateRequired = new DateTime(day, month, year);\n\t\tapplication.book(dateRequired, type);\n//\t\tfor (int i = 0; i < availableCars.length; i++) {\n//\t\t\tSystem.out.println(availableCars[i]);\n//\t\t}\n\t}", "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "@Test\n public void testGetOrdersByDate() {\n\n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderListByDate = service.getOrdersByDate(ld);\n List<Order> filteredList = new ArrayList<>();\n\n for (Order currentOrder : orderListByDate) {\n if (currentOrder.getOrderDate().contains(\"06232017\")) {\n filteredList.add(currentOrder);\n }\n }\n\n assertEquals(2, filteredList.size());\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "private List<SeatHold> getHoldTickets(Instant instant) {\n List<SeatHold> seatHolds = seatHoldMap.values()\n .stream()\n .filter(seatHold -> seatHold.getDate()\n .isBefore(LocalDateTime.ofInstant(instant, ZoneId.systemDefault())))\n .collect(Collectors.toList());\n return seatHolds;\n }", "public ArrayList<Booking> getBookings(int time,String date){\n ArrayList<Booking>Hours=new ArrayList<>();\n for(int i=0;i<Schedule.size();++i){\n Booking temp=Schedule.get(i); \n String Day=temp.getDate();\n int Datevalue=Integer.parseInt(Day.substring(8,10));\n int Value=Integer.parseInt(date);\n if(time<10) {\n if (temp.getTime().substring(0, 2).equals(\"0\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n else{\n if (temp.getTime().substring(0, 2).equals(\"\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n }\n return Hours;\n }", "@Test\n public void getBetweenDaysTest(){\n\n Date bDate = DateUtil.parse(\"2021-03-01\", DatePattern.NORM_DATE_PATTERN);//yyyy-MM-dd\n System.out.println(\"bDate = \" + bDate);\n Date eDate = DateUtil.parse(\"2021-03-15\", DatePattern.NORM_DATE_PATTERN);\n System.out.println(\"eDate = \" + eDate);\n List<DateTime> dateList = DateUtil.rangeToList(bDate, eDate, DateField.DAY_OF_YEAR);//创建日期范围生成器\n List<String> collect = dateList.stream().map(e -> e.toString(\"yyyy-MM-dd\")).collect(Collectors.toList());\n System.out.println(\"collect = \" + collect);\n\n }", "private ArrayList<Location> getLocationsWithin(Location loc, int n)\n {\n ArrayList<Location> locs = new ArrayList<>();\n if (loc==null||!loc.isValid()||n<=0)\n return locs;\n int thisRow = loc.getRow();\n int thisCol = loc.getCol();\n for (int row=thisRow-n;row<=thisRow+n;row++)\n {\n for (int col=thisCol-n;col<=thisCol+n;col++)\n {\n Location temp = new Location(row,col);\n if (temp.isValid())\n locs.add(temp);\n }\n }\n return locs;\n }", "private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "boolean hasFromDay();", "public HashMap<String, Double> getFreezedListByDate(Timestamp dateCurrent){\r\n HashMap<String, Double> freezedMap = new HashMap<>();\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(GET_FOLLOWERS_ALL_SQL);\r\n resultSet = preparedStatement.executeQuery();\r\n while (resultSet.next()) {\r\n if (resultSet.getTimestamp(FOLLOWERS_DATE_FREEZ_COLUMN_NAME).before(dateCurrent)){\r\n if (freezedMap.containsKey(resultSet.getString(FOLLOWERS_PERIODICAL_COLUMN_NAME))){\r\n String keyPeriodical = resultSet.getString(FOLLOWERS_PERIODICAL_COLUMN_NAME);\r\n double existMoney = freezedMap.get(keyPeriodical);\r\n double putMoney = existMoney + resultSet.getDouble(FOLLOWERS_MOUNTHPRICE_COLUMN_NAME);\r\n freezedMap.put(keyPeriodical, putMoney);\r\n } else {\r\n freezedMap.put(resultSet.getString(FOLLOWERS_PERIODICAL_COLUMN_NAME)\r\n , resultSet.getDouble(FOLLOWERS_MOUNTHPRICE_COLUMN_NAME));\r\n } \r\n }\r\n }\r\n } catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n return freezedMap;\r\n }", "void getDrivableLocations() {\n\t\t\tSystem.out.print(\"\\nPlaces you can drive to: \");\n\t\t\tfor (int i = 0; i < places.length; i++)\n\t\t\t\tif (places[i].drivable) //looks to see if you can drive there \n\t\t\t\t\tif ((places[i] != this)) //if it's not you're current location.\n\t\t\t\t\t\tSystem.out.print(places[i].locationName + \", \");\t//prints the name of the location\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}" ]
[ "0.6494364", "0.6181539", "0.6078802", "0.607814", "0.58508813", "0.58113617", "0.57177573", "0.57134145", "0.57023066", "0.56948644", "0.5694025", "0.5671803", "0.56400263", "0.56363744", "0.55714774", "0.5487614", "0.54778075", "0.5475429", "0.5464383", "0.5435072", "0.5431159", "0.54199797", "0.54079753", "0.540567", "0.53897053", "0.53775555", "0.5377417", "0.53579205", "0.5335903", "0.5323995", "0.52803415", "0.52765346", "0.52762115", "0.5272686", "0.5267235", "0.52620196", "0.5243241", "0.523764", "0.52353597", "0.5231539", "0.52095246", "0.52077764", "0.5205988", "0.52056575", "0.5203806", "0.51996714", "0.51778096", "0.51383156", "0.5129577", "0.51198155", "0.5107643", "0.51027054", "0.50884056", "0.5087855", "0.50792664", "0.5073569", "0.5053623", "0.5050392", "0.50446147", "0.50248635", "0.50134", "0.50123894", "0.50085926", "0.5006825", "0.50061023", "0.50028324", "0.49980402", "0.499671", "0.4983937", "0.4982598", "0.4954677", "0.49535978", "0.49526083", "0.4948422", "0.49378267", "0.49296197", "0.4921411", "0.49142745", "0.4914011", "0.49089444", "0.4907032", "0.4903278", "0.4895096", "0.4894567", "0.48887292", "0.48829243", "0.4881435", "0.48799813", "0.48740476", "0.4871087", "0.48702434", "0.4867632", "0.48559895", "0.48417005", "0.48296028", "0.48286545", "0.481831", "0.48157224", "0.48147988", "0.48136178" ]
0.6092265
2
Created by Rico on 20150119.
public interface OrderResolver { String resolve(String lang, String alias, String property, Criteria.OrderMode mode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo38117a() {\n }", "@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\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@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\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\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void memoria() {\n \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 }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Rekenhulp()\n\t{\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void init() {}", "private void init() {\n\n\n\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\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 }" ]
[ "0.5964061", "0.5863123", "0.58484423", "0.58188605", "0.580368", "0.57778955", "0.5770573", "0.5770573", "0.5726793", "0.5707032", "0.57004327", "0.5684282", "0.56696355", "0.566746", "0.5654922", "0.5648677", "0.5644957", "0.5641456", "0.5634661", "0.5623823", "0.56230026", "0.56218565", "0.56176674", "0.5616295", "0.5597535", "0.55855316", "0.55855316", "0.55855316", "0.55855316", "0.55855316", "0.5539402", "0.5538459", "0.552893", "0.5524375", "0.550765", "0.5497899", "0.54945457", "0.5487248", "0.54839706", "0.5483924", "0.5469795", "0.5469795", "0.5469795", "0.5461861", "0.5458791", "0.54369205", "0.5433905", "0.5433905", "0.5432835", "0.5432835", "0.5432835", "0.5427589", "0.5427589", "0.5427589", "0.54209703", "0.54209703", "0.54178613", "0.5404691", "0.5402542", "0.5402542", "0.5402542", "0.5402542", "0.5402542", "0.5402542", "0.5402542", "0.5402123", "0.53982735", "0.53979546", "0.5395793", "0.5388545", "0.5382571", "0.5382571", "0.5378014", "0.5373953", "0.5371123", "0.53570336", "0.53565043", "0.5354071", "0.5352343", "0.53517765", "0.53421414", "0.53413457", "0.53333324", "0.5326522", "0.53243095", "0.53200823", "0.531955", "0.5315863", "0.5313423", "0.530672", "0.5305214", "0.53009254", "0.5297762", "0.52926004", "0.52877504", "0.528486", "0.5266535", "0.5266535", "0.5266535", "0.5266535", "0.5266535" ]
0.0
-1
This constructor takes no parameters
public BookState() { this("AVAILABLE",new GeoPoint(0,0),null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "void DefaultConstructor(){}", "defaultConstructor(){}", "public Orbiter() {\n }", "private Instantiation(){}", "O() { super(null); }", "public CyanSus() {\n\n }", "public Clade() {}", "public PSRelation()\n {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Pasien() {\r\n }", "public Basic() {}", "public Data() {}", "public Method() {\n }", "public Pitonyak_09_02() {\r\n }", "public Curso() {\r\n }", "public Vector() {\n construct();\n }", "public AllDifferent()\n {\n this(0);\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "protected SimpleMatrix() {}", "public no() {}", "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 }", "public Chick() {\n\t}", "private SingleObject(){}", "public None()\n {\n \n }", "private SingleObject()\r\n {\r\n }", "public Complex() {\n this(0);\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public TTau() {}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Rol() {}", "public Node() {\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Node(){}", "private Node() {\n\n }", "public Node() {\n\t}", "public Mitarbeit() {\r\n }", "public Data() {\n }", "public Data() {\n }", "public SgaexpedbultoImpl()\n {\n }", "public RngObject() {\n\t\t\n\t}", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public Parser()\n {\n //nothing to do\n }", "public Anschrift() {\r\n }", "public Member() {}", "public Parameters() {\n\t}", "public Chauffeur() {\r\n\t}", "public CSSTidier() {\n\t}", "public Data() {\n \n }", "public Coche() {\n super();\n }", "public Stat()\n {\n // empty constructor\n }", "public Waschbecken() {\n this(0, 0);\n }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Lanceur() {\n\t}", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public Mannschaft() {\n }", "public SimOI() {\n super();\n }", "public Component() {\n }", "public GTFTranslator()\r\n {\r\n // do nothing - no variables to instantiate\r\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public Person() {\n\t\t\n\t}", "public Individual()\r\n\t{\r\n\t}", "public Node(){\n }", "public Trening() {\n }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public Identity()\n {\n super( Fields.ARGS );\n }", "private Composite() {\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Person()\n {\n //intentionally left empty\n }", "private Default()\n {}", "public Nota() {\n }", "private Rekenhulp()\n\t{\n\t}", "public Odontologo() {\n }", "public Postoj() {}", "public _355() {\n\n }", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public Aanbieder() {\r\n\t\t}", "public AntrianPasien() {\r\n\r\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Complex(){\r\n\t this(0,0);\r\n\t}", "public MethodEx2() {\n \n }", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public JsonFactory() { this(null); }", "public Implementor(){}", "private TMCourse() {\n\t}", "public Operation() {\n\t}", "public Member() {\r\n\t}", "public Request(){\n\t\tthis(null, null, null);\n\t}", "protected DenseMatrix()\n\t{\n\t}", "public Cgg_jur_anticipo(){}", "public D() {}" ]
[ "0.7984201", "0.76188177", "0.75502944", "0.7211132", "0.710287", "0.71000904", "0.7079572", "0.70465255", "0.7002959", "0.6972785", "0.69458026", "0.692731", "0.6922461", "0.69187653", "0.69179124", "0.6894296", "0.6883291", "0.68662304", "0.6831779", "0.68306327", "0.68237734", "0.68175244", "0.68172866", "0.6808086", "0.6807117", "0.6806568", "0.6805671", "0.6802406", "0.68000925", "0.67897373", "0.6768113", "0.6768113", "0.67603344", "0.67556626", "0.67550373", "0.6754242", "0.6736643", "0.67327344", "0.67289823", "0.67276716", "0.6726158", "0.67251587", "0.67251587", "0.6721505", "0.671515", "0.67139703", "0.671044", "0.6705094", "0.67048335", "0.6704376", "0.6703386", "0.67026013", "0.67001486", "0.6696871", "0.66902953", "0.6689688", "0.66735846", "0.66735846", "0.66735846", "0.66735846", "0.6666494", "0.6665235", "0.6664764", "0.6663778", "0.6663778", "0.66635305", "0.6661028", "0.665663", "0.66509515", "0.66478395", "0.6644544", "0.6643254", "0.66392297", "0.66372895", "0.66299886", "0.6627955", "0.6627687", "0.6623175", "0.66148317", "0.66124463", "0.6604335", "0.6601509", "0.6599772", "0.65985435", "0.6597338", "0.65966666", "0.65953225", "0.6593947", "0.659005", "0.65887445", "0.65883255", "0.65813136", "0.65778923", "0.65769625", "0.6573211", "0.6569104", "0.6568505", "0.6564109", "0.65634054", "0.6562846", "0.6559113" ]
0.0
-1
This constructor takes in three parameters
public BookState(String bookStatus, @Nullable GeoPoint geoPoint, @Nullable String handOffState) { this.bookStatus = bookStatus; this.location = geoPoint; this.handOffState = handOffState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public Constructor(){\n\t\t\n\t}", "private D3() {\n super(3);\n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public ArgList(Object arg1, Object arg2, Object arg3) {\n super(3);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n }", "public Card() { this(12, 3); }", "Constructor(int i,String n ,int x){ //taking three parameters which shows that it is constructor overloaded\r\n\t\t id = i; \r\n\t\t name = n; \r\n\t\t marks =x; \r\n\t\t }", "public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }", "Third()\n\t{\n\t\tsuper();\n\t\tSystem.out.println(\"Third level Constructor\");\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Triangle(IPoint firstPoint, IPoint secondPoint, IPoint thirdPoint)\n {\n this(firstPoint, secondPoint, thirdPoint, null);\n\n }", "private Vector3D(int x, int y, int z) {\n this(x, y, z, null);\n }", "public Vector(int v1, int v2, int v3) {\n\t\tx = v1;\n\t\ty = v2;\n\t\tz = v3;\n\t}", "public Sock( /*int n , int ar[]*/)\n{\n\t//this.n=n;\n\t//this.ar=ar;\n}", "public Triangle (int x, int y, int z){ \r\n \r\n \r\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public mapper3c() { super(); }", "public Student(String name, String gender, String email, Course course1, \n Course course2, Course course3){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = course1;\n this.course2 = course2;\n this.course3 = course3;\n }", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "public Triangle(double s1, double s2, double s3){\n\t\tside1=s1;\n\t\tside2=s2;\n\t\tside3=s3;\n\t}", "public ThreeVector(double v1,double v2,double v3) {\r\n\t\tthis.x=v1;\r\n\t\tthis.y=v2;\r\n\t\tthis.z=v3;\r\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }", "public Vertex3D() {\n this(0.0, 0.0, 0.0);\n }", "public SmoothData3D(int nX, int nY){\n\tsuper(nX,nY);\n }", "public GI3( String[] textParms )\n {\n super( textParms );\n }", "public CMLVector3() {\r\n }", "public ctq(File paramFile, String paramString, oa paramoa, ckh paramckh)\r\n/* 22: */ {\r\n/* 23: 33 */ super(paramoa);\r\n/* 24: 34 */ this.i = paramFile;\r\n/* 25: 35 */ this.j = paramString;\r\n/* 26: 36 */ this.k = paramckh;\r\n/* 27: */ }", "public Triangle(Point a, Point b, Point c){\n this.a=a;\n this.b=b;\n this.c=c;\n }", "public Vector(double x, double y, double z) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { 1 }\n });\n }", "public Level3()\n {\n super();\n }", "public Complex(){\r\n\t this(0,0);\r\n\t}", "private void __sep__Constructors__() {}", "private FloatCtrl(long param1Long, String param1String1, float param1Float1, float param1Float2, float param1Float3, String param1String2) {\n/* 435 */ this(param1Long, new FCT(param1String1, null), param1Float1, param1Float2, param1Float3, param1String2);\n/* */ }", "private InstantiateTransformer(Class[] paramTypes, Object[] args) {\n super();\n if (((paramTypes == null) && (args != null))\n || ((paramTypes != null) && (args == null))\n || ((paramTypes != null) && (args != null) && (paramTypes.length != args.length))) {\n throw new IllegalArgumentException(\"InstantiateTransformer: The parameter types must match the arguments\");\n }\n if ((paramTypes == null) && (args == null)) {\n iParamTypes = null;\n iArgs = null;\n } else {\n iParamTypes = (Class[]) paramTypes.clone();\n iArgs = (Object[]) args.clone();\n }\n }", "public J3DAttribute () {}", "public MyLinkedHashMap(int val1, float val2, boolean val3){\n super(val1, val2, val3);\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public Parameters() {\n\t}", "public BaseParameters(){\r\n\t}", "public CyanSus() {\n\n }", "public Point3(float x, float y, float z) {\r\n\t\tsuper(x, y);\r\n\t\tthis.z = z;\r\n\t}", "public atx(String paramString, float paramFloat1, float paramFloat2)\r\n/* 8: */ {\r\n/* 9:157 */ this.a = paramString;\r\n/* 10:158 */ this.b = paramFloat1;\r\n/* 11:159 */ this.c = paramFloat2;\r\n/* 12: */ }", "public Vector3D(double x, double y, double z) {\r\n super(x, y, z);\r\n\t}", "public b3(){\n super();\n }", "public Complex(int r, int i){\r\n\t this((double) r, (double) i);\r\n\t\t//chain the input from this constructor to the next constructor,\r\n\t\t// which has a (double, double) signature\r\n\t}", "public Triangulo(double l1, double l2, double l3)\n {\n // initialise instance variables\n lado1=l1;\n lado2=l2;\n lado3=l3;\n }", "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "public Clade() {}", "public Vector3(double x, double y, double z)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.z = z;\n\t}", "Cube()\r\n\t{\r\n\t\t//System.out.println(\"We are in constructor\");\r\n\t\tlength=10;\r\n\t\tbredth=20;\r\n\t\theight=30;\r\n\t}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public Demo3() {}", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Circle(double radius, String color){ // 3 constructor\n this.radius = radius;\n this.color = color;\n }", "public Triangle (double x1,double y1,double x2, double y2,double x3,double y3)\r\n {\r\n v1 = new Point(x1,y1);\r\n v2 = new Point(x2,y2);\r\n v3 = new Point(x3,y3);\r\n }", "public Triangle(){\n\t\tside1=1.0;\n\t\tside2=1.0;\n\t\tside3=1.0;\n\t}", "public Bank(BankAccount b1, BankAccount b2, BankAccount b3, Employee e1, Employee e2, Employee e3, Employee e4, Employee e5)\n {\n isOpen = true;\n account1 = b1;\n account2 = b2;\n account3 = b3;\n president = e1;\n vicePresident = e2;\n teller1 = e3;\n teller2 = e4;\n teller3 = e5;\n }", "public void init(int x, int y, int z) {\n\n\t}", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "Composite() {\n\n\t}", "public Video( int arg1, int arg2 ) { \n\t\tsuper( );\n\t}", "public Vector3 () {\n }", "Rectangle()\n {\n this(1.0,1.0);\n }", "public Triangle( Point p1, Point p2, Point p3 ) {\n super(\"Triangle: \");\n this.setP1(p1);\n this.setP2(p2);\n this.setP3(p3);\n }", "public Vector(double x, double y, double z, double w) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { w }\n });\n }", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "@Test\n\tpublic void testProfessorConstructor3Params(){\n\t\tString firstname = \"Dennis\";\n\t\tString lastName = \"Ritchie\";\n\t\tlong id = 0451;\n\t\tProfessor testProfessor = new Professor(firstname, lastName, id);\n\t\tAssert.assertEquals(\"Dennis\", testProfessor.getFirstName());\n\t\tAssert.assertEquals(\"Ritchie\", testProfessor.getLastName());\n\t\tAssert.assertEquals(Long.valueOf(0451), testProfessor.getId());\n\t}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public A3Add(){}", "public PSRelation()\n {\n }", "public Boleto() {\n this(3.0);\n }", "public Vector3 (double x, double y, double z) {\n set(x, y, z);\n }", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "Cube(int l, int b, int h)\r\n\t{\r\n\t\t//System.out.println(\"We are in constructor\");\r\n\t\tlength=l;\r\n\t\tbredth=b;\r\n\t\theight=h;\r\n\t}", "public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Triangle(double side1, double side2, double side3) {\n\t\tthis.side1 = side1;\n\t\tthis.side2 = side2;\n\t\tthis.side3 = side3;\n\t}", "public CompositeData()\r\n {\r\n }", "Fraction () {\n this (0, 1);\n }", "private Params()\n {\n }", "public Pasien() {\r\n }", "private Font(long paramLong, Object paramObject) {\n/* 1031 */ this.a = paramLong;\n/* 1032 */ this.b = paramObject;\n/* */ }", "public Tbdtokhaihq3() {\n super();\n }", "public Triangle() {\n this(0,0,0,0,0);\n }", "public Chauffeur() {\r\n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Triangle(Point p1, Point p2, Point p3) {\n this.p1 = p1;\n this.p2 = p2;\n this.p3 = p3;\n this.path = buildPath();\n }", "public ArgList(Object arg1, Object arg2, Object arg3, Object arg4) {\n super(4);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n addElement(arg4);\n }", "public Pitonyak_09_02() {\r\n }", "public Individual()\r\n\t{\r\n\t}", "protected AbstractMatrix3D() {}", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public PotionEffect(int paramInt1, int paramInt2)\r\n/* 16: */ {\r\n/* 17: 28 */ this(paramInt1, paramInt2, 0);\r\n/* 18: */ }", "public Point3D(double x,double y,double z)\n {\n _x=x;\n _y=y;\n _z=z;\n }" ]
[ "0.70275146", "0.68835104", "0.6715447", "0.66813356", "0.6510731", "0.6491087", "0.639418", "0.6377424", "0.63609004", "0.6347392", "0.631182", "0.6300677", "0.6297043", "0.6294907", "0.6284183", "0.6260662", "0.6259112", "0.6249367", "0.6246713", "0.62433535", "0.6229548", "0.61877894", "0.61435455", "0.6141053", "0.613739", "0.61355317", "0.612109", "0.61192846", "0.6108911", "0.6104923", "0.60969436", "0.60839814", "0.6081235", "0.6076874", "0.6076739", "0.6059067", "0.6056235", "0.6047802", "0.6034748", "0.6031097", "0.6029904", "0.6026836", "0.6023741", "0.602268", "0.6022269", "0.6020357", "0.60115176", "0.6007893", "0.6003882", "0.6001077", "0.597997", "0.5978788", "0.59747577", "0.59644157", "0.59592456", "0.59575504", "0.5953886", "0.59511906", "0.59508914", "0.59488845", "0.59464383", "0.5944422", "0.5940979", "0.59363717", "0.59343743", "0.5933797", "0.59325737", "0.59281415", "0.5925607", "0.59209955", "0.5905684", "0.590559", "0.5903233", "0.5894514", "0.58803535", "0.58769244", "0.5871067", "0.58666694", "0.5861505", "0.58565927", "0.5854918", "0.5833587", "0.5831971", "0.5829732", "0.582908", "0.58275163", "0.5827241", "0.5827066", "0.58255607", "0.58205736", "0.5807643", "0.58065873", "0.58046037", "0.5800398", "0.58002174", "0.579995", "0.5798453", "0.57984173", "0.5797307", "0.5791518", "0.5790237" ]
0.0
-1
A constructor for a binary tree using the expression. You should parse the expression and store them recursively.
public BinaryTree(String expression) { String[] arr = expression.split(" "); root = parse(arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExpressionTree(TreeNode treeNode) {\n\t\tsuper(treeNode.getValue(), treeNode.getLeft(), treeNode.getRight());\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "public ExpressionTree()\n\t\t{\n\t root = null;\n\t\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "public BinaryTree(){}", "public ExpressionTree(String initValue, TreeNode initLeft, TreeNode initRight) {\n\t\tsuper(initValue, initLeft, initRight);\n\t}", "public BinaryTree() {\n\t}", "public ExpressionTree(String initValue) {\n\t\tsuper(initValue);\n\t}", "public TreeNode(TreeNode left, TreeNode right, char operand){\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t\tthis.operand = operand;\n\t\tthis.type = \"op\";\n\n\t}", "Expression() { }", "public UnaryExpNode() {\n }", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "public OpTree(String theOp)\n\t{\n\t\tme = ++total;\n\t\tif (DEBUG) System.out.println(\"Terminal Op \" + me);\n\t\top = theOp;\n\t\tdval = null;\n\t\tleft = null;\n\t\tright = null;\n\t}", "public Expression() {\r\n }", "public LinkedBinaryTree() { // constructs an empty binary tree\n\n }", "public BinaryTree()\r\n\t{\r\n\t\t// Initialize field values\r\n\t\tthis.counter = 0;\r\n\t\tthis.arrayCounter = 0;\r\n\t\tthis.root = null;\r\n\t}", "public TernaryTree() {\n root = null;\n\n }", "public ExpressionNodes(String data)\n\t {\n\t this.data = data;\n\t this.left = null;\n\t this.right = null;\n\t }", "public StatementParse reconstructTree(ArrayList<StatementParse> expression){\n // an empty expression will not trigger this method\n // first element is always an integer\n StatementParse left_node = expression.get(0);\n\n for (int i = 1; i < expression.size(); i++){\n StatementParse right_node = expression.get(i);\n if (right_node instanceof IntegerParse && ((IntegerParse) right_node).getValue() == 0){\n continue;\n }\n StatementParse top;\n if (right_node.isNegative()){\n top = new StatementParse(\"-\");\n } else {\n top = new StatementParse(\"+\");\n }\n top.getChildren().add(left_node);\n top.getChildren().add(right_node);\n left_node = top;\n }\n return left_node;\n }", "JannotTreeJCBinary(InfixExpression n) \n{\n super(n);\n}", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "private BinaryTree() {\n root = new Node(0);\n }", "public void buildTree() throws RuntimeException, DivideByZero {\r\n // define local variable to count number of times an operator \r\n // is pushed into it's associated stack. This will be use to \r\n // count register values\r\n int i = 0;\r\n\r\n // split postfix expression enterend into the textbox into tokens using \r\n // StringTokenizer. Delimeters are used so that different inputs \r\n // can be parsed without spaces being necessary \r\n StringTokenizer token = new StringTokenizer(inputExpression, \" */+-\", true);\r\n\r\n // while loop to build tree out of the postfix expression\r\n while (token.hasMoreTokens()) {\r\n // get the next token in series\r\n String nextItem = token.nextToken();\r\n\r\n // use selection statements to determine if the next token\r\n // in the String is an operand, operator, or unknown\r\n if (nextItem.matches(\"[0-9]+\")) {\r\n // push operand to associated stack\r\n operandStk.push(nextItem);\r\n \r\n // push operand to AssemblyCode class\r\n assemblyCode.pushStack(nextItem);\r\n\r\n } else if (nextItem.equals(\"*\") || nextItem.equals(\"/\")\r\n || nextItem.equals(\"+\") || nextItem.equals(\"-\")) {\r\n // push current operator to operators stack\r\n operatorStk.push(nextItem);\r\n // call the getNodes() method to perform operation\r\n getNodes(i);\r\n // count each time an operator is pushed so registers can be counted\r\n i++;\r\n } else if (!nextItem.equals(\" \")){ \r\n // set class variable to equal invalid character\r\n invalidToken = nextItem; \r\n // throw exception if illegal operator or operand is parsed\r\n throw new RuntimeException();\r\n }\r\n } // end while loop\r\n }", "public BinaryTree(E item) {\n\t\troot = new TreeNode<E>(item);\n\t}", "@Override\n\tpublic TreeNode buildTree(String[] exp) {\n\t\tStack<TreeNode> stk = new Stack<TreeNode>();\n\t\tTreeNode tmpL, tmpR, tmpRoot;\n\t\tint i;\n\n\t\tfor(String s: exp) {\n\t\t\tif(s.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\ti = Integer.parseInt(s);\n\t\t\t\tstk.push(new TreeNode(EMPTY + i));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\ttmpR = stk.pop();\n\t\t\t\ttmpL = stk.pop();\n\t\t\t\ttmpRoot = new TreeNode(s, tmpL, tmpR);\n\t\t\t\tstk.push(tmpRoot);\n\t\t\t}\n\t\t}\n\n\t\treturn stk.pop();\n\n\t}", "public Expression(Expression exp) {\r\n\t\tconcat(exp);\r\n\t\ttext = new StringBuffer(new String(exp.text));\r\n\t}", "Expression createExpression();", "public TernaryTree(E data) {\n root = new TernaryNode<>(data);\n }", "public BinarySearchTree() {\n\n\t}", "public BinaryTree() {\n count = 0;\n root = null;\n }", "public JdbTree() {\r\n this(new Object [] {});\r\n }", "public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}", "public Expression(Object ob) {\r\n\t\tthis();\r\n\t\taddElement(ob);\r\n\t}", "public BinaryTree() {\n root = null;\n }", "public BinaryTree() {\n root = null;\n }", "public binary_ex(String expression) {\n try {\n fullExpression = expression.trim();\n if (expression.contains(\"*\"))\n splitExpression(expression, \"*\");\n else if (expression.contains(\"/\"))\n splitExpression(expression, \"/\");\n else if (expression.contains(\"+\"))\n splitExpression(expression, \"+\");\n else if (expression.contains(\"-\"))\n splitExpression(expression, \"-\");\n else if (expression.contains(\"%\"))\n splitExpression(expression, \"%\");\n else if (expression.contains(\"\\\\\"))\n splitExpression(expression, \"\\\\\");\n else\n throw new JuliaSyntaxException(\"arith\");\n } catch (JuliaSyntaxException e) {\n\n }\n }", "public ParseExpression(){\n expression = null;\n }", "public TreeNode(){ this(null, null, 0);}", "public BinarySearchTree() {}", "public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}", "public Tree(int x[]){\n\t\tint n = x.length;\n\t\tif(n == 0)\n\t\t\treturn;\n\t\tTreeNode nodes[] = new TreeNode[n];\n\t\tfor(int i=0; i < n; i++)\n\t\t\tnodes[i] = x[i] != -10 ? (new TreeNode(x[i])) : null;\n\t\troot = nodes[0];\n\t\tfor(int i=0; i < n; i++){\n\t\t\tTreeNode curr = nodes[i];\n\t\t\tif(curr == null)\n\t\t\t\tcontinue;\n\t\t\tint lc = 2*i+1;\n\t\t\tint rc = 2*i+2;\n\t\t\tif(lc < n)\n\t\t\t\tcurr.left = nodes[lc];\n\t\t\tif(rc < n)\n\t\t\t\tcurr.right = nodes[rc];\n\t\t}\n\t}", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\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}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "public static Node constructTree() {\n\n Node node2 = new Node(2, null, null);\n Node node8 = new Node(8, null, null);\n Node node12 = new Node(12, null, null);\n Node node17 = new Node(17, null, null);\n\n Node node6 = new Node(6, node2, node8);\n Node node15 = new Node(15, node12, node17);\n\n //Root Node\n Node node10 = new Node(10, node6, node15);\n\n return node10;\n }", "private Program02(String fileName) {\n BinaryTree bt = new BinaryTree();\n Stack expression = new Stack();\n\n try {\n Scanner scanner = new Scanner(new File(fileName));\n\n while (scanner.hasNext()) {\n String curChar = scanner.next();\n expression.push(curChar);\n }\n\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n Node tree = createLevelOrder(expression, bt.getRoot(), 0, expression.length());\n\n // construct a binary tree to store parsed math expression\n bt.setRoot(tree);\n printInfo(bt);\n }", "public BinaryTree() {\r\n\t\troot = null;\r\n\t\tcount = 0;\r\n\t}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "BinaryTree() {\n this.size = 0;\n Scanner in = new Scanner(System.in);\n this.root = buildBinaryTree(null, in, false);\n }", "public BinaryTree()\n {\n //this is the constructor for the BinaryTree object\n data = null;\n left = null;\n right = null;\n }", "private TreeNode(int x) {\n val = x;\n left = null;\n right = null;\n }", "public BinaryTree(){\r\n root = null;\r\n }", "public Expression() {\r\n\t\ttext = new StringBuffer();\r\n\t\txttext = new StringBuffer();\r\n\t}", "public ObjectBinaryTree() {\n root = null;\n }", "public BinarySearchTree()\n\t{\n\t\tsuper();\n\t}", "public BinaryTree()\n {\n this.root = null;\n this.actualNode = null;\n this.altMode = false;\n this.deepestRight = null;\n }", "public LinkedBinaryTree(T element){\n\t\t root = new BinaryTreeNode<T>(element);\n\t }", "public static ExpressionTree makeExpression(TreeNode root,\n Field resultField) {\n return new ExpressionTree(root, resultField);\n }", "public BinaryTree()\n\t{\n\t\troot = null;\n\t}", "public TwoFourTree()\r\n\t{\r\n\t\troot = new TreeNode(); //assign the root to a new tree node\r\n\t}", "BinaryTree()\n\t{\n\t\troot = null;\t\t\t\t\t\t// at starting root is equals to null\n\t}", "public BinaryTreeNode(T _data) {\n\t\t\t// Invoke the 2-parameter constructor with null parent\n\t\t\tthis(_data, null);\n\t\t}", "public TreeNode(Object e) {\n element = e;\n //this.parent = null;\n left = null;\n right = null;\n }", "public static Treenode createBinaryTree() {\n\t\tTreenode rootnode = new Treenode(40);\r\n\t\tTreenode r40 = new Treenode(50);\r\n\t\tTreenode l40 = new Treenode(20);\r\n\t\tTreenode r50 = new Treenode(60);\r\n\t\tTreenode l50 = new Treenode(45);\r\n\t\tTreenode r20 = new Treenode(30);\r\n\t\tTreenode l20 = new Treenode(10);\r\n\t\trootnode.right = r40;\r\n\t\trootnode.left = l40;\r\n\t\tr40.right=r50;\r\n\t\tr40.left = l50;\r\n\t\tl40.right=r20;\r\n\t\tl40.left=l20;\r\n\t\t r40.parent=rootnode; l40.parent= rootnode;\r\n\t\t r50.parent=r40;\r\n\t\tl50.parent=r40 ;\r\n\t\t r20.parent=l40;\r\n\t\t l20.parent=l40 ;\r\n\t\treturn rootnode;\r\n\t\t\r\n\t}", "public BTree(String tVal) {\n T_VAR = parseInt(tVal);\n root = new BTreeNode(T_VAR);\n }", "public static TreeNode buildTree() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\t\n\t\tTreeNode left = new TreeNode(2);\n\t\tleft.left = new TreeNode(4);\n\t\tleft.right = new TreeNode(5);\n\t\tleft.right.right = new TreeNode(8);\n\t\t\n\t\tTreeNode right = new TreeNode(3);\n\t\tright.left = new TreeNode(6);\n\t\tright.right = new TreeNode(7);\n\t\tright.right.left = new TreeNode(9);\n\t\t\n\t\troot.left = left;\n\t\troot.right = right;\n\t\t\n\t\treturn root;\n\t}", "public TreeNode(Object initValue, TreeNode initLeft, TreeNode initRight)\r\n {\r\n value = initValue;\r\n left = initLeft;\r\n right = initRight;\r\n }", "public BTree(String arg) {\n try {\n t = Integer.parseInt(arg);\n if (t < 2)\n throw new IllegalArgumentException(\" number is lower then 1\");\n BTNode.DEGREE = t;\n mRoot = createNode();\n }catch (NumberFormatException nfe){\n throw new NumberFormatException (\"arg \" + \" is not a number\");\n }\n\n }", "public Tree(E value) {\n this.root = new Node<E>(value);\n this.length = 0;\n }", "protected UnaryExpNode(ExpNode expr) {\n this.expr = expr;\n }", "public Expression(String pExpStr) {\n Queue<Token> tokenQueue = new Queue<>();\n setTokenQueue(tokenQueue);\n Tokenizer tokenizer = new Tokenizer(pExpStr);\n Token prevToken = null;\n Token token = tokenizer.nextToken();\n while (token != null) {\n if (token instanceof SubOperator) {\n token = negationCheck(token, prevToken);\n }\n getTokenQueue().enqueue(token);\n prevToken = token;\n token = tokenizer.nextToken();\n }\n }", "public JdbTree(TreeNode root) {\r\n this(root, false);\r\n }", "POperand createPOperand();", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "public TreeNode() {\n }", "public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public TreeNode(Object initValue)\r\n {\r\n this(initValue, null, null);\r\n }", "@GetMapping(\"/tree\")\n public ResponseEntity<?> growSyntaxTree(@RequestParam(\"expression\") String expression) {\n try {\n Tokeniser tokeniser = new Tokeniser(expression);\n Parser parser = new Parser(tokeniser.tokenise());\n ExpressionTree tree = parser.parse();\n\n return new ResponseEntity<>(tree, HttpStatus.OK);\n } catch (SyntaxError | IllegalArgumentException e) {\n return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);\n }\n }", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "Expr createExpr();", "public static TreeNode buildTree01() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t\n\t\treturn root;\n\t}", "public static Node parseExpression(String expression)\n throws OgnlException {\n try {\n OgnlParser parser = new OgnlParser(new StringReader(expression));\n return parser.topLevelExpression();\n } catch (ParseException e) {\n throw new ExpressionSyntaxException(expression, e);\n } catch (TokenMgrError e) {\n throw new ExpressionSyntaxException(expression, e);\n }\n }", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}", "TreeNode(String str) {\n // Constructor. Make a node containing the specified string.\n // Note that left and right pointers are initially null.\n item = str;\n }", "public Node(char value) {\n this.value = value;\n this.left = null;\n this.right = null;\n }", "public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "public BinaryAST(Type type, AST left, AST right) {\n\t\tthis.type = type;\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t}", "public TreeNode(Object value)\r\n\t{\r\n\t\tthis(null, value);\r\n\t}", "public HIRTree(){\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n System.out.println(\"Testing expression creation and evaluation.\\n\");\n\n ExpNode e1 = new Bin0pNode(\"+\", new VariableNode(), new ConstNode(3));\n ExpNode e2 = new Bin0pNode(\"*\", new ConstNode(2), new VariableNode());\n ExpNode e3 = new Bin0pNode(\"-\", e1, e2);\n ExpNode e4 = new Bin0pNode(\"/\", e1, new ConstNode(-3));\n\n System.out.println(\"For x = 3: \");\n System.out.println(\" \" + e1 + \" = \" + e1.value(3));\n System.out.println(\" \" + e2 + \" = \" + e2.value(3));\n System.out.println(\" \" + e3 + \" = \" + e3.value(3));\n System.out.println(\" \" + e4 + \" = \" + e4.value(3));\n\n System.out.println(\"nTesting copying...\");\n System.out.println(\" copy of \" + e1 + \" gives \" + copy(e1));\n System.out.println(\" copy of \" + e2 + \" gives \" + copy(e2));\n System.out.println(\" copy of \" + e3 + \" gives \" + copy(e3));\n System.out.println(\" copy of \" + e4 + \" gives \" + copy(e4));\n\n // make a copy of e3, where e3.left is e1\n ExpNode e3copy = copy(e3);\n // make a mdification to e1\n ((Bin0pNode)e1).left = new ConstNode(17);\n System.out.println(\" modified e3: \" + e3 + \"; copy should be unmodified: \" + e3copy);\n\n System.out.println(\"nChecking test data...\");\n double[][] dt = makeTestData();\n for (int i = 0; i < dt.length; i++) {\n System.out.println(\" x = \" + dt[i][0] + \"; y = \" + dt[i][1]);\n\n }\n }", "public BinaryTreeNode(final E data) {\n this.data = data;\n }", "public Leaf(){}", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "protected AST_Node() {\r\n\t}", "public TreeNode(String text) {\n this.text = text;\n this.leftChild = null;\n this.rightChild = null;\n }", "public Expression(IExpressionPart expressionPart)\r\n\t{\r\n\t\tthis.expressionPart = expressionPart;\r\n\t}", "public BinaryNode(String dataPortion) {\n\t\tthis(dataPortion, null, null);\t\t\t// Call next constructor\n\t}", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public BST() {\n // DO NOT IMPLEMENT THIS CONSTRUCTOR!\n }" ]
[ "0.7007988", "0.6974175", "0.6965503", "0.69646966", "0.6804854", "0.6788323", "0.6739155", "0.66558754", "0.6602663", "0.6480456", "0.64505243", "0.6425224", "0.6400591", "0.6389595", "0.63793486", "0.6344644", "0.6269181", "0.6259553", "0.6253727", "0.62513894", "0.62168807", "0.6202965", "0.62016684", "0.6183292", "0.6163856", "0.61632484", "0.6156136", "0.610111", "0.6090353", "0.6084487", "0.6078365", "0.60669017", "0.6055348", "0.6051899", "0.6051899", "0.6045339", "0.6043967", "0.6023205", "0.6019418", "0.6012872", "0.60120195", "0.6011091", "0.5994894", "0.5956608", "0.5954074", "0.5945414", "0.59381205", "0.5934975", "0.59268785", "0.5917511", "0.5905711", "0.5899048", "0.58983666", "0.587792", "0.5855484", "0.5853618", "0.5853566", "0.5847121", "0.5824941", "0.58190626", "0.5818992", "0.58009315", "0.5791232", "0.5790973", "0.578434", "0.57760715", "0.5767648", "0.5767412", "0.57473284", "0.57382756", "0.573599", "0.5734559", "0.57092273", "0.5705455", "0.56943303", "0.5678005", "0.56779045", "0.56656975", "0.5653961", "0.5649861", "0.5647411", "0.56119215", "0.5603536", "0.56021035", "0.5586394", "0.55827534", "0.5582291", "0.55748487", "0.5566757", "0.5565854", "0.55648017", "0.55632716", "0.5563086", "0.55559343", "0.5553233", "0.5552282", "0.55449474", "0.55443096", "0.5540958", "0.55244803" ]
0.87636703
0
Returns the result of calculation for the given expression.
public int calculate() { traversal(root); if(!calResult.isEmpty()){ int answer = Integer.parseInt(calResult.pop()); return answer; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int expressionEval(String expression){\n\n int result = 0;\n\n\n\n return result;\n }", "@NotNull\n public final Promise<XExpression> calculateEvaluationExpression() {\n return myValueContainer.calculateEvaluationExpression();\n }", "ExpressionCalculPrimary getExpr();", "public String evaluate(String expression);", "public Equation computeEquation(Equation equation) {\n float result;\n List<MathOperator> mathOperators = equation.getMathOperators();\n List<Float> modifiers = equation.getModifierNumbers();\n Float baseNumber = equation.getBaseNumber();\n\n if (mathOperators.size() == 0 && modifiers.size() == 0) {\n result = baseNumber;\n equation.setResult(result);\n equation.setStringRepresentation();\n return equation;\n } else {\n try {\n result = baseNumber;\n for (int i = 0; i < mathOperators.size(); i++) {\n MathOperator o = mathOperators.get(i);\n switch (o) {\n case ADD:\n result = addNumbers(result, modifiers.get(i));\n break;\n case SUBTRACT:\n result = subtract(result, modifiers.get(i));\n break;\n case MULTIPLY:\n result = multiply(result, modifiers.get(i));\n break;\n case DIVIDE:\n try {\n result = divide(result, modifiers.get(i));\n break;\n } catch (ArithmeticException e) {\n System.out.println(Warning.DIV_BY_ZERO_ERROR);\n result = Float.parseFloat(null);\n }\n case POWER:\n result = power(result, modifiers.get(i));\n break;\n }\n }\n\n equation.setStringRepresentation();\n equation.setResult(result);\n return equation;\n } catch (IndexOutOfBoundsException e) {\n System.out.println(Warning.INDEX_OUT_OF_BOUND);\n }\n }\n return null;\n }", "public float evaluate() \n {\n return evaluate(expr, expr.length()-1);\n }", "public static double evaluate(String expression) {\n\n\t\tStack<String> operators = new Stack<String>();\n\t\tStack<Double> operands = new Stack<Double>();\n\n\t\tfor (String token : expression.split(\" \")) {\n\t\t\tswitch (token) {\n\t\t\t\tcase \"(\":\n\t\t\t\t\tcontinue;\n\t\t\t\tcase \"+\":\n\t\t\t\tcase \"-\":\n\t\t\t\tcase \"*\":\n\t\t\t\tcase \"/\":\n\t\t\t\tcase \"sqrt\":\n\t\t\t\t\toperators.push(token); break;\n\t\t\t\tcase \")\": // Pop operand, apply operator and push result\n\t\t\t\t\tString operator = operators.pop();\n\t\t\t\t\tdouble value = operands.pop();\n\n\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\tcase \"+\": value = operands.pop() + value; break;\n\t\t\t\t\t\tcase \"-\": value = operands.pop() - value; break;\n\t\t\t\t\t\tcase \"*\": value = operands.pop() * value; break;\n\t\t\t\t\t\tcase \"/\": value = operands.pop() / value; break;\n\t\t\t\t\t\tcase \"sqrt\": value = Math.sqrt(value); break;\n\t\t\t\t\t}\n\t\t\t\t\toperands.push(value);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\toperands.push(Double.parseDouble(token));\n\t\t\t}\n\t\t}\n\t\treturn operands.pop();\n\t}", "public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}", "private Object eval(Term expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"*\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res * (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"/\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res / (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"%\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res % (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "private static int calculate(String expression) {\n if (expression == null || expression.isEmpty()) {\n return 0;\n }\n // 3 - Division from 0\n // Division from zero should not be possible. If a string \"5/0\" is passed, result should be -1\n if (expression.contains(\"/0\")) {\n return -1;\n }\n // 4 - Floating point numbers\n // As mentioned, floating point numbers should not be supported. If string contains not a whole number and not the allowed operations (+-x%) then it should also return -1.\n if (expression.contains(\".\") || !hasOnlyAllowedChars(expression, \"0123456789+-x/!\")) {\n return -1;\n }\n // calculate\n // find partial formulas: 5x3+2x7+1-5+4! -> [\"5x3\", \"2x7\", \"1\", \"5\", \"4!\"]\n String[] operands = findOperands(expression, \"+-\");\n // find operators: 5x3+2x7+1-5+4! -> [\"+\", \"+\", \"-\", \"+\"]\n String[] plusMinus = findOperators(expression, \"+-\");\n // calculates division, multiplication, factorial: 5x3, 2x7, 1, 5, 4!\n int result = findNumberDivMultiFactorial(operands[0]);\n for (int i = 1; i < operands.length; i++) {\n switch (plusMinus[i - 1]) {\n case \"+\":\n result = result + findNumberDivMultiFactorial(operands[i]);\n break;\n case \"-\":\n result = result - findNumberDivMultiFactorial(operands[i]);\n break;\n }\n }\n\n return result;\n }", "public int evaluate(){\r\n\t\tString value = expressionTree.getValue();\r\n\t\tint result = 0;\r\n\t\tif (isNumber(value)){\r\n\t\t\treturn stringToNumber(value);\r\n\t\t}\r\n\t\tif (value.equals(\"+\")){\r\n\t\t\tresult = 0;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult += (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"*\")){\r\n\t\t\tresult = 1;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult *= (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"-\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() -\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\tif (value.equals(\"/\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() /\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}", "private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }", "@Test\n void scEvaluate() {\n StandardCalc sc = new StandardCalc();\n String expression = (\"( 5 * ( 6 + 7 ) ) - 2\");\n float result = 0f;\n try {\n result = sc.evaluate(expression);\n } catch (InvalidExpressionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n assertEquals(result, 63);\n }", "@GetMapping(\"/evaluate\")\n public ResponseEntity<?> evaluateSimpleExpression(@RequestParam(\"expression\") String expression) {\n try {\n double result = Interpreter.evaluate(expression);\n return new ResponseEntity<>(result,HttpStatus.OK);\n } catch (SyntaxError | IllegalArgumentException e) {\n return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);\n }\n }", "public Object eval (Object expression);", "private static double expressionValue() throws ParseError {\n\n TextIO.skipBlanks(); // Skip past any blanks.\n\n if ( Character.isDigit( TextIO.peek() ) )\n return TextIO.getDouble(); // The expression is made up of only a number.\n\n else if ( TextIO.peek() == '(' ) {\n TextIO.getAnyChar(); // Read the ')'.\n\n double leftOperand = expressionValue(); // Get the value of the left operand of this expression.\n char operator = getOperator(); // Get the operator.\n double rightOperand = expressionValue(); // Get the value of the right operand of this expression.\n\n // We expect a ')' at the end of this expression. If not, throw an error.\n TextIO.skipBlanks();\n\n if ( TextIO.peek() != ')' )\n throw new ParseError( \"Missing right hand parenthesis.\" );\n\n TextIO.getAnyChar(); // Read the ')'.\n\n // Calculate the value of the expression.\n switch ( operator ) {\n case '+': return leftOperand + rightOperand;\n case '-': return leftOperand - rightOperand;\n case '*': return leftOperand * rightOperand;\n case '/': return leftOperand / rightOperand;\n default: return Double.NaN;\n }\n }\n else\n throw new ParseError( \"Unknown character found: \" + TextIO.getAnyChar() );\n\n }", "public Object eval(String expression) throws Exception;", "public int evaluate(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\" \"))\n\t\t\t\tcontinue;\n\t\t\telse {\n\t\t\t\tint counter = 0;\n\t\t\t\twhile (counter + i < expression.length()\n\t\t\t\t\t\t&& !expression.substring(i + counter, i + counter + 1).equals(\" \")) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter, i + 1 + counter));\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\ti = i + counter;\n\t\t\t}\n\t\t\tx = longIntegers.toString();\n\t\t\tif (isNum(x)) {\n\t\t\t\toPSt.push(Float.parseFloat(x));\n\t\t\t} else if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tFloat num1 = (Float) oPSt.pop(), num2 = (Float) oPSt.pop();\n\t\t\t\tif (x.equals(\"+\"))\n\t\t\t\t\toPSt.push(num1 + num2);\n\t\t\t\telse if (x.equals(\"*\"))\n\t\t\t\t\toPSt.push(num1 * num2);\n\t\t\t\telse if (x.equals(\"/\"))\n\t\t\t\t\toPSt.push(num2 / num1);\n\t\t\t\telse\n\t\t\t\t\toPSt.push(num2 - num1);\n\t\t\t} else\n\t\t\t\tthrow new RuntimeException(\"Invalid Input\");\n\n\t\t}\n\t\tif (oPSt.size() == 0)\n\t\t\treturn 0;\n\t\treturn (int)Math.round((Float) oPSt.pop());\n\t}", "public static int calculator(String expression) {\n int res = 0;\n char[] arr = expression.toCharArray();\n Integer operand = null;\n char operator = '+';\n int[] index = new int[1];\n for (int i = 0; i < arr.length; i++) {\n index[0] = i;\n if (!Character.isDigit(arr[i])) {\n operator = arr[i];\n } else {\n operand = getOperand(arr, index);\n i = index[0] - 1;\n if (operator == '+') {\n res = res + operand;\n } else if (operator == '-') {\n res = res - operand;\n }\n }\n }\n return res;\n }", "private static int evaluateExpression(String expression, int number1, int number2){\n if(expression.equals(\"plus\")){\n \treturn (number1 + number2);\n }else if(expression.equals(\"minus\")){\n \treturn (number1 - number2);\n }else if(expression.equals(\"times\")){\n \treturn(number1 * number2);\n }else if(expression.equals(\"divide\")){\n \treturn(number1 / number2);\n }\n return 0;\n \n }", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "Expression getValue();", "Expression getValue();", "public String makeAnswer(String expression, double result)\n throws ArithmeticException {\n\n if (Double.isInfinite(result))\n throw new ArithmeticException(\"Division by zero.\");\n\n if (Double.isNaN(result))\n throw new ArithmeticException(\"Square root should has positive number.\");\n\n StringBuilder text = new StringBuilder();\n text.append(expression);\n text.append(\"=\");\n text.append(ConvertionUtil.parseDouble(result));\n return text.toString();\n }", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "float getEvaluationResult();", "@Override\n public double evaluate() throws Exception {\n return getExpression1().evaluate() - getExpression2().evaluate();\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "protected Double calculationEngine(String strExpression, List<Character> split) throws Exception {\r\n\t\tPattern prio0 = Pattern.compile(\"[\\\\^]\");\r\n\t\tPattern prio1 = Pattern.compile(\"[\\\\*\\\\/]\");\t\t\r\n\t\t\r\n\t\tDouble result = 0.0;\r\n\t\tList<String> listExpressions = splitExpressions(strExpression, split);\r\n\t\t\r\n\t\tString lastOperator = \"\";\r\n\t\tDouble valueA = 0.0;\r\n\t\tfor(String expression: listExpressions) {\r\n\t\t\t\r\n\t\t\tDouble expressonValue = 0.0;\r\n\t\t\tString [] parseValue = expression.split(\"\\\\|\");\t\t\t\r\n\r\n\t\t\tStringBuilder value = new StringBuilder(parseValue[0]);\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(value.toString().contains(\"sqrt(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"sqrt(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin+4);\r\n\t\t\t\tint end = begin + content.length()+6;\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\t\t\t\t\r\n\t\t\t\texpressonValue = Math.sqrt(expressonValue);\t\t\t\t\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} else if(value.toString().contains(\"(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin);\r\n\t\t\t\tint end = begin + content.length()+2;\t\t\t\t\t\t\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} \r\n\t\t\tif(prio1.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), microSplit);\r\n\t\t\t} else if(prio0.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), nanoSplit);\r\n\t\t\t} else {\r\n\t\t\t\texpressonValue = Double.valueOf(value.toString().replaceAll(\",\", \".\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lastOperator != null && !lastOperator.isEmpty()) {\r\n\t\t\t\tresult = calculate(valueA, expressonValue, lastOperator.charAt(0));\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tresult = expressonValue;\r\n\t\t\t}\r\n\t\t\tvalueA = result;\r\n\t\t\tif(parseValue.length > 1) {\r\n\t\t\t\tlastOperator = expression.split(\"\\\\|\")[1];\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public double evaluate(String expression) throws InvalidExpressionException {\n assertProperExpression(expression);\n \n // creating postfix\n String postfix = \"\";\n while (expression.length() > 0) {\n char item = expression.charAt(0);\n expression = expression.substring(1);\n // disregard spaces by\n if (item == ' ') continue;\n // add digits straight to postfix expression\n else if (isDigit(item)) postfix += item;\n // always push '(' on stack no matter what\n else if (item == '(') postfixStack.push('(');\n // dump stack until you hit end parenthesis which is voided\n else if (item == ')') {\n while (postfixStack.peek() != '(') {\n postfix += postfixStack.pop();\n }\n postfixStack.pop();\n continue;\n }\n // item must be operator, so push onto stack after removing higher precedents below it\n else if (isOperator(item)) {\n while (!postfixStack.isEmpty() &&\n isOperator(item) &&\n precedenceOf(postfixStack.peek()) >= precedenceOf(item)) postfix += postfixStack.pop();\n postfixStack.push(item);\n }\n }\n while (!postfixStack.isEmpty()) postfix += postfixStack.pop();\n\n // solving the postfix expression \n while (postfix.length() > 0) {\n char item = postfix.charAt(0);\n postfix = postfix.substring(1);\n\n if (isDigit(item)) solutionStack.push((double) (item - '0'));\n if (isOperator(item)) {\n double y = solutionStack.pop();\n double x = solutionStack.pop();\n if (item == '^') solutionStack.push(Math.pow(x, y));\n if (item == '*') solutionStack.push(x * y);\n if (item == '/') solutionStack.push(x / y);\n if (item == '+') solutionStack.push(x + y);\n if (item == '-') solutionStack.push(x - y);\n }\n }\n\n Double solution = solutionStack.pop();\n return solution;\n }", "public double evaluate() throws Exception {\r\n // this expression compare from variable\r\n throw new Exception(\"this expression contains a variable\");\r\n }", "public String calculate() {\r\n\t\t\r\n\t\tif(\"\".equals(firstNumber.toString()) || \"\".equals(secondNumber.toString())) {\r\n\t\t\tclear();\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t\t\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\tif (getOperand().length() == 0) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"0\";\r\n\t\t\t}\r\n\t\t\tresult = getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (\"+\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t+ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"-\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t- Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"*\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t* Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"/\".equals(operator)) {\r\n\t\t\tif (\"0\".equals(secondNumber.toString())) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"Division by zero\";\r\n\t\t\t}\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t/ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tclear();\r\n\t\treturn filter(result);\r\n\t}", "private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }", "XExpression getExpression();", "public static double equation() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Please enter a value for x: \");\n double x = userInput.nextDouble();\n double output = (x * Math.pow(Math.exp(1), -x)) + Math.sqrt(1 - Math.pow(Math.exp(1), -x));\n System.out.print(\"The answer to the equation xe^-x + sqrt(1-(e^-x)) \");\n\tSystem.out.println(\" with that x is: \");\n return output;\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }", "public T evaluate(String expr) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>();\n return visitor.visit(expression);\n }", "public MathObject evaluate(Function input);", "public abstract double calcular();", "public Double getResult();", "Expr expr();", "@Override\r\n\tpublic int evaluate(String expression) {\r\n\t\tString e =expression;\r\n\t\tfloat result=0; //the returned result \r\n\t\tif(e.length()==2) {\r\n\t\t\te = removespaces(e);\r\n\t\t\tint z =Integer.parseInt(e);\r\n\t\t\treturn z;\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length();i++){\r\n\t\t\tif(Character.isLetter(e.charAt(i))){\r\n\t\t\t\tthrow new RuntimeException(\"You Can't evaluate letters\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length()-1;i++) {\r\n\t\t\twhile(e.charAt(i) != '+' &&e.charAt(i) != '/' &&e.charAt(i) != '-' &&e.charAt(i) != '*' ) {\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile(e.charAt(i) != ' ' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString k = e.substring(i-j, i);\r\n\t\t\t\t\tk = removespaces(k);\r\n\t\t\t\t\tfloat z = Integer.parseInt(k);\r\n\t\t\t\t\topr.push(z);}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tif(e.charAt(i)== '+') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result + x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '*') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result * x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '-') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result - x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '/') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result / x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn (int)result;\r\n\r\n\t}", "public Object getExpression();", "public Double evaluate() {\n Stack<Operator> operatorStack = new Stack<>();\n Stack<Operand> operandStack = new Stack<>();\n while (!getTokenQueue().isEmpty()) {\n Token token = getTokenQueue().dequeue();\n if (token instanceof Operand) {\n operandStack.push(((Operand) token));\n } else if (token instanceof LeftParen) {\n operatorStack.push(((LeftParen) token));\n } else if (token instanceof RightParen) {\n while (!(operatorStack.peek() instanceof LeftParen)) {\n topEval(operatorStack, operandStack);\n }\n operatorStack.pop();\n } else {\n Operator operator = (((Operator) token));\n while (keepEvaluating(operatorStack, operator)) {\n topEval(operatorStack, operandStack);\n }\n operatorStack.push(operator);\n }\n }\n while (!operatorStack.isEmpty()) {\n topEval(operatorStack, operandStack);\n }\n return operandStack.pop().getValue();\n }", "LogicExpression getExpr();", "Expression getExp();", "double value(double x) {\n double a = left.value(x);\n\n // value of the right operand expression tree\n double b = right.value(x);\n\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n default:\n return a / b;\n }\n }", "public String solveExpression(String expression) {\n Calculator calculator = new Calculator();\n ExpressionRootFinder rootFinder = new ExpressionRootFinder();\n if (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n while (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n String rootExpression = rootFinder.findRoot(expression);\n expression = expression.replace(\"(\" + rootExpression + \")\",\n calculator.calculate(rootExpression) + \"\");\n }\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A complex expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n } else {\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A simple expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n }\n }", "public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }", "public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Result evaluate();", "Expr getExpr();", "public double evaluate(double x);", "private BigDecimal evaluateResult() throws MathematicalError {\n if (!popOutOperationStack()) {\n throw new MathematicalError(\"Mismatched parentheses in the expression\");\n }\n for (ListIterator<String> iterator = outputQueue.listIterator(); iterator.hasNext(); ) {\n String element = iterator.next();\n if (!element.startsWith(valueBaseName)) {\n iterator.remove();\n Operation<BigDecimal, MathematicalError> operation = operationMap.get(element);\n int argumentsCount = operation.getArgumentsCount();\n BigDecimal[] arguments = new BigDecimal[argumentsCount];\n for (int i = 0; i < argumentsCount; ++i) {\n arguments[i] = valueMap.get(iterator.previous());\n iterator.remove();\n }\n String valueName = valueBaseName + valueCount++;\n BigDecimal tempResult = operation.getResult(arguments);\n if (tempResult == null) {\n return null;\n }\n valueMap.put(valueName, tempResult);\n iterator.add(valueName);\n }\n }\n return valueMap.get(outputQueue.get(0));\n }", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "DExpression getExpression();", "public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }", "public static Expression reduce(Expression expression) { throw Extensions.todo(); }", "String getExpression();", "String getExpression();", "private Object evaluateExpression(String expression, String type, boolean isReturnMultiplicityOne)\n {\n String functionName = \"test_\" + UUID.randomUUID().toString().replace('-', '_');\n String functionSignature = functionName + \"():\" + ((type == null) ? \"Any\" : type) + (isReturnMultiplicityOne ? \"[1]\" : \"[*]\");\n String testFunctionString = \"function \" + functionSignature + \"\\n\" +\n \"{\\n\" +\n ArrayIterate.makeString(expression.split(\"\\\\R\"), \" \", \"\\n \", \"\\n\") +\n \"}\\n\";\n String sourceName = functionName + RepositoryCodeStorage.PURE_FILE_EXTENSION;\n this.sourcesToDelete.add(sourceName);\n compileTestSource(sourceName, testFunctionString);\n CoreInstance result = execute(functionSignature);\n return isReturnMultiplicityOne ?\n Instance.getValueForMetaPropertyToOneResolved(result, M3Properties.values, processorSupport) :\n Instance.getValueForMetaPropertyToManyResolved(result, M3Properties.values, processorSupport);\n }", "@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public int eval() {\n\t\t\treturn eval(expression.root);\n\t\t}", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "public double computeExpression(Expression exp, DataRow data) {\n\n //TODO all cases\n\n //------ net.sf.jsqlparser.expression.operators.* ---------\n if (exp instanceof Parenthesis) {\n return computeExpression(((Parenthesis) exp).getExpression(), data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.conditional.* ---------\n if (exp instanceof AndExpression) {\n return computeAnd((AndExpression) exp, data);\n }\n if (exp instanceof OrExpression) {\n return computeOr((OrExpression) exp, data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.relational.* ---------\n if(exp instanceof Between){\n return computeBetween((Between)exp, data);\n }\n if (exp instanceof ComparisonOperator) {\n // this deals with 6 subclasses:\n return computeComparisonOperator((ComparisonOperator) exp, data);\n }\n if(exp instanceof ExistsExpression){\n //TODO\n }\n if(exp instanceof ExpressionList){\n //TODO\n }\n if (exp instanceof InExpression) {\n return computeInExpression((InExpression) exp, data);\n }\n if (exp instanceof IsNullExpression) {\n return computeIsNull((IsNullExpression) exp, data);\n }\n if(exp instanceof JsonOperator){\n //TODO\n }\n if(exp instanceof LikeExpression){\n //TODO\n }\n if(exp instanceof Matches){\n //TODO\n }\n if(exp instanceof MultiExpressionList){\n //TODO\n }\n if(exp instanceof NamedExpressionList){\n //TODO\n }\n if(exp instanceof RegExpMatchOperator){\n //TODO\n }\n\n return cannotHandle(exp);\n }", "private double expr(boolean get){\n\t\t// compute the left argument which has to be a primary value or an expression with a higher priority than sums\n\t\tdouble left = term(get);\n\t\t// add all addends until the end of the sum is reached\n\t\tfor(;;){ \n\t\t\tswitch(curr_tok){\n\t\t\t\tcase PLUS:{\n\t\t\t\t\tleft += term(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase MINUS:{\n\t\t\t\t\tleft -= term(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:{\n\t\t\t\t\treturn left;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}", "public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}", "private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }", "@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}", "@Override\n\tpublic void calc() {\n\t\tcalculated = true;\n\t\tanswer=operand1-operand2;\n\t}", "@Override\n public Float compute() {\n\treturn calc();\n }", "public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}", "private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}", "public abstract double evaluate(double value);", "public double evaluate() throws Exception {\n if (super.getExpression().evaluate() % 180 == 90) {\n return 0;\n }\n if (super.getExpression().evaluate() % 360 == 180) {\n return -1;\n }\n if (super.getExpression().evaluate() % 360 == 0) {\n return 1;\n }\n return Math.cos(Math.toRadians(super.getExpression().evaluate()));\n }", "@Override\n public double evaluate() {\n setState(State.START);\n while (true) {\n switch(getState()) {\n case START:\n start();\n break;\n case NUMBER:\n number();\n break;\n case OPERATOR:\n operator();\n break;\n case LEFT_PAREN:\n leftParen();\n break;\n case RIGHT_PAREN:\n rightParen();\n break;\n case END:\n end();\n return (Double)getStack().pop();\n default:\n throw new Error(\"Something is wrong in ParenthesisCalculator.evaluate\");\n }\n }\n }", "@Override\r\n \tpublic int evaluate(final String expression) {\n \t\tif (expression.isEmpty()) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tObject v, f;\r\n \t\tfloat k;\r\n \t\tfor (int i = 0; i < expression.length(); i++) {\r\n \t\t\t\tif (expression.charAt(i) == '/') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t/ (Float.valueOf(\r\n \t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\ts.push(k);\r\n \t\t\t\t} else if (expression.charAt(i) == '*') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t* (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\t\texpression.charAt(i) == '+') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t\t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t+ (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\texpression.charAt(i) == '-') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t \t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t- (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else {\r\n \t\t\t\tif (expression.charAt(i) != ' ') {\r\n \t\t\t\t\tint r = 0;\r\n \t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\twhile (\r\n \t\t\t\t\texpression.charAt(i + 1) != ' ') {\r\n \t\t\t\t\t\ti++;\r\n \t\t\t\t\t\tr *= magic10;\r\n \t\t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\t}\r\n \t\t\t\ts.push(r);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n if (s.size() == 0) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tfloat h = Float.parseFloat((String.valueOf(s.pop())));\r\n \t\tif (!s.isEmpty()) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \t\treturn (int) h;\r\n \t}", "@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "@Override\r\n\tpublic String getResult() {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tresult = c.calculate(o.getFirst(), o.getSecond(), o.getOperator());\r\n\t\t\t// System.out.println(\"00\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\r\n\t\tres = String.valueOf(result);\r\n\r\n\t\treturn res;\r\n\t}", "public void calculate();", "public double evaluate(Context context);", "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }", "public static int evaluate(String expression) {\n\n\t\tchar[] tokens = expression.toCharArray();\n\t\t// Stack for numbers: 'values'\n\t\tStack<Integer> values = new Stack<Integer>();\n\t\t// Stack for Operators: 'operators'\n\t\tStack<Character> operators = new Stack<Character>();\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\t\t\t// Current token is a whitespace, skip it\n\t\t\tif (tokens[i] == ' ')\n\t\t\t\tcontinue;\n\t\t\t// Current token is a number, push it to stack for numbers\n\t\t\tif (tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\t\t// There may be more than one digits in number\n\t\t\t\twhile (i < tokens.length && tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\t\tstringBuffer.append(tokens[i++]);\n\t\t\t\t}\n\t\t\t\tvalues.push(Integer.parseInt(stringBuffer.toString()));\n\t\t\t i--;\n\t\t\t} else if (tokens[i] == '(') {\n\t\t\t // Current token is an opening brace, push it to 'operators'\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t} else if (tokens[i] == ')') {\n\t\t\t // Closing brace encountered, solve entire brace\n\t\t\t\twhile (operators.peek() != '(') {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t\t }\n\t\t\t\toperators.pop();\n\t\t\t} else if (tokens[i] == '+' || tokens[i] == '-' ||tokens[i] == '*' || tokens[i] == '/') {\n\t\t\t // Current token is an operator.\n\t\t\t\twhile (!operators.empty() && hasPrecedence(tokens[i], operators.peek())) {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(),values.pop()));\n\t\t\t // System.out.println(values.peek());\n\t\t\t }\n\t\t\t\t// Push current token to 'operators'.\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t}\n\t\t}\n\t\t// Entire expression has been parsed at this point, apply remaining operators to remaining values\n\t\twhile (!operators.empty()) {\n\t\t\tvalues.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t}\n\t\t// Top of 'values' contains result, return it\n\t\treturn values.pop();\n\t}", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();", "@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }", "public Node getExpression() {\r\n return expression;\r\n }", "public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}" ]
[ "0.7102285", "0.7009588", "0.6991423", "0.6964201", "0.69393873", "0.69293165", "0.6842572", "0.6834487", "0.6817366", "0.67938215", "0.67914987", "0.678802", "0.677012", "0.67674935", "0.6746986", "0.6746519", "0.6699768", "0.66983986", "0.6660412", "0.658483", "0.65789616", "0.6576377", "0.657222", "0.65719163", "0.65573215", "0.6551017", "0.65377414", "0.65377414", "0.6530098", "0.6518619", "0.6518619", "0.6518619", "0.6518619", "0.65171254", "0.6514947", "0.64920485", "0.6473222", "0.64173937", "0.64087665", "0.6405551", "0.64003474", "0.6386346", "0.6367209", "0.6366017", "0.6366017", "0.6360054", "0.6358049", "0.6312587", "0.63098234", "0.6294915", "0.62890273", "0.62827384", "0.627876", "0.62265295", "0.6219247", "0.6203863", "0.6183666", "0.6165844", "0.6163207", "0.61403805", "0.61362773", "0.61318594", "0.6130603", "0.6120663", "0.6106948", "0.6104569", "0.6094193", "0.6064035", "0.6045992", "0.6045992", "0.6041094", "0.59940094", "0.5992801", "0.59910905", "0.5947148", "0.5941888", "0.5936431", "0.59313273", "0.59106195", "0.5908303", "0.5897987", "0.58894724", "0.58859766", "0.5879728", "0.58758175", "0.5871629", "0.58710927", "0.5868943", "0.5866577", "0.58655614", "0.58651596", "0.5862914", "0.58539146", "0.5848113", "0.5834871", "0.5828971", "0.5803882", "0.5796672", "0.57959133", "0.5795623" ]
0.5800975
97
Returns the result of postorder traversal of this tree.
public String postorder() { result = ""; traversal(root); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public void postorder()\n {\n postorder(root);\n }", "public void postorder()\n {\n postorder(root);\n }", "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public void postorder() {\n\t\tpostorder(root);\n\t}", "public void postOrder(){\n postOrder(root);\n System.out.println();\n }", "public Iterator<T> postorderIterator() { return new PostorderIterator(root); }", "public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\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 }", "void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}", "void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}", "public void visitPostorder(Visitor<T> visitor) {\n if (left != null) left.visitPostorder(visitor);\n if (right != null) right.visitPostorder(visitor);\n visitor.visit(root.value);\n }", "public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}", "public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }", "public void postOrderTraversal(Node<T> aRoot, List<T> postOrder)\n\t{\n\t\tif (aRoot != null)\n\t\t{\n\t\t\tpostOrderTraversal(aRoot.left, postOrder);\n\t\t\tpostOrderTraversal(aRoot.right, postOrder);\n\t\t\tpostOrder.add(aRoot.X);\n\t\t}\n\t}", "protected void postorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.element + \" \");\n }", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "protected void postorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tpostorder(root.left);\r\n\t\tpostorder(root.right);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t}", "public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }", "public void visitPostorder(Visitor<T> visitor) { if (root != null) root.visitPostorder(visitor); }", "private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }", "static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }", "public void postOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tpostOrderTraversal(root.getLeftChild());\n\t\t\tpostOrderTraversal(root.getRightChild());\n\t\t\tSystem.out.println(root);\n\t\t}\n\t}", "private List<T> postOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = postOrderHelper(current.getLeft(), result);\n\t\t\tresult = postOrderHelper(current.getRight(), result);\n\t\t\tresult.add(current.getData());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }", "private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}", "public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}", "public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }", "public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }", "public void postOrder(MyBinNode<Type> r){\n if(r != null){\n this.postOrder(r.right);\n this.postOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n }\n }", "public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}", "public void postOrder(Node root) {\n if (root != null) {\n postOrder(root.getLeftChild());\n postOrder(root.getRightChild());\n System.out.print(root.getData() + \" \");\n }\n }", "public static void postOrder(Node root) {\n if (root == null)\n return;\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }", "public void postOrder(Node root) {\n if(root!=null) {\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }\n }", "public void postOrder() {\n postOrder(root);\n }", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "public void postOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tpostOrder(localRoot.leftChild);\r\n\t\t\tpostOrder(localRoot.rightChild);\r\n\t\t\tSystem.out.print(localRoot.data+ \" \");\r\n\t\t}\r\n\t}", "private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }", "public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }", "private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }", "private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }", "public List<Integer> postorderTraversal(TreeNode root) {\n LinkedList<Integer> res = new LinkedList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n while (root != null || !stack.empty()) {\n if (root != null) {\n res.addFirst(root.val);\n stack.push(root);\n root = root.right;\n }\n else {\n root = stack.pop().left;\n }\n }\n return res;\n }", "public void printPostorder() {\n System.out.print(\"postorder:\");\n printPostorder(overallRoot);\n System.out.println();\n }", "public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }", "public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tNode root = new Node(30);\n\t\troot.right = new Node(40);\n\t\troot.left = new Node(20);\n\t\troot.left.right=new Node(25);\n\t\troot.left.left = new Node(10);\n\t\troot.right.left = new Node(35);\n\t\troot.right.right = new Node(45);\n\t\t\n\t\tpostOrderTraversal(root);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tpostOrderRecursion(root);\n\t}", "public void postOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n postOrderTraverseTree(focusNode.leftChild);\n postOrderTraverseTree(focusNode.rightChild);\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n }\n }", "private void postorderRightOnly(Node root) {\r\n if (root.right != null)\r\n postorderRightOnly(root.right);\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n }", "public List<Integer> postorderTraversal1(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n TreeNode current = root;\n\n while (current != null || !stack.isEmpty()) {\n\n // visit until the leaf\n while (current != null) {\n stack.push(current);\n\n // visit left right, then right, as in post-order\n if (current.left != null) {\n current = current.left;\n } else {\n current = current.right;\n // check in the end is to sure right is always visited\n }\n }\n\n // node as parent, its left and right child are both null\n TreeNode node = stack.pop();\n traversal.add(node.val); // node is added after both its children are visited\n\n // visit node's right sibling if it exists\n // stack.peek()\n // / \\\n // node to be visited\n if (!stack.isEmpty() && stack.peek().left == node) {\n current = stack.peek().right;\n }\n }\n\n return traversal;\n }", "public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}", "private static boolean postOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the right child, then finally the current node\n else{\n postOrderTraversal(current.getLeftChild());\n postOrderTraversal(current.getRightChild());\n postorder.add(current);\n }\n return true;\n }", "void printPostorder() { \n\t\tprintPostorder(root);\n\t}", "private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }", "private static <N> void postOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpostOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}else{\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}\r\n\t}", "private String postorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//get left\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpostorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get right\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpostorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get item\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}", "public static ArrayList<String> postOrder(Node treeRoot) {\r\n\t\tArrayList<String> traversal = new ArrayList<String>(0);\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn new ArrayList<String>(0);\r\n\t\t}\r\n\t\t\r\n\t\ttraversal.addAll(postOrder(treeRoot.left));\r\n\t\ttraversal.addAll(postOrder(treeRoot.right));\r\n\t\ttraversal.add(treeRoot.root);\r\n\t\t\r\n\t\treturn traversal;\r\n\t}", "public void PostOrder() {\n\t\tPostOrder(root);\n\t}", "private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}", "@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}", "public ArrayList<Integer> postorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n while (!stack.empty()) {\n TreeNode current = stack.pop();\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n } else {\n stack.pop();\n list.add(current.val);\n }\n }\n return list;\n }", "public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }", "public List<Integer> postorderTraversalRecursive(TreeNode root) {\n if (root == null) {\n return rst;\n }\n postorderTraversalRecursive(root.left);\n postorderTraversalRecursive(root.right);\n rst.add(root.val);\n return rst;\n }", "private void postOrdertraverse(Node root){\n for(var child : root.getChildren())\n postOrdertraverse(child); //recursively travels other childrens in current child\n\n //finally visit root\n System.out.println(root.value);\n\n }", "public List<T> postOrder(Node root, List<T> nodeValue) {\n if(root == null) {\n return nodeValue;\n } else {\n postOrder(root.getLeftChildNode(), nodeValue);\n postOrder(root.getRightChildNode(), nodeValue);\n nodeValue.add((T)root.getData());\n }\n return nodeValue;\n }", "public void printPostOrder(Node currNode){\n if (currNode != null){\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n System.out.print(currNode.val + \", \");\n }\n }", "public List<Integer> postorderTraversal(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n\n visit(root, traversal);\n\n return traversal;\n }", "private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}", "public void postOrderTraverseTree(Node focusNode) {\n\n\t\tif (focusNode != null) {\n\n\t\t\tpreorderTraverseTree(focusNode.left);\n\t\t\tpreorderTraverseTree(focusNode.right);\n\n\t\t\tSystem.out.print(focusNode.data + \" \");\n\n\t\t}\n\n\t}", "void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostorder(node.right);\n\t\t\t\t\n\t\t// now deal with the node\n\t\tSystem.out.print(node.data + \" \");\n\t}", "private void treePostOrderTraversal(Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "private <E> void postOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tpostOrder(root.left,action);\n\t\t\n\t\tpostOrder(root.right,action);\n\t\t//System.out.println(root.value,action);\n\t\taction.execute(root.value);\n\t\t\n\t}", "public void postOrderPrint(BinaryTreeNode<T> root) {\n if (root != null) {\n postOrderPrint(root.left);\n postOrderPrint(root.right);\n System.out.println(root.value);\n }\n }", "public void postOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\t\t\n\t\tthis.left.postOrderDepthFirstTraversal(action);\n\t\tthis.right.postOrderDepthFirstTraversal(action);\n\t\taction.visit(this.getElement());\t\t\t\n\t}", "private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }", "Digraph reverse() {\n return null;\n }", "public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }", "public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}", "public static void printPostOrder(Node treeRoot) {\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tprintPostOrder(treeRoot.left);\r\n\t\tprintPostOrder(treeRoot.right);\r\n\t\tSystem.out.print(treeRoot.root + \" \");\r\n\t}", "private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}", "static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {\n List<T> result = new ArrayList<>();\n Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();\n BinaryTreeNode<T> previous = tree;\n\n stack.push(tree);\n\n while (!stack.isEmpty()) {\n BinaryTreeNode<T> node = stack.peek();\n\n if ((node.left == null) && (node.right == null)) { // leaf\n result.add(stack.pop().data);\n } else {\n if ((node.right != null) && (previous == node.right)) { // returning from right child\n result.add(stack.pop().data);\n } else if ((node.right == null) && (previous == node.left)) { // returning from left when right is null\n result.add(stack.pop().data);\n } else {\n if (node.right != null) stack.push(node.right);\n if (node.left != null) stack.push(node.left);\n }\n }\n\n previous = node;\n }\n\n return result;\n }", "public void printTreePostOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreePostOrder(node.left);\n printTreePostOrder(node.right);\n\n System.out.print(node.item + \" \");\n }", "List<Integer> traversePostOrder(List<Integer> oList) \n\t{\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePostOrder(oList);\n\t\t}\n\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePostOrder(oList);\n\t\t}\n\t\t\n\t\toList.add(this.key);\n\t\t\n\t\treturn oList;\n\t}", "public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length == 0){\n return null;\n }\n TreeNode result = getRoot(inorder,postorder,0,inorder.length - 1,inorder.length-1);\n return result;\n }", "private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) {\n if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) {\n return null;\n }\n\n TreeNode root = new TreeNode(postorder[postIdx[0]--]);\n\n root.right = helper(inorder, inIdx, postorder, postIdx, root);\n\n inIdx[0]--;\n\n root.left = helper(inorder, inIdx, postorder, postIdx, finish);\n\n return root;\n }", "public static List<TreeNode> postOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\n\t\tif (rootNode == null)\n\t\t\treturn output;\n\n\t\tStack<TreeNode> s = new Stack<TreeNode>();\n\t\tTreeNode current = rootNode;\n\n\t\twhile (true) {\n\n\t\t\tif (current != null) {\n\t\t\t\tif (current.right != null)\n\t\t\t\t\ts.push(current.right);\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.left;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (s.isEmpty())\n\t\t\t\treturn output;\n\t\t\tcurrent = s.pop();\n\n\t\t\tif (current.right != null && !s.isEmpty() && current.right == s.peek()) {\n\t\t\t\ts.pop();\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\toutput.add(current);\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\n\t}", "static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }", "void printPostorder(Node node) {\n if (node == null)\n return;\n\n // first recur on left subtree\n printPostorder(node.left);\n\n // then recur on right subtree\n printPostorder(node.right);\n\n // now deal with the node\n System.out.print(node.key + \" \");\n }", "void postOrderOperation(PortfolioNode parentNode, Position position);", "static void postOrderOneStack(Node root) {\n Stack<Node> stack = new Stack<>();\n while (true) {\n while (root != null) {\n stack.push(root);\n stack.push(root);\n root = root.left;\n }\n if (stack.isEmpty()) {\n return;\n }\n root = stack.pop();\n if (!stack.isEmpty() && stack.peek() == root) {\n root = root.right;\n } else {\n System.out.print(root.data + \" \");\n root = null;\n }\n }\n }", "public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }", "private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "void postOrderOperation(PortfolioNode portfolioNode);", "public LinkedList descendingOrder(){\r\n\t\t\r\n\t\tLinkedList treeAsList = new LinkedList();\r\n\t\treturn descending(this, treeAsList);\r\n\t}" ]
[ "0.763728", "0.751997", "0.7235254", "0.7174672", "0.7174672", "0.7143394", "0.69611883", "0.68758214", "0.68397605", "0.6837044", "0.6828472", "0.6791203", "0.6771862", "0.67226243", "0.6645481", "0.66124135", "0.66011435", "0.65727043", "0.6545497", "0.65444446", "0.654125", "0.6534651", "0.6516958", "0.6505374", "0.6502995", "0.64744526", "0.64705473", "0.64639354", "0.64542043", "0.64303696", "0.6419084", "0.64128804", "0.64078045", "0.639889", "0.6394302", "0.6380261", "0.63791203", "0.63481146", "0.63334304", "0.63310707", "0.63309896", "0.6323808", "0.63133144", "0.6312941", "0.6296462", "0.6295193", "0.6291911", "0.6287668", "0.62767917", "0.62659246", "0.62646997", "0.624791", "0.6219319", "0.6190836", "0.6187904", "0.6186202", "0.6174722", "0.6148403", "0.61310756", "0.6108065", "0.61026853", "0.6075116", "0.60748637", "0.6031113", "0.60244316", "0.6005664", "0.5996359", "0.59459275", "0.5941206", "0.5927745", "0.59145546", "0.59021175", "0.58766466", "0.58491457", "0.5836805", "0.58140844", "0.5806815", "0.5792685", "0.5787188", "0.57779276", "0.5768433", "0.57648104", "0.57594335", "0.57588917", "0.57522833", "0.5742822", "0.5739942", "0.57233584", "0.5716378", "0.5683202", "0.56660104", "0.5664853", "0.56426626", "0.56294984", "0.56234753", "0.56171596", "0.55903095", "0.5589248", "0.55801183", "0.55567616" ]
0.7885308
0
The constructor which expect all properties of the company set
public Company(int shares, int hoursPerMonth){ this.shares = shares; this.hoursPerMonth = hoursPerMonth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Company() {\r\n\t\tsuper();\r\n\t}", "public Company() {\n\t\tsuper();\n\t}", "public CompanyData() {\r\n }", "public AirlineCompany() {\n\t}", "public BeansCompany() {\n\t\tsuper();\n\t}", "public ManagementCompany() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.taxID = \"\";\r\n\t\tthis.mgmFeePer = 0;\r\n\t\tthis.plot.setX(0);\r\n\t\tthis.plot = new Plot();\r\n\t\tproperties = new Property[MAX_PROPERTY];\r\n\t}", "public Company(String s)\n\t{\n\t\tname = s;\n\t}", "public Company(Company other) {\n\t\tsuper(); // super(this) is there is a polymorphism\n\t\tthis.name = other.name;\n\t\t// todo:\n\t\t// this.members = ??\n\t\t// this.cars = ??\n\t\n\t}", "public ClientOfCompanyTrips() {\n companyController = new CompanyController();\n selected = new Company();\n tripBusiness = new TripBusiness();\n trip = new Trip();\n placeBusiness = new PlaceBusiness();\n place= new Place();\n clientBusiness = new ClientBusiness();\n client = new Client();\n }", "public ManagementCompany(ManagementCompany otherCompany) {\r\n\t\tthis.name = otherCompany.name;\r\n\t\tthis.taxID = otherCompany.taxID;\r\n\t\tthis.mgmFeePer = otherCompany.mgmFeePer;\r\n\t\tthis.plot = new Plot(otherCompany.plot);\r\n\t\tproperties = new Property[MAX_PROPERTY];\r\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "protected CompanyJPA() {\n\t}", "private CompanyManager() {}", "public ServiceCompany(String name, String nit, String representativeName, String address, String phone, int employeeQuantity, double assetsValue, int creationDay, int creationMonth, int creationYear, int floors, String type){\n\n\t\tsuper(name, nit, representativeName, address, phone, employeeQuantity, assetsValue, creationDay, creationMonth, creationYear, floors, type);\n\n\t\tthis.surveys=new Survey[50];\n\n\t}", "public Company(int companyId, String name, String companyEmail, String companyPassword) {\r\n\t\tsuper();\r\n\t\tthis.companyId = companyId;\r\n\t\tthis.name = name;\r\n\t\tthis.companyEmail = companyEmail;\r\n\t\tthis.companyPassword = companyPassword;\r\n\t}", "public static Company createCompany() {\r\n\t\treturn createCompany(1, \"Pepcus\", \"Software\", \"PEP\", new Date(), \"Special\", \"This is search help\");\r\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public RecSupplierListBusiness()\n {\n super();\n }", "public Company(int size) {\n employees = new Person[size];\n }", "public Company(String name, String street, String floor, String city, String state, int zip) {\n this.name = name;\n this.street = street;\n this.floor = floor;\n this.city = city;\n this.state = state;\n this.zip = zip;\n }", "public CompanyAccessBean constructCompanies() throws Exception {\n\n\tif (companies == null) {\t\n\t\t// Construct workers bean\n\t\tif (getCompanycode() != null) {\n\t\t\tcompanies = new CompanyAccessBean();\n\t\t\tcompanies.setInitKey_company(getCompanycode().intValue());\n\t\t\tcompanies.refreshCopyHelper();\n\t\t}\n\t}\n\treturn companies;\n}", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public AirlineCompany(final String name) {\n\t\tthis.setName(name);\n\t}", "private Company(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Company, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "protected Settlement() {\n // empty constructor\n }", "public TdxCompanyCopyrightExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "public Company( String name, String description, LocalTime startTime, LocalTime endTime, double budget, double prestigePoints)throws GameException\r\n {\r\n \tif(name==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument name==null\");\r\n \t}\r\n \t\r\n \tif(description==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argumen description==null\");\r\n \t}\r\n \t\r\n \tif(startTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime==null\");\r\n \t}\r\n \t\r\n \tif(endTime==null)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument endTime\");\r\n \t}\r\n \t\r\n \tif(startTime.equals(endTime) || startTime.isAfter(endTime))\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument startTime is equal or after endTime\");\r\n \t}\r\n \t\r\n \tif(budget<=0)\r\n \t{\r\n \t\tthrow new GameException(\"Wrong argument budget<=0\");\r\n \t}\r\n \t\r\n \t_lockObject = new ReentrantLock();\r\n _prestigePoints = prestigePoints;\r\n _name = name;\r\n\t\t_startTime=startTime;\r\n\t\t_endTime=endTime;\r\n\t\t_description=description;\r\n\t\t_budget=budget;\r\n\t\t_itDepartment = new Department();\r\n\t\t_lastPaymentDateTime=new DateTime();\r\n }", "public Company(String compName, String password, String email) {\n\t\tsuper();\n\t\tthis.compName = compName;\n\t\tthis.password = password;\n\t\tthis.email = email;\n\t}", "public EmployeeWageBuilder() {\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\t\tcompanyEmpWageMap = new HashMap<>();\n\n\tprivate int numOfCompany = 0;\n\tprivate CompanyEmpWage[] companyEmpWageArray;\n\tprivate ArrayList<CompanyEmpWage> companyEmpWageArrayList;\n\n\n\t// created array of type CompanyEmpWage\n\tpublic EmployeeWageBuilder() {\n\t\tcompanyEmpWageArray = new CompanyEmpWage[5];\n\n\t\tcompanyEmpWageArrayList = new ArrayList<>();\n\n\n\t}", "public Competence() {\r\n\t\tsuper();\r\n\t}", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public Companies(String name, String date, double closingPrice, double futureOpeningPrice, double twoToOneSplit,\r\n double threeToOneSplit, double threeToTwoSplit) {\r\n this.name = name;\r\n this.date = date;\r\n this.closingPrice = closingPrice;\r\n this.futureOpeningPrice = futureOpeningPrice;\r\n this.twoToOneSplit = twoToOneSplit;\r\n this.threeToOneSplit = threeToOneSplit;\r\n this.threeToTwoSplit = threeToTwoSplit;\r\n }", "public EmployeeSet(Object obj)\n\t{\n\t\tif((obj != null) && (obj instanceof EmployeeSet))\n\t\t{\n\t\t\t//proceed to create a new instance of EmployeeSet\n\t\t\tEmployeeSet copiedEmployeeSet = (EmployeeSet) obj;\n\t\t\tthis.employeeData = copiedEmployeeSet.employeeData;\n\t\t\tthis.numOfEmployees = copiedEmployeeSet.numOfEmployees;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//throw new IllegalArgumentException(\"Unable to activate copy constructor. Object to be copied from is either a null object or is not an EmployeeSet object\");\n\t\t\tSystem.out.println(\"ERROR: Unable to activate copy constructor. Object to be copied from is either a null object or is not an EmployeeSet object\");\n\t\t}\n\t}", "public Company(String name, Optional<Office> office) {\n this.name = name;\n this.office = office;\n }", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public Chain()\n\t{\n\t\tcars = new HashSet<RollingStock>(); \n\t}", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public TutorIndustrial() {}", "public CompanyFacade() {\n }", "public Company getCompany() {\n return company;\n }", "public ManagementCompany(String name, String taxID, double mgmFeePer, int x, int y, int width, int depth) {\r\n\t\tthis.name = name;\r\n\t\tthis.taxID = taxID;\r\n\t\tthis.mgmFeePer = mgmFeePer;\r\n\t\tthis.plot = new Plot(x,y,width,depth);\r\n\t\tthis.properties = new Property[MAX_PROPERTY];\r\n\t}", "public ManagementCompany(String name, String taxID, double mgmFeePer){\r\n\t\tthis.name = name;\r\n\t\tthis.taxID = taxID;\r\n\t\tthis.mgmFeePer = mgmFeePer;\r\n\t\tthis.plot = new Plot(0,0,MGMT_WIDTH,MGMT_DEPTH);\r\n\t\tproperties = new Property[MAX_PROPERTY];\r\n\t}", "public ComtocomExampleBase() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Companies(String name, String date, double highPrice, double lowPrice, double crazyDay) {\r\n this.name = name;\r\n this.date = date;\r\n this.lowPrice = lowPrice;\r\n this.highPrice = highPrice;\r\n this.crazyValue = crazyDay;\r\n }", "public SalesPerson(String firstName, String lastName, String ppsNumber){\r\n //pulls the constructor with parameters from the superclass SalesEmployee\r\n super(firstName, lastName, ppsNumber);\r\n }", "public CustomerBase(ArrayList<CustomerWithGoods> allCustomers) {\n\t\tsuper();\n\t\tthis.allCustomers = allCustomers;\n\t}", "public InvoiceExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "protected Criteria(TCpyBankCreditExample example) {\n super();\n this.example = example;\n }", "public TCpyBankCreditExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "public CompanyDirectory() {\r\n\t\tcompanyDirectory = new LinkedListRecursive<Company>();\r\n\t}", "@Test\n public void billEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill();\n\n //Set the values\n bill.setBillId(billId);\n bill.setBillName(billName);\n bill.setUserId(userId);\n bill.setAccountId(accountId);\n bill.setBillAmount(billAmount);\n bill.setDueDate(dueDate);\n bill.setOccurrenceRte(occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "protected Criteria(SaleClassifyGoodExample example) {\n super();\n this.example = example;\n }", "@Test\n public void billCustomConstructor_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill(billId,userId,accountId,billName,billAmount,dueDate,occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "public Company getCompany() {\r\n return this.company;\r\n }", "public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public SSNewCompany getCompany() {\n iCompany.setTaxrate1( iTaxRate1.getValue() );\n iCompany.setTaxrate2( iTaxRate2.getValue() );\n iCompany.setTaxrate3( iTaxRate3.getValue() );\n\n return iCompany;\n }", "public CompanyFacade(int companyID) {\n this.companyID = companyID;\n }", "public void setCompanies(java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> _companies)\n {\n companies = _companies;\n }", "public PurchaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public LoanCompany(String str, CurrentBankAccount currBankAccount, ThreadGroup group) {\n \n super(group, str);\n \n this.currBankAccount = currBankAccount;\n this.companyGroup = group; \n \n c1[0] = new Transaction(university_names, 2550);\n c1[1] = new Transaction(university_names, 500);\n c1[2] = new Transaction(university_names, 1500);\n \n \n }", "public OrderHeadExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Test\n public void testUserDomainConstructorWithParams(){Not sure if this works\n //\n Set<RestaurantDomain> testRestaurantDomain = new HashSet<>();\n //\n\n testUserDomain = new UserDomain(1, \"[email protected]\", \"password\", \"jDawg\", \"John\", \"Dawson\", testRestaurantDomain);\n\n new Verifications(){{\n assertEquals(1, testUserDomain.getId());\n assertEquals(\"[email protected]\", testUserDomain.getEmail());\n assertEquals(\"password\", testUserDomain.getPassword());\n assertEquals(\"jDawg\", testUserDomain.getUserName());\n assertEquals(\"John\", testUserDomain.getFirstName());\n assertEquals(\"Dawson\", testUserDomain.getFirstName());\n assertEquals(testRestaurantDomain, testUserDomain.getRestaurantDomain());\n }};\n }", "public PTreeCredalSet() {\n }", "public ShippingResultABCAnalysis2Business()\n {\n super();\n }", "public companyDetails() {\n initComponents();\n showTableData();\n }", "public Company(String name, String street, String city, String state, int zip) {\n this.name = name;\n this.street = street;\n this.floor = \"\\0\";\n this.city = city;\n this.state = state;\n this.zip = zip;\n }", "public CareerModel() {\n this(\"Career\",\n Riasec.Artistic,\n \"field\",\n \"category\",\n \"description from .csv\",\n CareerModelLoader.DEFAULT_IMAGE_PATH);\n }", "public FacBuyerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void setCompany(SSNewCompany iCompany) {\n this.iCompany = iCompany;\n\n iTaxRate1.setValue( iCompany.getTaxRate1() );\n iTaxRate2.setValue( iCompany.getTaxRate2() );\n iTaxRate3.setValue( iCompany.getTaxRate3() );\n }", "private ProfitPerTariffType ()\n {\n super();\n }", "public ProjectOfferPOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "protected Sale(ArrayList<SaleItem> saleItemList){ \r\n\t\tthis.saleItemList = saleItemList;\r\n\t}", "public CrkProductExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public BookInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Employe () {\n this ( NOM_BIDON, null );\n }", "public X837Ins_2305_CR7_HomeHealthCarePlanInformation() {}", "public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}", "public ClientTracker(String clientName, String companyName, String commodityType) {\n this.clientName = clientName;\n this.companyName = companyName;\n this.commodityType = commodityType;\n amount = 0;\n amountSold = 0;\n amountBought = 0;\n this.buyPrice = -1;\n this.originalPrice = -1;\n fluctuation = 0;\n }", "public Customers(){\r\n \r\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public CustomersByCountry(){\n\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public Counselor(String first, String last, String password, String p1, String p2, String p3, String p4, \n String p5, String p6, String p7, String p8)\n {\n super(first, last, password, p1, p2, p3, p4, p5, p6, p7, p8);\n students = new ArrayList<Student>();\n }", "public Cohete() {\n\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public BhiEnvironmentalAssessmentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }", "@Test\n public void goalEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int goalId = 12135;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n //Create goal\n Goal goal = new Goal();\n\n goal.setGoalId(goalId);\n goal.setUserId(userId);\n goal.setGoalName(name);\n goal.setTimePeriod(timePeriod);\n goal.setUnit(unit);\n goal.setAmount(amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }", "public IncomeClassExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public GoodsTradeExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "protected CompanyJPA(Integer id, String name) {\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}" ]
[ "0.77218175", "0.76532745", "0.7522367", "0.73925465", "0.69824684", "0.690573", "0.6628837", "0.6607052", "0.6474584", "0.6470006", "0.64368784", "0.6431418", "0.63958275", "0.6387167", "0.6296906", "0.62791973", "0.62547314", "0.6213263", "0.61470497", "0.61463964", "0.61440516", "0.6133701", "0.6133453", "0.6079131", "0.60791034", "0.6047699", "0.60435396", "0.60279495", "0.6018431", "0.59895", "0.5976608", "0.5937171", "0.5933391", "0.59144074", "0.589966", "0.5889853", "0.5855857", "0.5845122", "0.5821537", "0.5801786", "0.5791805", "0.578361", "0.5778265", "0.5748641", "0.5743302", "0.57411397", "0.57360095", "0.57341033", "0.57300943", "0.57297665", "0.5729668", "0.5723395", "0.57204604", "0.5711401", "0.56912017", "0.568626", "0.56835914", "0.567912", "0.5678298", "0.56720644", "0.56693196", "0.56501436", "0.56391984", "0.56312007", "0.563038", "0.5608361", "0.5607126", "0.56044", "0.5603564", "0.560183", "0.55975884", "0.5591415", "0.5587474", "0.5581498", "0.55803305", "0.55691266", "0.55651087", "0.556364", "0.5562712", "0.5561445", "0.5547988", "0.554626", "0.5536426", "0.55317175", "0.55311906", "0.55305463", "0.55305463", "0.55305463", "0.55305463", "0.55305463", "0.55217385", "0.55196315", "0.55158937", "0.55055195", "0.55046487", "0.5504209", "0.5501748", "0.5495889", "0.5493425", "0.5489587" ]
0.5937142
32
Returns the shares of the company
public int getShare(){ return this.shares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<CompanyShare> getShares(Bson companyShareCriteria) {\n FindIterable<Document> sharesMatchingQuery = getSharesCollection().find(companyShareCriteria);\n return toCompanySharesArrayList(sharesMatchingQuery);\n }", "@Override\n public List<CompanyShare> getShares(int limit) {\n FindIterable<Document> sharesWithLimit = getSharesCollection().find()\n .sort(descending(\"sharePrice.value\"))\n .limit(limit);\n\n return toCompanySharesArrayList(sharesWithLimit);\n }", "@Test\n public void share() {\n System.out.println(Arrays.toString(client.getShares(0)));\n }", "public double getTotalShares()\n {\n return this.totalShares;\n }", "public int getAmountOfShares() {\n\t\treturn amountOfShares;\n\t}", "public void getPromoShare() {\n\t\tHashMap<String, DataStorage> items = this.getAllItems();\n\t\tfor(String key:items.keySet()) {\n\t\t\tHashtable<String, Double> sales = new Hashtable<String, Double>();\n\t\t\tsales.put(\"Total Sales\",items.get(key).getSales(thisPeriod));\n\t\t\tsales.put(\"Total Sales YA\", items.get(key).getSales(lastPeriod));\n\t\t\tsales.put(\"Any Promo Sales\", items.get(key).getAnyPromo(thisPeriod));\n\t\t\tsales.put(\"Any Promo Sales YA\", items.get(key).getAnyPromo(lastPeriod));\n\t\t\tsales.put(\"Feature\", items.get(key).getFeat(thisPeriod));\n\t\t\tsales.put(\"Feature YA\", items.get(key).getFeat(lastPeriod));\n\t\t\tsales.put(\"Display\", items.get(key).getDisplay(thisPeriod));\n\t\t\tsales.put(\"Display YA\", items.get(key).getDisplay(lastPeriod));\n\t\t\tsales.put(\"Quality\", items.get(key).getQual(thisPeriod));\n\t\t\tsales.put(\"Quality YA\", items.get(key).getQual(lastPeriod));\n\t\t\tsales.put(\"Price Disc.\", items.get(key).getPriceDisc(thisPeriod));\n\t\t\tsales.put(\"Price Disc.YA\", items.get(key).getPriceDisc(lastPeriod));\n\t\t\tthis.allocateValues(sales);\n\t\t}\n\t}", "public List<Share> getPrices()\r\n\t{\r\n\t\treturn this.prices;\r\n\t}", "@Override\r\n\tpublic List<Share> findByCompanyGroup(long companyId, long groupId) {\r\n\t\treturn findByCompanyGroup(companyId, groupId, QueryUtil.ALL_POS,\r\n\t\t\tQueryUtil.ALL_POS, null);\r\n\t}", "public SentSharesImpl getSentShares() {\n return this.sentShares;\n }", "@Override\r\n\tpublic List<Share> findByUuid_C(String uuid, long companyId) {\r\n\t\treturn findByUuid_C(uuid, companyId, QueryUtil.ALL_POS,\r\n\t\t\tQueryUtil.ALL_POS, null);\r\n\t}", "@Override\n public CompanyShare getShare(Bson query) {\n Document firstMatchingCompanyShare = getSharesCollection().find(query).first();\n\n if (firstMatchingCompanyShare == null) {\n return null;\n }\n\n return new CompanyShare(firstMatchingCompanyShare);\n }", "@Override\r\n\tpublic List<Share> findByMarketGroupCompany(long groupId, long companyId,\r\n\t\tlong marketId) {\r\n\t\treturn findByMarketGroupCompany(groupId, companyId, marketId,\r\n\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\r\n\t}", "@Override\r\n\tpublic List<Share> findByCompanyGroupShare(long companyId, long groupId,\r\n\t\tlong shareId) {\r\n\t\treturn findByCompanyGroupShare(companyId, groupId, shareId,\r\n\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\r\n\t}", "private List<String> extractShares() {\n List<String> result = new ArrayList<String>();\n\n int startPoint = -1;\n\n List<TextPosition> shareItem;\n for (int i = 0; i < infoBlock.size(); i++) {\n // To get index of the text in the information block, if the text does not exist, the index will be -1.\n int index = CommonUtils.collectTextBuffer(infoBlock.get(i)).indexOf(SHARE_KEY);\n if (index != -1 && CommonUtils.collectTextBuffer(infoBlock.get(i)).length() < 15) {\n startPoint = i + 1;\n\n // To locate the PDF object from the text feature to the end of the information block.\n shareItem = infoBlock.get(i).subList(index, index + SHARE_KEY.length());\n\n // To extract information vertically. startPoint now is where the information block next to the\n // one that contains text share.\n if (startPoint != -1) {\n result = filterTextBuffersVerical(shareItem, infoBlock, startPoint, 10);\n/*\t\t\t\t\t\tfor(String item: result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(item);\n\t\t\t\t\t\t}*/\n }\n\n break;\n }\n }\n\n for (int i = 0; i < result.size(); i++) {\n int index = result.get(i).indexOf(\"%\");\n if (index != -1) {\n result.set(i, result.get(i).substring(0, index));\n } else {\n index = result.get(i).indexOf(\"%\");\n if (index != -1) {\n result.set(i, result.get(i).substring(0, index));\n }\n }\n }\n\n return result;\n }", "public synchronized void computeShares() {\n\t\tHashMap<ClassInfo, BigDecimal> previousUtilities = new HashMap<ClassInfo, BigDecimal>();\n\n//\t\tint round = 0;\n\t\twhile (!isUtilityConverged(previousUtilities)) {\n//\t\t\tSystem.out.println(round++);\n//\t\t\tSystem.out.println(this);\n\t\t\tfor (ClassInfo classInfo : classToDatanodes.keySet()) {\n\t\t\t\tcomputeSharesByClass(classInfo);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic List<Share> findAll() {\r\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\r\n\t}", "public Company(int shares, int hoursPerMonth){\n\t\tthis.shares = shares;\n\t\tthis.hoursPerMonth = hoursPerMonth;\n\t}", "List<String> getCompanySymbols() throws StorageException;", "public Share(int shareholderId, String companySymbol, int amountOfShares) {\n\t\tsuper();\n\t\tthis.shareholderId = shareholderId;\n\t\tthis.companySymbol = companySymbol;\n\t\tthis.amountOfShares = amountOfShares;\n\t}", "public int getCompaniesCount() {\n return companies_.size();\n }", "public Share getShare(String name) throws Exception{\n return (Share) collectionObjectFinder.search(this.getAllSharesAsSnapshot(), name, new ShareNotFoundException());\n }", "public ArrayList<Company> getCompaniesFromCache() {\n\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n query.fromLocalDatastore();\n\n try {\n return new ArrayList<>(query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchants from local data store:\\n\" + e.getMessage());\n }\n\n return new ArrayList<>();\n }", "public List<ManagedCompany> getManagedCompanies() {\n \n List<ManagedCompany> results = new ArrayList<>();\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n results = dao.getItems();\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return results;\n }", "public double getSharePrice() {\n\t\treturn sharePrice;\n\t}", "void sss_create_shares(byte[] out, byte[] data, int n, int k);", "private MongoCollection<Document> getSharesCollection() {\n return _mongoClient.getDatabase(\"Shares\")\n .getCollection(\"Shares\");\n }", "public double getSharesTraded() {\n return sharesTraded;\n }", "List<Company> getFollowing();", "public contactsapi.company.CompanyResponse getCompanies(int index) {\n return companies_.get(index);\n }", "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "public void buy(String n,int shares, Stock s){\n boolean own = false;\n for (PersonStocks x :myStocks) {//if the name is a stock that exists\n if(n.equals(x.getName())) {\n x.addShares(shares);\n money-= (s.getPrice()*shares);\n own = true;\n }\n }\n if (!own){//makes the user own it now\n myStocks.add(new PersonStocks(n,shares));\n money-= (s.getPrice()*shares);\n\n }\n\n }", "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}", "public ResultSet Share(Long userid)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.compname,t.SHAREAMOUNT,t.amount,t.dateoftrans,t.type,t.bywhom from company c,transaction t,login l,customer cu where c.comp_id=t.comp_id and l.login_id=cu.login_id and cu.user_id=t.user_id and l.login_id=\"+userid+\" order by t.dateoftrans\");\r\n\treturn rs;\r\n}", "public abstract List<Company> getAll();", "public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }", "public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }", "public int totalCompanies(){\n\treturn companyEmpWageArray.size();\n }", "public BigDecimal getSharePct() {\n\t\treturn sharePct;\n\t}", "public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}", "List getCompanies(OwnCodes ownCodes) throws PopulateDataException;", "public List<Company> getAllCompanies() {\n\t\t \n\t List<Company> listOfCompanies = new ArrayList<Company>();\n\n\t Cursor cursor = mDatabase.query(MySQLiteHelper.TABLE_COMPANIES,\n\t mAllColumns, null, null, null, null, null);\n\n\t cursor.moveToFirst();\n\t while (!cursor.isAfterLast()) {\n\t Company hunt = cursorToCompany(cursor);\n\t listOfCompanies.add(hunt);\n\t cursor.moveToNext();\n\t }\n\t \n\t cursor.close();\n\t return listOfCompanies;\n\t }", "@Transactional\n\t@Override\n\tpublic List<Documents> getShareDocuments() {\n\t\treturn documentsDao.getShareDocuments();\n\t}", "@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}", "public boolean doesOwn(String n, int shares){\n boolean own = false;\n for (PersonStocks x :myStocks) {//verifies if the shares are in person stocks\n if(n.equals(x.getName()) && (x.getNumShares()- shares) >= 0) {\n own = true;\n }\n }\n return own;\n }", "public java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> getCompanies()\n {\n return companies;\n }", "@Override\r\n\tpublic ArrayList<Company> getAllCompanies() throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tArrayList<Company> allCompanies = new ArrayList<>();\r\n\t\t\tString sql = \"select * from companies\";\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCompany comp = new Company(rs.getInt(\"companyId\"), rs.getString(\"companyName\"),\r\n\t\t\t\t\t\trs.getString(\"companyEmail\"), rs.getString(\"companyPass\"));\r\n\t\t\t\tallCompanies.add(comp);\r\n\t\t\t}\r\n\t\t\treturn allCompanies;\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getAllCompanies Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ReceivedSharesImpl getReceivedShares() {\n return this.receivedShares;\n }", "public java.util.List<contactsapi.company.CompanyResponse> getCompaniesList() {\n return companies_;\n }", "@Override\n\tpublic int getNoShares() {\n\t\treturn noShares;\n\t}", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "public ResultSet Retshare()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company_share\");\r\n\treturn rs;\r\n}", "public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}", "List<Coupon> findByCompanyId(int companyId);", "public Collection<Coupon> getCompanyCoupons() {\n return couponRepo.findCouponsByCompanyID(this.companyID);\n }", "@SuppressWarnings({ \"unchecked\", \"finally\" })\n\t@RequestMapping(value=\"/{username}/buy\", method = RequestMethod.POST)\n\tpublic String buyStock(@PathVariable String username, @RequestParam(value=\"stock\") String stock, @RequestParam(value=\"shares\") int shares ){\n\t\tUser user = userService.getUserByName(username);\n\t\tString portfolio = user.getPortfolio();\n\t\tSystem.out.println(portfolio);\n\t\tString stockToBuy = stock;\n\t\tint amountToBuy = shares;\n\n\t\tJSONParser parser = new JSONParser();\n\t\ttry {\n\t\t\tJSONObject json = (JSONObject) parser.parse(portfolio);\n\t\t\tJSONArray details = (JSONArray) json.get(\"portfolio\");\n\t\t\tSystem.out.println(\"Details:\");\n\t\t\tSystem.out.println(details.toJSONString());\n\t\t\tSystem.out.println(json.toString());\n\t\t\tList<String> stockInfo = new ArrayList<>();\n\n\t\t\tHashMap<String, String> stockKeyValue = new HashMap<String, String>();\n\n\n\t\t\t//\t\t\tdouble testint[] = {0,0,0,0};\n\n\t\t\tdetails.forEach( stockInfoFromPortfolio -> {\n\t\t\t\tJSONObject parse = (JSONObject) stockInfoFromPortfolio;\n\n\t\t\t\tfor(int i = 0; i<parse.size(); i++){\n\n\t\t\t\t\tString key = parse.keySet().toArray()[i].toString();\n\t\t\t\t\tstockKeyValue.put(key, parse.get(key).toString());\n\t\t\t\t\tstockInfo.add(i, parse.get(key).toString());\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(stockKeyValue.get(\"amount\"));\n\n\t\t\t\tSystem.out.println(stockKeyValue.toString());\n\n\t\t\t});\n\t\t\tArrayList<PortfolioIndex> stocks = new ArrayList<PortfolioIndex>();\n\t\t\tPortfolioIndex index;\n\t\t\tfor(int i = 0; i<stockInfo.size()-1;i+=2){\n\t\t\t\tindex = new PortfolioIndex(stockInfo.get(i+1).toString(), Integer.parseInt(stockInfo.get(i)));\n\t\t\t\tstocks.add(index);\n\t\t\t}\n\n\t\t\tboolean exists = false;\n\t\t\tint positionIndex = -1;\n\t\t\tint counter = 0;\n\t\t\tfor(PortfolioIndex indexes: stocks){\n\t\t\t\tif(indexes.getTicker().equalsIgnoreCase(stock)){\n\t\t\t\t\texists=true;\n\t\t\t\t\tpositionIndex = counter;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t\tSystem.out.println(\"OK TILL NOW\");\n\t\t\tSystem.out.println(\"STOCK:\"+stock);\n\t\t\tString stockURL = \"http://localhost:9090/price/\"+stock;\n\t\t\tdouble responsePrice = Double.parseDouble(this.sendGet(stockURL));\n\t\t\tSystem.out.println(\"RESPONSE PRICE:\" + responsePrice);\n\t\t\tif(responsePrice == 0.0){\n\t\t\t\tSystem.out.println(\"WHY?\");\n\t\t\t\treturn \"Stock not found please try again later\";\n\t\t\t}else{\n\t\t\t\tif(user.getFunds()-(responsePrice*shares) < 0.0){\n\t\t\t\t\tSystem.out.println(\"ALSO WHY?\");\n\t\t\t\t\treturn \"Invalid funds for transaction\";\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"price not 0\");\n\t\t\t\t\tuser.removeFunds((responsePrice*shares));\n\t\t\t\t\tif(positionIndex != -1){\n\t\t\t\t\t\tSystem.out.println(\"counter found\");\n\t\t\t\t\t\t//Stock was in portfolio need to save new user with new portfolio\n\t\t\t\t\t\tSystem.out.println(positionIndex);\n\t\t\t\t\t\tSystem.out.println(stocks);\n\t\t\t\t\t\tstocks.get(positionIndex).setValue(stocks.get(positionIndex).getValue()+shares);\n\t\t\t\t\t\tSystem.out.println(\"VALUE:\");\n\t\t\t\t\t\tSystem.out.println(stocks.get(positionIndex).getValue()+\" \"+stocks.get(positionIndex).getTicker());\n\t\t\t\t\t\tString newPortfolio = \"\";\n\t\t\t\t\t\tfor(int i=0; i<stocks.size(); i++){\n\t\t\t\t\t\t\tif(i != stocks.size()-1){\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex()+\",\";\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.print(\"New Portfolio:\");\n\t\t\t\t\t\t\tSystem.out.println(newPortfolio);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//System.out.println(stocks.get(counter).getValue()+\" \"+stocks.get(counter+1).getValue());\n\t\t\t\t\t\tuser.setPortfolio(newPortfolio);\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tPortfolioIndex portIndex = new PortfolioIndex(stock,shares);\n\t\t\t\t\t\tuser.addCustomPortfolioIndexes(portIndex.returnIndex());\n\t\t\t\t\t\tSystem.out.println(\"WE HIT\");\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tuserService.saveNewUser(user);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//System.out.println(user.get);\n\t\t\treturn \"Purchase successful heres your new portfolio:\\n\"+user.getPortfolio();\n\t\t}catch(Exception e){\n\t\t\treturn \"Exception found!\";\n\t\t}\n\t}", "public void getAllCompanyInfo() throws FileNotFoundException, IOException\r\n {\r\n \r\n String tickerFileLoc = \"companylist.csv\";\r\n CSVReader nameReader = new CSVReader(new FileReader(tickerFileLoc));\r\n \r\n String[] nextLine;\r\n String tempFileLoc;\r\n int x = 0;\r\n \r\n while ((nextLine = nameReader.readNext()) != null)\r\n {\r\n HashMap<String, SingleDayQuote> oneDay = new HashMap<>();\r\n if (x == 0){x++;continue;} //skips CSV category header\r\n if (x > 6){break;} //temporary, to prevent downloading more than 6 companys info\r\n \r\n String tempTicker = nextLine[0];\r\n tempFileLoc = \"StockFiles\\\\\" + tempTicker + \".csv\";\r\n \r\n //downloadFile(tempTicker);\r\n \r\n Company tempCompany = new Company(tempTicker, pullInfo(tempFileLoc));\r\n allCompanys.put(tempTicker, tempCompany);\r\n \r\n \r\n x++;\r\n }\r\n \r\n }", "List<Company> getCompanyList() throws DAOException ;", "public void sell(Share s) {\r\n try {\r\n Double price = s.getCompany().getCurrentPrice()*(new Random().nextDouble()+0.5)*s.getNumber();\r\n Exchange e = s.getExchange();\r\n Share exchangeShare = null;\r\n for (int i=0; i<e.getShares().size(); i++) {\r\n if (e.getShares().get(i).getCompany() == s.getCompany()) {\r\n exchangeShare = e.getShares().get(i); break;\r\n } \r\n }\r\n if (exchangeShare!=null) {\r\n synchronized(s){\r\n s.getCompany().buyShares(s, s.getNumber(), price);\r\n exchangeShare.setNumber(exchangeShare.getNumber()-s.getNumber());\r\n this.budget+=price;\r\n this.capital.remove(s);\r\n this.shares.remove(s);\r\n }\r\n }\r\n }\r\n catch (Exception ex)\r\n {\r\n \r\n }\r\n\r\n }", "public Hashtable<String, BrandsData> getPromoPerBrand(){\n\t\tHashtable<String, BrandsData> brandsAnalysis = new Hashtable<String, BrandsData>();\n\t\tfor(String key:this.allItems.keySet()) {\n\t\t\tString brand = this.allItems.get(key).getBrand();\n\t\t\tBrandsData addition = this.convertDataStorageToBrandsData(brand, this.allItems.get(key));\n\t\t\tif(brandsAnalysis.containsKey(brand)) {\n\t\t\t\tBrandsData existing = brandsAnalysis.get(brand);\n\t\t\t\tBrandsData updated = this.allocateDataStorage(existing, addition);\n\t\t\t\tbrandsAnalysis.put(brand, updated);\n\t\t\t} else {\n\t\t\t\tbrandsAnalysis.put(brand, addition);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn brandsAnalysis;\n\t}", "List<Share> findByPost(Post post);", "@Override\r\n\tpublic List<Share> findByActiveMarketGroupCompany(long groupId,\r\n\t\tlong companyId, boolean active, long marketId) {\r\n\t\treturn findByActiveMarketGroupCompany(groupId, companyId, active,\r\n\t\t\tmarketId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\r\n\t}", "public List<BusinessAccount> searchAllContractors() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b\");\n\t\t\tcontractorList=myQuery.getResultList();\n\t\t em.getTransaction().commit();\n\t\t em.close();\n\t\t\t\n\t\t\treturn contractorList;\n\t\t}", "public List<IncomingReport> listCompany(Company company) throws IllegalArgumentException, DAOException;", "@Override\r\n\tpublic synchronized List<Company> getAllCompanies() throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\t\tList<Company> list = new ArrayList<>();\r\n\t\tString sql = \"select * from Company\";\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql); ResultSet resultSet = preparedStatement.executeQuery()) {\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tlong companyId = resultSet.getLong(1);\r\n\t\t\t\tString companyName = resultSet.getString(2);\r\n\t\t\t\tString companyPassword = resultSet.getString(3);\r\n\t\t\t\tString companyEmail = resultSet.getString(4);\r\n\r\n\t\t\t\tlist.add(new Company(companyId, companyName, companyPassword, companyEmail));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - unable to get Company data\");\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"unable to get Company data\");\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "String getAllPortfolio();", "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "public Map<Integer, BigInteger> shareInfoToMap(List<SecretShare.ShareInfo> shares) {\n\n Map<Integer, BigInteger> keys = new HashMap<Integer, BigInteger>();\n\n for (int i = 0; i < shares.size(); i++) {\n keys.put(shares.get(i).getIndex(), shares.get(i).getShare()); // maps the splits to a <Integer, BigInteger>\n // mapping\n // TODO: The mapping probably does not need a loop\n }\n return keys;\n }", "int getSeasonShareCount();", "public List<Buy> getAll() throws PersistException;", "@Override\r\n\tpublic Share fetchBySymbolCompanyGroup(long companyId, long groupId,\r\n\t\tString symbol, boolean retrieveFromCache) {\r\n\t\tObject[] finderArgs = new Object[] { companyId, groupId, symbol };\r\n\r\n\t\tObject result = null;\r\n\r\n\t\tif (retrieveFromCache) {\r\n\t\t\tresult = finderCache.getResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\t\t\tfinderArgs, this);\r\n\t\t}\r\n\r\n\t\tif (result instanceof Share) {\r\n\t\t\tShare share = (Share)result;\r\n\r\n\t\t\tif ((companyId != share.getCompanyId()) ||\r\n\t\t\t\t\t(groupId != share.getGroupId()) ||\r\n\t\t\t\t\t!Objects.equals(symbol, share.getSymbol())) {\r\n\t\t\t\tresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result == null) {\r\n\t\t\tStringBundler query = new StringBundler(5);\r\n\r\n\t\t\tquery.append(_SQL_SELECT_SHARE_WHERE);\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_SYMBOLCOMPANYGROUP_COMPANYID_2);\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_SYMBOLCOMPANYGROUP_GROUPID_2);\r\n\r\n\t\t\tboolean bindSymbol = false;\r\n\r\n\t\t\tif (symbol == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_SYMBOLCOMPANYGROUP_SYMBOL_1);\r\n\t\t\t}\r\n\t\t\telse if (symbol.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_SYMBOLCOMPANYGROUP_SYMBOL_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindSymbol = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_SYMBOLCOMPANYGROUP_SYMBOL_2);\r\n\t\t\t}\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tqPos.add(companyId);\r\n\r\n\t\t\t\tqPos.add(groupId);\r\n\r\n\t\t\t\tif (bindSymbol) {\r\n\t\t\t\t\tqPos.add(symbol);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tList<Share> list = q.list();\r\n\r\n\t\t\t\tif (list.isEmpty()) {\r\n\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\t\t\t\tfinderArgs, list);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (list.size() > 1) {\r\n\t\t\t\t\t\tCollections.sort(list, Collections.reverseOrder());\r\n\r\n\t\t\t\t\t\tif (_log.isWarnEnabled()) {\r\n\t\t\t\t\t\t\t_log.warn(\r\n\t\t\t\t\t\t\t\t\"SharePersistenceImpl.fetchBySymbolCompanyGroup(long, long, String, boolean) with parameters (\" +\r\n\t\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\r\n\t\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tShare share = list.get(0);\r\n\r\n\t\t\t\t\tresult = share;\r\n\r\n\t\t\t\t\tcacheResult(share);\r\n\r\n\t\t\t\t\tif ((share.getCompanyId() != companyId) ||\r\n\t\t\t\t\t\t\t(share.getGroupId() != groupId) ||\r\n\t\t\t\t\t\t\t(share.getSymbol() == null) ||\r\n\t\t\t\t\t\t\t!share.getSymbol().equals(symbol)) {\r\n\t\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\t\t\t\t\tfinderArgs, share);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_FETCH_BY_SYMBOLCOMPANYGROUP,\r\n\t\t\t\t\tfinderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result instanceof List<?>) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn (Share)result;\r\n\t\t}\r\n\t}", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "private void addShares(){\n int sharesLeft = 10;\n for (int i = 0; i < 5; i++) {\n int shareAmount = (int)Math.round(Math.random()*sharesLeft);\n sharesLeft -= shareAmount;\n shares.add(i,shareAmount);\n if(i==4 && sharesLeft>0){\n int index = (int)Math.round(Math.random()*4);\n shares.set(index, shares.get(index)+sharesLeft);\n }\n }\n }", "@Test\n\tpublic void testGetPeople() {\n\t\tShare savedShare = new Share(1L, \"Vodafone\", 2000, 1.5);\n\t\tList<Share> sharesList = List.of(savedShare);\n\n\t\t// Telling mocked repository what to do\n\t\tMockito.when(this.repo.findAll()).thenReturn(sharesList);\n\n\t\t// Test\n\t\tassertThat(this.service.getShares().equals(sharesList));\n\t\tMockito.verify(this.repo, Mockito.times(1)).findAll();\n\t}", "@Override\r\n\tpublic Share fetchBySymbolCompanyGroup(long companyId, long groupId,\r\n\t\tString symbol) {\r\n\t\treturn fetchBySymbolCompanyGroup(companyId, groupId, symbol, true);\r\n\t}", "public ShareResourcesImpl getShareResources() {\n return this.shareResources;\n }", "@RequestMapping(path = \"/listCompanies\", method = RequestMethod.GET)\n\tpublic ResponseEntity<RestResponse<ListCompaniesResponse>> listCompanies() {\n\n\t\tList<CompanyDTO> companies = companyService.listAll();\n\t\t\n\t\tListCompaniesResponse result = new ListCompaniesResponse(companies);\n\t\t\n\t\tRestResponse<ListCompaniesResponse> restResponse = \n\t\t\t\tnew RestResponse<ListCompaniesResponse>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<ListCompaniesResponse>>(restResponse, HttpStatus.OK);\n\t\t\n\t}", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "public ArrayList<Company> updateCacheList() {\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n\n try {\n Company.pinAll(\"companyList\", query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchant from Parse Database:\\n\" + e.getMessage());\n }\n\n return getCompaniesFromCache();\n }", "public void sell(String n,int shares, Stock s){\n for (PersonStocks x :myStocks) {\n if(n.equals(x.getName())) {\n x.addShares(0-shares);\n money+= (s.getPrice()*shares);\n }\n }\n for (int i = 0; i < myStocks.size(); i++) {\n if (myStocks.get(i).getNumShares()<=0){\n myStocks.remove(i);//if they now have 0 and now removes it from person stocks\n }\n }\n\n }", "public List<Almacen> getStoresByIdCompany(long idCompany);", "List<Company> getSuggestionsToFollow();", "@Override\n\tpublic void displayAvgSalariesCompanies() {\n\n\t}", "@Override\n public List getAllSharingProduct() {\n \n List sharingProducts = new ArrayList();\n SharingProduct sharingProduct = null;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet result = null;\n try {\n connection = MySQLDAOFactory.createConnection();\n preparedStatement = connection.prepareStatement(Read_All_Query);\n preparedStatement.execute();\n result = preparedStatement.getResultSet();\n \n while (result.next()) {\n sharingProduct = new SharingProduct(result.getString(1), result.getInt(2) );\n sharingProducts.add(sharingProduct);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n result.close();\n } catch (Exception rse) {\n rse.printStackTrace();\n }\n try {\n preparedStatement.close();\n } catch (Exception sse) {\n sse.printStackTrace();\n }\n try {\n connection.close();\n } catch (Exception cse) {\n cse.printStackTrace();\n }\n }\n \n return sharingProducts;\n }", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "@GetMapping(path = \"companyName/{companyName}\")\n public ResponseEntity<List<Contractor>> findAllByCompanyName(@PathVariable String companyName){\n logger.debug(\"findAllByCompanyName(\" + companyName + \")\");\n\t\tAssert.notNull(companyName, \"Expects a valid companyName\");\n\n List<Contractor> contractors = contractorService.findAllByCompanyName(companyName);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "public List<Company> getCompanies() throws BusinessException {\n\t\tList<Company> lstCompanies = new ArrayList<Company>();\n\n\t\ttry {\n\n\t\t\tList<Object> list = UtilSession.getObjectsByNamedQuery(this.em, Company.FIND_COMPANIES, null);\n\n\t\t\tfor (Object object : list) {\n\t\t\t\tCompany vnt = (Company) object;\n\t\t\t\tlstCompanies.add(vnt);\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tString s = \"Error al consultar las compa�ias\";\n\t\t\t_logger.error(s, ex);\n\t\t\tthrow new BusinessException(s, ex);\n\t\t}\n\n\t\t\n\n\t\treturn lstCompanies;\n\n\t}", "@Override\n\tpublic boolean buyStock(int companySymbol, int count, int investorId) {\n\t\tad.buyStock(companySymbol,count,investorId);\n\t\treturn true;\n\t}", "List<MarketData> getMarketDataItems(String index);", "@Override\r\n\tpublic int countByCompanyGroupShare(long companyId, long groupId,\r\n\t\tlong shareId) {\r\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_COMPANYGROUPSHARE;\r\n\r\n\t\tObject[] finderArgs = new Object[] { companyId, groupId, shareId };\r\n\r\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tStringBundler query = new StringBundler(4);\r\n\r\n\t\t\tquery.append(_SQL_COUNT_SHARE_WHERE);\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_COMPANYGROUPSHARE_COMPANYID_2);\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_COMPANYGROUPSHARE_GROUPID_2);\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_COMPANYGROUPSHARE_SHAREID_2);\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tqPos.add(companyId);\r\n\r\n\t\t\t\tqPos.add(groupId);\r\n\r\n\t\t\t\tqPos.add(shareId);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "private void shareTotalScore(String typeOfShare) {\n final String fbType = getResources().getString(R.string.action_share_on_facebook);\n\n if (typeOfShare.equals(fbType)) {\n // Share total score on Facebook social network\n shareOnFacebook();\n } else {\n // Share total score on P2A web\n shareOnP2A();\n }\n }", "@Override\r\n\tpublic List<CurrencyAccountCorporate> findAll() {\n\t\treturn em.createQuery(\"from CurrencyAccountCorporate\",\r\n\t\t\t\tCurrencyAccountCorporate.class).getResultList();\r\n\t}", "private String companies() {\r\n\t\tint num=tile.getCompaniesNum();\r\n\t\tString out=\"Total Companies: \"+num;\r\n\t\treturn out;\r\n\t}", "@External(readonly = true)\n\tpublic BigInteger get_game_developers_share() {\n\t\t\n\t\treturn this.game_developers_share.get(); \n\t}", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "public CompanyEntity[] getAllCompanies() throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT * FROM companies\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Executing the update\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"Cannot retrieve information\");\n }\n// getting the number of rows returned to create an array of companies\n int numberOfRows = MyUtils.getRowCount(resultSet);\n if (numberOfRows == 0) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"0 companies in the table\");\n }\n// creating an array of companies\n CompanyEntity[] companies = new CompanyEntity[numberOfRows];\n int i = 0;\n while (resultSet.next()) {\n companies[i].setCompanyId(resultSet.getLong(\"id\"));\n companies[i].setCompanyName(resultSet.getString(\"company_name\"));\n companies[i].setCompanyEmail(resultSet.getString(\"company_email\"));\n companies[i].setCompanyPhone(resultSet.getString(\"company_phone\"));\n companies[i].setCompanyAddress(resultSet.getString(\"company_address\"));\n i++;\n }\n\n return companies;\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n throw new Exception(\"Failed to retrieve data\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }" ]
[ "0.7527808", "0.69380647", "0.6323941", "0.60753316", "0.58810586", "0.58601755", "0.58223695", "0.5821785", "0.578425", "0.5776525", "0.5694479", "0.5610412", "0.55801696", "0.55539495", "0.5538266", "0.5533677", "0.5494404", "0.54579407", "0.53705335", "0.5325619", "0.528245", "0.52807295", "0.52322656", "0.5205022", "0.5194024", "0.5191116", "0.5183726", "0.51823384", "0.51780987", "0.5176194", "0.51681554", "0.51665926", "0.5144896", "0.5122327", "0.5119419", "0.5105436", "0.5089469", "0.50876856", "0.50865686", "0.5075847", "0.50746113", "0.5072003", "0.5035523", "0.49930573", "0.49906957", "0.49903393", "0.49868324", "0.49750403", "0.4971203", "0.49682662", "0.4946511", "0.4946342", "0.49416828", "0.48924974", "0.4889425", "0.48859698", "0.488361", "0.48827782", "0.4877039", "0.4865628", "0.48639944", "0.485968", "0.48551217", "0.48484778", "0.48446646", "0.484373", "0.48408407", "0.484003", "0.48364788", "0.4830614", "0.4820524", "0.48139638", "0.48102334", "0.4798659", "0.47954392", "0.47815603", "0.47811636", "0.4777194", "0.4777194", "0.4770899", "0.47633934", "0.4759361", "0.47580817", "0.47485772", "0.47274455", "0.4727079", "0.47230554", "0.4714447", "0.47105488", "0.47082812", "0.47048578", "0.47034705", "0.46961144", "0.46955058", "0.4687638", "0.4680304", "0.46793264", "0.46706587", "0.4668008", "0.46637815" ]
0.61895293
3
Returns the hours an employee has work within a mont
public int getHoursPerMonth(){ return this.hoursPerMonth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "public int getIntervalHours();", "public double getHoursWorked()\r\n\t{\r\n\treturn hoursWorked;\r\n\t}", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "public HourlyEmployee getEmployee() {\n\t\treturn employee;\n\t}", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public String getWorkHours() {\r\n\t\treturn workHours;\r\n\t}", "public NSArray hoursWorked() {\n\t\tNSArray hoursWorked;\n\t\tNSDictionary resolutionBindings = new NSDictionary(new Object[] {bugId()}, new Object[] { \"bugId\",});\n\n\t\tEOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed( \"hoursWorked\", \"BugsActivity\").fetchSpecificationWithQualifierBindings( resolutionBindings );\n\t\tfs.setRefreshesRefetchedObjects(true);\n\t\thoursWorked = (NSArray)editingContext().objectsWithFetchSpecification(fs);\n\t\t//System.out.println(\"\\tItem.hoursWorked() count - \" + hoursWorked.count());\n\n\t\treturn hoursWorked;\n\n }", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public String getHours();", "public int getHours() {\n return this.hours;\n }", "public double getPreferredConsecutiveHours();", "public static int getWorkingHrs(int DayHr , int workHrs){\n\tworkHrs=DayHr+workHrs;\n\treturn workHrs;\n}", "public Integer getWorkHoursForAVolunteerInAllGuilds(Volunteer volunteer) throws DALException {\n int hours = 0;\n\n List<Integer> hoursList = facadeDAO.getWorkHoursForAVolunteerInAllGuilds(volunteer);\n\n for (Integer workHours : hoursList) {\n hours += workHours;\n }\n\n return hours;\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public String getWorkinghours() {\n int seconds = workinghours % 60;\n int minutes = (workinghours / 60) % 60;\n int hours = (workinghours / 60) / 60;\n String secs;\n String mins;\n String hourse;\n\n if (seconds < 10) {\n secs = \":0\" + seconds;\n } else {\n secs = \":\" + seconds;\n }\n if (minutes < 10) {\n mins = \":0\" + minutes;\n } else {\n mins = \":\" + minutes;\n }\n if (hours < 10) {\n hourse = \"0\" + hours;\n } else {\n hourse = \"\" + hours;\n }\n return hourse + mins + secs;\n }", "public double getTotalHoursWorkedOnTimesheet() {\n\t\tdouble overallTotal = 0;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\toverallTotal += ts.getTotalHours();\n\t\t}\n\t\treturn overallTotal;\n\t}", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "@Override\n\tpublic HourRegistration getHours(Long person_id, LocalDate date) {\n\t\treturn null;\n \t}", "public int[] getHours() {\n return hours;\n }", "java.lang.String getBusinesshours();", "public double getHours(){\n return hours;\n }", "Integer getEndHour();", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public List<TimeInformation> getAllEmployeesTimeInformation() {\r\n\t\tList<TimeInformation> employeeTimeInformation = repository.findAll();\r\n\t\tif(employeeTimeInformation.size() > 0) {\r\n\t\t\treturn employeeTimeInformation;\r\n\t\t} else {\r\n\t\t\treturn new ArrayList<TimeInformation>();\r\n\t\t}\r\n\t}", "public int getHoursWorked() {\n\t\treturn this.hoursWrkd;\n\t}", "public int getTotalHours() {\r\n int totalHours = 0;\r\n // For each day of the week\r\n for (int d = 0; d < 5; d++) {\r\n int sectionStart = 0;\r\n // Find first hour that != 0\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n sectionStart = h;\r\n break;\r\n }\r\n }\r\n // Iterate in reverse to find the last hour that != 0\r\n for (int h = 12; h >= 0; h--) {\r\n if (weekData[d][h] != 0) {\r\n // Add the difference to the total\r\n totalHours += h-sectionStart+1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalHours;\r\n }", "public static int getWorkPerDay(int employeeStatus) {\n\t\t\t\t\tint workDone = 0;\n\t\t\t\t\t\n\t\t\t\t\tswitch (employeeStatus) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tworkDone = PART_TIME_HOUR;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tworkDone = FULL_DAY_HOUR;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn workDone;\n\t}", "public int getDelegatedHours(){\n\t\tint total = 0;\n\t\tfor(DelegatedWork work: this.delegatedWork){\n\t\t\ttotal += work.getHalfHoursWorked();\n\t\t}\n\t\treturn total;\n\t}", "public void work(int hours) {\n\t\twhile(age++ < RETIREMENT_AGE) {//Method calculates total salary earned\n\n\t\tfor(int i = 1; i<=hours; i++)\n\t\t\tearned += hourlyIncome;\n\t\t\n\t\tfor(int j = 1; j<=OVERTIME; j++)\n\t\t\tearned += hourlyIncome;\n\t\t}\n\t}", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "Integer getStartHour();", "public List<SwipeDetailResult> calEmpWorkHours(List<SwipeDetails> list) {\n\t\tint count = 0;\n\t\tMap<String, List<SwipeDetails>> map = splitListByDate(list);\n\t\tList<SwipeDetailResult> resultList = new ArrayList<SwipeDetailResult>();\n\t\tList<String> keyList = new ArrayList<>();\n\t\t// Map<String, List<SwipeDetails>> cloneMap = map;\n\t\tfor (Map.Entry<String, List<SwipeDetails>> entry : map.entrySet()) {\n\t\t\t// keyList.add(entry.getKey());\n\t\t\tif ((count < map.size() - 1) || map.size() == 1) {\n\n\t\t\t\tSwipeDetailResult reult = findStartEndTimeings(map, keyList);\n\t\t\t\t// cloneMap.remove(entry.getKey());\n\t\t\t\tcount++;\n\t\t\t\tresultList.add(reult);\n\t\t\t\t// break;\n\t\t\t}\n\t\t}\n\n\t\treturn resultList;\n\t}", "int getEmploymentDurationInMonths();", "public String displayHours() {\n String hrs=day+\" Hours: \" +getStartHours()+ \" to \"+get_endingHour();\n return hrs;\n }", "@Override\n public Long getRunningTimeInHours() {\n return null;\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(51)\r\n\tint actualCPUTime_Hours();", "Integer getHour();", "public static String[] generateWorkingHours(int openTime, int closeTime, int minuteStep) {\n\n if (openTime > closeTime)\n return null;\n\n int digitCount = Util.getDigitsCount(openTime);\n\n if (digitCount == 1 || digitCount == 2)\n openTime *= 100;\n if (digitCount == 3)\n openTime *= 10;\n\n digitCount = Util.getDigitsCount(closeTime);\n if (digitCount == 1 || digitCount == 2)\n closeTime *= 100;\n if (digitCount == 3)\n closeTime *= 10;\n\n\n List<String> list = new ArrayList<>();\n\n int counterHour = openTime / 100;\n int counterMin = openTime % 100;\n int stopHour = closeTime / 100;\n int stopMin = closeTime % 100;\n\n while (counterHour <= stopHour){\n\n if (counterMin >= 60){\n counterMin = 0;\n counterHour += 1;\n }\n\n list.add(String.format(\"%02d\", counterHour) + \":\" + String.format(\"%02d\", counterMin));\n\n if (counterHour >= stopHour && counterMin >= stopMin)\n break;\n\n counterMin += minuteStep;\n }\n\n return list.toArray(new String[list.size()]);\n }", "public void calculateEmpWage(int empHrs){\n \tint totalWorkingDays = 1;\n\tint totalWorkingHours = 0;\n\t/*\n\t*varable empAttendance tells if emp is present '0' or absent '1' on that day of the month\n\t*/\n\tint empAttendance;\n\t/*\n\t*variable monthlyWage stores the monthly wage of the employee\n\t*/\n int monthlyWage = 0;\n\t/*\n\t*variable daysPresent keeps count of the no of days present for a month\n\t*/\n\t int daysPresent = 0;\n\t /*\n\t *variable hoursWorked keeps count of the no of hours worked in a month\n\t */\n\t int hoursWorked = 0;\n\n\t while(true){\n\t Random rand = new Random();\n empAttendance = rand.nextInt(2);\n if(empAttendance == 0){\n daysPresent += 1;\n System.out.println(\"Day \"+totalWorkingDays+\": Present\");\n monthlyWage += CompanyEmpWage.getempRate() * empHrs;\n hoursWorked += empHrs;\n }\n else{\n System.out.println(\"Day \"+totalWorkingDays+\": Absent\");\n monthlyWage += 0;\n hoursWorked += 0;\n }\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays() || !(totalWorkingHours < CompanyEmpWage.getmaxHrs())){\n if(totalWorkingDays == CompanyEmpWage.getnumOfDays()){\n System.out.println(CompanyEmpWage.getnumOfDays()+\" days are over!\");\n break;\n }\n else{\n System.out.println(CompanyEmpWage.getmaxHrs()+\" hours reached!\");\n break;\n }\n }\n\ttotalWorkingDays++;\n \ttotalWorkingHours += empHrs;\n }\n System.out.println(\"Company: \"+CompanyEmpWage.getcompName()+\"\\nNo of days worked out of \"+CompanyEmpWage.getnumOfDays()+\" days: \"+daysPresent+\"\\nNo of hours worked out of \"+CompanyEmpWage.getmaxHrs()+\" hours: \"+hoursWorked+\"\\nSalary for the month: \"+monthlyWage);\n }", "public int getWorkHoursForAVolunteerInAGuild(String guildName, Volunteer volunteer) throws DALException {\n int hours = 0;\n\n List<Integer> hoursList = facadeDAO.getWorkHoursForAVolunteerInAGuild(guildName, volunteer);\n\n for (Integer workHours : hoursList) {\n hours += workHours;\n }\n\n return hours;\n }", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "public double getTotalHoursWorkedOnTimesheetRow(double mon, double tues, double wed, double thurs, double fri, \n\t\t\tdouble sat, double sun) {\n\t\treturn mon + tues + wed + thurs + fri + sat + sun;\n\t}", "@Override\n public double getDriverHours(final @NonNull Driver driver) {\n double hoursWorked = calculateTime(driver.getShiftStartTime());\n double maxHoursWorked = driver.getTruck().getDriverShiftSize();\n return Math.min(maxHoursWorked, hoursWorked);\n }", "public SoftHashMap<Integer,TimeEntry> getTimeEntries(SpentOn spentOn)\n throws RedmineException\n {\n return getTimeEntries(ID_ANY,ID_ANY,ownUserId,spentOn);\n }", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "public java.lang.Object getEstimatedHours() {\n return estimatedHours;\n }", "@Test\n public void computeFactor_WinterTimeHour() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-10-28 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-10-28 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-10-01 00:00:00\", \"2012-11-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.HOUR,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n if (DateTimeHandling.isDayLightSaving(startTimeUsage, endTimeUsage)) {\n // then day has 25 hours\n assertEquals(25, factor, 0);\n } else {\n // then day has 24 hours\n assertEquals(24, factor, 0);\n }\n }", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "public String getOperatingHours() {\n return mOperatingHours;\n }", "public static void main(String[] args) {\n\t\tint n = 6, headID = 2;\n\t\tint[] manager = new int[] { 2, 2, -1, 2, 2, 2 }, informTime = new int[] { 0, 0, 1, 0, 0, 0 };\n\t\tSystem.out.println(new TimeNeededToInformEmployees().numOfMinutes(n, headID, manager, informTime));\n\t}", "public double getTimeEntryHoursSum(SpentOn spentOn)\n throws RedmineException\n {\n double hoursSum = HOURS_UPDATE;\n\n synchronized(timeEntryHoursSumDateMap)\n {\n if (timeEntryHoursSumDateMap.containsKey(spentOn))\n {\n hoursSum = timeEntryHoursSumDateMap.get(spentOn);\n//Dprintf.dprintf(\"found for %s %f\",spentOn,hoursSum);\n }\n else\n {\n updateThread.updateTimeEntryHoursSum(spentOn);\n }\n }\n\n return hoursSum;\n// return getTimeEntryHoursSum(ID_ANY,ID_ANY,ownUserId,spentOn);\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public static WorkTimeEmployee valueOf(Employee employee, List<CustomWorkTime> workTimes) {\n WorkTimeEmployee workTimeEmployee = new WorkTimeEmployee();\n workTimeEmployee.name = employee.fullName();\n workTimeEmployee.workTimes = CustomWorkTime.reduceAndSortWorktimes(workTimes);\n return workTimeEmployee;\n }", "public double hoursScheduled(String start, String end){\n\n LocalDateTime startTime = LocalDateTime.parse(start, dateTimeFormatter);\n LocalDateTime endTime = LocalDateTime.parse(end, dateTimeFormatter);\n\n Duration duration = Duration.between(startTime, endTime);\n double toDouble = duration.toSeconds();\n\n return toDouble/3600;\n }", "public double getHoursPerWeek()\r\n {\r\n return hoursPerWeek;\r\n }", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "public int getMinHours() {\r\n return minHours;\r\n }", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public int getHour() \n { \n return hour; \n }", "public static long convertToHours(long time) {\n return time / 3600000;\n }", "@DISPID(58)\r\n\t// = 0x3a. The runtime will prefer the VTID if present\r\n\t@VTID(56)\r\n\tint actualRunTime_Hours();", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "public int getHour()\n {\n return hour;\n }", "public void workingHours(String monitoringText) {\r\n Path filePath = Paths.get(monitoringText);\r\n String[] lines = ReadFromFile.readFile(filePath.toAbsolutePath().toString());\r\n for (String line : lines) {\r\n String[] line1 = line.split(\"\\t\");\r\n if (line1[0].equals(registerNumber)) {\r\n workingHours.add(Integer.parseInt(line1[1]));\r\n workingHours.add(Integer.parseInt(line1[2]));\r\n workingHours.add(Integer.parseInt(line1[3]));\r\n workingHours.add(Integer.parseInt(line1[4]));\r\n }\r\n }\r\n }", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "public int getFinishHour() {\n return finishHour;\n }", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "public final native int getHours() /*-{\n return this.getHours();\n }-*/;", "public int getHour() { return this.hour; }", "public Map<String, Person> getEmployees() {\n return employees;\n }", "double calculateOvertime(double hoursWorked){\n\t\tif(hoursWorked<getNormalWorkweek()){\n\t\t\treturn(0.0);\n\t\t}else{\n\t\t\treturn((getHourlyRate()*2)*(hoursWorked-getNormalWorkweek()));\n\t\t}\n\t}", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public int getEndHour() {\n\treturn end.getHour();// s\n }", "@DISPID(68)\r\n\t// = 0x44. The runtime will prefer the VTID if present\r\n\t@VTID(66)\r\n\tint averageCPUTime_Hours();", "public HourlyEmployee( String first, String last, String ssn, double hourlyWage, double hoursWorked )\n\t{\n\t\tsuper( first, last, ssn);\n\t\tsetWage( hourlyWage );\n\t\tsetHours( hoursWorked ); \n\t}", "public String getAttractionHours() {\n return mAttractionHours;\n }", "public int getHour(){\n return hour;\n }", "public static int getHours(Date t, Date baseDate) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(baseDate);\n long sl = cal.getTimeInMillis();\n long el, delta;\n cal.setTime(t);\n el = cal.getTimeInMillis();\n delta = el - sl;\n int value = (int) (delta / (60 * 60 * 1000));\n\n return value;\n }", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int j=0; j<4;j++){\n this.hoursOfTheDay.add(String.format(\"%02d\",hours)+\":\"+ String.format(\"%02d\",minutes));\n minutes+=15;\n }\n hours++;\n minutes = 0;\n }\n }", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "@Override\n public String getSavingsHours() {\n\n final String savingsHrs = getElement(getDriver(), By.className(SAVINGS_HOURS), TINY_TIMEOUT)\n .getText();\n setLogString(\"Savings Hours:\" + savingsHrs, true, CustomLogLevel.HIGH);\n return savingsHrs.substring(savingsHrs.indexOf(\"(\") + 1, savingsHrs.indexOf(\"h\"));\n }", "public double getTimeEntryTodayHoursSum()\n throws RedmineException\n {\n return getTimeEntryHoursSum(today());\n }", "public BigDecimal getCheckAfterHours() {\n return checkAfterHours;\n }", "@Override\r\n\tpublic double calcularNominaEmpleado() {\n\t\treturn sueldoPorHora * horas;\r\n\t}", "@Test public void shouldGive120MinFor350cent() {\r\n // Two hours: $1.5+2.0\r\n assertEquals( 2 * 60 /*minutes*/ , rs.calculateTime(350) ); \r\n }", "public Employee getHRhead();", "public static void EmployeeHoursWorked() {\r\n\t\t\r\n\t\tJLabel e5 = new JLabel(\"Employee's Hours Worked:\");\r\n\t\te5.setFont(f);\r\n\t\tGUI1Panel.add(e5);\r\n\t\tGUI1Panel.add(employeeHoursWorked);\r\n\t\te5.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}", "private static void wageComputation() {\n Random random = new Random();\n while ( totalEmpHrs < MAX_HRS_IN_MONTHS && totalWorkingDays < numOfWorkingDays ) {\n int empCheck = (int) Math.floor(Math.random() * 10) % 3;\n switch (empCheck) {\n case IS_FULL_TIME:\n empHrs = 8;\n break;\n case IS_PART_TIME:\n empHrs = 4;\n break;\n default:\n }\n totalEmpHrs = totalEmpHrs + empHrs;\n }\n\n int empWage = totalEmpHrs * EMP_RATE_PER_HOUR;\n System.out.println(\"Employee Wage is : \" + empWage);\n }", "@External(readonly = true)\n\tpublic Map<String, String> get_yesterdays_games_excess(){\n\t\t\n\t\treturn this.get_games_excess(BigInteger.ONE.negate());\n\t}", "public int getStartHour() {\n\treturn start.getHour();\n }", "private String getHours() {\n StringBuilder hoursSB = new StringBuilder();\n\n if (hours > 0) {\n hoursSB.append(hours);\n } else {\n hoursSB.append(\"0\");\n }\n\n return hoursSB.toString();\n }" ]
[ "0.67903453", "0.66022515", "0.64048576", "0.63228256", "0.63053924", "0.625673", "0.6246377", "0.6220523", "0.62070894", "0.6185359", "0.6172548", "0.61245483", "0.6057488", "0.6057488", "0.6028651", "0.60116816", "0.6007323", "0.598498", "0.5970593", "0.5966644", "0.59320873", "0.59308344", "0.5897364", "0.5881347", "0.58620185", "0.5859411", "0.5855798", "0.5852789", "0.58510756", "0.58252084", "0.5781232", "0.5731445", "0.57191205", "0.5701621", "0.569003", "0.5665416", "0.5648699", "0.56252337", "0.56130606", "0.56101817", "0.5593575", "0.55749834", "0.5559754", "0.5542933", "0.554166", "0.5515758", "0.5498001", "0.5476656", "0.5468775", "0.54630494", "0.5462518", "0.5448965", "0.5385541", "0.53729767", "0.53729767", "0.5364352", "0.5358442", "0.53486437", "0.53357595", "0.53326917", "0.5329483", "0.5323035", "0.53115946", "0.5299878", "0.5299226", "0.52861845", "0.52842486", "0.5280544", "0.5278868", "0.52780664", "0.5276", "0.52638835", "0.5263757", "0.5250857", "0.5244222", "0.5239903", "0.52261466", "0.52022016", "0.5195576", "0.51915044", "0.5174305", "0.5174085", "0.5171927", "0.51601154", "0.5151003", "0.5146741", "0.5146632", "0.51433337", "0.5139705", "0.51356155", "0.5132037", "0.512259", "0.5116223", "0.5110048", "0.5099407", "0.50881875", "0.5085205", "0.5084539", "0.5076967", "0.5073739" ]
0.5848776
29
Creates new form FrmPuntoDeVenta
public FrmPuntoDeVenta(Empleado empleado) throws ParseException { this.date1 = dateFormat.parse(this.date.getYear() + "-" + this.date.getMonth() + "-" + this.date.getDay()); this.jframe = this; this.empleado = empleado; initComponents(); this.cargarBanner(); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public frm_tutor_subida_prueba() {\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public CrearPedidos() {\n initComponents();\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public FrmNuevoProveedor() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\n\tpublic String saveEntity(@Valid ENTITY tipoConsumo, BindingResult result, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\t\n\t\t\tabm.guardar(tipoConsumo);\n\t\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten se realiz&oacute correctamente.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten no pudo realizarse.\");\n\t\t}\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn \"redirect:list\";\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public CrearQuedadaVista() {\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public FrmInsertar() {\n initComponents();\n }", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public FrmIntProveedor() {\n initComponents();\n muestraProveedor();\n\n }", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public FrmNuevoEmpleado() {\n initComponents();\n }", "public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "private void insertar() {\n try {\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.insertar(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 Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "public FrmDepartamentos() {\n initComponents();\n setLocationRelativeTo(this);\n this.jTexCodigo.requestFocus();\n }", "public FormInserir() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "Compuesta createCompuesta();", "@POST\n\t@Consumes({MediaType.APPLICATION_FORM_URLENCODED, MediaType.APPLICATION_JSON} )\n\t@Produces(MediaType.TEXT_HTML)\n\tpublic void createPunto(Punto punto,\n\t\t\t@Context HttpServletResponse servletResponse) throws IOException {\n\t\tpunto.setId(AutoIncremental.getAutoIncremental());\n\t\tpuntoService.agregarPunto(punto);\n\t\tservletResponse.sendRedirect(\"./rutas/\");\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}", "public FormularioCliente() {\n initComponents();\n }", "public ControladorPrueba() {\r\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public FrmServicos() {\n initComponents();\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 etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\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 .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\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 .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void guardarVenta(){\n //a partir de la propiedad 'usuario' del ManagedBean 'LoginController' recuperamos\n //el codigo del vendedor y se lo seteamos al objeto Vendedor local\n this.vendedor.setCodVendedor(loginController.getUsuario().getCodVendedor().getCodVendedor());\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n DetalleFacturaDao detfacturaDao = new DetalleFacturaDaoImp();\n //Seteando datos a la factura\n factura.setCodVendedor(vendedor);\n factura.setCodCliente(cliente);\n factura.setFechaRegistro(new Date());\n \n //Seteamos a cada Item del Detalle la factura\n for(int i=0;i<listDetalle.size();i++){\n listDetalle.get(i).setCodFactura(factura);\n }\n \n //Seteamos a la Factura la Lista de Detalel\n factura.setDetallefacturaList(listDetalle);\n \n //Guardamos la factura y su detalle\n facturaDao.guardarFactura(factura);\n //Guardamos la factura y el cliente en objetos Temporales\n //para poder luego usarlos en la impresion de la factura\n facturaTMP = factura;\n clienteTMP = cliente;\n \n cancelarFactura(); //para limpiar las variables\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto: \", \"Factura Registrada\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }catch(Exception e){\n e.printStackTrace();\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error: \", \"Factura no pudo ser Registrada\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n }", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FrmAbmAfiliado() {\n initComponents();\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public void makeFactura() {\n Usuario userCurrent = (Usuario) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"current\");\n if (userCurrent != null) {\n Calendar c = Calendar.getInstance();\n factura.setIdfactura(facturaFacade.findAll().size() + 1);\n factura.setFechaVenta(c.getTime());\n factura.setUsuarioIdusuario(userCurrent);\n factura.setHabilitada(true);\n try {\n facturaFacade.create(factura);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Factura creada exitosamente\", null));\n factura = new Factura();\n articulosFacturas = new ArrayList<>();\n total = 0;\n } catch (Exception e) {\n System.err.println(\"Error en la creacion de la factura: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }\n getAllFacturas();\n }", "@RequestMapping(\"enviar\")\n\tpublic String abrirForm() {\n\t\treturn \"contato/form\";\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public ContactoFormBean() {\r\n setContexto();\r\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public FrmFactura() {\n initComponents();\n }", "public FrmParticipantes() {\n initComponents();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "public VistaPedido() {\n initComponents();\n }", "public de_gestionar_contrato_añadir() {\n initComponents();\n lbl_error_nombre_cliente.setVisible(false);\n lbl_error_numero_contrato.setVisible(false);\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n\n // detectar cambio en jdateChoser (fecha de inicio en agregar contrato)\n fecha_inicio_contrato.getDateEditor().addPropertyChangeListener(\n new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent e) {\n if (\"date\".equals(e.getPropertyName())) {\n System.out.println(e.getPropertyName()\n + \": \" + (Date) e.getNewValue());\n if(fecha_inicio_contrato.getDate()!=null){\n lbl_fecha_expira_contrato.setText(toma_fecha(fecha_inicio_contrato).substring(0,6)+String.valueOf(Integer.parseInt(toma_fecha(fecha_inicio_contrato).substring(6))+1));\n lbl.setVisible(true);\n lbl_fecha_expira_contrato.setVisible(true);\n }\n }else{\n lbl_fecha_expira_contrato.setText(\"\");\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n }\n }\n });\n this.add(fecha_inicio_contrato);\n \n deshabilitarPegar();\n }", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }", "public CrearCuenta(UsuarioVO usu) {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"Constructor CrearCuenta\");\r\n\t\tinitialize();\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tusuario = usu;\r\n\t}", "Motivo create(Motivo motivo);", "public void add(Integer magazynId) {\r\n// FacesContext context = FacesContext.getCurrentInstance();\r\n// if (ilosc.equals(\"\") || ilosc.equals(null)) {\r\n// context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, \"Błąd\", \"Pole ilość nie może być puste\"));\r\n//\r\n// } else if (marka.equals(\"\")) {\r\n// context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, \"Błąd\", \"Pole marka nie może być puste\"));\r\n// } else if (model.equals(\"\") || model.equals(null)) {\r\n// context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, \"Błąd\", \"Pole marka nie może być puste\"));\r\n// } else if (typ.equals(\"\") || typ.equals(null)) {\r\n// context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, \"Błąd\", \"Pole typ nie może być puste\"));\r\n// } else {\r\n // produktTemp = new Produkt();\r\n \r\n// produktTemp.setTyp(typ);\r\n\r\n produktTemp.setStan(Boolean.TRUE);\r\n produktTemp.setAktualnailosc(produktTemp.getIlosc());\r\n Magazyn magazynTemp = magazynFacade.findMagazynByMid(magazynId);\r\n produktTemp.setMagazyn(magazynTemp);\r\n\r\n //produktTemp.setMagazyn(magazyn);\r\n// produktTemp.setModel(model);\r\n// produktTemp.setMarka(marka);\r\n// produktTemp.setIlosc(Integer.valueOf(ilosc));\r\n// produktTemp.setAktualnailosc(Integer.valueOf(ilosc));\r\n//\r\n// if (!imei.equals(null) || imei.equals(\"\")) {\r\n// produktTemp.setImei(imei);\r\n// }\r\n produktListTemp.add(produktTemp);\r\n// typ = \"\";\r\n// //magazyn = \"\";\r\n// model = \"\";\r\n// imei = \"\";\r\n// marka = \"\";\r\n// ilosc = \"\";\r\n\r\n produktTemp = new Produkt();\r\n// }\r\n\r\n }", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "public Vehiculo() {\r\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public TelaRegistroVendas() {\n initComponents();\n }", "public VentanaMiPerfil() {\r\n\t\tsetTitle(\"PERFIL\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 450, 300);\r\n\t\t\r\n\t\t//Creamos las etiquetas para los textfied\r\n\t\tJLabel EtiquetaNombre = new JLabel(\"NOMBRE\");\r\n\t\tEtiquetaNombre.setFont(new Font(\"Lucida Console\", Font.BOLD, 10));\r\n\t\t//Rellenamos la textfield nombre\r\n\t\tcajaNombre = new JTextField();\r\n\t\tcajaNombre.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcajaNombre.setText(\"FRANCISCO JOS\\u00C9\");\r\n\t\tcajaNombre.setColumns(15);\r\n\t\t\r\n\t\t//Etiqueta apellido\r\n\t\tJLabel EtiquetaApellidos = new JLabel(\"APELLIDOS\");\r\n\t\tEtiquetaApellidos.setFont(new Font(\"Lucida Console\", Font.BOLD, 10));\r\n\t\t//Relleno de apellidos\r\n\t\tcajaApellidos = new JTextField();\r\n\t\tcajaApellidos.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcajaApellidos.setText(\"ESCRIBANO ZACAR\\u00C9S\");\r\n\t\tcajaApellidos.setColumns(10);\r\n\t\t\r\n\t\t//Etiqueta edad\r\n\t\tJLabel EtiquetaEdad = new JLabel(\"EDAD\");\r\n\t\tEtiquetaEdad.setFont(new Font(\"Lucida Console\", Font.BOLD, 10));\r\n\t\t//Relleno textfield edad\r\n\t\tcajaEdad = new JTextField();\r\n\t\tcajaEdad.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcajaEdad.setText(\"33\");\r\n\t\tcajaEdad.setColumns(10);\r\n\t\t\r\n\t\t//Etiqueta Mail\r\n\t\tJLabel EtiquetaMail = new JLabel(\"CORREO ELECTR\\u00D3NICO\");\r\n\t\tEtiquetaMail.setFont(new Font(\"Lucida Console\", Font.BOLD, 10));\r\n\t\t//Relleno textfield mail\r\n\t\tcajaEmail = new JTextField();\r\n\t\tcajaEmail.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcajaEmail.setText(\"[email protected]\");\r\n\t\tcajaEmail.setColumns(10);\r\n\t\t\r\n\t\t//Creación de la caja mostrada final.\r\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addGap(22)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(EtiquetaEdad)\r\n\t\t\t\t\t\t.addComponent(EtiquetaApellidos)\r\n\t\t\t\t\t\t.addComponent(EtiquetaNombre, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(cajaEmail, GroupLayout.PREFERRED_SIZE, 271, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t\t\t\t\t.addComponent(cajaNombre, Alignment.LEADING, 0, 0, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addComponent(EtiquetaMail, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addComponent(cajaApellidos, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE))\r\n\t\t\t\t\t\t\t.addGap(123))\r\n\t\t\t\t\t\t.addComponent(cajaEdad, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addGap(141))\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addGap(23)\r\n\t\t\t\t\t.addComponent(EtiquetaNombre)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t.addComponent(cajaNombre, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addGap(18)\r\n\t\t\t\t\t.addComponent(EtiquetaApellidos)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t.addComponent(cajaApellidos, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(EtiquetaEdad)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(cajaEdad, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(EtiquetaMail)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(cajaEmail, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addContainerGap(41, Short.MAX_VALUE))\r\n\t\t);\r\n\t\tgetContentPane().setLayout(groupLayout);\r\n\t}", "public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "@Override\r\n\tpublic void createFournisseur(Fournisseur fournisseur) {\n\t\tthis.sessionFactory.getCurrentSession().save(fournisseur);\r\n\t}", "public void crear(Tarea t) {\n t.saveIt();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", 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\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\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\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public FormCadastroAutomovel() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n RazonSocialjTextField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n DireccionjTextField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n EmailjTextField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n CodPostjTextField = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n TelefonojTextField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n CUITjTextField = new javax.swing.JTextField();\n CancelarjButton = new javax.swing.JButton();\n GuardarjButton = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n ProvinciasjComboBox = new javax.swing.JComboBox<>();\n jLabel10 = new javax.swing.JLabel();\n LocalidadesjComboBox = new javax.swing.JComboBox<>();\n NombreFantasiajTextField = new javax.swing.JTextField();\n ProveedorIDjTextField = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar nuevo proveedor - OSG\");\n\n jLabel1.setText(\"Razon social\");\n\n jLabel2.setText(\"Dirección\");\n\n jLabel3.setText(\"Email\");\n\n jLabel4.setText(\"Código postal\");\n\n CodPostjTextField.setEditable(false);\n CodPostjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n CodPostjTextFieldKeyTyped(evt);\n }\n });\n\n jLabel5.setText(\"Telefono\");\n\n TelefonojTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TelefonojTextFieldKeyTyped(evt);\n }\n });\n\n jLabel6.setText(\"CUIT\");\n\n CUITjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n CUITjTextFieldKeyTyped(evt);\n }\n });\n\n CancelarjButton.setText(\"Cancelar\");\n CancelarjButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CancelarjButtonActionPerformed(evt);\n }\n });\n\n GuardarjButton.setText(\"Guardar\");\n GuardarjButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GuardarjButtonActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Nombre de fantasia\");\n\n jLabel7.setText(\"Provincia\");\n\n ProvinciasjComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n ProvinciasjComboBoxItemStateChanged(evt);\n }\n });\n\n jLabel10.setText(\"Localidad\");\n\n LocalidadesjComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n LocalidadesjComboBoxItemStateChanged(evt);\n }\n });\n\n ProveedorIDjTextField.setVisible(false);\n ProveedorIDjTextField.setEditable(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(TelefonojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(EmailjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(CodPostjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(ProvinciasjComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(LocalidadesjComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CUITjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(RazonSocialjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)\n .addComponent(NombreFantasiajTextField)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(DireccionjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(ProveedorIDjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(GuardarjButton)\n .addGap(18, 18, 18)\n .addComponent(CancelarjButton)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(CUITjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(RazonSocialjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(NombreFantasiajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(ProvinciasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(LocalidadesjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(CodPostjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(DireccionjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(EmailjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(TelefonojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CancelarjButton)\n .addComponent(GuardarjButton)\n .addComponent(ProveedorIDjTextField, 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 pack();\n }", "@Override\n public void onClick(View v) {\n etProducto.setError(null);\n etCantidad.setError(null);\n etDescripcion.setError(null);\n String producto = etProducto.getText().toString(),\n CantidadComoCadena = etCantidad.getText().toString(),\n descripcion = etDescripcion.getText().toString();\n if (\"\".equals(producto)) {\n etProducto.setError(\"Escribe el producto a comprar\");\n etProducto.requestFocus();\n return;\n }\n if (\"\".equals(CantidadComoCadena)) {\n etCantidad.setError(\"Escribe la cantidad de la venta\");\n etCantidad.requestFocus();\n return;\n }\n if (\"\".equals(descripcion)) {\n etDescripcion.setError(\"Escribe la descripción de la venta\");\n etDescripcion.requestFocus();\n return;\n }\n\n // Ver si es un entero\n int cantidad;\n try {\n cantidad = Integer.parseInt(etCantidad.getText().toString());\n } catch (NumberFormatException e) {\n etCantidad.setError(\"Escribe la cantidad\");\n etCantidad.requestFocus();\n return;\n }\n // Ya pasó la validación\n Venta nuevaVenta = new Venta(producto,cantidad,descripcion);\n long id = ventasController.nuevaVenta(nuevaVenta);\n if (id == -1) {\n // De alguna manera ocurrió un error\n Toast.makeText(AgregarMascotaActivity.this, \"Error al guardar. Intenta de nuevo\", Toast.LENGTH_SHORT).show();\n } else {\n // Terminar\n finish();\n }\n }", "public FRMCadastrarFornecedor() {\n initComponents();\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public FrmCadastro() {\n initComponents();\n\n }", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }", "@RequestMapping(value = \"/creerMouvementFini\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody String creerMouvementFini(@RequestBody MouvementFiniValue pMouvementFiniValue) {\r\n\t\treturn this.mouvementFiniService.createMouvementFini(pMouvementFiniValue);\r\n\t}", "public Form_reporte_comuna_y_tipo(Controlador cont) {\n initComponents();\n this.controlador = cont;\n cargarSelect();\n\n }", "public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}", "public VentanaVentaTicket() {\n \n initComponents();\n VentanaVentaTicket.textoArea.append(\"************SPICY FACTORY***************\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~Detalle de la Venta ~~~~~~~~~~~~\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\");\n \n }", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }", "@RequestMapping(value = \"/registrarVereda\", method = RequestMethod.POST)\n\tpublic String registrarVereda(@Valid @RequestBody Vereda p) {\n\t\tveredaRepository.save(p);\t\t\n\t\treturn \"Guardado\";\n\t}", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "protected RespostaFormularioPreenchido() {\n // for ORM\n }" ]
[ "0.6752772", "0.67449856", "0.6620373", "0.6575253", "0.65632796", "0.6557394", "0.6507713", "0.642626", "0.641323", "0.6399268", "0.6396076", "0.63932985", "0.6393033", "0.639273", "0.63752484", "0.63578135", "0.6353758", "0.63522184", "0.63144803", "0.6294415", "0.62761825", "0.6269765", "0.62483346", "0.6226143", "0.62180126", "0.6208551", "0.6208423", "0.6198518", "0.6168539", "0.6166357", "0.61534286", "0.6127166", "0.6114751", "0.60986096", "0.6096579", "0.6083944", "0.60700166", "0.60548675", "0.60342616", "0.60305583", "0.60214645", "0.6018084", "0.6001241", "0.59955823", "0.59896696", "0.59841615", "0.59645414", "0.59640336", "0.59488994", "0.5942541", "0.59369886", "0.5933192", "0.59085643", "0.5884653", "0.58811766", "0.58649474", "0.5862655", "0.5851449", "0.5846877", "0.58454496", "0.58442456", "0.584415", "0.5838776", "0.5828378", "0.5827369", "0.58230233", "0.581845", "0.5818077", "0.5816171", "0.58015025", "0.5800962", "0.5794766", "0.5792263", "0.5785987", "0.5784858", "0.5781324", "0.57765406", "0.5775675", "0.5775179", "0.57680905", "0.5765613", "0.57581097", "0.57533014", "0.5748811", "0.5747505", "0.5745308", "0.57427216", "0.5741406", "0.57385325", "0.5732237", "0.57257485", "0.57226175", "0.57217556", "0.57207483", "0.57194823", "0.5717", "0.57163066", "0.5714267", "0.57106954", "0.57063323", "0.5702613" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lblBanner = new javax.swing.JLabel(); lblEncabezado = new javax.swing.JLabel(); scrollTabla = new javax.swing.JScrollPane(); tblProductosVenta = new javax.swing.JTable(); lblPanda = new javax.swing.JLabel(); lblJMJR = new javax.swing.JLabel(); lblTitulo1 = new javax.swing.JLabel(); txtBascula = new javax.swing.JTextField(); txtCodBarras = new javax.swing.JTextField(); lblTotal = new javax.swing.JLabel(); txtTotal = new javax.swing.JTextField(); txtCantidad = new javax.swing.JTextField(); btnCobrar = new javax.swing.JButton(); lblMenuSupervisor = new javax.swing.JLabel(); lblSoporte = new javax.swing.JLabel(); lblCodBarras = new javax.swing.JLabel(); lblCantidad = new javax.swing.JLabel(); lblBascula = new javax.swing.JLabel(); lblFondo = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Punto de Venta \"Abarrotes el Panda\""); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); lblBanner.setBackground(new java.awt.Color(255, 255, 255)); lblBanner.setFont(new java.awt.Font("Trebuchet MS", 1, 14)); // NOI18N lblBanner.setForeground(new java.awt.Color(0, 51, 255)); lblBanner.setText("Hola"); getContentPane().add(lblBanner, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 1000, 30)); lblEncabezado.setBackground(new java.awt.Color(255, 255, 255)); lblEncabezado.setFont(new java.awt.Font("Trebuchet MS", 1, 14)); // NOI18N lblEncabezado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/banner.png"))); // NOI18N getContentPane().add(lblEncabezado, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1020, 30)); tblProductosVenta.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Codigo de Barras", "Cantidad", "Descripción", "Precio", "Total" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.Float.class, java.lang.String.class, java.lang.Float.class, java.lang.Float.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); scrollTabla.setViewportView(tblProductosVenta); getContentPane().add(scrollTabla, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 720, 510)); lblPanda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/Logo.png"))); // NOI18N getContentPane().add(lblPanda, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 50, -1, -1)); lblJMJR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/panda.jpg"))); // NOI18N getContentPane().add(lblJMJR, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 170, -1, -1)); lblTitulo1.setFont(new java.awt.Font("Gigi", 3, 30)); // NOI18N lblTitulo1.setForeground(new java.awt.Color(255, 255, 255)); lblTitulo1.setText("Abarrotes el Panda"); getContentPane().add(lblTitulo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 280, 300, 30)); txtBascula.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtBascula.setForeground(new java.awt.Color(0, 51, 255)); txtBascula.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtBascula.setText("1"); txtBascula.setBorder(javax.swing.BorderFactory.createCompoundBorder()); txtBascula.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtBasculaActionPerformed(evt); } }); txtBascula.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { txtBasculaKeyTyped(evt); } }); getContentPane().add(txtBascula, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 550, 140, 40)); txtCodBarras.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtCodBarras.setForeground(new java.awt.Color(0, 51, 255)); txtCodBarras.setHorizontalAlignment(javax.swing.JTextField.LEFT); txtCodBarras.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtCodBarrasKeyReleased(evt); } }); getContentPane().add(txtCodBarras, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 550, 260, 40)); lblTotal.setFont(new java.awt.Font("Impact", 0, 36)); // NOI18N lblTotal.setForeground(new java.awt.Color(255, 255, 255)); lblTotal.setText("Total:"); getContentPane().add(lblTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 340, -1, -1)); txtTotal.setEditable(false); txtTotal.setFont(new java.awt.Font("Sylfaen", 1, 36)); // NOI18N txtTotal.setForeground(new java.awt.Color(0, 51, 255)); txtTotal.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtTotal.setText("0.00"); getContentPane().add(txtTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 390, 220, 70)); txtCantidad.setEditable(false); txtCantidad.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtCantidad.setForeground(new java.awt.Color(0, 51, 255)); txtCantidad.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtCantidad.setText("0"); getContentPane().add(txtCantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 550, 160, 40)); btnCobrar.setText("F1-COBRAR"); btnCobrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCobrarActionPerformed(evt); } }); getContentPane().add(btnCobrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 480, 100, 40)); lblMenuSupervisor.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N lblMenuSupervisor.setForeground(new java.awt.Color(204, 0, 0)); lblMenuSupervisor.setText("F3- Menu Administrador."); getContentPane().add(lblMenuSupervisor, new org.netbeans.lib.awtextra.AbsoluteConstraints(800, 570, -1, -1)); lblSoporte.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N lblSoporte.setForeground(new java.awt.Color(204, 0, 0)); lblSoporte.setText("F2- Ayuda o Soporte"); getContentPane().add(lblSoporte, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 540, -1, -1)); lblCodBarras.setText("Codigo de Barras"); getContentPane().add(lblCodBarras, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 590, -1, -1)); lblCantidad.setText("Cantidad"); getContentPane().add(lblCantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 590, -1, -1)); lblBascula.setText("Bascula"); getContentPane().add(lblBascula, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 590, -1, -1)); lblFondo.setFont(new java.awt.Font("Sylfaen", 3, 36)); // NOI18N lblFondo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/FondoPV.png"))); // NOI18N getContentPane().add(lblFondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1010, 620)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
Producto producto; producto = this.controlProductos.obtenerProductoCodBarras(codBarras); producto.setStock(producto.getStock() 1); this.controlProductos.actualizarStock(producto.getId(), producto);
private void actualizarStock(String codBarras) throws SQLException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizarStock(Long idProducto, Long cantidad) {\n\t\t\n\t}", "public void reestablecerFullStock() { \n bodega Bodega = new bodega();\n Bodega.setProductosList(this.bodegaDefault());\n }", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "private BigDecimal getStock(Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 48: */ {\r\n/* 49:74 */ BigDecimal stock = BigDecimal.ZERO;\r\n/* 50:75 */ for (InventarioProducto inventarioProducto : this.servicioInventarioProducto.obtenerMovimientos(producto.getIdOrganizacion(), producto, bodega, fechaDesde, fechaHasta)) {\r\n/* 51:77 */ if (inventarioProducto.getOperacion() == 1) {\r\n/* 52:78 */ stock = stock.add(inventarioProducto.getCantidad());\r\n/* 53:79 */ } else if (inventarioProducto.getOperacion() == -1) {\r\n/* 54:80 */ stock = stock.subtract(inventarioProducto.getCantidad());\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57:83 */ return stock;\r\n/* 58: */ }", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "@Override\r\n\tpublic void actualizarStockProductoSucursal(BProducto bProducto,\r\n\t\t\tBSucursal bSucursal, int cantidad,Connection conn, BUsuario usuario) throws SQLException {\n\t\tPreparedStatement pstm;\r\n\t\t\r\n\t\tStringBuffer sql = new StringBuffer();\r\n\t\tsql.append(\"UPDATE fidelizacion.producto_sucursal ps \\n\");\r\n\t\tsql.append(\"SET ps.stock = (nvl(ps.stock,0) - ?), \\n\");\r\n\t\tsql.append(\" ps.usuario_modificacion = ? , \\n\");\r\n\t\tsql.append(\" ps.fecha_modificacion = SYSDATE \\n\");\r\n\t\tsql.append(\"WHERE ps.sucursal_id = ? \\n\");\r\n\t\tsql.append(\"AND ps.producto_id = ?\");\r\n\t\t\r\n\t\tpstm = conn.prepareStatement(sql.toString());\r\n\t\tpstm.setInt(1,cantidad);\r\n\t\tpstm.setString(2,usuario.getLogin());\r\n\t\tpstm.setInt(3,bSucursal.getCodigo());\r\n\t\tpstm.setInt(4,bProducto.getCodigo());\r\n\t\t\r\n\t\tpstm.executeUpdate();\r\n\t\r\n\t\tpstm.close();\r\n\t}", "public Producto actualizar(Producto producto) throws IWDaoException;", "public void setStock(Integer stock) {\n this.stock = stock;\n }", "public void mudaQuantidadeAprovada(PedidoProduto pedidoProduto) {\n String sql = \"UPDATE pedidosprodutos SET QuantidadeAprovada=? WHERE Id=?\";\n try {\n conn = connFac.getConexao();\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1, pedidoProduto.getQuantidadeAprovada());\n stmt.setInt(2, pedidoProduto.getId());\n stmt.execute();\n connFac.closeAll(rs, stmt, st, conn);\n } catch(SQLException error) {\n Methods.getLogger().error(\"PedidoDAO.mudaQuantidadeAprovada: \" + error);\n throw new RuntimeException(\"PedidoDAO.mudaQuantidadeAprovada: \" + error);\n }\n }", "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "private void setStock(int stock) throws StockNegativoException {\n if (stock < 0)\n throw new StockNegativoException(\"El stock no puede ser negativo.\");\n this.stock = stock;\n }", "public void setProducto(com.monitor.webService.VoProducto producto) {\r\n this.producto = producto;\r\n }", "public void salvarProdutos(Produto produto){\n }", "public void setProducto(Long producto) {\n this.producto.set(producto);\n }", "public void Entrada(int cantidad) {\n if(cantidad*-1>this.stock) {\n System.out.println(\"La cantidad a retirar es mayor que la que hay en stock, no es posible hacer la operacion.\");\n }else {\n this.stock+=cantidad;\n }\n }", "public void atualizaEstoque(int quantidade, String produto) {\r\n\r\n int idProduto = 0;\r\n int novoEstoque = 0;\r\n\r\n //Verificar qual o produto selecionado\r\n String sql = \"SELECT idProduto FROM produtos WHERE nomeProduto = ? \";\r\n\r\n try {\r\n\r\n PreparedStatement pstmt = this.conexao.prepareStatement(sql);\r\n pstmt.setString(1, produto);\r\n ResultSet rs = pstmt.executeQuery();\r\n\r\n while (rs.next()) {\r\n idProduto = rs.getInt(\"idProduto\");\r\n }\r\n\r\n } catch (Exception e) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Erro ao buscar produto!\" + e.getMessage());\r\n\r\n }\r\n\r\n //Pegar o estoque desse protudo\r\n try {\r\n sql = \"SELECT quantidadeEstoque FROM estoque WHERE idEstoque = ?\";\r\n\r\n PreparedStatement pstmt2 = this.conexao.prepareStatement(sql);\r\n pstmt2.setInt(1, idProduto);\r\n ResultSet rs = pstmt2.executeQuery();\r\n\r\n while (rs.next()) {\r\n novoEstoque = (rs.getInt(\"quantidadeEstoque\") - quantidade);\r\n }\r\n\r\n pstmt2.execute();\r\n pstmt2.close();\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao buscar estoque!\" + e.getMessage());\r\n }\r\n\r\n try {\r\n\r\n //Descontar a quantidade comprada do estoque\r\n sql = \"UPDATE estoque SET quantidadeEstoque = ? WHERE idEstoque = ?\";\r\n\r\n PreparedStatement pstmt3 = this.conexao.prepareStatement(sql);\r\n pstmt3.setInt(1, novoEstoque);\r\n pstmt3.setInt(2, idProduto);\r\n\r\n pstmt3.execute();\r\n\r\n pstmt3.close();\r\n\r\n } catch (Exception e) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Falha ao atualizar estoque!\" + e.getMessage());\r\n\r\n }\r\n }", "public void setProducto (String nombreProducto, int stockProducto, double precioProducto) {\r\n\t\tthis.nombre = nombreProducto;\r\n\t\tthis.stock = stockProducto;\r\n\t\tthis.precio = precioProducto;\r\n\t}", "public int actualizar(Producto producto) throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"UPDATE conftbc_producto SET nombre_producto=?, imagen=?, idcategoria=?, idmarca=?, idmodelo=? WHERE idmodelo = ?\";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tps.setString(1,producto.getNombre());\n\t\t\tps.setString(2,producto.getImagen());\n\t\t\tps.setInt(3,producto.getCategoria().getIdcategoria());\n\t\t\tps.setInt(4, producto.getMarca().getIdmarca());\n\t\t\tps.setInt(5, producto.getModelo().getIdmodelo());\n\t\t\tps.setInt(6, producto.getModelo().getIdmodelo());// como el producto se originacuando se crea el modelo lo actualizamos por el modelo\n\t\t\tint rpta = ps.executeUpdate();\t\t\n\t\t\tthis.objCnx.confirmarDB();\n\t\t\treturn rpta;\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally {\t\t\t\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "@Test\n\tpublic void testUpdateStock() {\n\t\tStock stock = null;\n\t\tString productId = \"HY-1004\";\n\t\tTestFactory tf = new TestFactory();\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tif (!tf.createStock(em, productId)) {\n\t\t\t\tfail(\"Unable to create \"); // doubt\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tem.getTransaction().begin();\n\t\t\t// Find Stock for update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\t// Update Business Partner\n\t\t\tstock.setQuantity(BigDecimal.valueOf(10));\n\t\t\tem.persist(stock);\n\t\t\tem.getTransaction().commit();\n\t\t\t// Find Business Partner after update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\tassertEquals(\n\t\t\t\t\t\"Update Stock: Stock attribute quantity not updated in the database\",\n\t\t\t\t\tBigDecimal.valueOf(10), stock.getQuantity());\n\t\t\ttf.deleteStock(em, productId);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\n\t}", "public void setCodProd(IProduto codigo);", "public void setStock(int stock) {\n\t\tthis.stock = stock;\n\t}", "public void setProducto(Producto producto) {\n\t\tthis.producto = producto;\n\t}", "public void updateProduct() throws ApplicationException {\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n Menu updateProduct = (Menu) session.get(Menu.class, menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n updateProduct.setName(menuFxObjectPropertyEdit.getValue().getName());\n updateProduct.setPrice(menuFxObjectPropertyEdit.getValue().getPrice());\n\n session.update(updateProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "public boolean actualizarStock(Pieza p, int cantidad) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tXPathQueryService consulta = (XPathQueryService)\n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update replace /piezas/pieza[@codigo='\"+ p.getCodigo()+\n\t\t\t\t\t\"']/stock with <stock>\" + \n\t\t\t\t\t(p.getStock()-cantidad) +\"</stock>\");\n\t\t\tresultado = true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public producto_interfaz(Producto producto) {\n initComponents();\n jSpinner1.setEnabled(false);\n this.producto=producto;\n titulo.setText(producto.getNombre());\n peso.setText(Double.toString(producto.getPeso()));\n precio.setText(Double.toString(producto.getPrecio()));\n \n }", "@Override\n @Transactional\n public Producto save(Producto producto) {\n Presentacion presentacion = presentacionDao.findById(producto.getPresentacion().getId());\n producto.setPresentacion(presentacion);\n return productoDao.save(producto);\n }", "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "public void atualizar(BeanProdutosJsp produto) {\n\n\t\ttry {\n\t\t\tString sql = \"update produtos set nome = ?, quantidade = ?, valor = ?, categoria_id = ? where id = \" + produto.getId();\n\t\t\t\n\t\t\tPreparedStatement preparedStatement;\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setString(1, produto.getNome());\n\t\t\tpreparedStatement.setDouble(2, produto.getQuantidade());\n\t\t\tpreparedStatement.setDouble(3, produto.getValor());\n\t\t\tpreparedStatement.setLong(4, produto.getCategoria_id());\n\n\t\t\tpreparedStatement.executeUpdate();\n\t\t\tconnection.commit();\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\ttry {\n\n\t\t\t\tconnection.rollback();\n\n\t\t\t} catch (SQLException e1) {\n\n\t\t\t\te1.printStackTrace();\n\n\t\t\t}\n\t\t}\n\t}", "@Quando(\"^Alterar a quantidade de produtos para compra acima do aceitavel no carrinho$\")\n\tpublic void alterar_a_quantidade_de_produtos_para_compra_acima_do_aceitavel_no_carrinho() throws Throwable {\n\t\tString txt_Quantidade = pegaMassa.QuantidadeProduto();\n\t\tpesquisaPage.quantidadeProduto(txt_Quantidade);\n\t}", "private void actualizaProducto(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString codArticulo = request.getParameter(\"cArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\n\t\t// Crear un objeto producto con la info del formulario\n\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\tSystem.out.println(\"el codArticulo es: \" + codArticulo + \" y los datos del producto\" + producto);\n\t\t// Actualizar la BBDD\n\t\tmodeloProductos.actualizarProducto(producto);\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}", "public void updateProducto(Producto producto) {\n\t\tupdate(producto);\n\t}", "public int getStock() {\n return stock;\n }", "public void updateActivarGestionStock(Map criteria);", "private void productosButtonActionPerformed(java.awt.event.ActionEvent evt) {\n actualizarProductos();\n }", "public void descontarStock(ComidaDeAnimal tipoDeComida, int cantidadKilos) {\n\t\t\n\t\tif (tipoDeComida.equals(baldeCalamares)) {\n\t\t\tint nuevoStock= this.baldeCalamares.getStock()-cantidadKilos;\n\t\t\tthis.baldeCalamares.setStock(nuevoStock);\n\t\t}\n\n\t\tif (tipoDeComida.equals(baldeCangrejos)) {\n\t\t\tint nuevoStock= this.baldeCangrejos.getStock()-cantidadKilos;\n\t\t\tthis.baldeCangrejos.setStock(nuevoStock);\n\t\t}\n\n\t\tif (tipoDeComida.equals(baldePulpos)) {\n\t\t\tint nuevoStock= this.baldePulpos.getStock()-cantidadKilos;\n\t\t\tthis.baldePulpos.setStock(nuevoStock);\n\t\t}\n\t\t\n\t}", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "public void agregarProductoConCantidad(String producto, Integer cantidad){\n\t\tif (!this.datosCompras.containsKey(producto)) {\n\t\t// Si el producto pasado por parametro no existe aśn lo agrega, junto con su cantidad\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t} else {\n\t\t// Si el producto ya existe, modifico su stock\n\t\t\t// Obtenemos el stock actual y lo guardamos\n\t\t\tInteger productStock = this.datosCompras.get(producto);\n\t\t\t// eliminamos el producto del mapa\n\t\t\tthis.datosCompras.remove(producto);\n\t\t\t// Incrementamos el stock segśn la cantidad pasada por parametro\n\t\t\tcantidad = cantidad + productStock;\n\t\t\t// Agergamos el nuevo producto con su stock actualizado\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t}\n\t}", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }", "public void setQuantidade(Integer quantidade) { this.quantidade = quantidade; }", "public void save()throws Exception{\n if(!pname1.getText().isEmpty() && !qty1.getText().isEmpty() && !prc1.getText().isEmpty() && !rsp1.getText().isEmpty() ){\r\n s_notif1.setId(\"hide\");\r\n ArrayList<Product> ar = new ArrayList<>();\r\n com.mysql.jdbc.Connection conn = db.getConnection();\r\n Statement stm = conn.createStatement();\r\n int rs = stm.executeUpdate(\"UPDATE products SET \"\r\n + \"name='\"+pname1.getText()+\"', \"\r\n + \"qty='\"+qty1.getText()+\"', \"\r\n + \"price='\"+prc1.getText()+\"',\"\r\n + \"re_stock_point='\"+rsp1.getText()+\"' WHERE ID ='\"+S_ID+\"';\");\r\n if(rs > 0){\r\n s_notif1.setId(\"show\");\r\n }\r\n }\r\n loadData();\r\n }", "@Override\r\n\tpublic void guardarCambiosProducto(Producto producto) {\r\nconectar();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = miConexion.prepareStatement(ConstantesSql.GUARDAR_CAMBIOS_PRODUCTO);\r\n\t\t\tps.setString(1, producto.getNombre());\r\n\t\t\tps.setString(2, producto.getCantidad());;\r\n\t\t\tps.setString(3, producto.getPrecio());\r\n\t\t\tps.setString(6, producto.getOferta());\r\n\t\t\tps.setString(4, producto.getFechaCad());\r\n\t\t\tps.setString(5, producto.getProveedor());\r\n\t\t\tps.setString(7, producto.getComentario());\r\n\t\t\tps.setInt(8, producto.getId());\r\n\t\t\tps.execute();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error sql guardar producto\");\r\n\t\t}\r\n\t\t\r\n\t\tdesconectar();\r\n\t}", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "@Override\r\n\tpublic void saveProduct(Product product) throws Exception {\n\r\n\t}", "public void onStockpriceChanged();", "@Test\r\n public void updateCarritoDeComprasTest() {\r\n System.out.println(\"up voy\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n PodamFactory factory = new PodamFactoryImpl();\r\n CarritoDeComprasEntity newEntity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n\r\n newEntity.setId(entity.getId());\r\n\r\n carritoDeComprasPersistence.update(newEntity);\r\n\r\n CarritoDeComprasEntity resp = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n\r\n Assert.assertEquals(newEntity.getTotalCostDeCarritoCompras(), resp.getTotalCostDeCarritoCompras());\r\n \r\n }", "@Override\n\tpublic void salvar() {\n\t\t\n\t\tPedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\n\t\tPedidoCompra.setAtivo(true);\n//\t\tPedidoCompra.setNome(nome.getText());\n\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\tPedidoCompra.setSaldoinicial(\"0.00\");\n\t\t\n\t\tPedidoCompra.setData(new Date());\n\t\tPedidoCompra.setIspago(false);\n\t\tPedidoCompra.setData_criacao(new Date());\n\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\n\t\tgetservice().save(PedidoCompra);\n\t\tsaveAlert(PedidoCompra);\n\t\tclearFields();\n\t\tdesligarLuz();\n\t\tloadEntityDetails();\n\t\tatualizar.setDisable(true);\n\t\tsalvar.setDisable(false);\n\t\t\n\t\tsuper.salvar();\n\t}", "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n s.setControlled(true);\n stockDataSource.updateStock(s);\n }\n adapter.notifyDataSetChanged();\n squareTotalStock.setBackgroundColor(\n Methods.giveColor(squareTotalStock,\n Methods.getInventoryState(product)));\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "@Override\n public Product process(Product product) throws Exception\n {\n List<Product> productList = jdbcTemplate.query(GET_PRODUCT, new Object[] {product.getProductCode()}, new RowMapper<Product>() {\n @Override\n public Product mapRow( ResultSet resultSet, int rowNum ) throws SQLException {\n Product p = new Product();\n p.setProductCode( resultSet.getInt( 1 ) );\n p.setProductName( resultSet.getString( 2 ) );\n p.setMrp( resultSet.getString( 3 ) );\n p.setDicountedPrice( resultSet.getString( 4 ) );\n p.setStock( resultSet.getString( 4 ) );\n return p;\n }\n });\n\n if( productList.size() > 0 )\n {\n // Add the new quantity to the existing quantity\n Product existingProduct = productList.get( 0 );\n int stock = Integer.parseInt(existingProduct.getStock()) + Integer.parseInt(product.getStock());\n product.setStock(Integer.toString(stock));\n }\n\n // Return the (possibly) update prduct\n return product;\n }", "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "void saveProduct(Product product);", "@RequestMapping(method = RequestMethod.PUT)\n\tpublic ResponseEntity<Void> actualizarElStockdeUnProducto(\n\t\t\t@RequestBody DecrementoProducto decerentoProducto){\n\t\treturn null;\n\t}", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "public void addStock(int qtearajouter) {\n\t\tthis.stock += qtearajouter;\n\t}", "public ActualizarProducto() {\n initComponents();\n }", "@Override\r\n\tpublic void stockUpdate(adminStockVO vo) {\n\t\tadminDAO.stockUpdate(vo);\r\n\t}", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void update(Product product) {\n\n\t}", "public void setCodigo_produto(int pCodigoProduto){\n this.codigoProduto = pCodigoProduto;\n }", "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "public void setProduct(Product product) {\n this.product = product;\n this.updateTotalPrice();\n }", "public void setIdProducto(int value) {\n this.idProducto = value;\n }", "public void setProduct(Product product) {\n this.product = product;\n }", "public void salvaProduto(Produto produto){\n conecta = new Conecta();\n conecta.iniciaConexao();\n\n String sql = \"INSERT INTO `JoalheriaJoia`.`Produto` (`codigo`, `nome`, `valorCusto`, `valorVenda`, `idTipoJoia` , `quantidadeEstoque`) VALUES (?, ?, ?, ?, ?, ?);\";\n\n try {\n PreparedStatement pstm;\n pstm = conecta.getConexao().prepareStatement(sql); \n \n pstm.setString(1, produto.getCodigo());\n pstm.setString(2, produto.getNome());\n pstm.setFloat(3, produto.getValorCusto());\n pstm.setFloat(4, produto.getValorVenda());\n pstm.setInt(5, produto.getTipoJoia().getIdTipoJoia());\n pstm.setInt(6, produto.getQuantidadeEstoque());\n pstm.execute();\n } catch (SQLException ex) {\n Logger.getLogger(ProdutoDao.class.getName()).log(Level.SEVERE, null, ex);\n }\n conecta.fechaConexao(); \n \n }", "@Override\n\tpublic Producto buscarIdProducto(Integer codigo) {\n\t\treturn productoDao.editarProducto(codigo);\n\t}", "private void RptStockItem() {\n try {\n pnUmum.removeAll();\n pnUmum.repaint();\n pnUmum.revalidate();\n String sql = \"SELECT `ProdName`,`SellPrice`,`CostPrice`,`Netto`,`Stock`,ProdUnit.UnitName AS Unit FROM `Products` \"\n + \"INNER JOIN ProdUnit ON Products.UnitID = ProdUnit.UnitID ORDER BY Products.ProductID ASC\";\n JRDesignQuery jQuery = new JRDesignQuery();\n jQuery.setText(sql);\n JasperDesign jDesign = JRXmlLoader.load(System.getProperty(\"user.dir\") + \"/src/com/resources/jrxml/RptStokBarang.jrxml\");\n jDesign.setQuery(jQuery);\n JasperReport jReport = JasperCompileManager.compileReport(jDesign);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, new ConfigDB().getConnection());\n JRViewer jView = new JRViewer(jPrint);\n pnUmum.setLayout(new BorderLayout());\n jView.setFitPageZoomRatio();\n jView.setFont(new java.awt.Font(\"Arial\", 0, 14));\n pnUmum.add(jView);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(null, \"Terjadi Error Pada:\\n\" + ex.toString(), \"Kesalahan\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void updateDesactivarGestionStock(Map criteria);", "public void setProduct(entity.APDProduct value);", "@Override\n public void onClick(View v) {\n AlertDialog dialogo = new AlertDialog\n .Builder(ModificarStockIngredienteActivity.this)\n .setPositiveButton(\"Sí\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String cantidadModifica = \"\"+cantidadPicker.getValue()+\".\"+decimalesPicker.getValue();\n float cantidadFModifica = Float.parseFloat(cantidadModifica);\n ingrediente.setCantidad(cantidadFModifica);\n ingreDAO.modify(ingrediente);\n onBackPressed();\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n })\n .setTitle(\"Confirmar\")\n .setMessage(\"Seguro que deseas modificar cantidad?\")\n .create();\n dialogo.show();\n\n }", "@FXML\r\n void onActionSaveProduct(ActionEvent event) throws IOException {\r\n\r\n int id = Inventory.ProductCounter();\r\n String name = AddProductName.getText();\r\n int stock = Integer.parseInt(AddProductStock.getText());\r\n Double price = Double.parseDouble(AddProductPrice.getText());\r\n int max = Integer.parseInt(AddProductMax.getText());\r\n int min = Integer.parseInt(AddProductMin.getText());\r\n\r\n Inventory.addProduct(new Product(id, name, price, stock, min, max, product.getAllAssociatedParts()));\r\n\r\n\r\n //EXCEPTION SET 1 REQUIREMENT\r\n if(min > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Quantity minimum is larger than maximum.\");\r\n alert.showAndWait();\r\n return;\r\n } if (stock > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Inventory quantity exceeds maximum stock allowed.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n changeScreen(event, \"MainScreen.fxml\");\r\n }", "public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}", "@Override\r\n public void onClick(View view) {\n Log.d(\"WTF Buy stock at ppl detail\", \"0001 data:\" + StockData.getStockData(1).getDescription());\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Current M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n CommonAccount.getCurrentAccount().stockBuySell(1, 100);\r\n Log.d(\"WTF Buy stock at ppl detail\", \"After M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Amount of 0001:\" + CommonAccount.getCurrentAccount().getStockInventory(1));\r\n\r\n\r\n try {\r\n CommonAccount.updateCurrentAccount(activity_ppl_details.this);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(\"Cannot stock buy\", e.getMessage());\r\n }\r\n\r\n// Intent intent = new Intent(activity_ppl_details.this, activity_ppl_status.class);\r\n// startActivity(intent);\r\n\r\n Intent returnIntent = new Intent();\r\n setResult(RESULT_OK, returnIntent);\r\n\r\n finish();\r\n\r\n }", "public void saveProduct(Product product) {\n\t\tProduct is_product = productDAO.getProductByPrimaryKey(product.getTid());\r\n\t\tif (is_product != null) {//보존될 값은 새로 정의한다.\r\n\t\t\tis_product\t= product;\r\n\t\t\tis_product.setTid(product.getTid());\r\n\t\t\tis_product.setHit(product.getHit());\r\n\t\t\tproductDAO.updateProduct(is_product);\r\n\t\t} else {\r\n\t\t\t/*\r\n\t\t\t\tDate date = new Date();\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.setTime(date);\r\n\t\t\t\tdate = cal.getTime();\r\n\t\t\t\tproduct.setWdate(cal.getTime());\r\n\t\t\t*/\r\n\t\t\tproduct.setHit(0);\r\n\t\t\tproductDAO.saveProduct(product);\r\n\t\t}\r\n\t\t//productDAO.flush();\r\n\t}", "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "public abstract void setstockNumber();", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "@Override\n\tpublic int reduceStock(Integer id, Integer quantity) {\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\t \n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"update product set stock=stock-? where id=?\");\n\t\t\tpst.setInt(1,quantity);\n\t\t\tpst.setInt(2, id);\n\t\t\t\n\t\n\t\t\treturn pst.executeUpdate();\n\t\t\t\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tDBUtils.Close(conn, pst);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}", "@Override\n\tpublic int getStock() {\n\t\treturn 2;\n\t}", "public void salir() {\n if (bandera == 1) {\n altoTabla = \"310\";\n formulaProceso = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaProceso\");\n formulaProceso.setFilterStyle(\"display: none; visibility: hidden;\");\n\n formulaPeriodicidad = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaPeriodicidad\");\n formulaPeriodicidad.setFilterStyle(\"display: none; visibility: hidden;\");\n\n RequestContext.getCurrentInstance().update(\"form:datosFormulaProceso\");\n bandera = 0;\n filtrarListFormulasProcesos = null;\n tipoLista = 0;\n }\n listFormulasProcesosBorrar.clear();\n listFormulasProcesosCrear.clear();\n listFormulasProcesosModificar.clear();\n index = -1;\n secRegistro = null;\n k = 0;\n listFormulasProcesos = null;\n guardado = true;\n RequestContext.getCurrentInstance().update(\"form:ACEPTAR\");\n formulaActual = null;\n lovProcesos = null;\n }", "public void saveProduct(Product product);", "public void menuAlterarProdutos(String username){\n Scanner s= new Scanner(System.in);\n CatalogoProdutos cp=b_dados.getLojas().get(username).getCatalogoProdutos();\n do {\n System.out.println(\"Escolha o que pretende fazer\");\n System.out.println(\"1 - Adicionar um produto\");\n System.out.println(\"2 - Atualizar um produto\");\n System.out.println(\"3 - Remover um produto\");\n System.out.println(\"0 - Retroceder\");\n String opcao=s.nextLine();\n if(opcao.equals(\"0\"))\n break;\n switch (opcao){\n case \"1\":\n System.out.println(\"Escreva a descrição do produto\");\n String descricao=s.nextLine();\n System.out.println(\"Introduza o preço do produto\");\n double preco=s.nextDouble();\n System.out.println(\"Introduza a quantidade disponivel\");\n double stock=s.nextDouble();\n Produto p = b_dados.novoProduto(username,descricao,preco,stock);\n b_dados.addProduto(username,p);\n break;\n case \"2\":\n int i=0;\n while(i==0){\n LogLoja l=b_dados.getLojas().get(username);\n System.out.println(l.getCatalogoProdutos().toString());\n System.out.println(\"Escreva o código de produto que deseja atualizar:\");\n String codigo=s.nextLine();\n if(b_dados.produtoExiste(username,codigo)) {\n i = 1;\n System.out.println(\"Introduza o novo stock do produto:\");\n double newstock = s.nextDouble();\n b_dados.updatestock(username, newstock, codigo);\n }\n\n else\n System.out.println(\"Esse Produto não existe tente de novo\");\n }\n break;\n case \"3\":\n int c=0;\n while(c==0){\n LogLoja l=b_dados.getLojas().get(username);\n System.out.println(l.getCatalogoProdutos().toString());\n System.out.println(\"Escreva o código de produto que deseja remover:\");\n String cod=s.nextLine();\n if(b_dados.produtoExiste(username,cod)){\n c=1;\n Produto prod=b_dados.buscaProduto(username,cod);\n b_dados.removeProduto(username,prod);\n }\n else\n System.out.println(\"Esse Produto não existe tente de novo\");\n }\n break;\n default:\n System.out.println(\"Entrada inválida\");\n break;\n }\n System.out.println(\"O seu catálogo:\");\n System.out.println(b_dados.getLojas().get(username).getCatalogoProdutos().toString());\n\n }while(true);\n }", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "@Override\n\tpublic void atualizar(Produto entidade) {\n\n\t}", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "void setProduct(x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product product);", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "public Integer getStock() {\n return stock;\n }", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "void actualizar(Prestamo prestamo);", "public void StockSelect() {\n try {\n stat = cnct.createStatement();\n resst = stat.executeQuery(\"select product_ID, product_name, quantity from product\");\n tbStock.setModel(DbUtils.resultSetToTableModel(resst));\n } catch (SQLException ex) {\n Logger.getLogger(Others.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}" ]
[ "0.80000675", "0.68924534", "0.6748576", "0.6731885", "0.6731885", "0.6695677", "0.6694655", "0.6668077", "0.6654968", "0.6634583", "0.6608956", "0.6601666", "0.6585839", "0.65346235", "0.64656055", "0.64534295", "0.6445451", "0.6433735", "0.6424884", "0.641663", "0.64104384", "0.639394", "0.6365642", "0.635489", "0.6329048", "0.629283", "0.62860274", "0.6246447", "0.6242877", "0.62323815", "0.6223856", "0.62229013", "0.62186694", "0.6210989", "0.6207422", "0.62064594", "0.62012786", "0.6192581", "0.61867976", "0.61807084", "0.61702406", "0.6163868", "0.61540663", "0.6146548", "0.6141989", "0.6140889", "0.6138075", "0.6135232", "0.61315995", "0.6130076", "0.6122097", "0.6121099", "0.61209834", "0.610907", "0.61085063", "0.61082804", "0.6106271", "0.60896003", "0.6089198", "0.6083444", "0.6081634", "0.6079185", "0.6079185", "0.60741496", "0.6070905", "0.60644555", "0.6061476", "0.6059609", "0.6059015", "0.6053056", "0.6050454", "0.60496265", "0.6048343", "0.6045313", "0.60440344", "0.6043833", "0.60434544", "0.60305655", "0.6016545", "0.60152817", "0.6012349", "0.6002704", "0.59997094", "0.5995777", "0.5995173", "0.5977008", "0.597074", "0.59700453", "0.5966389", "0.59634584", "0.596327", "0.59568954", "0.595653", "0.5948164", "0.5945678", "0.5944145", "0.59418654", "0.5939922", "0.5937744", "0.5937502" ]
0.7474771
1
implement method di bimbel fragment
@Override public void onLogoutClick() { session.doLogout(); addFragment(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "private void toZB() {\n if (zhiBoFragment == null) {\n zhiBoFragment = new ZhiBoFragment();\n fragmenttransaction.add(R.id.frame_content, zhiBoFragment);\n } else {\n fragmenttransaction.show(zhiBoFragment);\n }\n }", "@Override\n public void onClick(View v) {\n CompteEtudiant nextFrag = new CompteEtudiant();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\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 }", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);", "@Override\n public void onFragmentAttached() {\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = MeteoFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Météo\");\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_meteo_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 android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "public CuartoFragment() {\n }", "protected abstract void fragmentTrigger(Fragment fragment);", "@Override\n public void refreshFragment() {\n }", "public abstract Fragment getFragment();", "@Override\n public void onBoomButtonClick(int index) {\n if (isNetworkAvailable(getActivity().getApplicationContext())) {\n fragment = null;\n fragmentClass = EbayFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"ebay\");\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_ebay_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 }else {\n Toast.makeText(getActivity().getApplicationContext(),\"Aucune connexion Internet\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }", "public void createFragment() {\n\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 }", "@Override\n public void onBoomButtonClick(int index) {\n if (isNetworkAvailable(getActivity().getApplicationContext())) {\n fragment = null;\n fragmentClass = MapFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Map\");\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_map_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 }else {\n Toast.makeText(getActivity().getApplicationContext(),\"Aucune connexion Internet\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void run() {\n if (footerUser) {\n fm.beginTransaction()\n .show(fm.findFragmentById(R.id.frag_user))\n .hide(fm.findFragmentById(R.id.frag_search))\n .hide(fm.findFragmentById(R.id.frag_home))\n .hide(fm.findFragmentById(R.id.frag_user_businesses))\n .commit();\n }\n }", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFragmentTransaction fmdetail1 = ((FragmentActivity) mContext).getSupportFragmentManager()\n\t\t\t\t\t\t\t\t.beginTransaction();\n\t\t\t\t\t\tfmdetail1.replace(R.id.container,\n\t\t\t\t\t\t\t\tnew Bee_Fragment_Product_List_Detail().newInstance(lineSource.getString(\"Id\"), \"\"));\n\t\t\t\t\t\tfmdetail1.addToBackStack(\"tag\");\n\t\t\t\t\t\tfmdetail1.commit();\n\t\t\t\t\t} catch (JSONException 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}", "@Override\n public void onClick(View view) {\n Fragment fragment = null;\n fragment = new CommentPeopleDetail();\n Bundle bundle = new Bundle();\n bundle.putString(\"queid\", details.getQueId());\n\n if (fragment != null) {\n fragment.setArguments(bundle);\n FragmentManager fm = ((FragmentActivity) context).getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.frame_contain_layout, fragment);\n transaction.commit();\n }\n }", "@Override\n public void onClick(View view) {\n\n Fragment fragment1 = getSupportFragmentManager().findFragmentByTag(fragment1Tag);\n if(fragment1 == null) {\n fragment1 = new IngrediantFragment();\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fram1, fragment1,fragment1Tag)\n .commit();\n }\n else\n Toast.makeText(getApplicationContext(),\"fragment = null\",Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n AllRequestedColleges allRequestedColleges=AllRequestedColleges.newInstance();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(android.R.id.content,allRequestedColleges).addToBackStack(\"faf\").commit();\n\n }", "public abstract void updateFragmentUI();", "protected abstract Fragment createFragment();", "public abstract int getFragmentView();", "@Override\n public void onBoomButtonClick(int index) {\n if (isNetworkAvailable(getActivity().getApplicationContext())) {\n fragment = null;\n fragmentClass = RadiosTunisiennesFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Radios tunisiennes\");\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_radios_tunisiennes_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 }else {\n Toast.makeText(getActivity().getApplicationContext(),\"Aucune connexion Internet\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l4.setBackgroundColor(getResources().getColor(R.color.white));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new HubunganFragment();\n openFragment(fragment);\n }", "@Override\n public void onClick(View v) {\n if(confirmedStatusDataArr!=null && confirmedStatusDataArr.length()>0) {\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", confirmedStatusDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n }", "@Override\n public void run() {\n confirmImage.setVisibility(View.GONE);\n activity.replaceFragment(new Fragment_Buyer_Orders());\n\n }", "@Override\r\n\tpublic void onFragmentStop() {\n\t}", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\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_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\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}", "public void a(String str) {\n Fragment newInstance;\n boolean z = true;\n if (this.b != null && !TextUtils.isEmpty(str)) {\n if (str.equals(\"mol_pin\")) {\n newInstance = APRegionMolpinFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else if (str.equals(\"fortumo\")) {\n newInstance = APRegionFortumoFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else {\n if (this.b.size() != 1) {\n z = false;\n }\n newInstance = APRegionGridContentFragment.newInstance(str, z);\n }\n FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();\n beginTransaction.replace(APCommMethod.getId(this, \"unipay_id_mainContent\"), newInstance);\n beginTransaction.commit();\n }\n }", "public void MapFragment() {}", "@Override\n public void onClick(View v) {\n\n if (v == thigsfrag1){\n\n thingstodonear = Sessiondata.getInstance().getThingsfrontdatanear();\n thingstodonear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(thingstodonear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, thingstodonear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n\n }\n\n else if (v == foodsfrag1){\n\n\n foodnear = Sessiondata.getInstance().getFoodfrontdatanear();\n foodnear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(foodnear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, foodnear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\nelse if (v == prayerfirst) {\n\n\n prayernear = Sessiondata.getInstance().getPrayerfrontdatanear();\n prayernear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(prayernear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, prayernear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n\n else if(v == thingstodo){\n\n NearByelementsModel n = (NearByelementsModel) v.getTag();\n CreatedTripModel cc = C.getCtm();\n cc.setCategoryID(\"3\");\n cc.setCategorytype(\"Things to do info\");\n cc.setN(n);\n showguideFragment(cc);\n }\n\n }", "@Override\r\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container,\r\n Bundle savedInstanceState) {\n Bundle bundle = getArguments();\r\n if (bundle != null) {\r\n bank_id = bundle.getInt(\"BANK_ID\");//String bankNam=db.getBankName(bank_id);\r\n Log.e(\"Bank in af\", String.valueOf(bank_id));\r\n }\r\n\r\n\r\n // Inflate the layout for this fragment\r\n View view = inflater.inflate(R.layout.fragment_address, container, false);\r\n\r\n btnBranch = (Button) view.findViewById(R.id.btnBranch);\r\n btnATM = (Button) view.findViewById(R.id.btnATM);\r\n btnExchange = (Button) view.findViewById(R.id.btnExchange);\r\n\r\n\r\n displayView(R.id.btnBranch);\r\n\r\n btnBranch.setSelected(true);\r\n btnBranch.setOnClickListener(this);\r\n btnATM.setOnClickListener(this);\r\n btnExchange.setOnClickListener(this);\r\n // etSearch.setFocusableInTouchMode(true);\r\n //etSearch.requestFocus();\r\n\r\n\r\n return view;\r\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.white));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new EnergiFragment();\n openFragment(fragment);\n }", "@Override\n public void onClick(View v) {\n if(dueStatusDataArr!=null && dueStatusDataArr.length()>0){\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", dueStatusDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n\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 }", "public void listaVacia() {\n\n mProgressDialog.dismiss();\n\n Bundle arguments = new Bundle();\n\n arguments.putString(\"ficha\", ActivosFragment.TAG);\n\n mBlankFragment = BlankFragment.newInstance(arguments);\n FragmentTransaction mFragmentTransaction = getFragmentManager().beginTransaction();\n mFragmentTransaction.replace(R.id.main_content, mBlankFragment, BlankFragment.TAG);\n //mFragmentTransaction.addToBackStack(FragmentDepartamento.TAG); // Agrega a la pila el fragmento para poder retroceder\n mFragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE); //Agrega una transición al fragment\n\n mFragmentTransaction.commit();\n\n }", "public void cargarFragment (Fragment fragment, String tag){\r\n FragmentManager manager = getSupportFragmentManager();\r\n // Consigo el fragment que esta actualmente en el contenedor, puede ser null\r\n Fragment fragmentContenedor = manager.findFragmentById(R.id.contenedorFragmentsAparatos);\r\n //Si esta vacio o es diferente al que esta en el contenedor\r\n if(fragmentContenedor == null || fragmentContenedor.getTag() != tag ){\r\n FragmentTransaction transaction = manager.beginTransaction();\r\n transaction.replace(R.id.contenedorFragmentsAparatos, fragment);\r\n //TODO -- chequear que no falta data en el if\r\n if(fragmentContenedor != null ){\r\n transaction.addToBackStack(null);\r\n }\r\n transaction.commit();\r\n }\r\n\r\n\r\n }", "protected abstract FragmentComponent setupComponent();", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.white));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new UsahaFragment();\n openFragment(fragment);\n }", "public static void Fragment_en_Framelayout(Activity act ,int framelayoutid,Fragment frag){\n }", "@Override\n public void onClick(View v) {\n if(totalDataArr!=null && totalDataArr.length()>0){\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", totalDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n\n }", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\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 .show(frag)\r\n .commit();\r\n\r\n }", "@Override\n public void onClick(View v) {\n ((MainActivity)getActivity()).showFragment(new ListeAnnonceFragment());\n\n }", "@Override\n public void onViewCreated(View view , Bundle savedInstanceState) {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blood_pressure, container, false);\n\n BloodPressureFragment.setBloodPressureFragment(this);\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n\n PersonsFragment personsFragment;\n\n if(mParam1.equals(\"A\")||mParam1.equals(\"B\")||mParam1.equals(\"C\")) {\n startFragmentPressureMeasurements(mParam1);\n BloodPressureActivity.getBloodPressureActivity().setTheName(mParam1,\"Πίεση\");\n }\n\n personsFragment = PersonsFragment.newInstance(\"blah\",\"blah\");\n fragmentManager.beginTransaction().add(R.id.container_pressure_top_row,personsFragment).commit();\n\n return view;\n }", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_my, container, false);\n\n Bmob.initialize(getContext(), \"4ab85f97c2bc54d88133be3de0df4131\");\n\n// initView();\n// ButterKnife.bind(getActivity(), view);\n user = BmobUser.getCurrentUser(User.class);\n // ImageLoaderFactory.getLoader().loadAvator(myfrag_img_avator, user.getAvatar(), R.mipmap.head2);\n //显示名称\n if(user == null){\n Toast.makeText(getContext(), \"请登录\", Toast.LENGTH_SHORT).show();\n } else if(user.getObjectId() != null && !user.getObjectId().isEmpty()){\n userid = user.getObjectId();\n//\n }\n\n if(user.getUsername() != null && !user.getUsername().isEmpty()){\n title = user.getUsername();\n }\n\n myfrag_text_debate_num = (TextView)view.findViewById(R.id.myfrag_text_debate_num);\n myfrag_text_fo_num = (TextView)view.findViewById(R.id.myfrag_text_fo_num);\n myfrag_text_fan_num = (TextView)view.findViewById(R.id.myfrag_text_fan_num);\n\n myfrag_img_contest_attended = (ImageView)view.findViewById(R.id.myfrag_img_contest_attended);\n\n myfrag_text_contest_attended = (TextView)view.findViewById(R.id.myfrag_text_contest_attended);\n myfrag_img_contest_attended_getin = (ImageView)view.findViewById(R.id.myfrag_img_contest_attended_getin);\n\n myfrag_img_news_released = (ImageView)view.findViewById(R.id.myfrag_img_news_released);\n myfrag_text_news_released = (TextView)view.findViewById(R.id.myfrag_text_news_released);\n myfrag_img_news_released_getin = (ImageView)view.findViewById(R.id.myfrag_img_news_released_getin);\n\n myfrag_img_collect = (ImageView)view.findViewById(R.id.myfrag_img_collect);\n myfrag_text_collect = (TextView)view.findViewById(R.id.myfrag_text_collect);\n myfrag_img_collect_getin = (ImageView)view.findViewById(R.id.myfrag_img_collect_getin);\n\n myfrag_img_v = (ImageView)view.findViewById(R.id.myfrag_img_v);\n myfrag_text_v = (TextView)view.findViewById(R.id.myfrag_text_v);\n myfrag_img_v_getin = (ImageView)view.findViewById(R.id.myfrag_img_v_getin);\n\n myfrag_text_debate_num.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent1 = new Intent(getActivity(), MyAttenedDebateActivity.class);\n intent1.putExtra(\"user_id\",userid);\n startActivity(intent1);\n }\n });\n\n myfrag_text_fo_num.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent2 = new Intent(getActivity(), MyFollowActivity.class);\n intent2.putExtra(\"user_id\",userid);\n startActivity(intent2);\n }\n });\n myfrag_text_fan_num.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent3 = new Intent(getContext(), MyFanActivity.class);\n intent3.putExtra(\"user_id\",userid);\n startActivity(intent3);\n }\n });\n\n\n myfrag_img_contest_attended.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent4 = new Intent(getContext(), MyAttenedDebateActivity.class);\n intent4.putExtra(\"user_id\",userid);\n startActivity(intent4);\n }\n });\n myfrag_text_contest_attended.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent5 = new Intent(getActivity(), MyAttenedDebateActivity.class);\n intent5.putExtra(\"user_id\",userid);\n startActivity(intent5);\n }\n });\n myfrag_img_contest_attended_getin.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent6 = new Intent(getActivity(), MyAttenedDebateActivity.class);\n intent6.putExtra(\"user_id\",userid);\n startActivity(intent6);\n }\n });\n\n myfrag_img_news_released.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent7 = new Intent(getActivity(), MyReleasedActivity.class);\n intent7.putExtra(\"user_id\",userid);\n startActivity(intent7);\n }\n });\n myfrag_text_news_released.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent8 = new Intent(getActivity(), MyReleasedActivity.class);\n intent8.putExtra(\"user_id\",userid);\n startActivity(intent8);\n }\n });\n myfrag_img_news_released_getin.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent9 = new Intent(getActivity(), MyReleasedActivity.class);\n intent9.putExtra(\"user_id\",userid);\n startActivity(intent9);\n }\n });\n\n myfrag_img_collect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent10 = new Intent(getActivity(), MyCollectActivity.class);\n intent10.putExtra(\"user_id\",userid);\n startActivity(intent10);\n }\n });\n myfrag_text_collect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent11 = new Intent(getActivity(), MyCollectActivity.class);\n intent11.putExtra(\"user_id\",userid);\n startActivity(intent11);\n }\n });\n myfrag_img_collect_getin.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent12 = new Intent(getActivity(), MyCollectActivity.class);\n intent12.putExtra(\"user_id\",userid);\n startActivity(intent12);\n }\n });\n\n\n myfrag_img_v.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent13 = new Intent(getActivity(), VRegisterActivity.class);\n intent13.putExtra(\"user_id\",userid);\n startActivity(intent13);\n }\n });\n myfrag_text_v.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent14 = new Intent(getActivity(), VRegisterActivity.class);\n intent14.putExtra(\"user_id\",userid);\n startActivity(intent14);\n }\n });\n myfrag_img_v_getin.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent15 = new Intent(getActivity(), VRegisterActivity.class);\n intent15.putExtra(\"user_id\",userid);\n startActivity(intent15);\n }\n });\n\n\n return view;\n }", "public interface AddFarmFragmentView extends BaseView {\n\n\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 addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public void onClick(View v) {\n fragment = fragmentManager.findFragmentByTag(\"frag1\"); // you gonna find a fragment by a tag ..u defined that in acitivty when you called that fragment\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if (fragment != null) {\n fragmentTransaction.remove(fragment); // remove Transaction\n }\n\n // now calling and adding another fragment after remove its parent fragment (where you are calling fragmetn from) fragment to fragment call\n fragment = new Fragment2();\n fragmentTransaction.add(R.id.base_layout, fragment, \"frag2\"); //giving tag to fragment\n fragmentTransaction.commit();\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_looplijst, container, false);\n Bundle b = getArguments();\n\n clientNaam = (TextView) v.findViewById(R.id.tv_cname);\n clientNaam.setText(b.getString(\"NAME\"));\n clientAdress = (TextView) v.findViewById(R.id.tv_cadress);\n clientAdress.setText(b.getString(\"ADRESS\"));\n clientActiviteit = (TextView) v.findViewById(R.id.tv_cactiviteit);\n clientActiviteit.setText(b.getString(\"ACTIVITY\"));\n clientSleutel = (TextView) v.findViewById(R.id.tv_csleutel);\n clientSleutel.setText(b.getString(\"KEY\"));\n clientopmerking = (TextView) v.findViewById(R.id.tv_copmerking);\n clientopmerking.setText(b.getString(\"PHONENUMBER\") + \"\\n\" + b.getString(\"COMMENT\"));\n\n bt_back = (Button) v.findViewById(R.id.bt_back);\n bt_back.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getActivity().getSupportFragmentManager().popBackStackImmediate();\n }\n });\n\n return v;\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n fragmentView= inflater.inflate(R.layout.fragment_inicio, container, false);\n conexion=new Conexion(getContext(),\"http://192.168.137.1:8080/Ojkali\");\n contexto=getContext();\n cuadricula=fragmentView.findViewById(R.id.inicioGVprendas);\n cuadricula.setOnItemClickListener(onItemclick);\n ((Button)fragmentView.findViewById(R.id.iniciobotonfiltros)).setOnClickListener(onClickFiltros);\n return fragmentView;\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 }", "@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_a, container, false);\n this.v = rootView;\n int temp_pos = getArguments().getInt(\"bpos\");\n position = fin_pos = temp_pos;\n\n // ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),\n // android.R.layout.simple_list_item_1, values);\n\n\n //populateListView();\n\n //setListAdapter(adapter);\n\n\n return rootView;\n\n }", "@Override\n public void onClick(View v) {\n\n if(paidStatusDataArr!=null && paidStatusDataArr.length()>0){\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", paidStatusDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n\n }", "@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 onViewCreated(View view, Bundle savedInstanceState) {\n }", "@Override\n // The onCreateView is where you will create the fragment and all the listeners in the fragment\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_tutorial, container, false); //create the view of the fragment\n // the next lines are finding the elements that are inside the fragment to then set the listeners and things\n ((MainActivity)getActivity()).setAddToBackStack(true);\n\n return view; // This returns the view(Fragment) with all the initializers\n }", "@Override\n public void onClick(View v) {\n if(paidStatusDataArr!=null && paidStatusDataArr.length()>0){\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", paidStatusDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n }", "@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new HukumFragment();\n openFragment(fragment);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n DashboardResModel.BookData bookData = (DashboardResModel.BookData) adapterView.getItemAtPosition(pos);\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"data\", bookData);\n FragmentBookInfo fragment = new FragmentBookInfo();\n fragment.setArguments(bundle);\n ((MainActivity) getActivity()).loadFragment(fragment);\n }", "@Override\n public void responce(int position) {\n if(position!=0) {\n MeasurementConverter fragment1 = new MeasurementConverter();\n fragment1.setvalueofpositon(position-1);\n transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.rlayout, fragment1, \"fragment\");\n transaction.commit();\n }\n if(position==0)\n {//switch to currency conversion fragment\n transaction=fragmentManager.beginTransaction();\n transaction.replace(R.id.rlayout, fragment, \"frameactivity\");\n transaction.commit();\n\n }\n\n drawer.opensorclose(false);\n }", "public void onClick(View arg0) {\n getActivity().getSupportFragmentManager().beginTransaction()\r\n .replace(R.id.container, new Criar_Viagem_Paradas()).commit();\r\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }", "public String getFragment() {\n return m_fragment;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n vista = inflater.inflate(R.layout.fragment_buscar, container, false);\r\n\r\n\r\n\r\n return vista;\r\n }", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "public CarModifyFragment() {\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\t\r\n\t\tView view=inflater.inflate(R.layout.fragment_two, container, false);\r\n\t\t\r\n\t\tButton btnFragment2=(Button) view.findViewById(R.id.btnFragment2);\r\n\t btnFragment2.setOnClickListener(new View.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\t\r\n\t\t\t\tfbcl.changActivity(\"Ñþºþ\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn view;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n Bundle params = getArguments();\n view = inflater.inflate(R.layout.fragment_info,\n parent, false);\n\n\n numero = view.findViewById(R.id.num_id);\n prenom = view.findViewById(R.id.prenom_id);\n nom = view.findViewById(R.id.nom_id);\n formation = view.findViewById(R.id.formation_id);\n\n numero.setText(params.getString(\"i\"));\n prenom.setText(params.getString(\"prenom\"));\n nom.setText(params.getString(\"nom\"));\n formation.setText(params.getString(\"formation\"));\n\n InfoFragmentEventListener infoFragmentEventListener = (InfoFragmentEventListener)getActivity();\n\n\n //return inflater.inflate(R.layout.fragment_info, parent, false);\n Button btnprec = view.findViewById(R.id.prec_btn);\n Button btnsuiv = view.findViewById(R.id.suiv_btn);\n\n btnprec.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n infoFragmentEventListener.precedantClicked();\n }\n });\n btnsuiv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n infoFragmentEventListener.suivantClicked();\n }\n });\n\n\n\n return view;\n }", "@SuppressLint(\"ResourceType\")\n @Override\n public void onClick(View view) {\n\n FrameLayout fragmentLayout = new FrameLayout(context);\n fragmentLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\n fragmentLayout.setId(3);\n main.setContentView(fragmentLayout);\n main.getSupportFragmentManager()\n .beginTransaction().addToBackStack(null)\n .add(3, new DetailFragment(dataset.get(position).getNumber(),\n dataset.get(position).getName(), dataset.get(position).getHeight()))\n .commit();\n }", "@Override\n public void gofavouritepage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new FavouriteFragment()).addToBackStack(\"Homepage\").commit();\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }", "void onFragmentInteraction(int position);", "private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tBundle extras = getIntent().getExtras();\n\t\tint id = extras.getInt(Intent.EXTRA_TEXT);\n\n\t\tswitch (id) {\n\t\tcase 0:\n\t\t\tFragment frag = new Fragment_PV();\n\t\t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n\t \t\tft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n\t \t\tft.replace(R.id.details1, frag);\n\t \t\tft.commit();\t\t\t\n\t \t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "@Override\n public void onItemSelected(SourceItem news_Channel) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"JsonObject\", news_Channel);\n Fragment detailFragment = new TheNews();\n detailFragment.setArguments(bundle);\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.replaceFragment, detailFragment).addToBackStack(\"home\").commit();\n\n }" ]
[ "0.68398356", "0.6817841", "0.68152285", "0.6752113", "0.673444", "0.66796684", "0.6598343", "0.65759623", "0.6529893", "0.6525825", "0.65159416", "0.6513155", "0.65029204", "0.6495856", "0.6480259", "0.6463513", "0.64529777", "0.64515734", "0.6446236", "0.6426667", "0.6407489", "0.640469", "0.63930446", "0.6383484", "0.636121", "0.63581574", "0.6353632", "0.6334244", "0.63055205", "0.6301561", "0.6301262", "0.62810105", "0.62788916", "0.6277995", "0.62678385", "0.6266799", "0.6266799", "0.6266799", "0.6266799", "0.6266799", "0.6266799", "0.62604535", "0.6251378", "0.62447", "0.62270576", "0.6222289", "0.6212127", "0.6204555", "0.61998147", "0.6188551", "0.6188533", "0.61882454", "0.6187572", "0.6177453", "0.61736643", "0.61732554", "0.61684567", "0.6165991", "0.61574286", "0.6155078", "0.6151043", "0.61427784", "0.6140802", "0.6138184", "0.61379766", "0.6135908", "0.613472", "0.61334", "0.61324346", "0.6129272", "0.61288273", "0.6127842", "0.6126998", "0.61256874", "0.61233705", "0.612301", "0.6122342", "0.61214507", "0.61160976", "0.6110401", "0.61058825", "0.61025923", "0.6102379", "0.610102", "0.60965055", "0.60953534", "0.6095016", "0.6087906", "0.6085238", "0.60839427", "0.6080123", "0.6074543", "0.6073186", "0.6073186", "0.6073186", "0.6067347", "0.6057374", "0.60532963", "0.6043664", "0.6043332", "0.60425115" ]
0.0
-1
need to be improved (not dynamic, need better study of realm query)
private void filterRecyvlerView() { String query = etSearch.getText().toString(); String[] querySplited = query.split(" "); if(query.equals("")){ rvPostalCodes.removeAllViews(); adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll()); }else{rvPostalCodes.removeAllViews(); if(querySplited.length == 1) { adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0], Case.INSENSITIVE).findAll()); rvPostalCodes.setAdapter(adapter); }else if(querySplited.length == 2){ adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0],Case.INSENSITIVE) .contains("postalCode", querySplited[1],Case.INSENSITIVE).or() .contains("name", querySplited[1],Case.INSENSITIVE).or() .findAll()); rvPostalCodes.setAdapter(adapter); }else if(querySplited.length == 3){ adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0],Case.INSENSITIVE) .contains("postalCode", querySplited[1],Case.INSENSITIVE).or() .contains("name", querySplited[1],Case.INSENSITIVE) .contains("postalCode", querySplited[2],Case.INSENSITIVE).or() .contains("name", querySplited[2],Case.INSENSITIVE).or() .findAll()); rvPostalCodes.setAdapter(adapter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RealmQuery buildRealmQuery(Realm realm, Class myClass) {\n RealmQuery query = RealmQuery.createQuery(realm, myClass);\n return query;\n }", "@Override\n public void execute(Realm realm) {\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }", "@Test\n public void test4() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' LIKE ''%i%''', c.name) AND \" +\n \"SQL('json_array_length(course_mapped #> ''{levels}'') > 0')\";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1,courses.size());\n Assert.assertEquals(\"First one\", courses.get(0).getCourseMapped().getName());\n }", "List<?> query(Object inputObject, Settings settings);", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }", "@Test\n void getUserRolesByNameLikeSuccess() {\n List<UserRoles> userRoles = genericDao.getEntityByName(\"roleName\", \"all\");\n assertEquals(2, userRoles.size());\n List<UserRoles> users2 = genericDao.getEntityByName(\"roleName\", \"user\");\n assertEquals(2, users2.size());\n }", "@Override\n public void execute(Realm realm)\n {\n // increment index\n Number currentIdNum = realm.where(User.class).max(\"id\");\n int nextId;\n if (currentIdNum == null)\n {\n nextId = 1;\n }\n else\n {\n nextId = currentIdNum.intValue() + 1;\n }\n User user = new User(); // unmanaged\n user.setId(nextId);\n user.setName(value);\n\n realm.insertOrUpdate(user); // using insert API\n }", "public interface IUserRankInfoDao {\n public List<String> searchById(Integer id);\n public List<Map<String,Object>> getRankFriend(String accountID) ;\n public List<Map<String,Object>> getRankListInfo(List accountIDs,int RandType);\n public List<Map<String,Object>> getRankListInfoByShellAll(List accountIDs);\n public List<Map<String,Object>> getRankListInfoByShell(List accountIDs);\n public List<Map<String,Object>> getMileageSumRankList (List accountIDs);\n public Map<String,Object> getMyselfRankInfoThisMonth (String accountID,int RankType);\n public Map<String,Object> getRankMyselfInfoByShellAll(String accountID);\n public Map<String,Object> getRankMyselfInfoByShell(String accountID);\n\n public List<Map<String,Object>> getRankChannelMember(String accountID);\n}", "static void checkObjects() {\n String[] names = new String[]{\"Person\", \"Address\", \"CreditCard\", \"Pincode\", \"Bank\"};\n EntityManager em = factory.createEntityManager();\n\n System.out.println(\"-----------------------------------\");\n for (String name : names) {\n Query q = em.createQuery(String.format(\"select x from %s x\", name));\n\n List resultList = q.getResultList();\n for (Object x : resultList) {\n System.out.println(x);\n }\n System.out.println(\"-----------------------------------\");\n }\n em.close();\n }", "@Test\n void getUserBy() {\n List<Role> users = (List<Role>) roleDAO.getEntityBy(\"roleName\", \"o\");\n assertEquals(1, users.size());\n }", "List<UserRepresentation> getUsers(final String realm);", "private static List<GameBean> transactionSearchSuggestedGames(Transaction tx, String username, int limit)\n {\n List<GameBean> infoGames = new ArrayList<>();\n HashMap<String,Object> parameters = new HashMap<>();\n parameters.put(\"username\", username);\n parameters.put(\"limit\", limit);\n Result result=tx.run(\"MATCH (g:Game),(u:User) \" +\n \" WHERE u.username=$username AND ((g.category1 = u.category1 OR g.category1 = u.category2) \" +\n \" OR (g.category2 = u.category1 OR g.category2 = u.category2)) \" +\n \" RETURN g,u LIMIT $limit \", parameters);\n\n while(result.hasNext())\n {\n Record record = result.next();\n List<Pair<String, Value>> values = record.fields();\n GameBean infoGame =new GameBean();\n String name =\"\";\n for (Pair<String,Value> nameValue: values) {\n if (\"g\".equals(nameValue.key())) {\n Value value = nameValue.value();\n name = value.get(\"name\").asString();\n infoGame.setName(name);\n infoGame.setNumVotes(GameDBManager.getNumVotes(name));\n infoGame.setAvgRating(GameDBManager.getAvgRating(name));\n\n }\n }\n infoGames.add(infoGame);\n }\n\n return infoGames;\n\n }", "@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1, courses.size());\n Assert.assertEquals(\"Second one\", courses.get(0).getCourseMapped().getName());\n\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public interface XiaoShouContactDao extends EntityObjectDao {\n \n List<XiaoShouContact> findOverviewXiaoShouContact(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus, int startPosition, int pageSize);\n\n int findOverviewXiaoShouSize(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus);\n\n //查找重复的编号\n boolean findXiaoShouOrderDuplicate(String temp);\n\n //未付账单用户\n List<Object[]> obtainAllCompanyWithOnCreateBillOnLoginUser();\n\n //特定用户所有未付款history\n List<XiaoShouContactRentingFeeHistory> findSpecUserOnCreateBill(String selectCarrierUuid);\n\n /*******************************************扣款历史*******************************************/\n List<XiaoShouContactRentingFeeHistory> findXiaoShouHistory(List<String> historyUuids);\n\n List<XiaoShouContactRentingFeeHistory> obtainXiaoShouHistoryByVehicleNumber(String contactUuid, String vehicleNumber);\n}", "boolean isRealm(String paramString) {\n/* */ try {\n/* 165 */ Realm realm = new Realm(paramString);\n/* */ }\n/* 167 */ catch (Exception exception) {\n/* 168 */ return false;\n/* */ } \n/* 170 */ StringTokenizer stringTokenizer = new StringTokenizer(paramString, \".\");\n/* */ \n/* 172 */ while (stringTokenizer.hasMoreTokens()) {\n/* 173 */ String str = stringTokenizer.nextToken();\n/* 174 */ for (byte b = 0; b < str.length(); b++) {\n/* 175 */ if (str.charAt(b) >= '') {\n/* 176 */ return false;\n/* */ }\n/* */ } \n/* */ } \n/* 180 */ return true;\n/* */ }", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "public Vector findAll(String login, Boolean isAdmin) throws Exception {\n \nDebugSupport.printlnTest(\"RegionObject findAll started\");\t\n\tQuery query;\n\n if (!isAdmin.booleanValue()) {\n query = new Query(QUERY_SELECT_View, DataUtil.RESULT_JdbcObjectVector);\n query.append(\"AND o.loiginid=?\", login);\n } else {\n query = new Query(QUERY_SELECT_Admin, DataUtil.RESULT_JdbcObjectVector);\n }\n\n query.append(\"ORDER BY regname\");\n\n Vector vec= findVector(query);\n return vec;\n}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\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\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\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\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}", "public List<Room> findAppropriate(String applicationId) throws DAOException {\n List<Room> rooms = new ArrayList<Room>();\n Map<Integer, Integer> dayCompletionList;\n boolean isAvailable = true;\n int minPlacesAvailable;\n int neededPlacesAmount = 0;\n Date mainArrival = null;\n Date mainDeparture = null;\n PreparedStatement statement = null;\n PreparedStatement getApplicationData = null;\n PreparedStatement getRoomType = null;\n PreparedStatement getApplicationsForRoom = null;\n ResultSet applicationDataResultSet;\n ResultSet resultSet;\n ResultSet roomTypeResultSet;\n ResultSet applicationsForRoom;\n try {\n getApplicationData = proxyConnection.prepareStatement(SQL_SELECT_APPLICATION_DATA);\n getApplicationData.setLong(1, Long.parseLong(applicationId));\n\n applicationDataResultSet = getApplicationData.executeQuery();\n if (applicationDataResultSet.next()) {\n neededPlacesAmount = applicationDataResultSet.getInt(1);\n mainArrival = applicationDataResultSet.getDate(2);\n mainDeparture = applicationDataResultSet.getDate(3);\n }\n getRoomType = proxyConnection.prepareStatement(SQL_SELECT_ROOM_TYPE);\n getApplicationsForRoom = proxyConnection.prepareStatement(SQL_SELECT_APPLICATIONS_FOR_ROOM);\n getApplicationsForRoom.setInt(1, CONFIRMED);\n\n statement = proxyConnection.prepareStatement(SQL_SELECT_ROOMS_FOR_APPLICATION);\n statement.setLong(1, Long.parseLong(applicationId));\n\n resultSet = statement.executeQuery();\n while (resultSet.next()) {//all rooms of type\n dayCompletionList = new HashMap<>();\n Room room = new Room();\n room.setId(resultSet.getLong(1));\n room.setMaxPlaces(resultSet.getInt(2));\n room.setPrice(resultSet.getInt(3));\n getRoomType.setLong(1, Long.parseLong(resultSet.getString(4)));\n\n roomTypeResultSet = getRoomType.executeQuery();\n if (roomTypeResultSet.next()) {\n room.setType(roomTypeResultSet.getString(1));\n }\n getApplicationsForRoom.setLong(2, room.getId());\n getApplicationsForRoom.setDate(3, mainDeparture);\n getApplicationsForRoom.setDate(4, mainArrival);\n\n applicationsForRoom = getApplicationsForRoom.executeQuery();\n //number of day from 0 year\n int firstDay;\n int lastDay;\n int placesAmount = 0;\n minPlacesAvailable = room.getMaxPlaces();\n //through all confirmed applications for current room (only in case smn has already booked it)\n while (applicationsForRoom.next()) {\n placesAmount = applicationsForRoom.getInt(1);\n firstDay = applicationsForRoom.getInt(2);\n lastDay = applicationsForRoom.getInt(3);\n Integer i = firstDay;\n while (i <= lastDay) {\n if (dayCompletionList.containsKey(i)) {\n dayCompletionList.put(i, dayCompletionList.get(i) + placesAmount);\n } else {\n dayCompletionList.put(i, placesAmount);\n }\n i++;\n }\n }\n //заполненность дней по подтвержденным заявкам (сколько уже занято)\n for (int amount : dayCompletionList.values()) {\n if (room.getMaxPlaces() - amount < minPlacesAvailable) {\n //сколько осталось мест на такой период\n minPlacesAvailable = room.getMaxPlaces() - amount;\n }\n if (amount + neededPlacesAmount > room.getMaxPlaces()) {\n isAvailable = false;\n }\n }\n if (isAvailable) {\n room.setFreePlaces(minPlacesAvailable);\n rooms.add(room);\n }\n }\n } catch (SQLException e) {\n throw new DAOException(e);\n } finally {\n close(statement);\n close(getApplicationData);\n close(getApplicationsForRoom);\n close(getRoomType);\n }\n return rooms;\n }", "private static void executeQuery4(PersistenceManager pm) {\n Query query = pm.newQuery(Category.class);\n query.declareParameters(\"int length\");\n query.declareVariables(\"Item item\");\n query.setFilter(\n \"elements.contains(item) && item.name.length() <= length\");\n Collection results = (Collection)query.execute(new Integer(10));\n printCollection(\"Categories containing an item with a short name: \",\n results.iterator());\n query.closeAll();\n }", "public String getRuleBodySQLQueries(List<SWRLAtom> bodyAtoms, Map<String, String> v2prefix) {\n\t\tOntopOWLConnection conn = null;\n\t\tOntopOWLStatement st = null;\n\t\tString sql = null;\n\t\ttry{\n\t\t\tconn = _reasoner.getConnection();\n\t\t\tst = conn.createStatement();\n\t\t\tList<String> lines = new LinkedList<String>();\n\t\t\t\n\t\t\t// parse atoms into sparql query constraints\n\t\t\tfor(SWRLAtom atom : bodyAtoms) {\n\t\t\t\tif (atom instanceof SWRLClassAtom) {\n\t\t\t\t\t// class assertion\n\t\t\t\t\tString cls = atom.getPredicate().toString();\n\t\t\t\t\tString var = null;\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\t var = ((SWRLVariable)arg).getIRI().getRemainder().get();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlines.add(String.format(\"?%s a %s .\", var, cls));\n\t\t\t\t}else if(atom instanceof SWRLDataPropertyAtom) {\n\t\t\t\t\t//data value property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tString val = \"\";\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}else if (arg instanceof SWRLLiteralArgument) {\n\t\t\t\t\t\t\t val = arg.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t\telse\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s %s .\", vars.get(0), pred, val));\n\t\t\t\t}else if(atom instanceof SWRLObjectPropertyAtom) {\n\t\t\t\t\t// object property\n\t\t\t\t\tString pred = atom.getPredicate().toString();\n\t\t\t\t\tList<String> vars = new LinkedList<String>();\n\t\t\t\t\tfor(SWRLArgument arg : atom.getAllArguments()) {\n\t\t\t\t\t\tif (arg instanceof SWRLVariable) {\n\t\t\t\t\t\t\tvars.add(((SWRLVariable)arg).getIRI().getRemainder().get());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (vars.size() == 2)\n\t\t\t\t\t\tlines.add(String.format(\"?%s %s ?%s .\", vars.get(0), pred, vars.get(1)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tString sparqlQuery = String.format(queryTemplate, String.join(\"\\n\", lines));\n\t\t\t_logger.info(String.format(\"SPARQL: [%s]\", sparqlQuery));\n\t sql = st.getExecutableQuery(sparqlQuery).toString();\n } catch(Exception e){\n \te.printStackTrace();\n }finally {\n \tif (conn != null) {\n \t\ttry {\n \t\t\tst.close();\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (OWLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t}\n }\n\t\tif (null != sql) {\n\t\t\tsql = clearGeneratedSQl(sql);\n\t\t\tsql = fixURIPrefixIssue(sql, v2prefix);\n\t\t}\n\t\t_logger.info(String.format(\"translated SQL is: [%s]\", sql));\n\t\treturn sql;\n\t}", "private List<Map<String,Object>> listAccessibleMaps() {\r\n \r\n List<Map<String, Object>> accessMapData = null;\r\n \r\n ArrayList args = new ArrayList();\r\n String accessClause = userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_usage\", \"owner_name\", args, \"read\");\r\n try {\r\n accessMapData = magicDataTpl.queryForList(\r\n \"SELECT name, title, description FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n accessClause + \" ORDER BY title\", args.toArray()\r\n );\r\n /* Determine which maps the user can additionally edit and delete */\r\n ArrayList wargs = new ArrayList();\r\n List<Map<String,Object>> writeMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", wargs, \"update\") + \" ORDER BY title\", wargs.toArray()\r\n );\r\n ArrayList dargs = new ArrayList();\r\n List<Map<String,Object>> deleteMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", dargs, \"delete\") + \" ORDER BY title\", dargs.toArray()\r\n );\r\n for (Map<String,Object> mapData : accessMapData) {\r\n mapData.put(\"w\", \"no\");\r\n mapData.put(\"d\", \"no\");\r\n String name = (String)mapData.get(\"name\");\r\n writeMapData.stream().map((wData) -> (String)wData.get(\"name\")).filter((wName) -> (wName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"w\", \"yes\");\r\n });\r\n deleteMapData.stream().map((dData) -> (String)dData.get(\"name\")).filter((dName) -> (dName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"d\", \"yes\");\r\n });\r\n }\r\n } catch(DataAccessException dae) {\r\n accessMapData = new ArrayList();\r\n System.out.println(\"Failed to determine accessible maps for user, error was : \" + dae.getMessage());\r\n }\r\n return(accessMapData);\r\n }", "Pair<Boolean, List<Result>> execQuery(int matchLimit);", "public interface PermissionDao extends EasyJpaRepository<Permission,String> {\n\n @Query(\"select distinct p from Permission p \" +\n \"where p.code in (select p.code from Permission p left join p.users u1 where u1 = ?1 ) or \" +\n \"p.code in (select p.code from Permission p inner join p.groups g left join g.users u2 where u2 = ?1 and g.status.abandon = false ) \")\n List<Permission> findAllPermissionForUser(User user);\n\n @Query(\"select distinct p from Permission p right join p.groups g where g in ?1 \")\n List<Permission> findAllPermissionForGroups(Collection<Group> groups);\n\n Permission findByCode(String code);\n\n @Query(\"select distinct p from Permission p \" +\n \"where \"\n +\"p.code in (select p.code from Permission p left join p.users u1 where u1 = ?1 and p = ?2 ) or \" +\n \"p.code in (select p.code from Permission p inner join p.groups g left join g.users u2 where u2 = ?1 and g.status.abandon = false and p = ?2) \")\n Permission checkUserHasPermission(User user,Permission permission);\n\n @Query(\"select distinct p from Permission p \" +\n \"where \"\n +\"p.code in (select p.code from Permission p left join p.users u1 where u1 = ?1 and p in ?2 ) or \" +\n \"p.code in (select p.code from Permission p inner join p.groups g left join g.users u2 where u2 = ?1 and g.status.abandon = false and p in ?2) \")\n List<Permission> checkUserHasPermissions(User user,Collection<Permission> permissions);\n\n @Query(\"select p from Permission p where p not in ?1\")\n List<Permission> findPermissionNotIn(Collection<Permission> permissions);\n}", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.IEQ,searchObject.getPlayerAccount());\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_IS_ACTIVE, Operator.EQ,searchObject.getIsActive()));\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.EQ,searchObject.getPlayerAccount()));\n\n return criteria;\n //endregion your codes 2\n }", "@Override\n public void onSuccess() {\n try {\n Food food = commentAndRating.getFood();\n RealmResults<CommentAndRating> commentAndRatings = realm.where(CommentAndRating.class).equalTo(\"food.name\", food.getName()).findAll();\n realm.beginTransaction();\n food.setRating(String.valueOf(commentAndRatings.average(\"rating\")));\n //realm.insertOrUpdate(food);\n realm.commitTransaction();\n Toast.makeText(context, \"Successfully added comment and rating\", Toast.LENGTH_SHORT).show();\n } catch (Exception ex) {\n Toast.makeText(context, ex.toString(), Toast.LENGTH_SHORT).show();\n }\n\n }", "default List<Source> representativeTypicalityQuery(Set<Source> resultSet, Set<String> domain){\n return representativeTypicalityQuery(5/*optimization: 5 most typical are enough*/, resultSet, domain);\n }", "private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyLike(\"userName\", \"a\");\n for(UserRoles role : roles) {\n log.info(role.getUserName());\n }\n assertEquals(2, roles.size());\n }", "@Override\n public RealmResults<MainModelImp> getRealmResults(String lat, String lon) {\n return realm.where(MainModelImp.class)\n .equalTo(LATITUDE, lat)\n .equalTo(LONGITUDE, lon)\n .findAll();\n }", "private Criteria createFindByEntity(int type, int id) {\n return null;\t\n }", "public interface RealmInformationProvider {\n\n /**\n * Returns the display name of the realm which is visible in the tab list or in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the display name of the realm.\n */\n String realmDisplayName();\n\n /**\n * Returns the description of the realm which is visible in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the description of the realm.\n */\n String description();\n\n /**\n * @return true if the realm is private, false otherwise\n */\n boolean privateRealm();\n\n /**\n * @return the currently allowed maximum player count\n */\n int maxPlayers();\n\n /**\n * @return the amount of currently active boosts\n */\n int boostCount();\n\n /**\n * Limits are specified by the realm boost level.\n *\n * @return the current realm limits\n */\n Limits limits();\n\n /**\n * The promotion state of the realm. A promoted realm will always be shown first on the lobby's\n * realm overview menu and at the banner stand. Only VIPs and higher are privileged to mark a realm as promoted.\n *\n * <br><br> Since a realm doesn't know it's promotion state, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing information about the promotion state of the realm.\n */\n Action<Boolean> promotedRealm();\n\n /**\n * A realm is able to have it's own address. Using this address, players can directly join onto the running realm\n * without joining on Cytooxien first.\n *\n * <br><br> Since a realm doesn't know it's subdomain, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing the FQDN under which the realm can also be joined.\n */\n Action<String> subdomain();\n\n /**\n * This changes the display name of the realm. The new name of the realm must not exceed 32 characters and mustn't\n * be null or empty. Otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param name The new name of the realm\n * @return the action containing the success state\n */\n Action<Void> changeName(String name);\n\n /**\n * This changes the description of the realm. The new description of the realm must not exceed 128 characters otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param description The new realm description\n * @return the action containing the success state\n */\n Action<Void> changeDescription(String description);\n\n /**\n * This changes the maximum allowed player count of the realm. The new player count of the realm must\n * not exceed the maximum player count specified by the {@link Limits} object otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param maxPlayers The new maximum player count\n * @return the action containing the success state\n */\n Action<Void> updateMaximumPlayers(int maxPlayers);\n\n /**\n * This changes the privacy state of the realm.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param privateRealm true if the realm is private false otherwise\n * @return the action containing the success state\n */\n Action<Void> updatePrivacyState(boolean privateRealm);\n\n}", "@Override\n public Long countByCriteria(String[] layerList, String[] taxonList, String[] indicList,String colum) {\n //Build the query string base on parameters\n StringBuilder query = new StringBuilder();\n query.append(\"Select count(distinct \"+colum+\") from ait.taxon_info_index where \");\n \n //If there is geografical criteria\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\"(\");\n for(int i = 0;i<layerList.length;i++){\n String[] aux = layerList[i].split(\"~\");\n String layer = aux[0];\n String polygon = aux[1];\n if(i==layerList.length-1){ //last element\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\")\");\n }\n else{\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //If there is taxonomy criteria\n if(taxonList.length>0 && !taxonList[0].equals(\"\")){\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<taxonList.length;i++){\n //Get the name and taxonomical level of the specified taxon\n TaxonIndex ti = taxonIndexDAO.getTaxonIndexByName(taxonList[i]);\n if(ti.getTaxon_id()!=null){\n //To search in the specified taxonomyField\n String levelColum;\n switch (ti.getTaxon_range().intValue()) {\n case 1:\n levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n break;\n case 2:\n levelColum = TaxonomicalRange.PHYLUM.getFieldName();\n break;\n case 3:\n levelColum = TaxonomicalRange.CLASS.getFieldName();\n break;\n case 4:\n levelColum = TaxonomicalRange.ORDER.getFieldName();\n break;\n case 5:\n levelColum = TaxonomicalRange.FAMILY.getFieldName();\n break;\n case 6:\n levelColum = TaxonomicalRange.GENUS.getFieldName();\n break;\n case 7:\n levelColum = TaxonomicalRange.SPECIFICEPITHET.getFieldName();\n break;\n default:\n levelColum = TaxonomicalRange.SCIENTIFICNAME.getFieldName();\n break;\n }\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\") or \");\n }\n }\n else{ //If the taxon doesn't exist on data base\n String levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+-1+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+-1+\") or \");\n }\n }\n }\n query.append(\")\");\n }\n \n //If there is indicators criteria\n if(indicList.length>0 && !indicList[0].equals(\"\")){\n if((taxonList.length>0 && !taxonList[0].equals(\"\"))||(layerList.length>0 && !layerList[0].equals(\"\"))){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<indicList.length;i++){\n if(i==indicList.length-1){ //last element\n query.append(\"(indicator_id = \"+indicList[i]+\")\");\n }\n else{\n query.append(\"(indicator_id = \"+indicList[i]+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //Execute query\n return taxonInfoIndexDAO.countTaxonsByQuery(query.toString());\n }", "private <T extends Model> QuerySet<T> all(Class<T> modelClass) {\n QuerySet<T> querySet = new QuerySet<T>();\n querySet.setEntity((Class<T>) this.entity);\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n OneToOneField oneToOneFieldAnnotation = null;\n ForeignKeyField foreignKeyFieldAnnotation = null;\n ManyToManyField manyToManyFieldAnnotation = null;\n try {\n String sql = \"SELECT * FROM\";\n tableName = TableUtil.getTableName(modelClass);\n sql = String.format(\"%s %s\", sql, tableName);\n if (JediEngine.DEBUG) {\n System.out.println(sql + \";\\n\");\n }\n connect();\n statement = connection.prepareStatement(sql);\n resultSet = statement.executeQuery();\n if (!resultSet.next()) {\n return querySet;\n }\n resultSet.beforeFirst();\n while (resultSet.next()) {\n Object obj = entity.newInstance();\n Field id = jedi.db.models.Model.class.getDeclaredField(\"id\");\n id.setAccessible(true);\n // Oracle returns BigDecimal object.\n if (connection.toString().startsWith(\"oracle\")) {\n id.set(\n obj,\n ((java.math.BigDecimal) resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1))).intValue());\n } else {\n // MySQL and PostgreSQL returns a Integer object.\n id.set(obj, resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1)));\n }\n List<Field> _fields = JediEngine.getAllFields(this.entity);\n for (Field field : _fields) {\n field.setAccessible(true);\n if (!JediEngine.isJediField(field)) {\n continue;\n }\n if (field.toString().substring(field.toString().lastIndexOf('.') + 1).equals(\"serialVersionUID\")) {\n continue;\n }\n if (field.getName().equalsIgnoreCase(\"objects\")) {\n continue;\n }\n oneToOneFieldAnnotation = field.getAnnotation(OneToOneField.class);\n foreignKeyFieldAnnotation = field.getAnnotation(ForeignKeyField.class);\n manyToManyFieldAnnotation = field.getAnnotation(ManyToManyField.class);\n FetchType fetchType = JediEngine.FETCH_TYPE;\n Manager manager = null;\n if (manyToManyFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? manyToManyFieldAnnotation.fetch_type() : fetchType;\n if (fetchType.equals(FetchType.EAGER)) {\n String packageName = this.entity.getPackage().getName();\n String model = manyToManyFieldAnnotation.model().getSimpleName();\n model = Model.class.getSimpleName().equals(model) ? \"\" : model;\n Class superClazz = null;\n Class clazz = null;\n if (model.isEmpty()) {\n ParameterizedType genericType = null;\n if (ParameterizedType.class.isAssignableFrom(field.getGenericType().getClass())) {\n genericType = (ParameterizedType) field.getGenericType();\n superClazz = ((Class) (genericType.getActualTypeArguments()[0])).getSuperclass();\n if (superClazz == Model.class) {\n clazz = (Class) genericType.getActualTypeArguments()[0];\n model = clazz.getSimpleName();\n }\n }\n }\n String references = manyToManyFieldAnnotation.references();\n if (references == null || references.trim().isEmpty()) {\n if (clazz != null) {\n references = TableUtil.getTableName(clazz);\n } else {\n references = TableUtil.getTableName(model);\n }\n }\n String intermediateModelclassName = String.format(\"%s.%s\", packageName, model);\n Class associatedModelClass = Class.forName(intermediateModelclassName);\n manager = new Manager(associatedModelClass);\n QuerySet querySetAssociatedModels = null;\n String intermediateModelName = manyToManyFieldAnnotation.through().getSimpleName();\n intermediateModelName = Model.class.getSimpleName().equals(intermediateModelName) ? \"\" : intermediateModelName;\n if (intermediateModelName != null && !intermediateModelName.trim().isEmpty()) {\n intermediateModelclassName = String.format(\"%s.%s\", packageName, intermediateModelName);\n Class intermediateModelClass = Class.forName(intermediateModelclassName);\n String intermediateTableName = ((Model) intermediateModelClass.newInstance()).getTableName();\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n intermediateTableName,\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n } else {\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s_%s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n tableName,\n TableUtil.getTableName(references),\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n }\n field.set(obj, querySetAssociatedModels);\n } else {\n field.set(obj, null);\n }\n } else if (oneToOneFieldAnnotation != null || foreignKeyFieldAnnotation != null) {\n if (oneToOneFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? oneToOneFieldAnnotation.fetch_type() : fetchType;\n } else {\n fetchType = fetchType.equals(FetchType.NONE) ? foreignKeyFieldAnnotation.fetch_type() : fetchType;\n }\n if (fetchType.equals(FetchType.EAGER)) {\n // Recovers the attribute class.\n Class associatedModelClass = Class.forName(field.getType().getName());\n manager = new Manager(associatedModelClass);\n String s = String.format(\"%s_id\", TableUtil.getColumnName(field));\n Object o = resultSet.getObject(s);\n Model associatedModel = manager.get(\"id\", o);\n // References a model associated by a foreign key.\n field.set(obj, associatedModel);\n } else {\n field.set(obj, null);\n }\n } else {\n // Sets the fields that aren't Model instances.\n if ((field.getType().getSimpleName().equals(\"int\") || field.getType().getSimpleName().equals(\"Integer\")) &&\n connection.toString().startsWith(\"oracle\")) {\n if (resultSet.getObject(TableUtil.getColumnName(field)) == null) {\n field.set(obj, 0);\n } else {\n String columnName = TableUtil.getColumnName(field);\n BigDecimal bigDecimal = (BigDecimal) resultSet.getObject(columnName);\n field.set(obj, bigDecimal.intValue());\n }\n } else {\n Object columnValue = resultSet.getObject(TableUtil.getColumnName(field));\n columnValue = convertZeroDateToNull(columnValue);\n if (columnValue instanceof java.sql.Date) {\n java.sql.Date date = (java.sql.Date) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(date.getTime());\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof java.sql.Time) {\n java.sql.Time time = (java.sql.Time) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(time.getTime());\n calendar.set(Calendar.YEAR, 0);\n calendar.set(Calendar.MONTH, 0);\n calendar.set(Calendar.DAY_OF_MONTH, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof Timestamp) {\n Timestamp timestamp = (Timestamp) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(timestamp.getTime());\n columnValue = calendar.getTime();\n }\n field.set(obj, columnValue);\n }\n }\n manager = null;\n }\n T model = (T) obj;\n if (model != null) {\n model.setPersisted(true);\n }\n querySet.add(model);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close(resultSet, statement, connection);\n }\n return querySet;\n }", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "private String getQuery(Predicate p, HashMap<String, String> keyObjects) {\n\tString query = \"\";\n\tString tableName = p.getName();\n\tfor (int i = 0; i < p.getVars().size(); i++) {\n\t String var = p.getVars().get(i);\n\t String propertyName = var;\n\t boolean isJoin = false;\n\t if (var.endsWith(\"*\")) {\n\t\tvar = var.substring(0, var.length() - 1);\n\t\tpropertyName = var;\n\t } else {\n\t\t// check if this var is in the hashmap\n\t\t// if it is, it is a foreign key, so I have to replace\n\t\t// the object with the one from the map\n\t\tString obj = keyObjects.get(var);\n\t\tif (obj != null) {\n\t\t var = obj;\n\t\t isJoin = true;\n\t\t}\n\t }\n\t objectURI.put(var, \"o_\" + tableName);\n\t if (isJoin)\n\t\tquery += \" ?o_\" + tableName + \" vocab:\" + tableName + \"_\"\n\t\t\t+ propertyName + \" ?\" + var + \" . \\n\";\n\t else\n\t\tquery += \" OPTIONAL { ?o_\" + tableName + \" vocab:\" + tableName\n\t\t\t+ \"_\" + propertyName + \" ?\" + var + \" . } \\n\";\n\t}\n\t// System.out.println(\"PQ=\" + query);\n\treturn query;\n }", "@Test\n void getAllUserRolesSuccess() {\n List<UserRoles> userRoles = genericDao.getAll();\n //assert that you get back the right number of results assuming nothing alters the table\n assertEquals(6, userRoles.size());//\n log.info(\"get all userRoles test: all userRoles;\" + genericDao.getAll());\n }", "private List<String> getEmptyRoomsFromResultSet(ResultSet emptyQueryResults) {\n ArrayList<String> rooms = new ArrayList<String>();\n boolean hasNext = emptyQueryResults.next();\n while(hasNext) {\n String room = emptyQueryResults.getString(\"r1.roomid\");\n rooms.add(room);\n hasNext = emptyQueryResults.next();\n }\n return rooms;\n}", "public List<Map<String, Object>> test(UserMtl userMtl){\n\t\tString sqlApp = \"select * from app\";\n\t\tList<Map<String, Object>> queryForList = simpleJdbc.queryForList(sqlApp);\n\t\treturn queryForList;\n\t}", "@Override\n public void evaluateActiveUsers(String query) {\n\n\t}", "public java.util.Collection<kor.model.Professor> executeQuery(\n final ObjectContainerBase ocb, final Transaction t) {\n final LocalTransaction transLocal = (LocalTransaction) t;\n final java.util.Collection<kor.model.Professor> _ident_Professor = new java.util.ArrayList<kor.model.Professor>();\n ClassMetadata _classMeta24 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Professor\");\n long[] _ids24 = _classMeta24.getIDs(transLocal);\n\n for (long _id24 : _ids24) {\n LazyObjectReference _ref24 = transLocal.lazyReferenceFor((int) _id24);\n _ident_Professor.add((kor.model.Professor) _ref24.getObject());\n }\n\n java.util.Collection<java.lang.Integer> _dotResult = new java.util.ArrayList<java.lang.Integer>();\n int _dotIndex = 0;\n\n for (kor.model.Professor _dotEl : _ident_Professor) {\n if (_dotEl == null) {\n continue;\n }\n\n if (_dotEl != null) {\n ocb.activate(_dotEl, 1);\n }\n\n java.lang.Integer _mth_getAgeResult = _dotEl.getAge();\n\n if (_mth_getAgeResult != null) {\n ocb.activate(_mth_getAgeResult, 1);\n }\n\n if (_mth_getAgeResult != null) {\n ocb.activate(_mth_getAgeResult, 1);\n }\n\n _dotResult.add(_mth_getAgeResult);\n _dotIndex++;\n }\n\n java.lang.Double _avgResult = 0d;\n\n if ((_dotResult != null) && !_dotResult.isEmpty()) {\n Number _avgSum0 = null;\n\n for (Number _avgEl0 : _dotResult) {\n _avgSum0 = MathUtils.sum(_avgSum0, _avgEl0);\n }\n\n _avgResult = _avgSum0.doubleValue() / _dotResult.size();\n }\n\n java.lang.Double _groupAsResult_aux0 = _avgResult;\n java.lang.Double _dotEl2 = _groupAsResult_aux0;\n final java.util.Collection<kor.model.Professor> _ident_Professor1 = new java.util.ArrayList<kor.model.Professor>();\n ClassMetadata _classMeta25 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Professor\");\n long[] _ids25 = _classMeta25.getIDs(transLocal);\n\n for (long _id25 : _ids25) {\n LazyObjectReference _ref25 = transLocal.lazyReferenceFor((int) _id25);\n _ident_Professor1.add((kor.model.Professor) _ref25.getObject());\n }\n\n java.util.Collection<kor.model.Professor> _asResult_p = _ident_Professor1;\n java.util.Collection<kor.model.Professor> _whereResult = new java.util.ArrayList<kor.model.Professor>();\n int _whereLoopIndex = 0;\n\n for (kor.model.Professor _whereEl : _asResult_p) {\n if (_whereEl == null) {\n continue;\n }\n\n if (_whereEl != null) {\n ocb.activate(_whereEl, 1);\n }\n\n kor.model.Professor _ident_p = _whereEl;\n\n if (_ident_p != null) {\n ocb.activate(_ident_p, 1);\n }\n\n kor.model.Professor _dotEl1 = _ident_p;\n\n if (_ident_p != null) {\n ocb.activate(_ident_p, 2);\n }\n\n java.lang.Integer _mth_getAgeResult1 = _dotEl1.getAge();\n\n if (_mth_getAgeResult1 != null) {\n ocb.activate(_mth_getAgeResult1, 1);\n }\n\n java.lang.Double _ident__aux0 = _dotEl2;\n\n if (_ident__aux0 != null) {\n ocb.activate(_ident__aux0, 1);\n }\n\n Boolean _moreResult = (_mth_getAgeResult1 == null)\n ? ((_mth_getAgeResult1 == null) ? false : false)\n : ((_mth_getAgeResult1 == null) ? true\n : (_mth_getAgeResult1 > _ident__aux0));\n\n if (_moreResult) {\n _whereResult.add(_whereEl);\n }\n\n _whereLoopIndex++;\n }\n\n java.util.Collection<kor.model.Professor> _dotResult3 = new java.util.ArrayList<kor.model.Professor>();\n int _dotIndex3 = 0;\n\n for (kor.model.Professor _dotEl3 : _whereResult) {\n if (_dotEl3 == null) {\n continue;\n }\n\n if (_dotEl3 != null) {\n ocb.activate(_dotEl3, 1);\n }\n\n kor.model.Professor _ident_p1 = _dotEl3;\n\n if (_ident_p1 != null) {\n ocb.activate(_ident_p1, 1);\n }\n\n if (_ident_p1 != null) {\n ocb.activate(_ident_p1, 1);\n }\n\n _dotResult3.add(_ident_p1);\n _dotIndex3++;\n }\n\n pl.wcislo.sbql4j.db4o.utils.DerefUtils.activateResult(_dotResult3, ocb);\n\n return _dotResult3;\n }", "@Override\n public void execute(Realm realm) {\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }", "@Override\n public void realmTransaction(MainModelImp res) {\n realm.executeTransaction(realmT -> {\n RealmResults<MainModelImp> current = getRealmResults(res.getLocation().getLatitude(), res.getLocation().getLongitude());\n current.deleteAllFromRealm();\n MainModelImp cache = realmT.createObject(MainModelImp.class);\n cache.setLat(res.getLocation().getLatitude());\n cache.setLon(res.getLocation().getLongitude());\n for (Nearby_restaurant nearby : res.getNearby_restaurants()) {\n cache.getNearby_restaurants().add(nearby);\n }\n });\n\n }", "public interface ItemDAO extends DSpaceObjectDAO<Item> {\n\n public Iterator<Item> findAll(Context context, boolean archived) throws SQLException;\n\n public Iterator<Item> findAll(Context context, boolean archived, boolean withdrawn) throws SQLException;\n\n public Iterator<Item> findBySubmitter(Context context, EPerson eperson) throws SQLException;\n\n public Iterator<Item> findByMetadataField(Context context, MetadataField metadataField, String value, boolean inArchive) throws SQLException;\n\n public Iterator<Item> findByAuthorityValue(Context context, MetadataField metadataField, String authority, boolean inArchive) throws SQLException;\n\n public Iterator<Item> findArchivedByCollection(Context context, Collection collection, Integer limit, Integer offset) throws SQLException;\n\n public Iterator<Item> findAllByCollection(Context context, Collection collection) throws SQLException;\n\n}", "protected List<? extends DomainObject> findMany( StatementSource stmt )\n\t{\n\t\tList<DomainObject> objects = null;\n\t\tSQLiteDatabase db;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tUtils.Log( \"opening the database for read.\" );\n\t\t\tdb = Repository.getInstance( mContext ).getReadableDatabase();\n\t\t\tc = db.rawQuery( stmt.sql(), stmt.parameters() );\n\t\t\tif ( c != null ) {\n\t\t\t\tobjects = loadAll( c );\n\t\t\t}\n\t\t} catch ( SQLiteException e ) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif ( c != null ) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n /*List<DomainObject> result = null;\n\t\tif ( objects != null ) {\n\t\t\tresult = Collections.unmodifiableList( objects );\n\t\t}*/\n\t\treturn objects;\n\t}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "<E extends RealmModel> E get(Class<E> object, String object2, long l) {\n boolean bl = object2 != null;\n object2 = bl ? this.schema.getTable((String)object2) : this.schema.getTable((Class<? extends RealmModel>)object);\n if (bl) {\n if (l != -1L) {\n object = ((Table)object2).getCheckedRow(l);\n return (E)new DynamicRealmObject(this, (Row)object);\n }\n object = InvalidRow.INSTANCE;\n return (E)new DynamicRealmObject(this, (Row)object);\n }\n RealmProxyMediator realmProxyMediator = this.configuration.getSchemaMediator();\n if (l != -1L) {\n object2 = ((Table)object2).getUncheckedRow(l);\n return realmProxyMediator.newInstance(object, this, (Row)object2, this.schema.getColumnInfo((Class<? extends RealmModel>)object), false, Collections.<String>emptyList());\n }\n object2 = InvalidRow.INSTANCE;\n return realmProxyMediator.newInstance(object, this, (Row)object2, this.schema.getColumnInfo((Class<? extends RealmModel>)object), false, Collections.emptyList());\n }", "public RegistrationKey[] getForPatient(long patNum) throws Exception {\n if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)\n {\n return Meth.<RegistrationKey[]>GetObject(MethodBase.GetCurrentMethod(), patNum);\n }\n \n String command = \"SELECT * FROM registrationkey WHERE \";\n Family fam = Patients.getFamily(patNum);\n for (int i = 0;i < fam.ListPats.Length;i++)\n {\n command += \"PatNum=\" + POut.Long(fam.ListPats[i].PatNum) + \" \";\n if (i < fam.ListPats.Length - 1)\n {\n command += \"OR \";\n }\n \n }\n DataTable table = db.getTable(command);\n RegistrationKey[] keys = new RegistrationKey[table.Rows.Count];\n for (int i = 0;i < keys.Length;i++)\n {\n keys[i] = new RegistrationKey();\n keys[i].RegistrationKeyNum = PIn.Long(table.Rows[i][0].ToString());\n keys[i].PatNum = PIn.Long(table.Rows[i][1].ToString());\n keys[i].RegKey = PIn.String(table.Rows[i][2].ToString());\n keys[i].Note = PIn.String(table.Rows[i][3].ToString());\n keys[i].DateStarted = PIn.Date(table.Rows[i][4].ToString());\n keys[i].DateDisabled = PIn.Date(table.Rows[i][5].ToString());\n keys[i].DateEnded = PIn.Date(table.Rows[i][6].ToString());\n keys[i].IsForeign = PIn.Bool(table.Rows[i][7].ToString());\n keys[i].UsesServerVersion = PIn.Bool(table.Rows[i][8].ToString());\n keys[i].IsFreeVersion = PIn.Bool(table.Rows[i][9].ToString());\n keys[i].IsOnlyForTesting = PIn.Bool(table.Rows[i][10].ToString());\n keys[i].VotesAllotted = PIn.Int(table.Rows[i][11].ToString());\n }\n return keys;\n }", "private List<String> queryForAll() {\n // query for all of the data objects in the database\n List<Contact> list = dao.queryForAll();\n List<String> creadentials = new ArrayList<String>();\n for (Contact contact : list) {\n creadentials.add(contact.email);\n creadentials.add(contact.password);\n }\n return creadentials;\n }", "Query query();", "public void testGetMatchingAuthors() {\r\n //given\r\n System.out.println(\"getMatchingAuthors\");\r\n String nameSequence = \"F\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when\r\n List<Author> result = instance.getMatchingAuthors(nameSequence);\r\n \r\n //then\r\n assertEquals(result.size(), 8); \r\n for (Author author:result){\r\n System.out.println(author.toString() + \"\\n\"); \r\n }\r\n }", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "String getObjectCheckSql(String name);", "Map<Date, Set<String>> getFullUsers(Step step) throws SQLException;", "private interface ProfileQuery {\n String[] PROJECTION = {\n ContactsContract.CommonDataKinds.Email.ADDRESS,\n ContactsContract.CommonDataKinds.Email.IS_PRIMARY,\n };\n\n int ADDRESS = 0;\n int IS_PRIMARY = 1;\n }", "Assist_table selectByPrimaryKey(Integer user);", "@Mapper\n@Repository\npublic interface ShiroDao {\n List<Users> queryAllUsers();\n\n Users queryUserByUsername(String username);\n\n Integer queryRoleIdByUserId(Integer id);// user_role\n\n Role queryRoleByRoleId(Integer id);\n\n List<Integer> queryAuthIdByRoleId(Integer id);// role_auth\n\n Auth queryAuthByAuthId(Integer id);\n\n List<RoleAuth> queryAuthIdByRoleIdTwo(Integer id);// role_auth\n\n\n Auth queryAuthByauthid(Integer id);\n\n List<Auth> queryAuthBypid(Integer id);\n\n List<Auth> queryAuthBypidTwo(Integer pid);\n\n}", "@Test\n void getByPropertyEqualSuccess() {\n List<UserRoles> usersRoles = genericDao.getByPropertyEqual(\"roleName\", \"admin\");\n assertEquals(1, usersRoles.size());\n assertEquals(3, usersRoles.get(0).getId());//not sure about this one\n }", "public List<Record> executeNativeFinder(String queryName, Object context);", "private List<Entity> processEntities(List<Mapping> mappings, Map record) throws Exception{\n\n\t\tList<Entity> builtEnts = new ArrayList<Entity>();\n\t\t\n\t\tList<Entity> entities = buildEntities();\n\t\t\n\t\tboolean isOmitted = isOmitted(record);\n\t\t\n\t\t/*\n\t\tfor(String omkeyfull: OMISSIONS_MAP.keySet()) {\n\t\t\t\n\t\t\tString[] omkeys = omkeyfull.split(\":\");\n\t\t\t\n\t\t\tisOmitted = iterateOmkeys(Arrays.asList(omkeys), record);\n\t\t\t\n\t\t}\n*/\t\t\n\t\t\n\t\tif(!isOmitted){\n\t\t\t\n\t\t\tfor(Mapping mapping: mappings){\n\t\t\t\tList<Object> relationalValue = new ArrayList<Object>();\n\n\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\tarray[0] = mapping.getKey().split(\":\")[0] + \":\" + RELATIONAL_KEY;\n\t\t\t\t\trelationalValue = findValueByKey(record,array);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDataType dt = DataType.initDataType(StringUtils.capitalize(mapping.getDataType()));\n\t\t\t\t\n\t\t\t\tif(!mapping.getDataType().equalsIgnoreCase(\"OMIT\")){\n\t\t\t\t\tList<Object> values = new ArrayList<Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(!IS_DIR) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t\t//values = findValueByKey2(record, new ArrayList(Arrays.asList(mapping.getKey().split(\":\"))));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] array = new String[mapping.getKey().split(\":\").length - 1];\n\t\t\t\t\t\tarray[0] = mapping.getKey();\n\t\t\t\t\t\tvalues = findValueByKey2(record,new ArrayList(Arrays.asList(array)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tMap<String,String> options = mapping.buildOptions(mapping);\n\t\t\t\t\t\n\t\t\t\t\tif(!options.isEmpty()) {\n\t\t\t\t\t\tif(options.containsKey(\"TYPE\")) {\n\t\t\t\t\t\t\tString type = options.get(\"TYPE\");\n\t\t\t\t\t\t\tif(type.equalsIgnoreCase(\"datediffin\")) {\n\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(endDateExclusive, startDateInclusive );\n\n\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if(type.equalsIgnoreCase(\"datedifffrom\")) {\n\t\t\t\t\t\t\t\tString dateDiffFrom = options.containsKey(\"DIFFFROM\") ? options.get(\"DIFFFROM\").replaceAll(\"-\",\":\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString mask = options.containsKey(\"MASK\") ? options.get(\"MASK\"): null;\n\n\t\t\t\t\t\t\t\tString diffIn = options.containsKey(\"DIFFIN\") ? options.get(\"DIFFIN\"): null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate startDateInclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLocalDate endDateExclusive = null;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(dateDiffFrom.equalsIgnoreCase(\"sysdate\")) {\n\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.now();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tObject fromO = \n\t\t\t\t\t\t\t\t\t\t\tfindValueByKey(new LinkedHashMap(record), dateDiffFrom.split(\":\")).get(0);\n\n\t\t\t\t\t\t\t\t\tif(mask != null) {\n\t\t\t\t\t\t\t\t\t\tif(fromO != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tString from = fromO.toString();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tstartDateInclusive = LocalDate.parse(from, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else throw new Exception(\"No mask given\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int x = 0; x < values.size(); x++) {\n\t\t\t\t\t\t\t\t\tif(values.get(0) != null) {\n\t\t\t\t\t\t\t\t\t\tString value = values.get(0).toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tendDateExclusive = value.isEmpty() ? null: LocalDate.parse(value, DateTimeFormatter.ofPattern(mask) );\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(endDateExclusive != null) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tPeriod period = Period.between(startDateInclusive, endDateExclusive);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvalues.remove(x);\n\t\t\t\t\t\t\t\t\t\t\tif(diffIn.equalsIgnoreCase(\"years\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tvalues.add(x, period.getYears());\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\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\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\t}\n\t\t\t\t\t}\n\t\t\t\t\tString mappingK = mapping.getKey().split(\":\")[0];\n\t\t\t\t\tString recordK = record.keySet().iterator().next().toString().split(\":\")[0];\n\t\t\t\t\tif(mappingK.equals(recordK)) {\n\t\t\t\t\t\tif(values == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(relationalValue == null) throw new Exception(\"Following Mapping does not exist in the datafile: \\n\"\n\t\t\t\t\t\t\t\t+ mapping.toCSV() + \"\\n\" +\n\t\t\t\t\t\t\t\t\" be sure that the column and file exist.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSet<Entity> newEnts = new HashSet<Entity>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(values.isEmpty()) {\n\t\t\t\t\t\t\tif(INCLUDE_EMPTY_VALUES == true) {\n\t\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewEnts = dt.generateTables(mapping, entities, values, relationalValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(newEnts != null && newEnts.size() > 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tbuiltEnts.addAll(newEnts);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn builtEnts;\t\t\n\t}", "List<MorePracticeClass> selectQueryNotProMng(HashMap map, RowBounds rowBounds);", "private String searchAllViewerAccountSQL(){\n\t\tString sql = (\"SELECT username, type From viewer\");\n\t\tString addsql;\n\t\tif(!accountNameViewTextField.getText().equals(\"\")){\n\t\t\taddsql = \" WHERE username = \\'\" + accountNameViewTextField.getText() + \"\\'\";\n\t\t\tsql = sql + addsql;\n\t\t}\n\t\tSystem.out.println(sql);\n\t\treturn sql;\n\t}", "public interface ISalaryDao {\n\n public Map<String, Object> querySingleMapByOraginalSql(String sql, Object... realValue);\n\n public void updateRowByOraginalSql(Object... realValue);\n\n public void resetInitPwd(String A0100);\n\n\n}", "IRealm getRealm();", "public interface RoleDao extends Dao<RoleEntity, Long> {\n\n\t\n\t/**\n\t * Get the system-defined roles \n\t * @return List containing the System roles\n\t */\n\tList<RoleEntity> getSystemRoles();\n\t\n\t\n\t/**\n\t * @param roleName\n\t * @return Matching Role entity or NULL if none found\n\t */\n\tRoleEntity findByName(String roleName);\n\n}", "public static void main(String[] args) {\n\r\n\t\tEntityManager em = PersistanceManager.INSTANCE.getEntityManager();\r\n\t\tSystem.out.println(\"Print ALL\");\r\n\t\tQuery query = em.createQuery(\"FROM Employee e\");\r\n\t\tArrayList<Employee> result = (ArrayList<Employee>) query.getResultList();\r\n\t\tfor (Employee current : result)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print id = 3\");\r\n\t\tQuery query1 = em.createQuery(\"FROM Employee e where e.id=3\");\r\n\t\tArrayList<Employee> result1 = (ArrayList<Employee>) query1.getResultList();\r\n\t\tfor (Employee current : result1)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print Named Query \");\r\n\t\tArrayList<Employee> result2 = (ArrayList<Employee>) em.createNamedQuery(\"Employee.searchAll\").setParameter(\"empName\", \"D%\")\r\n\t\t\t\t.getResultList();\r\n\t\tfor (Employee current : result2)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t}", "public T caseQuery(Query object)\n {\n return null;\n }", "List<AdminUser> selectByExample(AdminUserCriteria example);", "List<AdminUser> selectByExample(AdminUserCriteria example);", "public final java.util.List<p035ru.unicorn.ujin.data.realm.marketplace.CartOffer> getOrderedOfferList(java.lang.String r5) {\n /*\n r4 = this;\n io.realm.Realm r0 = r4.realm\n java.lang.Class<ru.unicorn.ujin.data.realm.marketplace.CartItem> r1 = p035ru.unicorn.ujin.data.realm.marketplace.CartItem.class\n io.realm.RealmQuery r0 = r0.where(r1)\n io.realm.RealmResults r0 = r0.findAll()\n java.lang.String r1 = \"cartItemList\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)\n java.lang.Iterable r0 = (java.lang.Iterable) r0\n java.util.Iterator r0 = r0.iterator()\n L_0x0017:\n boolean r1 = r0.hasNext()\n r2 = 0\n if (r1 == 0) goto L_0x0036\n java.lang.Object r1 = r0.next()\n r3 = r1\n ru.unicorn.ujin.data.realm.marketplace.CartItem r3 = (p035ru.unicorn.ujin.data.realm.marketplace.CartItem) r3\n ru.unicorn.ujin.data.realm.marketplace.CartCompany r3 = r3.getCompany()\n if (r3 == 0) goto L_0x002f\n java.lang.String r2 = r3.getId()\n L_0x002f:\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r2, (java.lang.Object) r5)\n if (r2 == 0) goto L_0x0017\n goto L_0x0037\n L_0x0036:\n r1 = r2\n L_0x0037:\n ru.unicorn.ujin.data.realm.marketplace.CartItem r1 = (p035ru.unicorn.ujin.data.realm.marketplace.CartItem) r1\n if (r1 == 0) goto L_0x004a\n io.realm.RealmList r5 = r1.getOffers()\n if (r5 == 0) goto L_0x004a\n java.lang.Iterable r5 = (java.lang.Iterable) r5\n java.util.List r5 = kotlin.collections.CollectionsKt.filterNotNull(r5)\n if (r5 == 0) goto L_0x004a\n goto L_0x004e\n L_0x004a:\n java.util.List r5 = kotlin.collections.CollectionsKt.emptyList()\n L_0x004e:\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p035ru.unicorn.ujin.market.repository.MarketLocalRepository.getOrderedOfferList(java.lang.String):java.util.List\");\n }", "public interface SysUserMapper extends Mapper<SysUser> {\n\n @Select(\"select * from sys_user where username=#{username}\")\n @Results({\n @Result(id = true,property = \"id\",column = \"id\"),\n @Result(property = \"roles\",column = \"id\",javaType = List.class,\n many = @Many(select = \"com.hailong.spring.mapper.SysRoleMapper.findByUid\"))\n })\n public SysUser findByUserName(String username);\n}", "@Test\n void getByPropertyLikeSuccess() {\n List<User> users = dao.findAllByPropertyLike(\"lastName\", \"Q\");\n assertEquals(1, users.size());\n }", "public interface UserDao extends BaseDao<User, Long> {\n\n User findByJaccountUid(String jaccountUid);\n\n User findByJaccountId(String jaccountId);\n\n User findByJaccountChinesename(String jaccountChinesename);\n\n User findByUsername(String username);\n\n User findById(Long id);\n\n List<User> findByRole(User.Role role);\n\n}", "public interface IMainListener {\n void onUsersReqComplete(Result<List<User>> result, Realm realm);\n}", "public List<Literal> query(Literal q) {\n\r\n\t\t\r\n\t\tList<Literal> result = datalogReasoner.query(compiledClauses, q);\r\n\t\t\r\n\t\tLDLPProgramQueryResultDecompiler decompiler = new LDLPProgramQueryResultDecompiler();\r\n\t\t\r\n\t\tresult = decompiler.decompileLiterals(result);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\r\n\r\n\t}", "public <T extends Entity> List<T> getListObjectByResultSet(T entityT, ResultSet rs) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException, InstantiationException{\n\t\tDBProperty dbProperty = entityT.getDbProperty();\n\t\tList<T> list = new ArrayList<T>();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tT entity = (T) entityT.getClass().newInstance();\n\t\t\tfor (DBSimplePropertyItem item : dbProperty.getDbSimplePropertyItems()) {\n\t\t\t\tMethod mRs = RESULT_SET.getMethod(\n\t\t\t\t\t\tdbQueryUtil.getMethodGetName(item.getType().getSimpleName(), item.getType()), new Class[]{String.class});\n\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\t\t\tClass type = (item.getType().equals(Time.class))?Date.class:item.getType();\n\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{type});\n\t\t\t\tm.invoke(entity, obRs);\n\t\t\t}\n\t\t\t\n\t\t\tfor (DBManyToOnePropertyItem item : dbProperty\n\t\t\t\t\t.getDbManyToOnePropertyItems()) {\n\t\t\t\t//obrs = rs.getInt(\"ID_FK\")\n\t\t\t\tMethod mRs = RESULT_SET.getMethod(dbQueryUtil.getMethodGetName(item.getClassFkName().getSimpleName(), \n\t\t\t\t\t\titem.getClassFkName()), new Class[]{String.class});\n\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\n\t\t\t\tObject ob= item.getClassName().newInstance();\n\t\t\t\t\n\t\t\t\t//ob.setId(obRs)\n\t\t\t\tMethod mFk = ob.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppFkName()), new Class[]{item.getClassFkName()});\n\t\t\t\tmFk.invoke(ob, obRs);\n\t\t\t\tif(!item.isLazy()){\n\t\t\t\t\tob = getObjectByObject((Entity) ob);\n\t\t\t\t}\n\t\t\t\t//entity.setXXX(ob)\n\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{item.getClassName()});\n\t\t\t\tm.invoke(entity, ob);\n\t\t\t}\n\n\t\t\tfor (DBOneToManyPropertyItem item : dbProperty.getDbOneToManyPropertyItems()) {\n\t\t\t\tList<Entity> result = null;\n\t\t\t\tif(!item.isLazy()){\n\t\t\t\t\tMethod mRs = RESULT_SET.getMethod(\n\t\t\t\t\t\t\tdbQueryUtil.getMethodGetName(item.getClassFkName().getSimpleName(),item.getClassFkName()), new Class[]{String.class});\n\t\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\t\t\t\t\n\t\t\t\t\tObject ob= dbProperty.getClassName().newInstance();\n\t\t\t\t\tMethod mFk = ob.getClass().getMethod(\n\t\t\t\t\t\t\t\tdbQueryUtil.getMethodSetName(item.getAppFkName()), new Class[]{item.getClassFkName()});\n\t\t\t\t\tmFk.invoke(ob, obRs);\n\t\t\t\t\t\n\t\t\t\t\tEntity obTemp= (Entity)item.getClassName().newInstance();\n\t\t\t\t\tMethod mTemp = obTemp.getClass().getMethod(\n\t\t\t\t\t\t\t\tdbQueryUtil.getMethodSetName(obTemp.getDbProperty().getAppNameByDbName(item.getDbFkName())), new Class[]{dbProperty.getClassName()});\n\t\t\t\t\tmTemp.invoke(obTemp, ob);\n\t\t\t\t\n\t\t\t\t\tresult = getListObjectByObject(obTemp);\n\t\t\t\t\t\n\t\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{List.class});\n\t\t\t\t\tm.invoke(entity, result);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(entity);\n\t\t}\n\t\treturn list;\n\t}", "public static List<List<int>> getAR(DateTime dateFrom, DateTime dateTo, List<DashboardAR> listDashAR) throws Exception {\n if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)\n {\n return Meth.<List<List<int>>>GetObject(MethodBase.GetCurrentMethod(), dateFrom, dateTo, listDashAR);\n }\n \n //assumes that dateFrom is the first of the month and that there are 12 periods\n //listDashAR may be empty, in which case, this routine will take about 18 seconds, but the user was warned.\n //listDashAR may also me incomplete, especially the most recent month(s).\n String command = new String();\n List<int> listInt = new List<int>();\n listInt = new List<int>();\n boolean agingWasRun = false;\n for (int i = 0;i < 12;i++)\n {\n DateTime dateLastOfMonth = dateFrom.AddMonths(i + 1).AddDays(-1);\n DashboardAR dash = null;\n for (int d = 0;d < listDashAR.Count;d++)\n {\n if (listDashAR[d].DateCalc != dateLastOfMonth)\n {\n continue;\n }\n \n dash = listDashAR[d];\n }\n if (dash != null)\n {\n //we found a DashboardAR object from the database for this month, so use it.\n listInt.Add((int)dash.BalTotal);\n continue;\n }\n \n agingWasRun = true;\n //run historical aging on all patients based on the date entered.\n Ledgers.ComputeAging(0, dateLastOfMonth, true);\n command = \"SELECT SUM(Bal_0_30+Bal_31_60+Bal_61_90+BalOver90),SUM(InsEst) FROM patient\";\n DataTable table = Db.getTable(command);\n dash = new DashboardAR();\n dash.DateCalc = dateLastOfMonth;\n dash.BalTotal = PIn.Double(table.Rows[0][0].ToString());\n dash.InsEst = PIn.Double(table.Rows[0][1].ToString());\n DashboardARs.insert(dash);\n //save it to the db for later.\n listInt.Add((int)dash.BalTotal);\n }\n //and also use it now.\n if (agingWasRun)\n {\n Ledgers.runAging();\n }\n \n //set aging back to normal\n List<List<int>> retVal = new List<List<int>>();\n retVal.Add(listInt);\n return retVal;\n }", "public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum &lt; #{end}) a where a.rn &gt; #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}", "public abstract List createQuery(String query);", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void generatereports(){\r\n\t\t\r\n\t\tAccount a = (Account) Cache.get(\"authUser\");\r\n\t\t\r\n\t\tDealer d = Dealer.find(\"byDealershipId\", a.uniquenumber).first();\r\n\t\tif(a!= null)\r\n\t\t{\r\n\t\t\t/*\r\n\t\t\t * Get the list of orders placed for this dealer\r\n\t\t\t *Classify it as Total Confirmed \r\n\t\t\t *Total Delivered and so on \r\n\t\t\t *\r\n\t\t\t */\r\n\t\t\tList<OrderCylinder> totalorders = OrderCylinder.find(\"byDealerId\",d).fetch();\r\n\t\t\t//List<OrderCylinder> confirmorders = OrderCylinder.f\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tDealerControllerMap.pleaselogin();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void queryUserList() {\n\n User user = new User();\n user.setName(\"lin\");\n\n List<User> users = userDao.queryUserList(user, 0, 5);\n assertEquals(1, users.size());\n\n }", "public interface BattleDao {\n\n @Select(\"SELECT * FROM battle WHERE chapter_id = #{chapterId} order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattleByChapterId(String chapterId);\n\n @Select(\"SELECT * FROM battle order by id\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public ArrayList<Battle> getAllBattle();\n\n @Select(\"SELECT * FROM battle WHERE battle_id = #{battleId}\")\n @Results({\n @Result(property = \"battleId\", column = \"battle_id\"),\n @Result(property = \"chapterId\", column = \"chapter_id\"),\n @Result(property = \"battleTitle\", column = \"battle_title\"),\n @Result(property = \"battleDesc\", column = \"battle_desc\"),\n })\n public Battle getBattleById(String battleId);\n}", "public interface TableQueryResult extends Catalog, TableModel {\n\n /**\n * Returns the Vector of Vectors that contains the table's data values.\n * The vectors contained in the outer vector are each a single row of values.\n */\n Vector<Vector<Object>> getDataVector();\n\n /** Return a description of the ith table column field */\n FieldDesc getColumnDesc(int i);\n\n /** Return the table column index for the given column name */\n int getColumnIndex(String name);\n\n /** Return a vector of column headings for this table. */\n List<String> getColumnIdentifiers();\n\n /** Return true if the table has coordinate columns, such as (ra, dec) */\n boolean hasCoordinates();\n\n /**\n * Return a Coordinates object based on the appropriate columns in the given row,\n * or null if there are no coordinates available for the row.\n */\n Coordinates getCoordinates(int rowIndex);\n\n /**\n * Return an object describing the columns that can be used to search\n * this catalog.\n */\n RowCoordinates getRowCoordinates();\n\n /**\n * Return the center coordinates for this table from the query arguments,\n * if known, otherwise return the coordinates of the first row, or null\n * if there are no world coordinates available.\n */\n WorldCoordinates getWCSCenter();\n\n /**\n * Return the object representing the arguments to the query that resulted in this table,\n * if known, otherwise null.\n */\n QueryArgs getQueryArgs();\n\n /**\n * Set the object representing the arguments to the query that resulted in this table.\n */\n void setQueryArgs(QueryArgs queryArgs);\n\n /** Return true if the result was truncated and more data would have been available */\n boolean isMore();\n\n /**\n * Return the catalog used to create this table,\n * or a dummy, generated catalog object, if not known.\n */\n Catalog getCatalog();\n\n /**\n * Return a possible SiderealTarget for the row i\n */\n Option<SiderealTarget> getSiderealTarget(int i);\n\n}", "private static void hqlQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.createQuery(\"from Employee e where e.dp.departmentId<=:\"+DtoConstants.DEPARTMENT_ID+\" order by e.name desc\");\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}", "@Dao\npublic interface ContactDao {\n\n @Query(\"SELECT * FROM contact\")\n Maybe<List<Contact>> getAll();\n\n @Query(\"SELECT * FROM contact where contact_id = :contactId\")\n Maybe<Contact> getById(long contactId);\n\n @Query(\"SELECT * FROM contact WHERE first_name LIKE :query OR last_name LIKE :query\")\n Maybe<List<Contact>> find(String query);\n\n @Insert\n long[] insert(Contact... contacts);\n\n @Insert(onConflict=REPLACE)\n long insert(Contact contact);\n\n @Update\n int update(Contact contact);\n\n @Delete\n int delete(Contact contact);\n\n @Query(\"DELETE FROM contact\")\n int deleteAll();\n}", "public interface HBOActorMstrDao {\n\n \n \n /** \n\n\t* Returns a multiple row of the database. If there is no match, <code>null</code> is returned.\n\t* @return DTO Object representing a multiple rows of the table.If there is no match, <code>null</code> is returned.\n **/ \n\n public HBOActorMstr[] getActorName(String roleId) throws DAOException;\n\n}", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "SPerms selectByPrimaryKey(Long permsId);", "public interface ChecklistItemDAOQuery {\n public final static String UUID = \"select REPLACE(UUID(),'-','')\";\n public final static String CREATE_ITEM = \"insert into checklist_items (id, taskid, title) \"+\n \"values (unhex(?), unhex(?), ?)\";\n public final static String CHECK_ITEM = \"update checklist_items set checked=TRUE WHERE id=unhex(?)\";\n public final static String GET_ITEM_BY_ID = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.id=unhex(?)\";\n public final static String GET_ITEMS_FROM_TASK = \"select hex(i.id) as id, hex(i.taskid) as taskid, i.user_checked as user_checked, i.title, i.checked from checklist_items i where i.taskid=unhex(?)\";\n}", "public EntityAisle getByMatricule(int matricule ){\n\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n EntityAisle result = null;\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE, null, ConfigDAO.COLUMN_RAYON_ID +\" = \" + matricule , null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n List<EntityAisle> AisleList = new ArrayList<>();\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n result = AisleList.get(0);\n return result;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return result;\n }", "public void jpqlFiltri() {\n em.getTransaction().begin();\n Query q = em.createQuery(\"SELECT c FROM Customer c WHERE c.customer_id between 340 and 345\");\n\n List<Customer> listF = q.getResultList();\n\n System.out.println(\"I Customer con id tra 340 e 345 sono:\");\n\n for (Customer c : listF) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n Query q1 = em.createQuery(\"SELECT c FROM Customer c WHERE c.first_name like 'S%'\");\n\n List<Customer> listF2 = q1.getResultList();\n\n System.out.println(\"I Customer con nome che inizia per la lettera S sono:\");\n\n for (Customer c : listF2) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n em.getTransaction().commit();\n em.close();\n emf.close();\n }", "List<FactRoomLog> selectByExample(FactRoomLogExample example);", "private static void namedQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.getNamedQuery(DtoConstants.EMPLOYEE_DEP_ID_NQ);\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tSystem.out.println(\"Named Query result for query with department id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\tint employeeId=5;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\temployeeId=10;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NNQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Native Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}", "public static ObservableList<Omni> Quaeres(Omni bean) throws SQLException {\n \n ObservableList<Omni> result = FXCollections.observableArrayList();\n \n ResultSet rs = null;\n String query = \"SELECT * FROM $table WHERE $column like ?\";\n String sql = query.replace(\"$table\", bean.getTable()).replace(\"$column\", bean.getColumn());\n \n try(\n Connection conn = DbUtil.getConn(DbType.MYSQL);\n PreparedStatement stmt = conn.prepareStatement(sql);\n ) {\n \n int inputType = bean.getInputType();\n \n switch (inputType) {\n case 1:\n stmt.setInt(1, bean.getNumber());\n break;\n case 2:\n stmt.setString(1, \"%\" + bean.getWord() +\"%\");\n break;\n default:\n System.out.println(\"What\");\n break;\n }\n \n rs = stmt.executeQuery();\n \n while(rs.next()) {\n \n //////////COLUMN NAMES/////////////\n \n ArrayList<String> columnNames = new ArrayList();\n \n ArrayList<String> columnTypes = new ArrayList();\n \n ResultSetMetaData rsmd = rs.getMetaData();\n \n for (int i = 1; i < rsmd.getColumnCount() + 1; i++) {\n \n columnNames.add(rsmd.getColumnName(i));\n \n columnTypes.add(rsmd.getColumnTypeName(i));\n \n }\n \n \n \n /////////COLUMN VALUES///////////////\n \n Omni output = new Omni();\n \n int lenght = columnNames.size();\n \n switch(lenght) {\n \n case 2:\n \n System.out.println(\"The table is diplomatocourses\");\n \n output = new Omni(\n rs.getInt(1),\n rs.getInt(2));\n \n break;\n \n case 3:\n \n System.out.println(\"The table is attendance\");\n \n output = new Omni(\n rs.getString(1), \n rs.getInt(2), \n rs.getInt(3));\n \n break;\n \n case 4:\n \n System.out.println(\"The table is submissions\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getInt(2), \n rs.getInt(3), \n rs.getInt(4));\n \n break;\n \n case 5:\n \n if (\"INT\".equals(columnTypes.get(1))) {\n System.out.println(\"The table is assessment\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getInt(2), \n rs.getString(3), \n rs.getString(4), \n rs.getString(5));\n \n } else {\n System.out.println(\"The table is diploma\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getString(2), \n rs.getString(3), \n rs.getString(4), \n rs.getString(5));\n \n }\n \n break;\n \n case 6:\n \n if (\"INT\".equals(columnTypes.get(4))) {\n System.out.println(\"The table is courses\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getString(2), \n rs.getString(3), \n rs.getString(4), \n rs.getInt(5), \n rs.getInt(6));\n \n } else {\n System.out.println(\"The table is admin\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getString(2), \n rs.getString(3), \n rs.getString(4), \n rs.getString(5), \n rs.getString(6));\n \n }\n \n break;\n \n case 8:\n \n System.out.println(\"The table is caseworker\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getString(2), \n rs.getString(3), \n rs.getString(4), \n rs.getString(5), \n rs.getString(6), \n rs.getString(7), \n rs.getString(8));\n \n break;\n \n case 11:\n \n System.out.println(\"The table is students\");\n \n output = new Omni(\n rs.getInt(1), \n rs.getInt(2), \n rs.getInt(3), \n rs.getString(4), \n rs.getString(5), \n rs.getString(6), \n rs.getString(7),\n rs.getInt(8), \n rs.getInt(9),\n rs.getInt(10),\n rs.getInt(11));\n \n break;\n \n default:\n \n System.out.println(\"What\");\n \n }\n \n bean.setColumnNames(columnNames);\n bean.setColumnTypes(columnTypes);\n \n result.add(output);\n \n System.out.println(output);\n }\n \n } catch (Exception e) {\n System.out.println(e);\n return null;\n }\n \n return result;\n \n }" ]
[ "0.5652697", "0.5650732", "0.53900117", "0.5376896", "0.52486986", "0.5223419", "0.51440144", "0.51138586", "0.5083357", "0.5065938", "0.5063993", "0.5062676", "0.5057903", "0.5052931", "0.505179", "0.5050949", "0.5041984", "0.5027545", "0.5006308", "0.4994045", "0.49631357", "0.49551514", "0.49075893", "0.48807696", "0.487339", "0.4872977", "0.4859713", "0.48407394", "0.4838397", "0.4824559", "0.48218107", "0.48182952", "0.4816792", "0.48160622", "0.4811251", "0.48095545", "0.48085323", "0.48064643", "0.480307", "0.47983202", "0.47954893", "0.4793939", "0.4784681", "0.4775068", "0.47744933", "0.47722915", "0.4770167", "0.47701344", "0.47674474", "0.47661814", "0.47659388", "0.4764885", "0.47646803", "0.476342", "0.47618648", "0.47592482", "0.47480467", "0.47480145", "0.474706", "0.47405657", "0.47317767", "0.47296587", "0.47267243", "0.4724017", "0.47172028", "0.47157484", "0.4714157", "0.4711935", "0.47117203", "0.47087902", "0.46971405", "0.46969584", "0.469612", "0.469612", "0.46953773", "0.46937314", "0.46934938", "0.46745875", "0.46732274", "0.467281", "0.46715334", "0.46700245", "0.46685135", "0.46674302", "0.46584305", "0.4658414", "0.4653166", "0.4650523", "0.46503735", "0.46497843", "0.46473715", "0.4645018", "0.46367005", "0.46362102", "0.46355304", "0.46335083", "0.4630915", "0.4630159", "0.4627653", "0.46273613" ]
0.49402052
22
interface for an algorithm that solves a simple path finding problem
public interface SearchSolver { /** * initializes the algorithm. This method has to be called before calling any other method * @param graph the graph of the map where the search takes place * @param targetStart the start position for the target (in our case the thief) * @param searchStart the start position for the searcher (in our case the police) * @param counter the counter object that counts the expanded nodes */ void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter); /** * gets the shortest path from search start to target * @return list of edges that describe the path * @throws NoPathFoundException if there is no path to the target */ List<Edge> getPath() throws NoPathFoundException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}", "public interface RoutingAlgorithm {\n public void initMapInfo(int[][] map);\n public int getShortestPath(int start,int end);\n}", "public interface AllPairsShortestPathAlgo\n{\n long[][]getDistances(Graph g);\n}", "public interface GraphSearchAlgorythm<T> {\n List<GraphEdge<T>> getPath(GraphVerticesStore<T> Vertices, T from, T to);\n}", "public abstract interface PathfindController extends Controller {\n // Public Abstract Methods\n \n /**\n * Block next coordinate in path.\n */\n public abstract void blockNext();\n \n /**\n * Calculate pathfinding and the states for visited and blocked of the\n * back, front, left, right respectively.\n *\n * @return the array of states\n */\n public abstract boolean[] calculate();\n \n /**\n * Go to next coordinate in path.\n */\n public abstract void goNext();\n \n /**\n * Checks if next coordinate in path is blocked.\n *\n * @return true, if next coordinate in path is blocked\n */\n public abstract boolean isNextBlocked();\n \n /**\n * Checks if next coordinate in path is visited.\n *\n * @return true, if next coordinate in path is visited\n */\n public abstract boolean isNextVisited();\n \n /**\n * String representation of the raw graph.\n *\n * @return the string\n */\n public abstract String rawGraphToString();\n \n /**\n * Reset pathfinding.\n */\n public abstract void reset();\n \n /**\n * Rotate to the left coordinate in path.\n */\n public abstract void rotateLeft();\n \n /**\n * Rotate to the right coordinate in path.\n */\n public abstract void rotateRight();\n \n /**\n * Unblock next coordinate in path.\n */\n public abstract void unblockNext();\n \n /**\n * Visit current coordinate in path.\n */\n public abstract void visit();\n}", "public interface Algorithm {\r\n\r\n public static Point2D newPosition(Point2D currentXY, Point2D gp, Integer id){return null;};\r\n\r\n public static Point2D lineTrajectory(Point2D xy, Point2D goalPoint){return null;};\r\n\r\n public static Double getXforLine(Point2D xy, Point2D gp){return null;};\r\n}", "@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}", "public interface IPathFinderProvider {\n\t\n /**\n * Method for creating a new Maze Path Finder.\n * \n * @param mazeModel to solve\n * @return Used to solve maze\n */\n public IMazePathFinder createInstance(MazeModel mazeModel);\n}", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "@Override\n\tpublic void pathFinderVisited(int x, int y) {\n\t}", "public interface OneToNAlgorithm {\n\t/**\n\t * Runs the algorithm.\n\t * @param source Source to start the algorithm.\n\t * @param request Request for which the algorithm has to run.\n\t */\n\tvoid computePathsToAnyNodeFrom(Node source, Request request);\n\n\t/**\n\t * Gets the Path obtained by the algorithm to a given destination.\n\t * @param destination Destination of the Path that must be returned.\n\t * @return The found shortest path or null if PATH found.\n\t * @throws RoutingException if 'computePathsToAnyNodeFrom' has never been\n\t * called before.\n\t */\n\tPath getPathFromNodeTo(Node destination);\n}", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "public interface Search {\n public List<Node> find(Node start, Node finish);\n public Node selectNode(List<Node> nodes);\n public List<Node> getPath(Node node);\n public List<Node> getAdjacent(Node node);\n}", "public interface PathExistsInGraph {\n\n boolean validPath(int n, int[][] edges, int start, int end);\n\n default Map<Integer, Set<Integer>> prepareGraph(final int n, final int[][] edges) {\n Map<Integer, Set<Integer>> graph = new HashMap<>();\n for (int i = 0; i < n; i++) {\n graph.put(i, new HashSet<>());\n }\n for (int[] edge : edges) {\n graph.get(edge[0]).add(edge[1]);\n graph.get(edge[1]).add(edge[0]);\n }\n return graph;\n }\n}", "public abstract TrajectoryInfo solve();", "private void findPath2(List<Coordinate> path) {\n List<Integer> cost = new ArrayList<>(); // store the total cost of each path\n // store all possible sequences of way points\n ArrayList<List<Coordinate>> allSorts = new ArrayList<>();\n int[] index = new int[waypointCells.size()];\n for (int i = 0; i < index.length; i++) {// generate the index reference list\n index[i] = i;\n }\n permutation(index, 0, index.length - 1);\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n for (int[] ints1 : allOrderSorts) {\n List<Coordinate> temp = getOneSort(ints1, waypointCells);\n temp.add(0, o1);\n temp.add(d1);\n int tempCost = 0;\n for (int i = 0; i < temp.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = temp.get(i);\n graph.dijkstra(start);\n Coordinate end = temp.get(i + 1);\n graph.printPath(end);\n tempCost = tempCost + graph.getPathCost(end);\n if (graph.getPathCost(end) == Integer.MAX_VALUE) {\n tempCost = Integer.MAX_VALUE;\n break;\n }\n }\n cost.add(tempCost);\n allSorts.add(temp);\n }\n }\n }\n System.out.println(\"All sorts now have <\" + allSorts.size() + \"> items.\");\n List<Coordinate> best = allSorts.get(getMinIndex(cost));\n generatePath(best, path);\n setSuccess(path);\n }", "public interface OnResultPath {\n // Reports which nodes have been added to the frontier or removed from the frontier\n void reportProgress(List<Node> update);\n\n // Called when a path finding algorithm is finished running, should return null if no path is found\n void pathFound(Node node);\n}", "public static List<Vec2i> solve(int[][] grid, Vec2i start, Vec2i goal, Heuristic h){\n if(h == null){ //if null replace with default heuristic\n h = new Heuristic() {\n @Override\n\n public double eval(Vec2i loc) {\n double dx = (loc.x - goal.x);\n double dy = (loc.y - goal.y);\n return Math.sqrt(dx*dx + dy*dy);\n }\n };\n }\n\n PriorityQueue<GridLocation> edge = new PriorityQueue<GridLocation>(10, AStarGrid::compareGridLocations);\n edge.add(new GridLocation(start,0));\n\n Map<Vec2i, Vec2i> cameFrom = new HashMap<Vec2i, Vec2i>();\n Map<Vec2i, Double> g = new HashMap<Vec2i, Double>(); //distance to node\n g.put(start,0.0);\n Map<Vec2i, Double> f = new HashMap<Vec2i, Double>(); //distance from start to goal through this node\n f.put(start,h.eval(start));\n //f = g + h\n\n while(!edge.isEmpty()){\n\n Vec2i current = edge.poll().loc;\n if(current.x == goal.x && current.y == goal.y){\n return reconstructPath(cameFrom, current);\n }\n\n LinkedList<Vec2i> neighbors = new LinkedList<Vec2i>();\n if(current.x != 0 && grid[current.x - 1][current.y] == 0)\n neighbors.add(new Vec2i(current.x - 1,current.y));\n if(current.x != grid.length-1 && grid[current.x + 1][current.y] == 0)\n neighbors.add(new Vec2i(current.x + 1,current.y));\n if(current.y != 0 && grid[current.x][current.y - 1] == 0)\n neighbors.add(new Vec2i(current.x,current.y - 1));\n if(current.y != grid[0].length-1 && grid[current.x][current.y + 1] == 0)\n neighbors.add(new Vec2i(current.x,current.y + 1));\n\n\n for(Vec2i neighbor: neighbors){\n double score = g.get(current) + 1;\n if(!g.containsKey(neighbor) || score < g.get(neighbor)){\n cameFrom.put(neighbor,current);\n g.put(neighbor, score);\n f.put(neighbor, score + h.eval(neighbor));\n if(!edge.contains(neighbor)){\n edge.add(new GridLocation(neighbor,score + h.eval(neighbor)));\n }\n }\n }\n }\n //No path was found\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Map<V, Point2D> execute(Path<V,E> S){\n\n\t\tMap<V, Point2D> ret = new HashMap<V, Point2D>();\n\n\t\t//determine position of S* vertices\n\t\t//TODO center as algorithm parameter\n\t\tPoint2D center = new Point(0,0);\n\n\t\t//convex testing returns S which is equal to S* (there are no vertices \n\t\t//in S which are not in S\n\n\t\tList<V> Svertices = S.pathVertices();\n\t\tSvertices.remove(Svertices.size() - 1);\n\t\tlog.info(\"Face vertices \" + Svertices);\n\t\tCircleLayoutCalc<V> circleCalc = new CircleLayoutCalc<V>();\n\t\tdouble radius = circleCalc.calculateRadius(Svertices, treshold);\n\t\tMap<V,Point2D> positions = circleCalc.calculatePosition(Svertices, radius, center);\n\t\tlog.info(\"Calculating positions of the outer cycle\");\n\t\tlog.info(positions);\n\t\tret.putAll(positions);\n\n\n\t\t//step one - for each vertex v of degree two not on S\n\t\t//replace v together with two edges incident to v with a \n\t\t//single edge joining the vertices adjacent to v\n\n\t\t//leave the original graph intact - make a copy to start with\n\t\tGraph<V,E> gPrim = Util.copyGraph(graph);\n\t\t//store deleted vertices in order to position them later\n\t\tMap<V, E> deletedAdjacentMap = new HashMap<V,E>();\n\n\n\t\t//once a vertex is deleted and its two edges are deleted\n\t\t//and a new one is created\n\t\t//there might be a vertex with degree 2 connected to the deleted vertex\n\t\t//we don't want to create an edge containing the deleted vertex\n\t\t//the newly created edge should be taken into account\n\n\t\tIterator<V> iter = gPrim.getVertices().iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tV v = iter.next();\n\t\t\tif (!Svertices.contains(v) && gPrim.vertexDegree(v) == 2){\n\t\t\t\tlog.info(\"Deleting \" + v);\n\t\t\t\tList<E> edges = gPrim.adjacentEdges(v);\n\t\t\t\tE e1 = edges.get(0);\n\t\t\t\tE e2 = edges.get(1);\n\t\t\t\tlog.info(\"removing \" + e1);\n\t\t\t\tlog.info(\"removing \" + e2);\n\t\t\t\tgPrim.removeEdge(e1);\n\t\t\t\tgPrim.removeEdge(e2);\n\t\t\t\tV adjV1 = e1.getOrigin() == v ? e1.getDestination() : e1.getOrigin();\n\t\t\t\tV adjV2 = e2.getOrigin() == v ? e2.getDestination() : e2.getOrigin();\n\t\t\t\tE newEdge = Util.createEdge(adjV1, adjV2, edgeClass);\n\t\t\t\tlog.info(\"Creating \" + newEdge);\n\t\t\t\tgPrim.addEdge(newEdge);\n\t\t\t\tdeletedAdjacentMap.put(v,newEdge);\n\t\t\t}\n\t\t}\n\n\t\tfor (V v : deletedAdjacentMap.keySet()){\n\t\t\tgPrim.removeVertex(v);\n\t\t}\n\n\n\t\tlog.info(\"G': \" + gPrim);\n\t\t//step 2 - call Draw on (G', S, S*) to extend S* into a convex drawing of G'\n\t\tdraw(gPrim, S.getPath(), Svertices, ret);\n\n\t\t//step 3 For each deleted vertex of degree 2 determine its position on the straight \n\t\t//line segment joining the two vertices adjacent to the vertex\n\n\t\tSet<V> deletedVertices = deletedAdjacentMap.keySet();\n\t\tList<V> coveredVertices = new ArrayList<V>();\n\n\t\tlog.info(\"deleted vertices: \" + deletedVertices);\n\n\t\tfor (V v : deletedVertices){\n\n\t\t\tif (coveredVertices.contains(v))\n\t\t\t\tcontinue;\n\n\t\t\tE addedEdge = deletedAdjacentMap.get(v);\n\t\t\tV firstAdjacent = addedEdge.getOrigin();\n\t\t\tV secondAdjacent = addedEdge.getDestination();\n\t\t\tPoint2D pos1 = ret.get(firstAdjacent);\n\t\t\tPoint2D pos2 = ret.get(secondAdjacent);\n\t\t\tif (pos1 != null && pos2 != null){\n\t\t\t\t//find deleted vertices on this line\n\n\t\t\t\tList<E> adjacentEdges = graph.adjacentEdges(v);\n\t\t\t\tE e1 = adjacentEdges.get(0);\n\t\t\t\tE e2 = adjacentEdges.get(1);\n\t\t\t\tV e1Next = e1.getOrigin() == v ? e1.getDestination() : e1.getOrigin();\n\t\t\t\tV e2Next = e2.getOrigin() == v ? e2.getDestination() : e2.getOrigin();\n\n\t\t\t\tif ((e1Next == firstAdjacent && e2Next == secondAdjacent) ||\n\t\t\t\t\t\t(e2Next == firstAdjacent && e1Next == secondAdjacent)){\n\n\t\t\t\t\t//just one vertex between two known\n\n\t\t\t\t\tdouble xPos = ret.get(e1Next).getX() + ((ret.get(e2Next).getX() - ret.get(e1Next).getX()) / 2);\n\t\t\t\t\tdouble yPos = ret.get(e1Next).getY() + ((ret.get(e2Next).getY() - ret.get(e1Next).getY()) / 2);\n\t\t\t\t\tret.put(v, new Point2D.Double(xPos, yPos));\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\tList<V> verticesOnLine = new ArrayList<V>();\n\t\t\t\t\tverticesOnLine.add(v);\n\n\t\t\t\t\t//in all probability, traversing e1 is enough as the\n\t\t\t\t\t//vertex won't be somewhere in the middle, but directly \n\t\t\t\t\t//connected to one of the vertices whose positions are known\n\t\t\t\t\t//keep both for now\n\t\t\t\t\t//traverse e1\n\t\t\t\t\tE currentE = e1;\n\t\t\t\t\tint numberThroughE1 = 0;\n\t\t\t\t\twhile (e1Next != firstAdjacent && e1Next != secondAdjacent){\n\t\t\t\t\t\tif (!verticesOnLine.contains(e1Next)){\n\t\t\t\t\t\t\tverticesOnLine.add(e1Next);\n\t\t\t\t\t\t\tnumberThroughE1++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList<E> currentAdjacent = graph.adjacentEdges(e1Next);\n\t\t\t\t\t\tif (currentAdjacent.get(0) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(1);\n\t\t\t\t\t\telse if (currentAdjacent.get(1) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(0);\n\n\t\t\t\t\t\te1Next = currentE.getOrigin() == e1Next ? currentE.getDestination() : currentE.getOrigin();\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//traverse e2\n\t\t\t\t\tcurrentE = e2;\n\t\t\t\t\twhile (e2Next != firstAdjacent && e2Next != secondAdjacent){\n\t\t\t\t\t\tif (!verticesOnLine.contains(e2Next))\n\t\t\t\t\t\t\tverticesOnLine.add(e2Next);\n\n\t\t\t\t\t\tList<E> currentAdjacent = graph.adjacentEdges(e2Next);\n\t\t\t\t\t\tif (currentAdjacent.get(0) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(1);\n\t\t\t\t\t\telse if (currentAdjacent.get(1) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(0);\n\n\t\t\t\t\t\te2Next = currentE.getOrigin() == e2Next ? currentE.getDestination() : currentE.getOrigin();\n\t\t\t\t\t}\n\n\t\t\t\t\tlog.info(\"vertices on line: \" + verticesOnLine);\n\t\t\t\t\tcoveredVertices.addAll(verticesOnLine);\n\n\t\t\t\t\tint numberOfVerticesOnLine = verticesOnLine.size();\n\t\t\t\t\tdouble incrementX = (ret.get(e2Next).getX() - ret.get(e1Next).getX()) / (numberOfVerticesOnLine + 1);\n\t\t\t\t\tdouble incrementY = (ret.get(e2Next).getY() - ret.get(e1Next).getY()) / (numberOfVerticesOnLine + 1);\n\n\t\t\t\t\tPoint2D currentPosition = ret.get(e1Next); //e1Next holds a vertex whose position is known\n\n\t\t\t\t\tfor (int i = numberThroughE1; i >= 0; i--){\n\t\t\t\t\t\tV currentV = verticesOnLine.get(i);\n\t\t\t\t\t\tPoint2D position = new Point2D.Double(currentPosition.getX() + incrementX, currentPosition.getY() + incrementY);\n\t\t\t\t\t\tret.put(currentV, position);\n\t\t\t\t\t\tcurrentPosition = position;\n\t\t\t\t\t}\n\n\n\t\t\t\t\tfor (int i = numberThroughE1 + 1; i< numberOfVerticesOnLine; i++){\n\t\t\t\t\t\tV currentV = verticesOnLine.get(i);\n\t\t\t\t\t\tPoint2D position = new Point2D.Double(currentPosition.getX() + incrementX, currentPosition.getY() + incrementY);\n\t\t\t\t\t\tret.put(currentV, position);\n\t\t\t\t\t\tcurrentPosition = position;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t}\n\n\n\t\treturn ret;\n\t}", "public ArrayList<Vertex> findPath() {\n \n //if we've already been through findPath, then just return it\n if (solutionCalculated) {\n return solution;\n }\n \n //instantiate path\n solution = new ArrayList<Vertex>();\n \n //create boolean array of visited nodes (default: false)\n boolean[] visited = new boolean[arrayOfVertices.length];\n \n //(for testing)\n NavigateMaze.drawMaze(getVertices());\n \n //call dfs\n dfs(visited, arrayOfVertices[0], \n arrayOfVertices[arrayOfVertices.length - 1]);\n \n //update solutionCalculated to true\n solutionCalculated = true;\n \n //return solution\n return solution;\n \n }", "public interface GraphInterface {\n\n\t/**\n\t * Finds the shortest path between the start and end vertices.\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if start and end are not in the graph\n\t */\n\tIterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the shortest path between the start and end vertices, given that start is not in the graph\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if end is not in the graph\n\t */\n\tIterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the closest vertex to pos in the graph\n\t * @param pos -- The position not on the graph.\n\t * @return closest vertex to pos in the graph.\n\t */\n\tPair<Vertex, Double> closestVertexToPath(Loc pos);\n\t\n\t/**\n\t * adds a single unconnected vertex v \n\t * @param v -- The vertex to be added\n\t */\n\tvoid addVertex(Vertex v);\n\t\n\t/**\n\t * Adds a single vertex with edges (v, neighbor) for each neighbor\n\t * @param v -- The vertex to be added\n\t * @param neighbors -- The neighbors of v\n\t * @param weights -- The corresponding weights of each (v, neighbor)\n\t * @throws VertexNotInGraphException if neighbors are not in the graph\n\t */\n\tvoid addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes v from the Graph\n\t * @param v -- The vertex to be removed\n\t * @throws VertexNotInGraphException if v is not in the graph\n\t */\n\tvoid removeVertex(Vertex v) throws GraphException;\n\t\n\t/**\n\t * Adds an edge between v1 and v2 in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @param w -- The weight of the edge\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes the edge (v1, v2) in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid removeEdge(Vertex v1, Vertex v2) throws GraphException;\n}", "private void findPath1(List<Coordinate> path) {\n\n // records the start coordinate in a specific sequence.\n ArrayList<Coordinate> starts = new ArrayList<>();\n // records the end coordinate in a specific sequence.\n ArrayList<Coordinate> ends = new ArrayList<>();\n // records the total cost of the path in a specific sequence.\n ArrayList<Integer> cost = new ArrayList<>();\n\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(o1);\n graph.printPath(d1);\n starts.add(o1);\n ends.add(d1);\n cost.add(graph.getPathCost(d1));\n }\n }\n int index = getMinIndex(cost);\n\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(starts.get(index));\n graph.printPath(ends.get(index));\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n setSuccess(path);\n }", "public interface Solution\n{\n Collection<Point_dt> solve(Delaunay_Triangulation triangulation,\n ImmutableCollection<Point_dt> guards,\n ImmutableCollection<Point_dt> diamonds);\n}", "public static void pathMethod (int x, int y, int rows, int columns, int startPointX, int startPointY, int endPointX, int endPointY, String [][]copyArray, String [][]realArray, int decider) throws Exception{ \r\n \r\n String up = copyArray[y-1][x];\r\n String down = copyArray[y+1][x];\r\n String right = copyArray[y][x+1]; //moves the coordinate up one, down one, right one, left one and stores it into up down left right; \r\n String left = copyArray[y][x-1];\r\n \r\n if(up.equals(\"X\")||down.equals(\"X\")||right.equals(\"X\")||left.equals(\"X\")){ //if up right left or down is equal to the endpoint, the maze is solvable, and we can now print the final array\r\n System.out.println(\"\\nThe maze is solvable!\");\r\n// printFinalArray(realArray, counter, xvalues, yvalues); //solution is found already - sends back to another method to print final solution\r\n regenerate(decider); //then sends to regenerate method where it asks if user would like to create another maze\r\n }\r\n \r\n else if(copyArray[startPointY+1][startPointX].equals(\"B\")&&copyArray[startPointY-1][startPointX].equals(\"B\")&&copyArray[startPointY][startPointX+1].equals(\"B\")&&copyArray[startPointY][startPointX-1].equals(\"B\")){\r\n \r\n System.out.println(\"\\nSorry, your maze is unsolvable.\\n\\n\"); //if at the start point we cannot go up down left or right - no possible moves - not solvable - end of maze \r\n regenerate(decider); //call the method that gives users the option to recreate the maze if it was unsolvable \r\n } \r\n \r\n else if(up.equals(\"O\")){ //if the coordinate in the up direction is O\r\n counter=counter+1; //incrementing counter so we can input it the coordinate arrays\r\n copyArray[y][x] = \"V\"; //changing the values to 'V' so we can know that we already visited it\r\n y=y-1; //moving coordinate up one \r\n xvalues[counter]=x; //storing this coordinate into the arrays with the counter\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //recalling method\r\n }\r\n \r\n else if(down.equals(\"O\")){ //if down = O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n y=y+1; \r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(right.equals(\"O\")){ //if right equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x+1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(left.equals(\"O\")){ //if left equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x-1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else { //if neither up down left or right work\r\n for(int i = 0; i<rows; i++){ //makes all the 'V's go back to O\r\n for(int j = 0; j<columns; j++){\r\n if(copyArray[i][j].equals(\"V\")){\r\n copyArray[i][j] = \"O\";\r\n }\r\n }\r\n }\r\n copyArray[y][x] = \"B\"; //make the coordinate that you cant make a move with B, so it shortens the possible path options\r\n for(int i = 0 ; i<counter; i++){\r\n xvalues[i] = 0; //resets the coordinate arrays back to 0\r\n yvalues[i] = 0;\r\n }\r\n counter=0; //resets counter back to 0;\r\n pathMethod(startPointX, startPointY, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //resends the startpoints instead of x and y; only thing different is that one coordinate is now marked \"B\"\r\n } \r\n }", "private void findPath()\n\t{\n\t\tpathfinding = true;\n\n\t\tmoves = Pathfinder.calcOneWayMove(city.getDrivingMap(), x, y, destX, destY);\n\t\tpathfinding = false;\n\t}", "public interface IRealTimeSearchAlgorithm {\n\n /**\n * This function will calculate a prefix from the start node to the goal node path\n * @param start - The start node\n * @param goal - The goal node\n * @param numOfNodesToDevelop - The number of nodes to develop in the search\n * @param agent - The agent\n * @return - A prefix from the start node to the goal node path\n */\n public List<Node> calculatePrefix(Node start, Node goal, int numOfNodesToDevelop, Agent agent);\n}", "private static List<Move> pathSolve(Level level){\n\t\tOptimisticMap optMap = new OptimisticMap(level);\n\t\t\n\t\tPoint dst = level.getExitPos();\n\t\t\n\t\t// Open nodes\n\t\tSortedMap<Integer, List<SolveNode>> nodes = new TreeMap<Integer, List<SolveNode>>();\n\t\t\n\t\t// Current costs to arrive to solve nodes\n\t\tint[][][] arrived = new int[level.getMapSize().x][level.getMapSize().y][Move.values().length];\n\t\tfor ( int x = 0 ; x < level.getMapSize().x ; x++ ){\n\t\t\tfor ( int y = 0 ; y < level.getMapSize().y ; y++ ){\n\t\t\t\tfor ( int d = 0 ; d < Move.values().length ; d++ ){\n\t\t\t\t\tarrived[x][y][d] = Integer.MAX_VALUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Create initial nodes\n\t\t{\n\t\t\tPoint box = level.getBoxPos();\n\t\t\tPoint player = level.getPlayerPos();\n\t\t\tfor ( Move dir : Move.values()){\n\t\t\t\tPoint playerDst = dir.nextPosition(box);\n\t\t\t\tif ( level.isClearSafe(playerDst.x, playerDst.y)){\n\t\t\t\t\tList<Move> pathNoDesiredPlayerPosition = pathTo(level, player, box, playerDst);\n\t\t\t\t\tif ( pathNoDesiredPlayerPosition != null ){\n\t\t\t\t\t\tSolveNode node = new SolveNode();\n\t\t\t\t\t\tnode.moves = pathNoDesiredPlayerPosition;\n\t\t\t\t\t\tnode.box = (Point)box.clone();\n\t\t\t\t\t\tnode.playerDir = dir;\n\t\t\t\t\t\taddSolveNode(nodes, node, node.moves.size() + optMap.getValue(node.box.x, node.box.y));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile ( nodes.isEmpty() == false ){\n\t\t\t// Get node to process\n\t\t\tSolveNode node = removeSolveNode(nodes);\n\t\t\tif ( node.box.equals(dst) ){\n\t\t\t\t// This is the best solution\n\t\t\t\treturn node.moves;\n\t\t\t}\n\t\t\t\n\t\t\t// Create new nodes trying to move the box in each direction\n\t\t\tfor ( Move dir : Move.values() ){\n\t\t\t\tSolveNode newNode = new SolveNode();\n\t\t\t\tnewNode.box = dir.nextPosition(node.box);\n\t\t\t\tnewNode.playerDir = dir.opposite();\n\t\t\t\t\n\t\t\t\t// First check if the box can be moved to that position (is clear)\n\t\t\t\tif ( level.isClearSafe(newNode.box.x, newNode.box.y) == false ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the player can move to the pushing position\n\t\t\t\tPoint player = node.playerDir.nextPosition(node.box);\n\t\t\t\tPoint playerDst = dir.opposite().nextPosition(node.box);\n\t\t\t\tList<Move> playerMoves = pathTo(level, player, node.box, playerDst);\n\t\t\t\tif ( playerMoves == null ){\n\t\t\t\t\t// The player can't move itself to the pushing position\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the cost to arrive to the new node is less that the previous known\n\t\t\t\tif ( node.moves.size() + playerMoves.size() + 1 >= arrived[newNode.box.x][newNode.box.y][dir.index()] ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\" + newNode.box.x + \" \" + newNode.box.y);\n\t\t\t\t\n\t\t\t\t// Add the new node to the open nodes\n\t\t\t\tnewNode.moves.addAll(node.moves);\n\t\t\t\tnewNode.moves.addAll(playerMoves);\n\t\t\t\tnewNode.moves.add(dir);\n\t\t\t\taddSolveNode(nodes, newNode, newNode.moves.size() + optMap.getValue(newNode.box.x, newNode.box.y));\n\t\t\t\tarrived[newNode.box.x][newNode.box.y][dir.index()] = newNode.moves.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// There is no solution\n\t\treturn null;\n\t}", "Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "ArrayList<PathFindingNode> neighbours(PathFindingNode node);", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "public abstract void solve();", "public LinkedList<Move> search1() {\r\n\r\n while (!paths.isEmpty()) {\r\n\r\n if (logger.isDebugEnabled())\r\n logger.debug(printPathCosts());\r\n\r\n LinkedList<Move> path = paths.first();\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"First path is \" + path);\r\n\r\n if (!paths.remove(path)) {\r\n throw new RuntimeException(\"Failed to remove path\");\r\n }\r\n\r\n Node currentNode = path.getLast().destination;\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Last site on path is \" + currentNode);\r\n\r\n if (closed.contains(currentNode)) {\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Site \" + currentNode + \" was closed.\");\r\n continue;\r\n }\r\n if (currentNode.isAtTarget(target)) {\r\n return path;\r\n }\r\n\r\n closed.add(currentNode);\r\n\r\n Move lastMove = path.getLast();\r\n if ( !(lastMove instanceof InitialMove) ) {\r\n currentNode = transformCurrentNode(lastMove);\r\n }\r\n\r\n Set<Move> successors = successors(currentNode);\r\n for (Move y : successors) {\r\n LinkedList<Move> successor = new LinkedList<Move>(path);\r\n y.pathCost = successor.getLast().pathCost + y.edgeCost;\r\n successor.add(y);\r\n paths.add(successor);\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Added successor \" + y);\r\n nodeExpansionCounter ++;\r\n }\r\n }\r\n\r\n return null;\r\n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "public static Path findShortestPath(Unit unit, int x, int y, GameMap map, boolean theoretical)\n {\n if( null == unit || null == map || !map.isLocationValid(unit.x, unit.y) )\n {\n return null;\n }\n\n Path aPath = new Path(100);\n if( !map.isLocationValid(x, y) )\n {\n // Unit is not in a valid place. No path can be found.\n System.out.println(\"WARNING! Cannot find path for a unit that is not on the map.\");\n aPath.clear();\n return aPath;\n }\n\n int[][] costGrid = new int[map.mapWidth][map.mapHeight];\n for( int i = 0; i < map.mapWidth; i++ )\n {\n for( int j = 0; j < map.mapHeight; j++ )\n {\n costGrid[i][j] = Integer.MAX_VALUE;\n }\n }\n\n // Set up search parameters.\n SearchNode root = new SearchNode(unit.x, unit.y);\n costGrid[unit.x][unit.y] = 0;\n Queue<SearchNode> searchQueue = new java.util.PriorityQueue<SearchNode>(13, new SearchNodeComparator(costGrid, x, y));\n searchQueue.add(root);\n\n ArrayList<SearchNode> waypointList = new ArrayList<SearchNode>();\n\n // Find optimal route.\n while (!searchQueue.isEmpty())\n {\n // Retrieve the next search node.\n SearchNode currentNode = searchQueue.poll();\n\n // If this node is our destination, we are done.\n if( currentNode.x == x && currentNode.y == y )\n {\n // Add all of the points on the route to our waypoint list.\n while (currentNode.parent != null)\n {\n waypointList.add(currentNode);\n currentNode = currentNode.parent;\n }\n // Don't forget the starting node (no parent).\n waypointList.add(currentNode);\n break;\n }\n\n expandSearchNode(unit, map, currentNode, searchQueue, costGrid, theoretical);\n\n currentNode = null;\n }\n\n // Clear and Populate the Path object.\n aPath.clear();\n // We added the waypoints to the list from end to beginning, so populate the Path in reverse order.\n if( !waypointList.isEmpty() )\n {\n for( int j = waypointList.size() - 1; j >= 0; --j )\n {\n //System.out.println(\"Waypoint \" + waypointList.get(j).x + \", \" + waypointList.get(j).y + \" over \" + map.getEnvironment(waypointList.get(j).x, waypointList.get(j).y).terrainType);\n aPath.addWaypoint(waypointList.get(j).x, waypointList.get(j).y);\n }\n }\n\n return aPath;\n }", "public ArrayList<Action> findShortestPath(int startX, int startY, int endX, int endY, int numKeys, boolean toUnknown){\n\t\t\tHashSet<SearchNode> visited = new HashSet<SearchNode>();\n\t\t\tHashSet<SearchNode> work = new HashSet<SearchNode>();\n\t\t\t\n\t\t\tSearchNode start = new SearchNode();\n\t\t\tstart.posX = startX;\n\t\t\tstart.posY = startY;\n\t\t\tstart.gScore = 0;\n\t\t\tif (toUnknown)\n\t\t\t\tstart.fScore = 0;\n\t\t\telse\n\t\t\t\tstart.fScore = Math.abs(startX - endX) + Math.abs(startY - endY);\n\t\t\tstart.keysLeft = numKeys;\n\t\t\tstart.cameFrom = null;\n\t\t\twork.add(start);\n\t\t\t\n\t\t\twhile(work.size() > 0){\n\t\t\t\tSearchNode current = findFirstNode(work);\n\t\t\t\tif (!toUnknown && current.posX == endX && current.posY == endY){\n\t\t\t\t\t//We've found the end node, reconstruct the path\n\t\t\t\t\treturn recoverPath(current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (toUnknown && getElement(current.posX, current.posY) == BoxContainer.Unkown){\n\t\t\t\t\treturn recoverPath(current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twork.remove(current);\n\t\t\t\tvisited.add(current);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < 4; i++){\n\t\t\t\t\tint newX, newY;\n\t\t\t\t\tAction direction;\n\t\t\t\t\tif (i == 0){\n\t\t\t\t\t\tnewX = current.posX + 1;\n\t\t\t\t\t\tnewY = current.posY;\n\t\t\t\t\t\tdirection = Action.East;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == 1){\n\t\t\t\t\t\tnewX = current.posX;\n\t\t\t\t\t\tnewY = current.posY + 1;\n\t\t\t\t\t\tdirection = Action.North;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == 2){\n\t\t\t\t\t\tnewX = current.posX - 1;\n\t\t\t\t\t\tnewY = current.posY;\n\t\t\t\t\t\tdirection = Action.West;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnewX = current.posX;\n\t\t\t\t\t\tnewY = current.posY - 1;\n\t\t\t\t\t\tdirection = Action.South;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Check to make sure we can move into this node\n\t\t\t\t\tBoxContainer newBox = getElement(newX, newY);\n\t\t\t\t\tif (newBox == BoxContainer.Blocked || (!toUnknown && newBox == BoxContainer.Unkown))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (newBox == BoxContainer.Door && current.keysLeft == 0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint new_gScore = current.gScore + 1;\n\t\t\t\t\tif (newBox == BoxContainer.Door || newBox == BoxContainer.Key)\n\t\t\t\t\t\tnew_gScore++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//try to find the node if we've already searched it, otherwise create it\n\t\t\t\t\tSearchNode newNode = findNodeWithCoords(visited, newX, newY);\n\t\t\t\t\tif (newNode == null){\n\t\t\t\t\t\tnewNode = findNodeWithCoords(work, newX, newY);\n\t\t\t\t\t\tif (newNode == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewNode = new SearchNode();\n\t\t\t\t\t\t\tnewNode.posX = newX;\n\t\t\t\t\t\t\tnewNode.posY = newY;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (visited.contains(newNode) && new_gScore >= newNode.gScore)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!work.contains(newNode) || new_gScore < newNode.gScore){\n\t\t\t\t\t\tnewNode.cameFrom = current;\n\t\t\t\t\t\tnewNode.direction = direction;\n\t\t\t\t\t\tnewNode.gScore = new_gScore;\n\t\t\t\t\t\tif (toUnknown)\n\t\t\t\t\t\t\tnewNode.fScore = newNode.gScore;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnewNode.fScore = newNode.gScore + Math.abs(newNode.posX - endX) + Math.abs(newNode.posY - endY);\n\t\t\t\t\t\tnewNode.keysLeft = current.keysLeft;\n\t\t\t\t\t\tif (newBox == BoxContainer.Door)\n\t\t\t\t\t\t\tnewNode.keysLeft--;\n\t\t\t\t\t\tif (newBox == BoxContainer.Key)\n\t\t\t\t\t\t\tnewNode.keysLeft++;\n\t\t\t\t\t\tif (!work.contains(newNode))\n\t\t\t\t\t\t\twork.add(newNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }", "public void findPaths(LinkedList<Node> path,Node caller){\n pathsToBaseStation.add(path);\n LinkedList<Node> nextPath = new LinkedList<>(path);\n nextPath.addFirst(this);\n for(Node node: neighbors){\n if(!path.contains(node)){\n node.findPaths(nextPath,this);\n }\n }\n }", "public interface AStarGraph {\n List<WeightedEdge> neighbors(Position v);\n double estimatedDistanceToGoal(Position s, Position goal);\n}", "public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }", "public void solve(int startX, int startY, int endX, int endY) {\r\n // re-inicializar células para encontrar o caminho\r\n for (Cell[] cellrow : this.cells) {\r\n for (Cell cell : cellrow) {\r\n cell.parent = null;\r\n cell.visited = false;\r\n cell.inPath = false;\r\n cell.travelled = 0;\r\n cell.projectedDist = -1;\r\n }\r\n }\r\n // células ainda estão sendo consideradas\r\n ArrayList<Cell> openCells = new ArrayList<>();\r\n // célula sendo considerada\r\n Cell endCell = getCell(endX, endY);\r\n if (endCell == null) return; // saia se terminar fora dos limites\r\n { // bloco anônimo para excluir o início, porque não usado posteriormente\r\n Cell start = getCell(startX, startY);\r\n if (start == null) return; // saia se começar fora dos limites\r\n start.projectedDist = getProjectedDistance(start, 0, endCell);\r\n start.visited = true;\r\n openCells.add(start);\r\n }\r\n boolean solving = true;\r\n while (solving) {\r\n if (openCells.isEmpty()) return; // sair, nenhum caminho\r\n // classifique openCells de acordo com a menor distância projetada\r\n Collections.sort(openCells, new Comparator<Cell>() {\r\n @Override\r\n public int compare(Cell cell1, Cell cell2) {\r\n double diff = cell1.projectedDist - cell2.projectedDist;\r\n if (diff > 0) return 1;\r\n else if (diff < 0) return -1;\r\n else return 0;\r\n }\r\n });\r\n Cell current = openCells.remove(0); // célula pop menos projetada\r\n if (current == endCell) break; // no final\r\n for (Cell neighbor : current.neighbors) {\r\n double projDist = getProjectedDistance(neighbor,\r\n current.travelled + 1, endCell);\r\n if (!neighbor.visited || // ainda não visitado\r\n projDist < neighbor.projectedDist) { // melhor caminho\r\n neighbor.parent = current;\r\n neighbor.visited = true;\r\n neighbor.projectedDist = projDist;\r\n neighbor.travelled = current.travelled + 1;\r\n if (!openCells.contains(neighbor))\r\n openCells.add(neighbor);\r\n }\r\n }\r\n }\r\n // criar caminho do fim ao começo\r\n Cell backtracking = endCell;\r\n backtracking.inPath = true;\r\n while (backtracking.parent != null) {\r\n backtracking = backtracking.parent;\r\n backtracking.inPath = true;\r\n }\r\n }", "@SuppressWarnings(\"resource\")\r\n\tpublic Path callFindPaths(Interface interfaceFrom, Interface interfaceTo) throws Exception{\n\t\tList<Path> paths;\r\n\t\tint qtShortPaths = ConsoleUtil.getOptionFromConsole(\"Choose the maximum number of paths (-1 for no limit): \", 1, Integer.MAX_VALUE,0, true);\r\n//\t\tint qtShortPaths = 10;\r\n\t\tif(qtShortPaths == -1){\r\n\t\t\tqtShortPaths = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tint maxPathSize = ConsoleUtil.getOptionFromConsole(\"Choose the maximum number of interfaces in a path (-1 for no limit): \", 1, Integer.MAX_VALUE,0, true);\r\n//\t\tint maxPathSize = 30;\r\n\t\tif(maxPathSize == -1){\r\n//\t\t\tmaxPathSize = 1000;\r\n\t\t\tmaxPathSize = Integer.MAX_VALUE;\r\n\t\t}\t\t\r\n\t\tint maxNewBindings = ConsoleUtil.getOptionFromConsole(\"Choose the maximum number of new bindings in a path (-1 for no limit): \", 0, Integer.MAX_VALUE,0, true);\r\n\t\tif(maxNewBindings == -1){\r\n\t\t\tmaxNewBindings = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tint maxNewPossible = ConsoleUtil.getOptionFromConsole(\"Choose the maximum number of interfaces of possible equipment (-1 for no limit): \", 0, Integer.MAX_VALUE,0, true);\r\n\t\tif(maxNewPossible == -1){\r\n\t\t\tmaxNewPossible = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tArrayList<String> options = new ArrayList<String>();\r\n\t\toptions.add(\"minimum number of interfaces\");\r\n\t\toptions.add(\"minimum number of new bindings\");\r\n\t\tif(!this.possibleEquipFile.equals(\"\")){\r\n\t\t\toptions.add(\"minimum number of interfaces of possible equipment\");\r\n\t\t}\r\n\t\t\r\n\t\tint priorityOption = ConsoleUtil.chooseOne(options, \"Priority\", \"Choose the Priority: \", 0, false, false);\r\n\t\t\r\n\t\tif(!this.possibleEquipFile.equals(\"\")){\r\n//\t\t\toption = 'S';\r\n\t\t\t\r\n//\t\t\toption = ConsoleUtil.getCharOptionFromConsole(\"\"\r\n//\t\t\t\t\t+ \"Choose the Path Selection Type:\\n\"\r\n//\t\t\t\t\t+ \"S - Paths are displayed in descending order with relation to its number of interfaces\\n\"\r\n//\t\t\t\t\t+ \"P - Paths are displayed in descending order with relation to its number of interfaces of possible equipment\\n\"\r\n//\t\t\t\t\t+ \"W - Paths are displayed in descending order with relation to a weighted function\\n\", options);\r\n\t\t}\r\n\t\t\r\n//\t\tint declaredWeight = 1;\r\n//\t\tint possibleWeight = 1;\r\n//\t\tboolean fewPossibleEquip = false;\r\n\t\t\r\n//\t\tif(option.equals('W') || option.equals('w') || this.possibleEquipFile.equals(\"\")){\r\n//\t\t\tif(this.possibleEquipFile.equals(\"\")){\r\n//\t\t\t\tSystem.out.println(\"The paths will be displayed in descending order considering its number of interfaces.\");\r\n//\t\t\t}else{\r\n//\t\t\t\tSystem.out.println(\"The paths will be selected according the function: X*NumOfDeclaredInterfaces + Y*NumOfPossibleInterfaces (in descending order).\");\r\n//\t\t\t\tdeclaredWeight = ConsoleUtil.getOptionFromConsole(\"Choose the value of X: \", 0, Integer.MAX_VALUE,0);\r\n//\t\t\t\tpossibleWeight = ConsoleUtil.getOptionFromConsole(\"Choose the value of Y: \", 0, Integer.MAX_VALUE,0);\r\n//\t\t\t}\r\n//\t\t}else if(option.equals('P') || option.equals('p')){\r\n//\t\t\tfewPossibleEquip = true;\r\n//\t\t}\r\n\t\t\r\n\t\tDate beginDate = new Date();\r\n\t\t//List<Path> paths = new ArrayList<Path>();\r\n\t\tpaths = findPaths(interfaceFrom, interfaceTo, qtShortPaths, maxPathSize, priorityOption, maxNewBindings, maxNewPossible);\r\n\t\t//algorithmSemiAuto(sourceRoot, true, paths , interfaceTo, usedInterfaces, qtShortPaths, maxPathSize, declaredWeight, possibleWeight, fewPossibleEquip);\r\n\t\tlong semiAutoExecTimeLong = PerformanceUtil.getExecutionTime(beginDate);\r\n//\t\t\tString semiAutoExecTime = PerformanceUtil.printExecutionTime(\"findPaths\", beginDate);\r\n\t\t\r\n\t\tif(paths.size() == 0){\r\n\t\t\tthrow new Exception(\"Something went wrong. No paths were found from \" + interfaceFrom.getInterfaceURI() + \" to \" + interfaceTo.getInterfaceURI() + \".\");\r\n\t\t}\t\t\t\r\n\t\t\r\n\t\tFile arquivo = new File(\"resources/output/possible.txt\"); \r\n\t\tif(arquivo.exists()){\r\n\t\t\tarquivo.delete();\r\n\t\t}\r\n\t\tFileOutputStream fos = new FileOutputStream(arquivo); \r\n\r\n\t\tString reasonerExec = \"Reasoning execution: \" + this.reasoningTimeExecPostInstances + \"ms\\n\";\r\n\t\tString pathsExec = \"Find paths execution: \" + semiAutoExecTimeLong + \"ms\\n\";\r\n\t\t\r\n\t\tfos.write(reasonerExec.getBytes());\r\n\t\tfos.write(pathsExec.getBytes());\r\n\t\tSystem.out.println(\"--- PATHS ---\");\r\n\t\tArrayList<String> outs = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < paths.size(); i+=1){\r\n\t\t\tString out = \"\";\r\n\t\t\tint id = (i+1)/1;\r\n\t\t\tif(!outs.contains(out)){\r\n\t\t\t\touts.add(paths.get(i).toString());\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"Something went wrong. A duplicated path was found.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout = id + \" - \" + paths.get(i);\r\n\t\t\t\r\n\t\t\tSystem.out.print(out);\r\n\t\t\tfos.write(out.getBytes()); \t\t\t\t \r\n\r\n\t\t}\r\n\t\tfos.close();\r\n\t\t\r\n\t\tint path = ConsoleUtil.getOptionFromConsole(paths, \"Choose path from list to be provisioned: \", paths.size(), false);\r\n\t\t\r\n\t\treturn paths.get(path);\r\n\t\t\r\n\t}", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "public String getPath(String from, String to, String pathAlgo);", "public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "interface GraphSearchEngine {\n\t/**\n\t * Finds a shortest path, if one exists, between nodes s and t. The path will be\n\t * a list: (s, ..., t). If no path exists, then this method will return null.\n\t * \n\t * @param s\n\t * the start node.\n\t * @param t\n\t * the target node.\n\t * @return a shortest path in the form of a List of Node objects or null if no\n\t * path exists.\n\t */\n\tpublic List<Node> findShortestPath(Node s, Node t);\n}", "public static void main(String[] args) {\n PointNode A = new PointNode(\"A\",0,0);\r\n PointNode B = new PointNode(\"B\",20,10);\r\n PointNode C = new PointNode(\"C\",40,20);\r\n PointNode D = new PointNode(\"D\",30,30);\r\n PointNode E = new PointNode(\"E\",20,50);\r\n PointNode F = new PointNode(\"F\",-10,40);\r\n PointNode G = new PointNode(\"G\",10,20);\r\n PointNode H = new PointNode(\"H\",10,40);\r\n PointNode I = new PointNode(\"I\",30,40);\r\n PointNode K = new PointNode(\"K\",30,20);\r\n PointNode L = new PointNode(\"L\",40,40);\r\n\r\n A.connectWithPoint(B);\r\n A.connectWithPoint(G);\r\n G.connectWithPoint(F);\r\n G.connectWithPoint(H);\r\n G.connectWithPoint(D);\r\n K.connectWithPoint(L);\r\n B.connectWithPoint(C);\r\n D.connectWithPoint(I);\r\n D.connectWithPoint(E);\r\n L.connectWithPoint(E);\r\n F.connectWithPoint(E);\r\n H.connectWithPoint(E);\r\n I.connectWithPoint(E);\r\n A.connectWithPoint(K);\r\n\r\n Route route = searchWay(A, E);\r\n System.out.println(route);\r\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static List<MapTile> findPath(MovableObject mO, GameObject destination) {\n List<MapTile> openList = new LinkedList<>();\n List<MapTile> closedList = new LinkedList<>();\n List<MapTile> neighbours = new ArrayList<>();\n Point objectTileCoord = mO.getGridCoordinates();\n Point destinationTileCoord = destination.getGridCoordinates();\n MapTile currentTile;\n try {\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.print(\"Error while getting current tile for pathfinding. Trying to adapt coords.\");\n if (mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight()) {\n objectTileCoord.y -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight() && mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n objectTileCoord.y -= 1;\n }\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n }\n\n currentTile.setParentMapTile(null);\n currentTile.totalMovementCost = 0;\n openList.add(currentTile);\n\n boolean notDone = true;\n\n while (notDone) {\n neighbours.clear();\n currentTile = getLowestCostTileFromOpenList(openList, currentTile);\n closedList.add(currentTile);\n openList.remove(currentTile);\n\n //ReachedGoal?\n if ((currentTile.xTileCoord == destinationTileCoord.x) && (currentTile.yTileCoord == destinationTileCoord.y)) {\n try {\n return getResultListOfMapTiles(currentTile);\n } catch (Exception e) {\n System.out.println(\"closed list size: \" + closedList.size());\n throw e;\n }\n }\n\n neighbours.addAll(currentTile.getNeighbourTiles());\n neighbours.removeAll(closedList);\n\n for (MapTile mapTile : neighbours) {\n if (openList.contains(mapTile)) {\n // compare total movement costs.\n if (mapTile.totalMovementCost > currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost) {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost;\n }\n } else {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.totalMovementCost + currentTile.getMovementCostToTile(mapTile);\n openList.add(mapTile);\n }\n }\n }\n return null;\n }", "public LinkedList<Pair<DirType, Location>> getMove(int curX, int curY) {\n // find the shortest path to each coin from this current position (we don't actually care about\n // coins that we don't have a path to)\n // then, find the shortest path from each of those coins to each other coin\n\n // then, we want all Hamiltonian paths (and all subpaths?) Traveling Salesman Problem\n // i.e. we care about paths for as long as the number of steps it takes to complete\n // is less than or equal to the number of turns we have remaining\n\n // convert the Location[][] we have into David and Austin's LocationsToNode\n LocationsToNode graph = new LocationsToNode(maze);\n // knownCoins are ONLY the coins we have paths to. we will calculate the\n // shortest paths later. there are repeat calculations below.\n LinkedList<Node> coins = bfsFindCoins(graph, curX, curY);\n for (Node coinFrom : coins) {\n Location coinFromLoc = graph.getLocation(coinFrom);\n LinkedList<LinkedList<Location>> pathsToOthers = new LinkedList<LinkedList<Location>>();\n for (Node coinTo : coins) {\n Location coinToLoc = graph.getLocation(coinTo);\n LinkedList<Location> path = getShortestPath(coinFrom, coinTo, graph);\n pathsToOthers.add(path);\n }\n paths.put(coinFromLoc,pathsToOthers);\n }\n\n // calculating all possible Hamiltonian paths....\n // this is A LOT of paths we're talking about\n // i.e. we want every path that visits every single coin\n // so if we know 20 coins, starting at point 1, we have 19 choices\n // for the second point, 18 for the third, and so on (this is on the order of\n // n! total paths without dynamic programming, and might be too much brute force)\n // https://en.wikipedia.org/wiki/Hamiltonian_path#Properties\n // https://en.wikipedia.org/wiki/Travelling_salesman_problem#Heuristic_and_approximation_algorithms\n // https://stackoverflow.com/questions/16555978/example-of-a-factorial-time-algorithm-o-n\n // then, we will decide which Hamiltonian is the best for the number of\n // moves we have available to us\n\n // instead, i am going to try only calculating the paths we can actually make with our current number\n // of turns because we want the most coins in the fewest turns\n\n // WE ONLY CARE ABOUT THE LONGEST (COIN) PATH WITH THE SAME NUMBER OF TURNS\n\n return new LinkedList<Pair<DirType, Location>>();\n }", "public interface SearchAlgorithm {\n\t/**\n\t * Searches the state space for a solution.\n\t * @param root\n\t * The root state to begin search from.\n\t * @param expanded_list\n\t * The expanded list in order of expansion. Filled by function.\n\t * @param goal\n\t * The goal state representation used to test if we reached the goal state.\n\t * @return\n\t * The search results containing all needed information about the search and the results.\n\t */\n\tSearchResult search(State root, List<State> expanded_list, State goal);\n}", "public Stack<Node> findPath(Node initial_node, Node end_node) {\r\n\r\n // TODO: check for hardcoded value 3\r\n int size = 3;\r\n boolean is_start_node = true;\r\n\r\n PriorityList priority_list = new PriorityList();\r\n LinkedList linked_list = new LinkedList();\r\n\r\n // Initialise start node\r\n initial_node.total_path_cost = 0;\r\n initial_node.cost_estimated_to_goal_node = initial_node.pathCost(end_node);\r\n initial_node.parent_node_in_path = null;\r\n priority_list.add(initial_node);\r\n\r\n // Begin exploration of grid map\r\n while (!priority_list.isEmpty()) {\r\n\r\n // Get node from head of list\r\n Node node = (Node) priority_list.removeFirst();\r\n\r\n // Determine if node is Start node\r\n if (node == initial_node)\r\n is_start_node = true;\r\n else\r\n is_start_node = false;\r\n\r\n ((Node) node).setFacing();\r\n\r\n // Determine if node is goal node\r\n if (node == end_node) {\r\n return constructPath(end_node);\r\n }\r\n\r\n // Get list of node neighbours\r\n List neighbors_list = node.getNeighbors();\r\n\r\n // Iterate through list of node neighbours\r\n for (int i = 0; i < neighbors_list.size(); i++) {\r\n\r\n // Extract neighbour node information\r\n Node node_neighbour = (Node) neighbors_list.get(i);\r\n boolean isOpen = priority_list.contains(node_neighbour);\r\n boolean isClosed = linked_list.contains(node_neighbour);\r\n boolean isObs = (node_neighbour).isObs();\r\n int clearance = node_neighbour.getClearance();\r\n float total_path_cost = node.getCost(node_neighbour, end_node, is_start_node) + 1;\r\n\r\n // Check 1. if node neighbours have not been explored OR 2. if shorter path to\r\n // neighbour node exists\r\n if ((!isOpen && !isClosed) || total_path_cost < node_neighbour.total_path_cost) {\r\n node_neighbour.parent_node_in_path = node;\r\n node_neighbour.total_path_cost = total_path_cost;\r\n node_neighbour.cost_estimated_to_goal_node = node_neighbour.pathCost(end_node);\r\n\r\n // Add neighbour node to priority_list if 1. node not in\r\n // priority_list/linked_list AND 2.\r\n // robot can reach\r\n if (!isOpen && !isObs && size == clearance) {\r\n priority_list.add(node_neighbour);\r\n }\r\n }\r\n }\r\n linked_list.add(node);\r\n }\r\n\r\n // priority_list empty; no path found\r\n\r\n return new Stack<Node>();\r\n }", "@Override\n public ArrayList<ArrayList<String>> getNeighborhood(ArrayList<String> point, double argument1, double argument2) {\n ArrayList<ArrayList<String>> neighborhood = new ArrayList<>();\n String[] moves = {\"U\", \"D\", \"L\", \"R\"};\n if(point.size() == 0){\n point.add(moves[(int)(Math.random()*4)]);\n }\n\n //kazde rozwiązanie powstaje przez wstawienie każdego ruchu w środku ścieżki\n for(int i = 0; i<point.size(); i++){\n for(String move : moves){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.add(i, move);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n for(String move : moves){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.add(i, move);\n newPath.add(i, move);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n }\n\n //kazde rozwiązanie powstaje przez usunięcie jednego elementu\n for(int i=0; i<point.size(); i++){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.remove(i);\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n\n //kazde rozwiązanie powstaje przez swapowanie wszystkich z losowym\n int random = (int)(Math.random()*point.size());\n for(int i=0; i<point.size(); i++){\n ArrayList<String> newPath = arrayListDeepCopy(point);\n newPath.set(i, point.get(random));\n newPath.set(random, point.get(i));\n newPath = cleanUpPath(newPath);\n if(testFunction.check(newPath)) neighborhood.add(newPath);\n }\n\n //System.out.println(neighborhood.size());\n\n ArrayList<ArrayList<String>> newNeighborhood = new ArrayList<>();\n for (int i = 0; i < neighborhood.size(); i++) {\n newNeighborhood.add(shortenPath(neighborhood.get(i)));\n }\n\n return newNeighborhood;\n }", "private void findPath(int current){\r\n // remove current from OPEN\r\n int index = insideArray(_openSet,current);\r\n if(index == -1){\r\n System.out.println(\"findPath method returns -1.\");\r\n }\r\n _openSet.remove(index);\r\n\r\n // add current to CLOSED\r\n _closedSet.add(current);\r\n\r\n // if current is the target node\r\n if(current == _endIndex){\r\n return;\r\n }\r\n\r\n int neighborNum = _map.get_grid(current).get_neighborNum();\r\n int[] neighbors = _map.get_grid(current).get_neighbors();\r\n\r\n //for each neighbor of the current node\r\n for(int i=0;i<neighborNum;i++){\r\n Grid neighborGrid = _map.get_grid(neighbors[i]);\r\n // if neighbor is not traversable or neighbor is in CLOSED\r\n // SKIP THIS NEIGHBOR\r\n if(!neighborGrid.get_type().equals(\"|\") && insideArray(_closedSet,neighbors[i]) == -1){\r\n int currentNeighborF = neighborGrid.get_Fnum();\r\n int neighborF = findF(neighbors[i]);\r\n if(neighborF < currentNeighborF || insideArray(_closedSet,neighbors[i]) == -1){\r\n neighborGrid.set_Fnum(neighborF);\r\n neighborGrid.set_parent(current);\r\n if(insideArray(_closedSet,neighbors[i]) == -1){\r\n _openSet.add(neighbors[i]);\r\n }\r\n }\r\n }\r\n }\r\n int currentIndex = smallestF();\r\n // RECURSIVE CALL\r\n findPath(_map.get_grid(_openSet.get(currentIndex)).get_index());\r\n }", "public interface PathComponent\n{\n /** \n * Get the analysis bits for this path component, as defined in the WalkerFactory.\n * @return One of WalkerFactory#BIT_DESCENDANT, etc.\n */\n public int getAnalysisBits();\n\n}", "@Override\n\tpublic direction[] Solve(nPuzzle aPuzzle) {\n\t\taddToFrontier(aPuzzle.StartState);\n\t\t\n\t\t// While the open list is not empty:\n\t\twhile(Frontier.size() > 0) {\n\t\t\t// Find the frontier with the lowest F value.\n\t\t\tPuzzleState q = popFrontier();\n\t\t\t\n\t\t\tArrayList<PuzzleState> newStates = q.explore();\n\t\t\t\n\t\t\tfor(PuzzleState n : newStates) {\n\t\t\t\t// If goal state return path to state.\n\t\t\t\tif(n.equals(aPuzzle.GoalState))\n\t\t\t\t\treturn n.GetPathToState();\n\t\t\t\t// Else add state to open list.\n\t\t\t\telse {\n\t\t\t\t\tn.HeuristicValue = HeuristicValue(n, aPuzzle.GoalState);\n\t\t\t\t\tn.setEvaluationFunction(n.HeuristicValue + n.Cost);\n\t\t\t\t\taddToFrontier(n);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }", "static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}", "Integer cost(PathFindingNode node, PathFindingNode neighbour);", "public ShortestPathMatrix<V,E> allPairsShortestPaths();", "private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}", "public void pathTo(int x, int y);", "private LinkedList<Node> aStarPath() throws PathNotFoundException {\n\n // Set of nodes already evaluated\n List<Node> closedSet = new ArrayList<Node>();\n\n // Set of nodes visited, but not evaluated\n List<Node> openSet = new ArrayList<Node>();\n openSet.add(start);\n\n\n // Map of node with shortest path leading to it\n Map<Node, Node> cameFrom = new HashMap<>();\n\n // Map of cost of navigating from start to node\n Map<Node, Double> costFromStart = new HashMap<>();\n costFromStart.put(start, 0.0);\n\n // Map of cost of navigating path from start to end through node\n Map<Node, Double> costThrough = new HashMap<>();\n costThrough.put(start, heuristic(start, end));\n\n while (!openSet.isEmpty()){\n\n Node current = lowestCostThrough(openSet, costThrough);\n\n if(current.equals(end)){\n return reconstructPath(cameFrom, current);\n }\n\n openSet.remove(current);\n closedSet.add(current);\n\n for(Node neighbor: current.getNodes()) {\n if (closedSet.contains(neighbor)) {\n continue;\n }\n\n double tentativeCost = costFromStart.get(current) + distanceBetween(current, neighbor);\n\n if (!openSet.contains(neighbor)) { // found new neighbor\n openSet.add(neighbor);\n } else if (tentativeCost >= costFromStart.get(neighbor)) { // not a better path\n continue;\n }\n\n cameFrom.put(neighbor, current);\n costFromStart.put(neighbor, tentativeCost);\n costThrough.put(neighbor, tentativeCost + heuristic(neighbor, end));\n\n }\n }\n // no path\n throw pathNotFound;\n }", "public Iterator<Node> findPath() throws GraphException{\n\t\t\n\t\t// create a start and end node\n\t\tNode begin = this.graph.getNode(this.start);\n\t\tNode finish = this.graph.getNode(this.end);\n\t\t// check to make sure a path exits between these nodes\n\t\tboolean test = findPath(begin, finish);\n\t\tif(test){\n\t\t\t// reset the variables of the map that were changed by invoking the findPath helper method\n\t\t\tthis.testLine = \"Luka<3<3\";\n\t\t\tthis.changeCount = -1;\n\t\t\t//return the iterator over the Stack of the Map that was modified by the findPath helper method\n\t\t\treturn this.S.iterator();\n\t\t}\n\t\t// return null if a path does not exist\n\t\treturn null;\n\t}", "private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }", "public static void main(String[] args) {\n TreeNode n0 = new TreeNode(0); \n TreeNode n1 = new TreeNode(1); \n TreeNode n2 = new TreeNode(2); \n TreeNode n3 = new TreeNode(3); \n TreeNode n4 = new TreeNode(4); \n TreeNode n5 = new TreeNode(5); \n TreeNode n6 = new TreeNode(6); \n \n n0.left = n1; n0.right = n2; \n n1.left = n3; n1.right = n4; \n n2.left = n5; n2.right = n6; \n \n List<TreeNode> res = new Test().findPath(n0, n5); \n System.out.println(res); \n }", "public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}", "List<Point> getPath(int grid[][], Point src, Point dest);", "public Square[] buildPath(GameBoard board, Player player) {\n\n // flag to check if we hit a goal location\n boolean goalVertex = false;\n\n // Queue of vertices to be checked\n Queue<Vertex> q = new LinkedList<Vertex>();\n\n // set each vertex to have a distance of -1\n for ( int i = 0; i < graph.length; i++ )\n graph[i] = new Vertex(i,-1);\n\n // get the start location, i.e. the player's location\n Vertex start = \n squareToVertex(board.getPlayerLoc(player.getPlayerNo()));\n start.dist = 0;\n q.add(start);\n\n // while there are still vertices to check\n while ( !goalVertex ) {\n\n // get the vertex and remove it;\n // we don't want to look at it again\n Vertex v = q.remove();\n\n // check if this vertex is at a goal row\n switch ( player.getPlayerNo() ) {\n case 0: if ( v.graphLoc >= 72 ) \n goalVertex = true; break;\n case 1: if ( v.graphLoc <= 8 ) \n goalVertex = true; break;\n case 2: if ( (v.graphLoc+1) % GameBoard.COLUMNS == 0 )\n goalVertex = true; break;\n case 3: if ( v.graphLoc % GameBoard.COLUMNS == 0 )\n goalVertex = true; break;\n }\n\n // if we're at a goal vertex, we don't need to calculate\n // its neighboors\n if ( !goalVertex ) {\n\n // retrieve all reachable ajacencies\n Square[] adjacencies = reachableAdjacentSquares\n (board, vertexToSquare(v, board), player.getPlayerNo());\n\n // for each adjacency...\n for ( Square s : adjacencies ) {\n\n // convert to graph location\n Vertex adjacent = squareToVertex(s); \n\n // modify the vertex if it hasn't been modified\n if ( adjacent.dist < 0 ) {\n adjacent.dist = v.dist+1;\n adjacent.path = v;\n q.add(adjacent);\n }\n }\n\n }\n else\n return returnPath(v,board);\n \n }\n // should never get here\n return null;\n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "@SuppressWarnings(\"Duplicates\")\n public HashMap<Node, PathValue> findPath(Node startNode, Node endNode, boolean isHandicap, HashMap<String, Node> nodesList, HashMap<String, LinkedList<Edge>> adjacencyList) {\n int count = 0;\n\n HashMap<Node, PathValue> pathValues = new HashMap<>();\n pathValues.put(startNode, new PathValue(startNode));\n\n Stack<PathValue> stack = new Stack<>();\n stack.push(pathValues.get(startNode));\n\n while (!stack.isEmpty()) {\n PathValue currentPathValue = stack.pop();\n Node currentNode = currentPathValue.getNode();\n\n if (!currentPathValue.visited()) { // makes sure the current node has not be\n currentPathValue.setVisited(true);\n count++;\n\n //System.out.println(currentNode);\n\n if (currentNode.equals(endNode)) { //path has been found\n\n System.out.println(\"Number of nodes visited by dfs: \" + count);\n return pathValues;\n }\n\n //obtain the edges connected to the node\n LinkedList<Edge> adjacentEdges = adjacencyList.get(currentNode.getID());\n LinkedList<Node> adjacentNodes = new LinkedList<>();\n\n //add the nodes connected by the edges to the current node to adjacentNodes\n for (Edge e : adjacentEdges) {\n String nodeID = e.findOtherNode(currentNode.getID());\n adjacentNodes.add(nodesList.get(nodeID));\n }\n\n for (Node n : adjacentNodes) { //add the nodes to the priority queue, if necessary\n if (!pathValues.containsKey(n)) {\n pathValues.put(n, new PathValue(n, currentNode));\n }\n PathValue path = pathValues.get(n);\n //prevents any stairs from being searched for\n if(isHandicap &&\n currentNode.getNodeType().equals(\"STAI\") &&\n n.getNodeType().equals(\"STAI\") &&\n n != startNode &&\n n != endNode){\n path.setVisited(true);\n }\n if (!path.visited()) { //we do not need to add nodes that have already been visited\n stack.push(path);\n }\n }\n }\n }\n return null;\n }", "public void solve() {\n /** To solve the traveling salesman problem:\n * Set up the graph, choose a starting node, then call the recursive backtracking method and pass it the starting node.\n */\n\n // We need to pass a starting node to recursive backtracking method\n Node startNode = null;\n\n // Grab a node, any node...\n for( Node n : graph.nodes() ) {\n startNode = n;\n break;\n }\n\n // Visit the first node\n startNode.visit();\n\n // Add first node to the route\n this.route[0] = startNode;\n\n // Pass the number of choices made\n int nchoices = 1;\n\n // Recursive backtracking\n explore(startNode, nchoices );\n\n\n }", "public abstract LinkedList<Point> traverse(Grid grid);", "private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }", "public List<Node> findPath(Node start);", "public interface Solver {\n void solve(Grid grid);\n}", "private Route calculate(String fromStation, String toStation) {\n\t\tif (stations==null){\r\n\t\t\tSystem.out.println(\"DEBUG RUN OF DIJKSTRA.\");\r\n\t\t\tstations = new ArrayList<Station>();\r\n\t\t\tcreateDebugMap(stations);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check if the stations exists\r\n\t\t */\r\n\t\tStation startStation = null, endStation = null;\r\n\r\n\t\t// Find starting station\r\n\t\tfor (Station thisStation : stations) {\r\n\t\t\tif (thisStation.stationName.equals(fromStation)) {\r\n\t\t\t\tSystem.out.println(\"Found startStaion in the Database\");\r\n\t\t\t\tstartStation = thisStation;\r\n\t\t\t}\r\n\t\t\tif (thisStation.stationName.equals(toStation)) {\r\n\t\t\t\tSystem.out.println(\"Found endStation in the Database\");\r\n\t\t\t\tendStation = thisStation;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Station not found. Break\r\n\t\tif (startStation == null || endStation == null) {\r\n\t\t\tSystem.out.println(\"Shit! One of the stations could not be found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Declare the variables for the algorithm\r\n\t\t */\r\n\r\n\t\t// ArrayList for keeping track of stations we have visited.\r\n\t\tArrayList<Station> visitedStations = new ArrayList<Station>();\r\n\t\t// Array for the DijkstraStations. This type holds the current best cost and best link to it.\r\n\t\tArrayList<DijkstraStation> dijkstraStations = new ArrayList<DijkstraStation>();\r\n\r\n\t\t// The station we are examining neighbors from.\r\n\t\tDijkstraStation currentStation = new DijkstraStation(new Neighbor(startStation, 0, 0), 0, startStation);\r\n\r\n\t\t// PriorityQueue for sorting unvisited DijkstraStations.\r\n\t\tNeighBorDijktstraComparetor Dijkcomparator = new NeighBorDijktstraComparetor();\r\n\t\tPriorityQueue<DijkstraStation> unvisitedDijkstraStations;\r\n\t\tunvisitedDijkstraStations = new PriorityQueue<DijkstraStation>(100, Dijkcomparator);\r\n\r\n\t\t// Variable to keep track of the goal\r\n\t\tboolean goalFound = false; // did we find the goal yet\r\n\t\tint goalBestCost = Integer.MAX_VALUE; // did we find the goal yet\r\n\r\n\t\t// Add the start staion to the queue so that the loop will start with this staiton\r\n\t\tunvisitedDijkstraStations.add(currentStation);\r\n\t\tdijkstraStations.add(currentStation);\r\n\r\n\t\t/***************************\r\n\t\t * The Dijkstra algorithm loop.\r\n\t\t ***************************/\r\n\r\n\t\twhile (!unvisitedDijkstraStations.isEmpty()) {\r\n\t\t\t// Take the next station to examine from the queue and set the next station as the currentStation\r\n\t\t\tcurrentStation = unvisitedDijkstraStations.poll();\r\n\r\n\t\t\tSystem.out.println(\"\\n============= New loop passtrough =============\");\r\n\t\t\tSystem.out.println(\"Analysing neighbors of \" + currentStation.stationRef.stationName + \". Cost to this station is: \" + currentStation.totalCost);\r\n\r\n\t\t\t// Add visited so we dont visit again.\r\n\t\t\tvisitedStations.add(currentStation.stationRef);\r\n\r\n\t\t\t// break the algorithm if the current stations totalcost if bigger than the best cost of the goal\r\n\t\t\tif (goalBestCost < currentStation.totalCost) {\r\n\t\t\t\tSystem.out.println(\"Best route to the goal has been found. Best cost is: \" + goalBestCost\r\n\t\t\t\t\t\t+ \" (To reach current station is: \" + currentStation.totalCost + \")\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check all neighbors from the currentStation to the neighBorQueue so we can examine them\r\n\t\t\tfor (Neighbor thisNeighbor : currentStation.stationRef.neighbors) {\r\n\r\n\t\t\t\t// Skip stations we have already visited\r\n\t\t\t\tif (!visitedStations.contains(thisNeighbor.stationRef)) {\r\n\t\t\t\t\t// If we havent seen this station before\r\n\t\t\t\t\t// Add it to the list of Dijkstrastations and to the PriorityQueue of unvisited stations\r\n\t\t\t\t\tif (getDijkstraStationByID(thisNeighbor.stationRef.stationid, dijkstraStations) == null) {\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = new DijkstraStation(thisNeighbor, currentStation.totalCost\r\n\t\t\t\t\t\t\t\t+ thisNeighbor.cost, currentStation.stationRef);\r\n\t\t\t\t\t\tdijkstraStations.add(thisDijkstraStation);\r\n\t\t\t\t\t\tunvisitedDijkstraStations.offer(thisDijkstraStation);\r\n\r\n\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\tgoalFound = true;\r\n\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Goal station found :) Cost to goal is: \" + goalBestCost);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"New station seen: \" + thisDijkstraStation);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Station has been seen before.\r\n\r\n\t\t\t\t\t\t// Get the station as a DijkstraStation from the array\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = getDijkstraStationByID(thisNeighbor.stationRef.stationid,\r\n\t\t\t\t\t\t\t\tdijkstraStations);\r\n\r\n\t\t\t\t\t\t// Check if the connection is better than the one we already know\r\n\t\t\t\t\t\tif (currentStation.totalCost + thisNeighbor.cost < thisDijkstraStation.totalCost) {\r\n\r\n\t\t\t\t\t\t\t// New best link found\r\n\t\t\t\t\t\t\tSystem.out.println(\"New best route found for \" + thisNeighbor.stationRef.stationName);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Old cost:\" + thisDijkstraStation.totalCost + \", New cost: \"\r\n\t\t\t\t\t\t\t\t\t+ (currentStation.totalCost + thisNeighbor.cost));\r\n\r\n\t\t\t\t\t\t\t// update the cost and via station on the DijkstraStation\r\n\t\t\t\t\t\t\tthisDijkstraStation.updateBestLink((int) (currentStation.totalCost + thisNeighbor.cost),\r\n\t\t\t\t\t\t\t\t\tcurrentStation.stationRef, thisNeighbor);\r\n\r\n\t\t\t\t\t\t\t// if this is the goal station, update the totalCost\r\n\t\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Updated cost for the goal to : \" + goalBestCost);\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\r\n\t\t}// End while\r\n\r\n\t\t// Print the World:\r\n//\t\t System.out.println();\r\n//\t\t System.out.println(\"################# Printing the world ###################\");\r\n//\t\t for (DijkstraStation thisDijkstraStation : dijkstraStations) {\r\n//\t\t System.out.println(thisDijkstraStation.toString());\r\n//\t\t DijkstraStation tempStation = thisDijkstraStation;\r\n//\t\t System.out.print(\"BackTracking route =>\");\r\n//\t\t while (!tempStation.stationRef.equals(startStation)) {\r\n//\t\t System.out.print(\" \" + tempStation.cost + \" to \" + tempStation.viaStation.stationName + \" #\");\r\n//\t\t\r\n//\t\t tempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n//\t\t }\r\n//\t\t System.out.print(\" End\");\r\n//\t\t System.out.print(\"\\n\\n\");\r\n//\t\t }\r\n//\r\n\t\tif (goalFound) {\r\n\t\t\tSystem.out.println(\"Generating route to goal\");\r\n\t\t\t// create a route object with all the stations.\r\n\t\t\tRoute routeToGoal = new Route(fromStation, toStation);\r\n\t\t\t// get the goalStation as a DijkstraStation Type\r\n\t\t\tDijkstraStation goalStation = getDijkstraStationByID(endStation.stationid, dijkstraStations);\r\n\r\n\t\t\trouteToGoal.cost = goalStation.totalCost;\r\n\t\t\trouteToGoal.price = (int) goalStation.totalCost;\r\n\r\n\t\t\t// Find the route to the goal\r\n\t\t\tDijkstraStation tempStation = goalStation;\r\n\r\n\t\t\twhile (!tempStation.stationRef.equals(startStation)) {\r\n\t\t\t\t// Add the station to the route table\r\n\t\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.cost, tempStation.cost,\r\n\t\t\t\t\t\ttempStation.stationRef.stationName, tempStation.stationRef.stationid);\r\n\t\t\t\t\r\n\t\t\t\t//Fix region string\r\n\t\t\t\tString regionString=\"\";\r\n\t\t\t\tfor (Integer regionID : tempStation.stationRef.region) {\r\n\t\t\t\t\tregionString.concat(regionID+ \",\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tthisStation.region = regionString.substring(0, regionString.length() - 1);\r\n\t\t\t\t\r\n\t\t\t\t//Add the station\r\n\t\t\t\trouteToGoal.route.add(0, thisStation);\r\n\t\t\t\t// Go to the previous station\r\n\t\t\t\ttempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n\t\t\t}\r\n\t\t\t// add the starting station\r\n\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.stationRef.latitude, tempStation.stationRef.longitude, tempStation.stationRef.stationName,\r\n\t\t\t\t\ttempStation.stationRef.stationid);\r\n\t\t\trouteToGoal.route.add(0, thisStation);\r\n\r\n\t\t\t// print the route\r\n\t\t\t//System.out.println(\"Printing best route to the Goal:\\n\" + routeToGoal.toString());\r\n\r\n\t\t\treturn routeToGoal;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "void makeService(int loc_temp,int des_temp,ArrayList<Coordinate> path)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint last_direction = 0;\r\n\t\t\tint[] shortest_path = new int[6400];\r\n\t\t\tint j_current = loc_temp % 80;\r\n\t\t\tint i_current = loc_temp / 80;\r\n\t\t\tBFS.setShortest(des_temp,shortest_path,BFS.adj_const);\r\n\t\t\tint temp = shortest_path[loc_temp];\r\n\t\t\twhile(temp != -1)\r\n\t\t\t{\r\n\t\t\t\tint length_min = BFS.getShortest(temp, des_temp,BFS.adj_const);\r\n\t\t\t\tint direction = -1;\r\n\t\t\t\tint flow_min = Main.MAX_INT;\r\n\t\t\t\tif((i_current-1)>=0 && BFS.adj_const[(i_current-1)*80+j_current][i_current*80+j_current]==1 && Flow.flows[i_current-1][j_current][1]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest((i_current-1)*80+j_current, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 0;//up\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current-1][j_current][1];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif((i_current+1)<80 && BFS.adj_const[(i_current+1)*80+j_current][i_current*80+j_current]==1 && Flow.flows[i_current][j_current][1]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest((i_current+1)*80+j_current, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 1;//down\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current][1];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\tif((j_current-1)>=0 && BFS.adj_const[i_current*80+j_current-1][i_current*80+j_current]==1 && Flow.flows[i_current][j_current-1][0]<flow_min)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tint length_temp = BFS.getShortest(i_current*80+j_current-1, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 2;//left\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current-1][0];\r\n\t\t\t\t\t\tlength_min = length_temp;\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((j_current+1)<80 && BFS.adj_const[i_current*80+j_current+1][i_current*80+j_current]==1 && Flow.flows[i_current][j_current][0]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest(i_current*80+j_current+1, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 3;//right\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current][0];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\tLight light = Traffic.findLight(i_current,j_current);\r\n\t\t\t\tif(light != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean first = true;\r\n\t\t\t\t\twhile(!leaveLight(light,last_direction,direction))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmeet_light = true;\r\n\t\t\t\t\t\tif(first)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc + \": Waiting at a traffic light\");\r\n\t\t\t\t\t\t\tfirst = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmeet_light = false;\r\n\t\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc + \": Going through a traffic light\");\r\n\t\t\t\t}\r\n\t\t\t\tswitch(direction)\r\n\t\t\t\t{\r\n\t\t\t\tcase 0 ://up\r\n\t\t\t\t\tif(BFS.adj_matrix[(i_current-1)*80+j_current][i_current*80+j_current] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current-1][j_current][1]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti_current -= 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1 ://down\r\n\t\t\t\t\tif(BFS.adj_matrix[(i_current+1)*80+j_current][i_current*80+j_current] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current][1]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti_current += 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 ://left\r\n\t\t\t\t\tif(BFS.adj_matrix[i_current*80+j_current][i_current*80+j_current-1] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current-1][0]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj_current -= 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3 ://right\r\n\t\t\t\t\tif(BFS.adj_matrix[i_current*80+j_current][i_current*80+j_current+1] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current][0]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj_current += 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t\tlast_direction = direction;\r\n\t\t\t\tloc = new Coordinate(i_current,j_current);\r\n\t\t\t\tpath.add(loc);\r\n\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc);\r\n\t\t\t\ttemp = shortest_path[i_current*80+j_current];\r\n\t\t\t}\t\t\r\n\t\t\tSystem.out.println(\"Passenger\" + passenger.loc + passenger.des + \": Taxi-\" + id + \" arrives at \" + des);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Sorry to catch Exception!\");;\r\n\t\t}\r\n\t}", "public interface SearchStrategy<T> {\n\t\n\t/**\n\t * Sucht den gewünschten Knoten.\n\t * @return gesuchten Knoten - wenn nicht gefunden, dann null.\n\t */\n\tpublic Node<T> search(T value, Node<T> root);\n\t\n\t/**\n\t * Gibt den Pfad der zuletzt ausgeführten Suche zurück.\n\t * \n\t * @return Liste der Knoten, die durchsucht wurden.\n\t */\n\tpublic ArrayList<Node<T>> getPath();\n}", "public void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);", "private void solve(PDMatrix mat, Point p, Movement currentMovement)\n\t{\n\t\tlistener.addIteration();\n\t\t\n\t\t// Cut condition: Having solved the problem, or not having a movement to make.\n\t\tif (currentMovement == Movement.NONE || solved)\n\t\t\treturn;\n\t\t\n\t\t// Next point were moving to.\n\t\tPoint nextPoint = p;\n\t\t\n\t\t// Gets the next point were moving to. \n\t\tnextPoint = currentMovement.applyTo(nextPoint);\n\t\t\n\t\t// If we are outside the matrix then it's a full path.\n\t\tif (!mat.contains(nextPoint)) {\n\t\t\t\n\t\t\t// If we're required to print each result then we send it.\n\t\t\t// We compare here in order to avoid making a rebuildMovements on each result.\n\t\t\tif (listener.action == PrintAction.RESULT)\t\n\t\t\t\tlistener.addAll(rebuildMovements(mat, nextPoint, currentMovement), PrintAction.RESULT);\t\n\t\t\t\n\t\t\tif (bestC < curC)\n\t\t\t{\n\t\t\t\tlistener.setSameLengthFound(0);\n\t\t\t\t\n\t\t\t\t// We've got a better result to store and show.\n\t\t\t\tbestStack = rebuildMovements(mat, nextPoint, currentMovement);\n\t\t\t\tlistener.setBestLength(bestC = curC);\n\t\t\t\tlistener.addAll(bestStack, PrintAction.BEST_SO_FAR);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (curC - 1 == mat.maxPathLen)\n\t\t\t\t{\n\t\t\t\t\t// If there are no more crosses and points to add, then it's a cut.\n\t\t\t\t\t// If there are no more pieces then it's a cut.\n\t\t\t\t\tsolved = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (bestC == curC && listener.repeats)\n\t\t\t{\n\t\t\t\tlistener.setSameLengthFound(listener.getSameLengthFound() + 1);\n\t\t\t\tlistener.addAll(rebuildMovements(mat, nextPoint, currentMovement), PrintAction.BEST_SO_FAR);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// We get the cell we're stepped into.\n\t\tCell currentCell = mat.get(nextPoint);\n\t\t\n\t\t// If it's a cross then we go deeply and move on with the same direction\n\t\t// (We make a hop over the cross)\n\t\tif (currentCell == Cell.CROSS)\n\t\t{\n\t\t\tcurC++;\n\t\t\tsolve(mat, nextPoint, currentMovement);\n\t\t\tcurC--;\n\t\t}\n\t\telse\n\t\tif (currentCell == Cell.EMPTY && currentCell != Cell.START)\n\t\t{\n\t\t\t// We get the pieces compatibles with the current cell at the point \n\t\t\t// we're in.\n\t\t\t// This reduces the for length from 4 to 7. And makes a reduction \n\t\t\t// in the amount of calls and makes sure that each piece can get in. \n\t\t\t// This gives us a boost of around 20% speed in most cases.\n\t\t\tint[] compatibles = mat.get(p).getCompatibles(currentMovement);\n\t\t\t\n\t\t\tfor (int j = 0; j < compatibles.length; j++) {\n\t\t\t\tint i = compatibles[j];\n\t\t\t\t\n\t\t\t\t/* The first condition asks to have pieces available of that kind.\n\t\t\t\t * The second makes sure of having no repeated cases with the crosses.\n\t\t\t\t * Since there are some cases in which having too many crosses can\n\t\t\t\t * make an exponencial increment on time.\n\t\t\t\t * Since a solution can work with a pattern like:\n\t\t\t\t * -------- or ----+---+ or ---+---+-- etc.\n\t\t\t\t * The normal DFS would pass through all the permutations of it.\n\t\t\t\t * We only take the first case (------++) by only using crosses \n\t\t\t\t * when there are no more -'s or |'s.\n\t\t\t\t * But making that cut alone would lose the cases in which the\n\t\t\t\t * cross is used before the end.\n\t\t\t\t * So we check whether the position to put the cross is valid or\n\t\t\t\t * not by checking the siblings of the cross.\n\t\t\t\t */\n\t\t\t\tif ( cellCount.totalPiecesLeft(i) > 0 \n\t\t\t\t\t&& ( i != 6 || \n\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t (cellCount.totalPiecesLeft(Cell.UPDOWN.ordinal()) == 0 \n\t\t\t\t\t\t\t\t\t && (currentMovement == Movement.UP || currentMovement == Movement.DOWN)) \n\t\t\t\t\t\t\t ||\n\t\t\t\t\t\t\t \t\t (cellCount.totalPiecesLeft(Cell.LEFTRIGHT.ordinal()) == 0 \n\t\t\t\t\t\t\t\t\t && (currentMovement == Movement.LEFT || currentMovement == Movement.RIGHT))\n\t\t\t\t\t\t\t ||\n\t\t\t\t\t\t\t \t\t (valid(mat.siblings(nextPoint), nextPoint))\n\t\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\t\t// If we decide to put the cell into the map, we've got\n\t\t\t\t\t// to change the amounts.\n\t\t\t\t\tcellCount.decreasePiecesLeft(i);\n\t\t\t\t\tcurC++ ;\n\t\t\t\t\t// We calculate the next movement given by the cell\n\t\t\t\t\t// we're calculating and the direction we have.\n\t\t\t\t\tMovement m = Cell.cells[i].NextDir(currentMovement);\n\t\t\t\t\t// We set the matrix with that cell and tell the listener about it.\n\t\t\t\t\t// Who will print it if it's printing by progress.\n\t\t\t\t\tmat.add(nextPoint, Cell.cells[i]);\n\t\t\t\t\tlistener.addCell(Cell.cells[i], nextPoint.x, nextPoint.y, PrintAction.PROGRESS);\n\t\t\t\t\t\n\t\t\t\t\t// Recursion step.\n\t\t\t\t\tsolve(mat, nextPoint, m);\n\t\t\t\t\t\n\t\t\t\t\tif (crossPoint != null && crossPoint.equals(nextPoint))\n\t\t\t\t\t\tcrossPoint = null;\n\t\t\t\t\t\n\t\t\t\t\t// Rollback of everything.\n\t\t\t\t\tlistener.removeCell(nextPoint.x, nextPoint.y, PrintAction.PROGRESS);\n\t\t\t\t\tmat.add(nextPoint, Cell.EMPTY);\n\t\t\t\t\tcurC--;\n\t\t\t\t\tcellCount.incrementPiecesLeft(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static List<CampusGraph.Edges<String, String>> findPath(CampusGraph<String, String> cg, String start, String destination) {\n if (cg == null || start == null || destination == null) {\n throw new IllegalArgumentException();\n }\n Queue<String> visitedNodes = new LinkedList<>();\n Map<String, List<CampusGraph.Edges<String, String>>> paths = new HashMap<>();\n visitedNodes.add(start); // Add start to Q\n paths.put(start, new LinkedList<>()); // Add start->[] to M (start mapped to an empty list)\n\n while (!visitedNodes.isEmpty()) {\n String currentNode = visitedNodes.remove();\n if (currentNode.equals(destination)) { // found the path\n return paths.get(currentNode);\n } else {\n List<CampusGraph.Edges<String, String>> neighbors = cg.getAllChildren(currentNode);\n neighbors.sort(new Comparator<CampusGraph.Edges<String, String>>() {\n @Override\n public int compare(CampusGraph.Edges<String, String> o1, CampusGraph.Edges<String, String> o2) {\n int cmpEndNode = o1.getEndTag().compareTo(o2.getEndTag());\n if (cmpEndNode == 0) {\n return o1.getEdgeLabel().compareTo(o2.getEdgeLabel());\n }\n return cmpEndNode;\n }\n }); // ascending list. Sort characters and books names all at once??\n\n for (CampusGraph.Edges<String, String> e: neighbors) {\n String neighbor = e.getEndTag();\n if (!paths.containsKey(neighbor)) { // i.e. if the neighbor is unvisited\n List<CampusGraph.Edges<String, String>> pathCopy = new LinkedList<>(paths.get(currentNode));\n pathCopy.add(e);\n paths.put(neighbor, pathCopy); // add the path exclusive to this neighbor\n visitedNodes.add(neighbor); // then, mark the neighbor as visited\n }\n }\n }\n }\n return null; // No destination found\n }", "public interface Heuristic\r\n{\r\n\r\n double calcStartToGoalCost(State currentState, State goalState);\r\n}", "public List<Vertex> newPath() {\r\n\t\tList<Vertex> Pathchange = new ArrayList<Vertex>();\r\n\t\tList<Vertex> tempPath = new ArrayList<Vertex>();\r\n\t\tint BestEval = Integer.MAX_VALUE;\r\n\t\tVertex changeVertexV1 = new Vertex();\r\n\t\tVertex changeVertexV2 = new Vertex();\r\n\r\n\t\tfor (int position = 0; position < this.LastPath.size() - 1; position++) {\r\n\t\t\tfor (int changement = position+1; changement < this.LastPath.size(); changement++) {\r\n\r\n\t\t\t\ttempPath.clear();\r\n\t\t\t\ttempPath = new ArrayList<Vertex>(this.LastPath);\r\n\t\t\t\tif (!(this.TabuListV1.contains(tempPath.get(position)) || this.TabuListV1.contains(tempPath.get(changement)) || this.TabuListV2.contains(tempPath.get(position)) || this.TabuListV2.contains(tempPath.get(changement)))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tCollections.swap(tempPath, position, changement);\r\n\t\t\t\t\tif (this.fit(tempPath) < BestEval) {\r\n\t\t\t\t\t\tPathchange.clear();\r\n\t\t\t\t\t\tPathchange = new ArrayList<Vertex>(tempPath);\r\n\t\t\t\t\t\tchangeVertexV1 = tempPath.get(position);\r\n\t\t\t\t\t\tchangeVertexV2 = tempPath.get(changement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(this.tabuElementType == 0) {\r\n\t\t\tthis.TabuListV1.add(0, changeVertexV1);\r\n\t\t}else if(this.tabuElementType == 1) {\r\n\t\t\tthis.TabuListV2.add(0, changeVertexV2);\r\n\t\t}else {\r\n\t\t\tthis.TabuListV1.add(0, changeVertexV1);\r\n\t\t\tthis.TabuListV2.add(0, changeVertexV2);\r\n\t\t}\r\n\t\t\r\n\t\tif (this.TabuListV1.size() > this.TabuListSize) {\r\n\t\t\tthis.TabuListV1.remove(this.TabuListV1.size() - 1);\r\n\t\t}\r\n\t\tif (this.TabuListV2.size() > this.TabuListSize) {\r\n\t\t\tthis.TabuListV2.remove(this.TabuListV2.size() - 1);\r\n\t\t}\r\n\r\n\t\treturn Pathchange;\r\n\t}", "public static void computePaths(Point source) {\n\n\t\tsource.setMinimumDistance(0.0);\n\t\tPriorityQueue<Point> pointQueue = new PriorityQueue<Point>();\n\t\tpointQueue.add(source);\n\t\twhile (!pointQueue.isEmpty()) {\n\t\t\tPoint u = pointQueue.poll();\n\t\t\tif (u.getAdjacencies() != null) {\n\t\t\t\tfor (Edge e : u.getAdjacencies()) {\n\n\t\t\t\t\tPoint target = e.getTarget();\n\t\t\t\t\tdouble weight = e.getWeight();\n\t\t\t\t\tdouble distanceThroughP = weight + u.getMinimumDistance();\n\n\t\t\t\t\tif (distanceThroughP < target.getMinimumDistance()) {\n\t\t\t\t\t\tpointQueue.remove(target);\n\n\t\t\t\t\t\ttarget.setMinimumDistance(distanceThroughP);\n\t\t\t\t\t\ttarget.setPrevious(u);\n\t\t\t\t\t\tpointQueue.add(target);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void computeAllPaths()\n {\n for (Station src : this.graph.stations)\n {\n List<Station> visited = new ArrayList<Station>();\n computePathsForNode(src, null, null, visited);\n }\n Print.printTripList(this.tripList);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void findSimplePaths(Integer currentVertex, Integer destinationVertex, double totalWeight, LinkedList<Integer> path, Set<Integer> allVertices, Set<Integer> visitedNodes, HashMap<LinkedList<Integer>, Double> allSimplePaths) {\n\t\tSet<DefaultEdge> connectedEdges = layout.edgesOf(currentVertex);\n\t\t// remove all of the edges that have been visited\n\t\tif (destinationVertex.equals(currentVertex)){\n\t\t\t// Completed the loop\n\t\t\tallSimplePaths.put(path, totalWeight);\n\t\t\treturn;\n\t\t}\n\t\tfor (DefaultEdge e : connectedEdges) {\n\t\t\tInteger v = layout.getEdgeTarget(e);\n\t\t\tif (!currentVertex.equals(layout.getEdgeSource(e))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (visitedNodes.contains(v)){\n\t\t\t\tcontinue; //already visited the edge, so skip it\n\t\t\t}\n\t\t\tDefaultBlock b = (DefaultBlock)blockData.get((int)currentVertex);\n\t\t\t// if it is a switch make sure the next block is a valid move\n\t\t\t/*\n\t\t\tif (b.getClass().equals(SwitchBlock.class)){\n\t\t\t\tint [] possibleNextBlocks = ((SwitchBlock) b).getPossibleNextBlocks();\n\t\t\t\tfor (Integer i : allVertices) {\n\t\t\t\t\tif (i.equals(possibleNextBlocks[0])) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (i.equals(possibleNextBlocks[1])) {\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\t*/\n\t\t\t// If the block is closed, it is not a path\n\t\t\tif (b.broken) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// it is part of a path\n\t\t\ttotalWeight += b.blockLength;\n\t\t\tLinkedList<Integer> pathCopy = (LinkedList<Integer>)path.clone();\n\t\t\tSet<Integer> visitedNodesCopy = new HashSet<Integer>(visitedNodes.size());\n\t\t\tvisitedNodesCopy.addAll(visitedNodes);\n\t\t\tvisitedNodesCopy.add(v);\n\t\t\tpathCopy.add(pathCopy.size(), v);\n\t\t\tfindSimplePaths(v, destinationVertex, totalWeight, pathCopy, allVertices, visitedNodesCopy, allSimplePaths);\n\t\t}\n\t}", "public interface Heuristic {\n}", "private SchedulePaths calculateAllPaths(final SchedulePaths schedulePaths, final Set<Edge> path,\n final Operation operation) {\n\n final Set<Edge> parentEdges;\n if (operation instanceof EndVertex) {\n parentEdges = ((EndVertex) operation).getEndParentEdges();\n } else {\n parentEdges = operation.getParentEdges();\n }\n\n LOG.trace(\"Checking operation J: {}, M: {}\", operation.getJob(), operation.getMachine());\n LOG.trace(\"Number of parent edges: {}\", parentEdges.size());\n\n //Runs while not root operation\n if (!parentEdges.isEmpty()) {\n\n //Gets maximum edge size\n Integer maxEdge = 0;\n for (final Edge edge : parentEdges) {\n\n if (path.contains(edge)) {\n LOG.trace(\"Detected loop\");\n LOG.trace(\"Loop parent: {}\\n From path: {}\", edge.toString(), path.toString());\n schedulePaths.setIsFeasible(false);\n schedulePaths.setNodeCausingCycle(edge);\n\n return schedulePaths;\n }\n\n LOG.trace(\"Parent of operation: J:{} M:{}\", edge.getOperationFrom().getJob(), edge.getOperationFrom()\n .getMachine());\n if (edge.getMaxDistanceToMe() > maxEdge) {\n maxEdge = edge.getMaxDistanceToMe();\n }\n }\n\n LOG.trace(\"Maximum edge is {}\", maxEdge);\n\n Set<Edge> pathCopy = null;\n boolean firstEdge = true;\n for (final Edge edge : parentEdges) {\n\n if (Objects.equals(edge.getMaxDistanceToMe(), maxEdge)) {\n\n LOG.trace(\"Edge: {} maxd: {}\", edge, edge.getMaxDistanceToMe());\n\n if (firstEdge) {\n\n pathCopy = new LinkedHashSet<>(path);\n\n path.add(edge);\n LOG.trace(\"Adding edge: {}\", edge);\n firstEdge = false;\n calculateAllPaths(schedulePaths, path, edge.getOperationFrom());\n } else {\n\n final Set<Edge> newPath = new LinkedHashSet<>(pathCopy);\n LOG.trace(\"Creating new path, copying: {}\", pathCopy);\n\n newPath.add(edge);\n LOG.trace(\"New Path copy, adding edge: {}\", edge);\n calculateAllPaths(schedulePaths, newPath, edge.getOperationFrom());\n }\n }\n }\n } else {\n\n LOG.trace(\"Added new path to path set.\");\n schedulePaths.addPath(path);\n }\n\n return schedulePaths;\n }", "public void getPath()\n {\n if(bruteForceJRadioButton.isSelected())//brute force method\n {\n methodJLabel.setText(\"Brute Force\");\n startTime = System.nanoTime();//times should be in class where brute force is found\n pathList = graph.getBruteForcePath();\n stopTime = System.nanoTime();\n timePassed = stopTime - startTime;\n }\n else if(nearestJRadioButton.isSelected())//nearest neighbor method\n {\n methodJLabel.setText(\"Nearest Neighbor\");\n startTime = System.nanoTime();\n pathList = graph.getNearestNeighbourPath();\n stopTime = System.nanoTime();\n timePassed = stopTime - startTime;\n }\n else //sorted edges method\n {\n methodJLabel.setText(\"Sorted Edges\");\n startTime = System.nanoTime();\n pathList = graph.getSortedEdgePath();\n stopTime = System.nanoTime();\n timePassed = stopTime - startTime;\n }\n displayStats();\n }", "public interface weighted_graph_algorithms {\r\n /**\r\n * Init the graph on which this set of algorithms operates on.\r\n * @param g\r\n */\r\n public void init(weighted_graph g);\r\n\r\n /**\r\n * Return the underlying graph of which this class works.\r\n * @return\r\n */\r\n public weighted_graph getGraph();\r\n /**\r\n * Compute a deep copy of this weighted graph.\r\n * @return\r\n */\r\n public weighted_graph copy();\r\n /**\r\n * Returns true if and only if (iff) there is a valid path from EVREY node to each\r\n * other node. NOTE: assume ubdirectional graph.\r\n * @return\r\n */\r\n public boolean isConnected();\r\n /**\r\n * returns the length of the shortest path between src to dest\r\n * Note: if no such path --> returns -1\r\n * @param src - start node\r\n * @param dest - end (target) node\r\n * @return\r\n */\r\n public double shortestPathDist(int src, int dest);\r\n /**\r\n * returns the the shortest path between src to dest - as an ordered List of nodes:\r\n * src--> n1-->n2-->...dest\r\n * see: https://en.wikipedia.org/wiki/Shortest_path_problem\r\n * Note if no such path --> returns null;\r\n * @param src - start node\r\n * @param dest - end (target) node\r\n * @return\r\n */\r\n public List<node_info> shortestPath(int src, int dest);\r\n\r\n /**\r\n * Saves this weighted (undirected) graph to the given\r\n * file name\r\n * @param file - the file name (may include a relative path).\r\n * @return true - iff the file was successfully saved\r\n */\r\n public boolean save(String file);\r\n\r\n /**\r\n * This method load a graph to this graph algorithm.\r\n * if the file was successfully loaded - the underlying graph\r\n * of this class will be changed (to the loaded one), in case the\r\n * graph was not loaded the original graph should remain \"as is\".\r\n * @param file - file name\r\n * @return true - iff the graph was successfully loaded.\r\n */\r\n public boolean load(String file);\r\n}", "private void path(Node s, Node d, HashSet<Node> visited, List<Node> currentPath, List<List<Node>> paths) {\n\t\tvisited.add(s);\n\t\tcurrentPath.add(s);\n\t\t\n\t\tif(s.value == d.value) {\n\t\t\tpaths.add(currentPath);\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t* A list of nodes accessible from the current node, both parents and children\n\t\t* */\n\t\tList<Node> proximity = new ArrayList<>();\n\t\t\n\t\tif(s.children != null)\n\t\t\tfor(Node child : s.children) {\n\t\t\t\tif(!visited.contains(child))\n\t\t\t\t\tproximity.add(child);\n\t\t\t}\n\t\t\n\t\tif(s.parents != null)\n\t\t\tfor(Node parent : s.parents) {\n\t\t\t\tif(!visited.contains(parent)) \n\t\t\t\t\tproximity.add(parent);\n\t\t\t}\n\n /*\n * Explore each possible path\n * */\n\t\tfor(Node neighbour : proximity) {\n\t\t\tArrayList<Node> newPath = new ArrayList<>(currentPath);\n\t\t\tpath(neighbour, d, visited, newPath, paths);\n\t\t}\n\t}", "private Stack<MapLocation> findPath(State.StateView state)\n {\n Unit.UnitView townhallUnit = state.getUnit(townhallID);\n Unit.UnitView footmanUnit = state.getUnit(footmanID);\n \n MapLocation startLoc = new MapLocation(footmanUnit.getXPosition(), footmanUnit.getYPosition(), null, 0);\n \n MapLocation goalLoc = new MapLocation(townhallUnit.getXPosition(), townhallUnit.getYPosition(), null, 0);\n \n MapLocation footmanLoc = null;\n if(enemyFootmanID != -1) {\n Unit.UnitView enemyFootmanUnit = state.getUnit(enemyFootmanID);\n footmanLoc = new MapLocation(enemyFootmanUnit.getXPosition(), enemyFootmanUnit.getYPosition(), null, 0);\n }\n \n // get resource locations\n List<Integer> resourceIDs = state.getAllResourceIds();\n Set<MapLocation> resourceLocations = new HashSet<MapLocation>();\n for(Integer resourceID : resourceIDs)\n {\n ResourceNode.ResourceView resource = state.getResourceNode(resourceID);\n \n resourceLocations.add(new MapLocation(resource.getXPosition(), resource.getYPosition(), null, 0));\n }\n \n return AstarSearch(startLoc, goalLoc, state.getXExtent(), state.getYExtent(), footmanLoc, resourceLocations);\n }", "public Paths(Graph G, int s)\n {\n ...\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n root.right = new TreeNode(3);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(8);\n root.right.left = new TreeNode(6);\n root.right.right = new TreeNode(7);\n Solution34 solution34 = new Solution34();\n System.out.println(solution34.FindPath(root,11));\n }", "private StatusEnum stepInternal()\n {\n if (initialStep)\n {\n this.tail = map.getStart();\n this.openSet.push(map.getStart());\n initialStep = false;\n }\n\n if (status != StatusEnum.RUNNING)\n return status;\n\n cursor = openSet.pop(); // Pull the cursor off the open set min-heap\n if (cursor == null)\n {\n // The open set was empty, so although we have not reached the goal, there are no more points to investigate\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n\n while (closedSet.contains(cursor) || !map.isTraversable(cursor))\n {\n // The cursor is in the closed set (meaning it was already investigated) or the cursor point is non traversable on the map\n cursor = openSet.pop();\n if (cursor == null)\n {\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n }\n\n // The goal has been reached, the path is complete\n if (cursor.equals(map.getGoal()))\n {\n tail = cursor; // Set the member tail to be used in the reconstruction done in getPath()\n return StatusEnum.COMPLETED_FOUND;\n }\n\n // Add the cursor point to the closed set\n closedSet.add(cursor);\n\n // Get the list of neighboring points\n List<WeightedPoint> neighbors = neighborSelector.getNeighbors(map, cursor, heuristic);\n\n // Link the neighbors to the cursor (for backtracking the path when the goal is reached) and calculate their weight\n for (WeightedPoint wp : neighbors)\n {\n if (map.isTraversable(wp.getRow(), wp.getCol()) && !closedSet.contains(wp))\n {\n wp.setFromCost(cursor.getFromCost() + heuristic.distance(cursor, wp));\n\n if (dijkstra)\n {\n wp.setToCost(0);\n }\n else\n {\n wp.setToCost(heuristic.distance(wp, map.getGoal()));\n }\n wp.setPrev(cursor);\n }\n }\n\n if (shuffle)\n {\n // Shuffle the neighbors to randomize the order of testing nodes with the same cost value\n Collections.shuffle( neighbors );\n }\n Collections.sort( neighbors );\n\n // Put the neighbors on the open set\n for (WeightedPoint wp : neighbors)\n {\n if (!openSet.contains(wp))\n openSet.push(wp);\n }\n\n return StatusEnum.RUNNING;\n }", "public int a(PathPoint[] var0, PathPoint var1) {\n/* 53 */ int var2 = 0;\n/* 54 */ int var3 = 1;\n/* */ \n/* 56 */ BlockPosition var4 = new BlockPosition(var1.a, var1.b, var1.c);\n/* 57 */ double var5 = b(var4);\n/* */ \n/* 59 */ PathPoint var7 = a(var1.a, var1.b, var1.c + 1, 1, var5);\n/* 60 */ PathPoint var8 = a(var1.a - 1, var1.b, var1.c, 1, var5);\n/* 61 */ PathPoint var9 = a(var1.a + 1, var1.b, var1.c, 1, var5);\n/* 62 */ PathPoint var10 = a(var1.a, var1.b, var1.c - 1, 1, var5);\n/* 63 */ PathPoint var11 = a(var1.a, var1.b + 1, var1.c, 0, var5);\n/* 64 */ PathPoint var12 = a(var1.a, var1.b - 1, var1.c, 1, var5);\n/* */ \n/* 66 */ if (var7 != null && !var7.i) {\n/* 67 */ var0[var2++] = var7;\n/* */ }\n/* 69 */ if (var8 != null && !var8.i) {\n/* 70 */ var0[var2++] = var8;\n/* */ }\n/* 72 */ if (var9 != null && !var9.i) {\n/* 73 */ var0[var2++] = var9;\n/* */ }\n/* 75 */ if (var10 != null && !var10.i) {\n/* 76 */ var0[var2++] = var10;\n/* */ }\n/* 78 */ if (var11 != null && !var11.i) {\n/* 79 */ var0[var2++] = var11;\n/* */ }\n/* 81 */ if (var12 != null && !var12.i) {\n/* 82 */ var0[var2++] = var12;\n/* */ }\n/* */ \n/* 85 */ boolean var13 = (var10 == null || var10.l == PathType.OPEN || var10.k != 0.0F);\n/* 86 */ boolean var14 = (var7 == null || var7.l == PathType.OPEN || var7.k != 0.0F);\n/* 87 */ boolean var15 = (var9 == null || var9.l == PathType.OPEN || var9.k != 0.0F);\n/* 88 */ boolean var16 = (var8 == null || var8.l == PathType.OPEN || var8.k != 0.0F);\n/* */ \n/* 90 */ if (var13 && var16) {\n/* 91 */ PathPoint var17 = a(var1.a - 1, var1.b, var1.c - 1, 1, var5);\n/* 92 */ if (var17 != null && !var17.i) {\n/* 93 */ var0[var2++] = var17;\n/* */ }\n/* */ } \n/* 96 */ if (var13 && var15) {\n/* 97 */ PathPoint var17 = a(var1.a + 1, var1.b, var1.c - 1, 1, var5);\n/* 98 */ if (var17 != null && !var17.i) {\n/* 99 */ var0[var2++] = var17;\n/* */ }\n/* */ } \n/* 102 */ if (var14 && var16) {\n/* 103 */ PathPoint var17 = a(var1.a - 1, var1.b, var1.c + 1, 1, var5);\n/* 104 */ if (var17 != null && !var17.i) {\n/* 105 */ var0[var2++] = var17;\n/* */ }\n/* */ } \n/* 108 */ if (var14 && var15) {\n/* 109 */ PathPoint var17 = a(var1.a + 1, var1.b, var1.c + 1, 1, var5);\n/* 110 */ if (var17 != null && !var17.i) {\n/* 111 */ var0[var2++] = var17;\n/* */ }\n/* */ } \n/* */ \n/* 115 */ return var2;\n/* */ }", "Integer distance(PathFindingNode a, PathFindingNode b);", "public ArrayList<SearchNode> search(Problem p) {\n\tfrontier = new NodeQueue();\t// The frontier is a queue of expanded SearchNodes not processed yet\n\texplored = new HashSet<SearchNode>();\t/// The explored set is a set of nodes that have been processed \n\tGridPos startState = (GridPos) p.getInitialState();\t// The start state is given\n\tfrontier.addNodeToFront(new SearchNode(startState));\t// Initialize the frontier with the start state \n\n\t\n\tpath = new ArrayList<SearchNode>();\t// Path will be empty until we find the goal\n\t\t\n\n\n\twhile(!frontier.isEmpty()){\n\n\t SearchNode s = frontier.removeFirst(); \n\t GridPos g = s.getState(); \n\n\t if ( p.isGoalState(g) ) {\n\t\tpath = s.getPathFromRoot();\t\n\t\tbreak; \n\t }\n\t \n\t explored.add(s); \t \n\t ArrayList<GridPos> childStates = p.getReachableStatesFrom(g);\n\n\t while(!childStates.isEmpty()){\n\n\t\tSearchNode child = new SearchNode(childStates.get(0), s); \n\n\t\tif(!explored.contains(child) && !frontier.contains(child)){\n\n\t\t if ( p.isGoalState(child.getState()) ) {\n\t\t\n\t\t\tpath = child.getPathFromRoot();\t\n\t\t\treturn path; \n\t\t }\n\n\t\t if(insertFront) \n\t\t\tfrontier.addNodeToFront(child); \t\t \t\t\n\t\t else\t\n\t\t\tfrontier.addNodeToBack(child); \t \n\n\n\n\t\t}\n\n\t\tchildStates.remove(0);\n\t }\t \n\t}\n\n\n\treturn path;\n\n }", "protected abstract int[] getPathElements();" ]
[ "0.7354864", "0.71335053", "0.6798205", "0.6709912", "0.6701187", "0.66535383", "0.66166073", "0.66102093", "0.6499912", "0.6497991", "0.64765257", "0.6461117", "0.6458571", "0.6430499", "0.6420677", "0.6415323", "0.6400757", "0.63923186", "0.63881505", "0.6370822", "0.63553953", "0.61920166", "0.6187866", "0.61705226", "0.6166399", "0.61075544", "0.6090382", "0.60232145", "0.6020538", "0.6017391", "0.6007887", "0.60066324", "0.60037434", "0.60019284", "0.5999273", "0.5981921", "0.5962038", "0.5960764", "0.5959879", "0.5956373", "0.59547055", "0.59535724", "0.5951464", "0.5949342", "0.59415585", "0.59362257", "0.5910072", "0.59072685", "0.59007627", "0.5895557", "0.58915794", "0.58861095", "0.5885592", "0.5875981", "0.58558565", "0.58483", "0.583989", "0.58281285", "0.58274275", "0.5827298", "0.58098173", "0.5805969", "0.57986283", "0.5797858", "0.57921475", "0.5785085", "0.5778899", "0.5778253", "0.57739705", "0.57699347", "0.5767335", "0.5761267", "0.5753919", "0.57507575", "0.5749519", "0.5735403", "0.5731925", "0.5731456", "0.57310486", "0.5726314", "0.57263064", "0.5724841", "0.5722203", "0.57074916", "0.56930864", "0.56878155", "0.568621", "0.5683238", "0.56821823", "0.5661798", "0.56487393", "0.5646167", "0.56429106", "0.5640249", "0.5634782", "0.5628484", "0.56269675", "0.56184334", "0.561304", "0.5609606" ]
0.681886
2
initializes the algorithm. This method has to be called before calling any other method
void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alg_INIT(){\r\n}", "private AlgorithmTools() {}", "public static void initialize()\n {\n // Initiate election\n Runnable sender = new BullyAlgorithm(\"Sender\",\"election\");\n new Thread(sender).start();\n }", "protected void initialize() {\n\t\televator.zeroEncoder();\n\t}", "protected void initAWAlgorithm( )\n\t\tthrows DbCompException\n\t{\n//AW:INIT\n\t\t_awAlgoType = AWAlgoType.TIME_SLICE;\n//AW:INIT_END\n\n//AW:USERINIT\n\t\t\n//AW:USERINIT_END\n\t}", "public AlgorithmDesign() {\n initComponents();\n }", "private void init() {\n\n\n\n }", "private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}", "@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "public void init() {\n \n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void initialize() {\n\t\t\n\t}", "public void init() {\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tvoid init() {\n\t\t\tsetNodes(offHeapService.newArray(JudyIntermediateNode[].class, NODE_SIZE, true));\n\t\t}", "private void initialise() {\n \thashFamily = new Hash[this.r];\n for(int i= 0; i < this.r;i++)\n {\n \tthis.hashFamily[i] = new Hash(this.s * 2);\n }\n this.net = new OneSparseRec[this.r][this.s *2];\n for(int i = 0 ; i < this.r; i++)\n \tfor(int j =0 ; j< this.s * 2 ; j++)\n \t\tthis.net[i][j] = new OneSparseRec();\n \n }", "private void init() {\n }", "private void initialize() {\n }", "public void init() {\n\t\t\n\t}", "public void initialize()\n {\n }", "public void initialize() {\n // add direct connections to routing table\n for (Bunker neighbour : neighbours) {\n routing.put(neighbour.getId(), neighbour);\n }\n // add yourself\n routing.put(id, this);\n bunkerIdToCount.put(id, count);\n // kick off the algo\n initiate();\n }", "public void initialization() {\n iterations_ = 1;\n\n swarm_ = new SolutionSet(swarmSize_);\n best_ = new Solution[swarmSize_];\n\n dominance_ = new DominanceComparator();\n crowdingDistanceComparator_ = new CrowdingDistanceComparator();\n distance_ = new Distance();\n\n speed_ = new double[swarmSize_][problem_.getNumberOfVariables()];\n\n deltaMax_ = new double[problem_.getNumberOfVariables()];\n deltaMin_ = new double[problem_.getNumberOfVariables()];\n for (int i = 0; i < problem_.getNumberOfVariables(); i++) {\n deltaMax_[i] = (problem_.getUpperLimit(i) -\n problem_.getLowerLimit(i)) / 2.0;\n deltaMin_[i] = -deltaMax_[i];\n }\n\n for (int i = 0; i < swarmSize_; i++) {\n for (int j = 0; j < problem_.getNumberOfVariables(); j++) {\n speed_[i][j] = 0.0;\n }\n }\n }", "public void init() {\n\t\t}", "protected void initialize() {\n \t\n }", "public void initialize()\n {\n System.out.println(\"Enter number of bits of the prime numbers: \");\n Scanner scanner = new Scanner(System.in);\n SIZE = scanner.nextInt();\n AKS tb = new AKS();\n\n /* Step 1: Select two large prime numbers. Say p and q. */\n long startTime = System.currentTimeMillis();\n p = genPrime(tb, SIZE);\n q = genPrime(tb, SIZE);\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Total prime generator time: \" + elapsedTime + \" ms\");\n System.out.println(p);\n System.out.println(q);\n this.genKeyPair(p, q);\n }", "private void init() {\n\n\t}", "@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "protected void initialize() {\n\t\tright = left = throttle = turn = forward = 0;\n\t}", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}", "private void initialize() {\n\t}", "protected void initialize() {\n\t\t// startAngle = drive.getAngle();\n\t\tdrive.resetBothEncoders();\n\t\tpLeft = speed;\n\t\tpRight = speed;\n\t}", "@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "public void init() {\n\t\n\t}", "public void initialize() {\n // empty for now\n }", "public void init() {\n\t\t\n\t\t\n\t\tprepareGaborFilterBankConcurrent();\n\t\t\n\t\tprepareGaborFilterBankConcurrentEnergy();\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}", "public void initialize() {\r\n }", "@Override\r\n\tpublic void initialize() {\n\t\tSystem.out.println(\"Initializing bubble sort\");\r\n\t}", "Algorithm createAlgorithm();", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init()\n {\n }", "protected void initialize() {\n\t\t//System.out.println(\"Cube collector is spitting\");\n\t}", "public void init() { }", "public void init() { }", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "public void initialize() {\n }", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "public static void init() {\n\t\t\n\t}", "public void Initialize()\n\t{ \n\t\t// avoid K=0 \n\t\tif(K == 0) \n\t\t\tK = 1;\n\t\t\n\t\tLogging.println(\"ITrain=\"+ITrain + \", ITest=\"+ITest + \", Q=\"+Q, LogLevel.DEBUGGING_LOG);\n\t\tLogging.println(\"K=\"+K + \", eta=\" + eta + \", maxIter=\"+ maxIter, LogLevel.DEBUGGING_LOG);\n\t\tLogging.println(\"lambdaW=\"+lambdaW + \", alpha=\"+ alpha, LogLevel.DEBUGGING_LOG);\n\t\t\n\t\t// set the labels to be binary 0 and 1, needed for the logistic loss\n\t\tCreateOneVsAllTargets();\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tL = new int[K];\n\t\tfor(int k=0; k < K; k++)\n\t\t\tL[k] = rand.nextInt(Q);\n\t\t\n\t\t\n\t\tLogging.println(\"Classes=\"+C, LogLevel.DEBUGGING_LOG);\n\t\t\n\t\t// initialize shapelets\n\t\tInitializeShapeletsRandomly();\n\t\t\n\t\t// initialize weights\n\t\tW = new double[C][K];\n\t\tbiasW = new double[C];\n\t\t\n\t\t\n\t\t// initialize the terms for pre-computation\n\t\tD = new double[ITrain+ITest][K][];\n\t\tE = new double[ITrain+ITest][K][];\n\t\t\n\t\tfor(int i = 0; i < ITrain+ITest; i++)\n\t\t\t\tfor(int k = 0; k < K; k++)\n\t\t\t\t{\n\t\t\t\t\tD[i][k] = new double[Q-L[k]+1];\n\t\t\t\t\tE[i][k] = new double[Q-L[k]+1];\n\t\t\t\t}\n\t\t\n\t\tM = new double[ITrain+ITest][K];\n\t\tPsi = new double[ITrain+ITest][K];\t\t \n\t\tphi = new double[ITrain+ITest][C];\n\t\t\n\t\t\n\t\t// store all the index and class indexes\n\t\tidxPairs = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < ITrain; i++)\n\t\t{\n\t\t\t\tidxPairs.add(i);\n\t\t\t\t\n\t\t\t\tPreCompute(i); \n\t\t}\n\t\t\n\t\n\t\t// shuffle the order\n\t\tCollections.shuffle(idxPairs);\n\t\t\n\t\t\t\t\n\t\tLogging.println(\"Initializations Completed!\", LogLevel.DEBUGGING_LOG);\n\t}", "protected void initialize ()\n\t{\n\t\tSubsystems.goalVision.processNewImage();\n\t\t\n \t//Send positive values to go forwards.\n \tSubsystems.transmission.setLeftJoystickReversed(true);\n \tSubsystems.transmission.setRightJoystickReversed(true);\n\t}", "private void initialize() {\n\n // \n // 1) Driver to run Seed Tracker.\n //\n if (!strategyResource.startsWith(\"/\")) {\n strategyResource = \"/org/hps/recon/tracking/strategies/\" + strategyResource;\n }\n List<SeedStrategy> sFinallist = StrategyXMLUtils.getStrategyListFromInputStream(this.getClass().getResourceAsStream(strategyResource));\n StraightTracker stFinal = new StraightTracker(sFinallist, this._useHPSMaterialManager, this.includeMS);\n// stFinal.setApplySectorBinning(_applySectorBinning);\n stFinal.setUseDefaultXPlane(false);\n stFinal.setDebug(this.debug);\n stFinal.setIterativeConfirmed(_iterativeConfirmed);\n stFinal.setMaterialManagerTransform(CoordinateTransformations.getTransform());\n stFinal.setInputCollectionName(stInputCollectionName);\n stFinal.setTrkCollectionName(trackCollectionName);\n stFinal.setBField(bfield);\n stFinal.setTrackFittingAlgorithm(new StraightTrackAxialFitter());\n if (debug) {\n stFinal.setDiagnostics(new SeedTrackerDiagnostics());\n }\n // stFinal.setSectorParams(false); //this doesn't actually seem to do anything\n stFinal.setSectorParams(1, 10000);\n add(stFinal);\n//\n// if (rmsTimeCut > 0) {\n// stFinal.setTrackCheck(new HitTimeTrackCheck(rmsTimeCut));\n// }\n }", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "public void initialize() {\n }", "public void init(){\n \n }", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void init(){\r\n\t\t\r\n\t}", "protected void init() {\n }", "public void init() {\n\n }", "public void init() {\n\n }", "private void Initialize()\n {\n\n }", "public void init() {}", "public void init() {}", "public void init()\n { \t\n }", "public final void initialize() {\n initialize(0);\n }", "public void initialize() {\n\n // Calculate the average unit price.\n calculateAvgUnitPrice() ;\n\n // Calculate the realized profit/loss for this stock\n calculateRealizedProfit() ;\n\n this.itdValueCache = ScripITDValueCache.getInstance() ;\n this.eodValueCache = ScripEODValueCache.getInstance() ;\n }", "private void _init() {\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }", "abstract public void init();", "private void initialize()\n\t{\n\t\tfor(int i = 0 ; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j < SOM[0].length; j++)\n\t\t\t{ \n\t\t\t\tSOM[i][j] = new Node(INPUT_DIMENSION,i,j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSOM_HORIZONTAL_LENGTH = SOM[0].length;\n\t\tSOM_VERTICAL_LENGTH = SOM.length;\n\t}", "public void initialize () {\n }", "protected void initialize()\r\n {\n }", "public Solver() {\n\t\t// TODO: Initialize the powersOf2 array with the first 16 powers of 2.\n\t}", "protected void initialize()\n\t{\n\t}", "public void initialize() {\n for (Location apu : this.locations) {\n Node next = new Node(apu.toString());\n this.cells.add(next);\n }\n \n for (Node helper : this.cells) {\n Location next = (Location)this.locations.searchWithString(helper.toString()).getOlio();\n LinkedList<Target> targets = next.getTargets();\n for (Target finder : targets) {\n Node added = this.path.search(finder.getName());\n added.setCoords(finder.getX(), finder.getY());\n helper.addEdge(new Edge(added, finder.getDistance()));\n }\n }\n \n this.startCell = this.path.search(this.source);\n this.goalCell = this.path.search(this.destination);\n \n /**\n * Kun lähtö ja maali on asetettu, voidaan laskea jokaiselle solmulle arvio etäisyydestä maaliin.\n */\n this.setHeuristics();\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Override public void init()\n\t\t{\n\t\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "public void init(){}", "public AbstractParallelAlgorithm()\n {\n this(null);\n }" ]
[ "0.7409257", "0.695932", "0.6902483", "0.68671393", "0.6822323", "0.6807607", "0.6752741", "0.67513114", "0.6741952", "0.66694504", "0.66659206", "0.66659206", "0.66659206", "0.66659206", "0.66655785", "0.66470706", "0.6642532", "0.66328275", "0.6631079", "0.662625", "0.6626186", "0.6621524", "0.6618272", "0.6611299", "0.66086316", "0.6598844", "0.6579411", "0.65766275", "0.6562597", "0.65563583", "0.6547686", "0.6547686", "0.6547686", "0.6537901", "0.6534916", "0.6534191", "0.6534191", "0.6529321", "0.6520171", "0.651627", "0.6515629", "0.6515174", "0.65105665", "0.650999", "0.65027225", "0.64968926", "0.64968926", "0.64968926", "0.6496518", "0.6491113", "0.64801353", "0.64764845", "0.64757645", "0.64757645", "0.64757645", "0.64757645", "0.6470254", "0.6467173", "0.6440693", "0.6440693", "0.6436765", "0.6436765", "0.64272916", "0.64215463", "0.6413525", "0.6385464", "0.6381271", "0.6371277", "0.6368385", "0.6368385", "0.6368255", "0.6358156", "0.6354551", "0.63476056", "0.63449854", "0.63446254", "0.63446254", "0.63411295", "0.63391227", "0.63391227", "0.6338547", "0.6335117", "0.6333208", "0.632448", "0.6311544", "0.6311544", "0.6310636", "0.6307526", "0.63039345", "0.6303634", "0.62976587", "0.629592", "0.6290412", "0.62898725", "0.6284021", "0.62832236", "0.6280353", "0.6278372", "0.6278372", "0.6272459", "0.62674195" ]
0.0
-1
gets the shortest path from search start to target
List<Edge> getPath() throws NoPathFoundException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "public List<node_info> shortestPath(int src, int dest);", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }", "public List<Node> getShortestPath(final Node source, final Node target) {\n if (D[source.id][target.id] == Integer.MAX_VALUE) {\n return new ArrayList<Node>(); // no path\n }\n final List<Node> path = getIntermediatePath(source, target);\n path.add(0, source);\n path.add(target);\n return path;\n }", "public List<Vertex> getShortestPathTo(Vertex target)\n {\n List<Vertex> path = new ArrayList<Vertex>();\n for (Vertex vertex = target; vertex != null; vertex = vertex.previous)\n path.add(vertex);\n Collections.reverse(path);\n return path;\n }", "private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }", "@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}", "@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }", "public void findShortestRoute(Point2D start, Point2D end){\n fastestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end);\n travelMethod(routeFinder);\n routeFinder.setShortestRoute();\n shortestPath = routeFinder.getShortestPath();\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(shortestPath);\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No shortest path between the two locations was found\"});\n setTravelInfo(null);\n shortestPath = null;\n }\n\n repaint();\n\n }", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "protected MoveToTask searchAccessPoint(final Point start, final Point target, final Goblin goblin) {\n\t\tObjects.requireNonNull(start, \"start must not be null!\");\n\t\tObjects.requireNonNull(target, \"target must not be null!\");\n\t\tObjects.requireNonNull(goblin, \"goblin must not be null!\");\n\n\t\tfor (Point neighbour : target.getNeighbours()) {\n\t\t\tif (goblin.getAI().getBlockadeMap().isBlocked(neighbour)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tMoveToTask path = new MoveToTask(start, neighbour, goblin, goblin.getAI().getBlockadeMap());\n\n\t\t\tif (path.hasPath()) {\n\t\t\t\treturn path;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public static List<Point> getShortestPath(Point target) {\n\n\t\tList<Point> path = new ArrayList<Point>();\n\n\t\tfor (Point point = target; point != null; point = point.getPrevious())\n\t\t\tpath.add(point);\n\n\t\tCollections.reverse(path);\n\t\treturn path;\n\n\t}", "private Queue<Position> pathToClosest(MyAgentState state, Position start, int goal) {\n\t\tQueue<Position> frontier = new LinkedList<Position>();\n\t\tSet<String> enqueued = new HashSet<String>();\n\t\tMap<Position, Position> preceedes = new HashMap<Position, Position>();\n\t\tfrontier.add(start);\n\t\tenqueued.add(start.toString());\n\n\t\twhile (!frontier.isEmpty()) {\n\t\t\tPosition pos = frontier.remove();\n\t\t\tif (state.getTileData(pos) == goal) {\n\t\t\t\treturn toQueue(preceedes, pos, start);\n\t\t\t}\n\t\t\t\n\t\t\tfor (Position neighbour : pos.neighbours()) {\n\t\t\t\tif (!enqueued.contains(neighbour.toString()) && state.getTileData(neighbour) != state.WALL) {\n\t\t\t\t\tpreceedes.put(neighbour, pos);\n\t\t\t\t\tfrontier.add(neighbour);\n\t\t\t\t\tenqueued.add(neighbour.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "public void findFastestRoute(Point2D start, Point2D end){\n shortestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end); //Create a RouteFinder and let it handle it.\n travelMethod(routeFinder);\n routeFinder.setFastestRoute();\n fastestPath = routeFinder.getFastestPath(); //retrieve the fastest route from it\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(fastestPath); //create a routePlanner to get direction for path\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No fastest path between the two locations was found\"});\n setTravelInfo(null);\n fastestPath = null;\n\n }\n\n repaint();\n\n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "public List<Node> findShortestPath(Node s, Node t);", "@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }", "public LinkedList<Move> search1() {\r\n\r\n while (!paths.isEmpty()) {\r\n\r\n if (logger.isDebugEnabled())\r\n logger.debug(printPathCosts());\r\n\r\n LinkedList<Move> path = paths.first();\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"First path is \" + path);\r\n\r\n if (!paths.remove(path)) {\r\n throw new RuntimeException(\"Failed to remove path\");\r\n }\r\n\r\n Node currentNode = path.getLast().destination;\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Last site on path is \" + currentNode);\r\n\r\n if (closed.contains(currentNode)) {\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Site \" + currentNode + \" was closed.\");\r\n continue;\r\n }\r\n if (currentNode.isAtTarget(target)) {\r\n return path;\r\n }\r\n\r\n closed.add(currentNode);\r\n\r\n Move lastMove = path.getLast();\r\n if ( !(lastMove instanceof InitialMove) ) {\r\n currentNode = transformCurrentNode(lastMove);\r\n }\r\n\r\n Set<Move> successors = successors(currentNode);\r\n for (Move y : successors) {\r\n LinkedList<Move> successor = new LinkedList<Move>(path);\r\n y.pathCost = successor.getLast().pathCost + y.edgeCost;\r\n successor.add(y);\r\n paths.add(successor);\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Added successor \" + y);\r\n nodeExpansionCounter ++;\r\n }\r\n }\r\n\r\n return null;\r\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "public InTree<V,E> generalShortestPathFromSource(V source);", "protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }", "public String getShortestPath(T begin, T end);", "private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }", "public List<Node> findPath(Node start);", "private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }", "@Override\n\tpublic List<Node> findShortestPath(Node s, Node t) {\n\t\tfinal Queue<Node> toVisit = new LinkedList<Node>();\n\t\tfinal Stack<Node> visited = new Stack<Node>();\n\t\tfinal Map<Node, Integer> distance = new HashMap<Node, Integer>();\n\t\tBoolean found = false;\n\t\t// if either node does not exist, then shortestPath is null\n\t\tif (s == null || t == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\ttoVisit.add(s);\n\t\t\tdistance.put(s, 0);\n\t\t\t// Goes through toVisit and visits each individual node and adds\n\t\t\t// it to visited\n\t\t\tNode current;\n\t\t\twhile (!(toVisit.isEmpty())) {\n\t\t\t\tcurrent = toVisit.poll();\n\t\t\t\tvisited.add(current);\n\t\t\t\t// stops search once t is found\n\t\t\t\tif (current.equals(t)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// if not continues by adding the neighbors of the node \n\t\t\t\t// to toVisited\n\t\t\t\tfor (Node neighbor : current.getNeighbors()) {\n\t\t\t\t\tif (!(toVisit.contains(neighbor)) && !(visited.contains(neighbor))) {\n\t\t\t\t\t\ttoVisit.add(neighbor);\n\t\t\t\t\t\tdistance.put(neighbor, distance.get(current) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if no path is between existing nodes s and t return null\n\t\t\tif (!found) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t// otherwise backtrack using distance to find shortestPath\n\t\t\t\treturn backTrackFrom(t, s, visited, distance);\n\t\t\t}\n\t\t}\n\t}", "private LinkedList<Integer> _findShortestPath(int source, int destination)\n{\n LinkedList<Integer> output = new LinkedList<Integer>();\n if (this.bellmanParent[destination] == source) {\n output.addFirst(destination);\n output.addFirst(source);\n return output;\n }\n /*\n * Our source is only part of the subtree, and we requested a node beyond\n * its reach. Lets flag it so that the calling function knows to ignore this\n * result.\n */\n if (this.bellmanParent[destination] == destination) {\n output.addFirst(-1);\n return output;\n }\n output = this._findShortestPath(source, this.bellmanParent[destination]);\n output.addLast(destination);\n return output;\n}", "private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }", "void shortestPath( final VertexType fromNode, Integer node );", "public void computeShortestPath() throws IllegalStateException;", "@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}", "public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }", "ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "private List<Node> backTrackFrom(Node start, Node end, Stack<Node> path, Map<Node,Integer> distance) {\n\t\tfinal List<Node> shortestPath = new ArrayList<Node>();\n\t\tNode n;\n\t\tNode current = start;\n\t\tshortestPath.add(start);\n\t\twhile (!path.isEmpty()) {\n\t\t\tn = path.pop();\n\t\t\t// checks the distance and adds the corresponding neighbor node\n\t\t\tif (current.getNeighbors().contains(n) && distance.get(n) + 1 == distance.get(current)) {\n\t\t\t\tshortestPath.add(n);\n\t\t\t\tcurrent = n;\n\t\t\t\t// stop adding to shortestPath once s is found\n\t\t\t\tif (n.equals(end))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tCollections.reverse(shortestPath);\n\t\treturn shortestPath;\n\t}", "public List<Vertex> shortestPath(Vertex start, Vertex end) {\r\n\t\tMap<Vertex, Vertex> backRefs = new HashMap<Vertex, Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\t// Mark the current node as visited and enqueue it. Use backRef as\r\n\t\t// visited set\r\n\t\tqueue.offer(start);\r\n\t\tbackRefs.put(start, null);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\r\n\t\t\tif (currentNode.equals(end)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!backRefs.containsKey(n)) {\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t\tbackRefs.put(n, currentNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!backRefs.containsKey(end))\r\n\t\t\treturn null;\r\n\r\n\t\tList<Vertex> path = new ArrayList<Vertex>();\r\n\t\tcurrentNode = end;\r\n\r\n\t\twhile (currentNode != null) {\r\n\t\t\tpath.add(currentNode);\r\n\t\t\tcurrentNode = backRefs.get(currentNode);\r\n\t\t}\r\n\r\n\t\tCollections.reverse(path);\r\n\r\n\t\treturn path;\r\n\t}", "public ArrayList<Vertex> getPath(Vertex target) {\n\t\tArrayList<Vertex> path = new ArrayList<Vertex>();\n\t\tVertex step = target;\n\t\t// check if a path exists\n\t\tif (predecessors.get(step) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tpath.add(step);\n\t\twhile (predecessors.get(step) != null) {\n\t\t\tstep = predecessors.get(step);\n\t\t\tpath.add(step);\n\t\t}\n\t\t// Put it into the correct order\n\t\tCollections.reverse(path);\n\n\n\t\tVertex current=null;\n\t\tVertex next=null;\n\t\tint length = path.size();\n\t\tfor(int i=0;i<length-1;i++){\n current = path.get(i);\n\t\t\t next = path.get(i+1);\n\t\t\tif(!rapid && (nodeColor_map.get(current.getName()).equalsIgnoreCase(\"dB\")||\n\t\t\t\t\tnodeColor_map.get(next.getName()).equalsIgnoreCase(\"dB\")))\n\t\t\t\trapid = true;\n\t\t\troute_length+= edge_length_map.get(new Pair(current,next));\n\t\t}\n\n\t\treturn path;\n\t}", "public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}", "private void findBestPath(int start){\n\t\tint n = this.getDimension(); // for readability\n\t\tint lastCity, minDist = 0, moment = 0;\n\t\t\n\t\tthis.path = new int[this.getDimension() + 1];\n\t\tthis.visited = 0; \n\t\t\n\t\tsetAllUnvisited();\n\t\t\n\t\tvisitCity(moment, start); // visits the first city in time 0\n\t\tlastCity = start;\n//\t\tSystem.out.println(Arrays.toString(this.path) + \" > \" + this.visited);\n\t\t// Repeats until all cities were visited\n\t\twhile(visited < n){\n//\t\t\tSystem.out.println(\"LC:\" + lastCity + \" MD:\" + minDist + \" M:\" + moment);\n\t\t\tmoment++;\n\t\t\t\n\t\t\t// Finds the closest city\n\t\t\tint closest = -1, closestDist = -1;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tif(!wasVisited(i)){\n\t\t\t\t\tif(dist(lastCity, i) < closestDist || closestDist == -1){ // If it's the first iteration or found a closer city\n\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\tclosestDist = dist(lastCity, closest);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Updates distance\n\t\t\tminDist += dist(lastCity, closest);\n\t\t\t\n\t\t\t// Visits the closest city\n\t\t\tvisitCity(moment, closest);\n\t\t\tlastCity = closest;\n//\t\t\tSystem.out.println(Arrays.toString(this.path) + \" > \" + minDist);\n\t\t\t\n\t\t}\n\t\t\n\t\t// Returns to the first city\n\t\tvisitCity(moment + 1, start);\n\t\tminDist += dist(lastCity, start);\n\t\t\n\t\tif(minDist < this.totalDistance || this.totalDistance == -1){\n\t\t\tthis.totalDistance = minDist;\n\t\t\tthis.bestPath = this.path.clone();\n\t\t}\n//\t\tSystem.out.println(Arrays.toString(this.path) + \" -----> \" + minDist);\n\t}", "public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }", "public Stack<Node> retrieve_fastest_path() {\r\n return findPath(initial_node, end_node);\r\n }", "public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }", "public LinkedList<Vertex> getPath(Vertex target) {\n LinkedList<Vertex> path = new LinkedList<Vertex>();\n Vertex step = target;\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }", "private List<Edge<T>> getPath(T target) {\n List<Edge<T>> path = new LinkedList<>();\n T step = target;\n // check if a path exists\n if (predecessors.get(step) == null) {\n return path;\n }\n while (predecessors.get(step) != null) {\n T endVertex = step;\n step = predecessors.get(step);\n T startVertex = step;\n path.add(getEdge(startVertex, endVertex));\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }", "@Override\r\n\tpublic List<Entity> getShortestPath(Entity source, Entity target,\r\n\t\t\tDirectionMode mode)\r\n\t{\n\t\tif (source.equals(target)) {\r\n\t\t\tList<Entity> resultList = new ArrayList<Entity>();\r\n\t\t\tresultList.add(source);\r\n\t\t\treturn resultList;\r\n\t\t}\r\n\r\n\t\tGraph<Entity, EntityGraphEdge> graph;\r\n\t\tif (mode.equals(DirectionMode.directed)) {\r\n\t\t\tgraph = directedGraph;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgraph = undirectedGraph;\r\n\t\t}\r\n\r\n\t\tif (containsVertex(source) && containsVertex(target)\r\n\t\t\t\t&& !source.equals(target)) {\r\n\r\n\t\t\t// Create an instance of DijkstraShortestPath for the directed graph\r\n\t\t\t// which caches results locally.\r\n\t\t\t// Distances thus calculated may be invalidated by changes to the\r\n\t\t\t// graph, in which case reset() should be\r\n\t\t\t// invoked so that the distances are recalculated.\r\n\t\t\tDijkstraShortestPath<Entity, EntityGraphEdge> dijkstraPath = new DijkstraShortestPath<Entity, EntityGraphEdge>(\r\n\t\t\t\t\tgraph, true);\r\n\t\t\tList<EntityGraphEdge> edgeList = dijkstraPath.getPath(source,\r\n\t\t\t\t\ttarget);\r\n\t\t\tList<Entity> entityList = new ArrayList<Entity>();\r\n\r\n\t\t\tfor (int i = 0; i < edgeList.size(); i++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tEntity fromNode = edgeList.get(i).getSource();\r\n\t\t\t\t\tEntity toNode = edgeList.get(i).getTarget();\r\n\t\t\t\t\tentityList.add(fromNode);\r\n\t\t\t\t\tentityList.add(toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tEntity toNode = edgeList.get(i).getTarget();\r\n\t\t\t\t\tentityList.add(toNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn entityList;\r\n\t\t}\r\n\t\t// if either source or target are not contained in the graph define the\r\n\t\t// path as null\r\n\t\t// this is different than the empty path, which occurs if source =\r\n\t\t// target\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }", "@SuppressWarnings(\"unchecked\")\n public List<Node> findShortestPath(Node s, Node t) {\n if(s == null || t == null)\n return null;\n\n Queue<LinkedList<Node>> _pathsToVisit = new ArrayDeque<>(); // Stores paths that need to be searched (need to use add to maintain FIFO order)\n HashSet<Node> _visitedNodes = new HashSet<>(); // Stores list of visited nodes\n\n LinkedList<Node> startList = new LinkedList<>(); // Starting with Queue containing list containing first node\n startList.add(s);\n _pathsToVisit.add(startList); // Adds list containing first node to nodesToVisit queue\n\n if(s.equals(t))\n return startList;\n\n while(_pathsToVisit.size() > 0){ // While the queue is not empty, loop\n LinkedList<Node> path = _pathsToVisit.remove(); // sets path LinkedList to first LinkedList in queue and removes it\n\n for(Node node : path.getLast().getNeighbors()){ // For all the neighbors of path\n if(node.equals(t)){ // if found end node, return path\n path.add(node);\n return path;\n }\n else{\n if(!_visitedNodes.contains(node)) { // Check to see if we already visited this node, if so ignore it to avoid loops\n _visitedNodes.add(node); // Adds neighbor to visited nodes\n path.add(node);\n _pathsToVisit.add((LinkedList) path.clone()); // Add cloned list to paths so we can still modify path\n path.removeLast(); //This might be wrong, will the path stored in _pathsToVisit be changed? yes, but we can clone it to prevent this TODO: change\n }\n }\n\n }\n }\n return null; // Return null if no path is found\n }", "private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }", "@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}", "public Queue<Station> approxShortestPath(Station start, Station end)\n {\n //Create a hash from station IDs to extra data needed for this algorithm.\n HashMap<String, ApproxSearchExtra> station_extras =\n new HashMap<String, ApproxSearchExtra>();\n for (Station station : getStations())\n station_extras.put(station.getId(), new ApproxSearchExtra());\n\n HashSet<Station> closed = new HashSet<Station>();\n HashSet<Station> open = new HashSet<Station>();\n open.add(start);\n\n while (open.size() > 0)\n {\n //Current is the item in the open set with the lowest estimated cost.\n Station current = null;\n ApproxSearchExtra current_extra = null;\n for (Station element : open)\n {\n if (current == null && current_extra == null)\n {\n current = element;\n current_extra = station_extras.get(element.getId());\n }\n else\n {\n ApproxSearchExtra extra = station_extras.get(element.getId());\n if (extra.estimated_cost < current_extra.estimated_cost)\n {\n current = element;\n current_extra = extra;\n }\n }\n }\n\n //If the current station is the end station, then we're done.\n if (current == end)\n return buildApproxShortestPathResult(end, station_extras);\n\n //Station is no longer in the open set and is now in the closed set\n //because it was traversed.\n open.remove(current);\n closed.add(current);\n\n for (Station neighbour : getAdjacentStations(current))\n {\n //Do nothing if neighbour is already in the closed set.\n if (closed.contains(neighbour))\n continue;\n\n ApproxSearchExtra neighbour_extra =\n station_extras.get(neighbour.getId());\n\n //Cost of movement to this neighbour.\n float attempt_cost = current_extra.cost + current.distance(neighbour);\n\n //If not in the open set, add the neighbour to the open set so that it\n //will be traversed later.\n if (!open.contains(neighbour))\n open.add(neighbour);\n //If this path is more costly than another path to this station, then\n //this path cannot be optimal.\n else if (attempt_cost >= neighbour_extra.cost)\n continue;\n\n //This is now the best path to this neighbour. Store this information.\n neighbour_extra.came_from = current;\n neighbour_extra.cost = attempt_cost;\n neighbour_extra.estimated_cost = attempt_cost +\n neighbour.distance(end);\n }\n }\n\n return null;\n }", "private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }", "private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\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\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\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\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\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\tnext = nextCell(current); //Look for the next possible neighbour, if any.\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public DSAQueue breadthFirstSearch(String start, String target)\n\t{\n\t\tif(!vertices.isEmpty())\n\t\t{\n\t\t\tDSAQueue queue = new DSAQueue();\n\t\t\tDSAStack visited = new DSAStack();\t//creates empty stack\n\t\t\tDSAGraphVertex vx = getVertex(start); //vertex to start on (root)\n\t\t\tDSAGraphVertex dest = getVertex(target); //vertex to start on (dest)\n\n\t\t\tclear(); //sets all visited on all vertices == false\n\t\t\tvx.setVisited(); // Marks root as visited\n\t\t\tqueue.enqueue(vx); //adds start point to queue\n\n\t\t\tbfs(vx, visited, queue, dest); //begin recursion\n\n\t\t\tqueue.enqueue(dest); //if successful adds destination to queue\n\n\t\t\treturn queue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"List is empty or start or end elements don't exist\");\n\t\t}\n\t}", "public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\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(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}", "private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}", "private List<Node> getIntermediatePath(final Node source, final Node target) {\n if (P[source.id][target.id] == null) {\n return new ArrayList<Node>();\n }\n final List<Node> path = new ArrayList<Node>();\n path.addAll(getIntermediatePath(source, P[source.id][target.id]));\n path.add(P[source.id][target.id]);\n path.addAll(getIntermediatePath(P[source.id][target.id], target));\n return path;\n }", "public LinkedList<City> getPath(City target) {\r\n\r\n\t\tLinkedList<City> path = new LinkedList<City>();\r\n \t\tCity step = target;\r\n\t\t// check if a path exists\r\n\t\tif (predecessors.get(step) == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tpath.add(step);\r\n\t\twhile (predecessors.get(step) != null) {\r\n\t\t\tstep = predecessors.get(step);\r\n\t\t\tpath.add(step);\r\n\t\t}\r\n\t\t// Put it into the correct order\r\n\t\tCollections.reverse(path);\r\n\t\treturn path;\r\n\t}", "void shortestPaths( Set<Integer> nodes );", "@Nullable\n public VertexPath<V> findShortestVertexPath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n if (graph instanceof IntDirectedGraph) {\n return doFindIntShortestVertexPath(graph, start, goal, costf);\n } else {\n return doFindShortestVertexPath(graph, start, goal, costf);\n }\n }", "public int[] shortestReach(int startId) {\n System.out.println(\"Graph with startId: \"+startId);\n for(int i=0 ; i<size ; i++){\n for(int j=0 ; j<size ; j++){\n System.out.print(graph[i][j]);\n }\n System.out.println(\"\");\n }\n\n int[] dist = new int[size];\n boolean[] srg = new boolean[size];\n\n //intialize dist and srg\n for(int i=0 ; i<size ; i++){\n dist[i] = Integer.MAX_VALUE;\n srg[i] = false;\n }\n\n //Start node\n dist[startId] = 0;\n\n for(int i=0 ; i<size ; i++){\n int u = minDist(dist, srg);\n\n srg[u] = true;\n\n for( int v=0; v<size ; v++){\n if(!srg[v] && graph[u][v]!=0 && dist[u]!=Integer.MAX_VALUE && dist[u] + graph[u][v] < dist[v]){\n dist[v] = dist[u] + graph[u][v];\n }\n }\n }\n\n int[] result = new int[size-1];\n int indx = 0;\n for(int i=0 ; i<size ; i++){\n if(i != startId){\n if(dist[i] == Integer.MAX_VALUE)\n result[indx] = -1;\n else{\n result[indx] = dist[i];\n }\n indx++;\n }\n\n }\n\n return result;\n }", "public KnightNode getPathByBFS(KnightNode startNode,\n\t\t\tKnightNode finishNode) {\n\t\tif (startNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"start node shouldn't be null!\");\n\t\t}\n\n\t\tif (finishNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"finish node shouldn't be null!\");\n\t\t}\n\n\t\tQueue<KnightNode> queue = new LinkedList<KnightNode>();\n\n\t\t// step 0\n\t\tstartNode.isUsed = true;\n\t\tqueue.add(startNode);\n\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\t// get next node from head of queue\n\t\t\tKnightNode tmpNode = queue.remove();\n\t\t\tSet<KnightNode> childNodes = tmpNode.availableMoves;\n\t\t\tfor (KnightNode tmpChild : childNodes) {\n\t\t\t\ttmpChild = findNode(tmpChild.x, tmpChild.y);\n\t\t\t\t// check if we have already been here\n\t\t\t\tif (!tmpChild.isUsed) {\n\t\t\t\t\ttmpChild.root = tmpNode;\n\t\t\t\t\ttmpChild.isUsed = true;\n\t\t\t\t\tqueue.add(tmpChild);\n\n\t\t\t\t\tif (tmpChild.equals(finishNode)) {\n\t\t\t\t\t\t// we have found our short path\n\t\t\t\t\t\treturn tmpChild;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// path is not exist\n\t\treturn null;\n\t}", "public LinkedList<Node> shortestPath() throws PathNotFoundException {\n // Which strategy shall we use?\n ApplicationConfiguration config = ApplicationConfiguration.getInstance();\n switch(config.getCurrentSearchAlgorithm()) {\n case A_STAR:\n return aStarPath();\n case BFS:\n return bfsPath();\n case DFS:\n return dfsPath();\n default:\n return null;\n }\n }", "private ArrayList<Vertex> dfs(boolean[] visited, Vertex start, Vertex target) {\n \n //TEST VALUES: if start/end are out of bounds of array of vertices\n if (start.getID() < 0) {\n return null;\n }\n \n if (target.getID() > arrayOfVertices.length) {\n return null;\n }\n \n \n //base case: if start = target, return start vertex right there.\n if (start == target) {\n solution.add(0, start);\n return solution;\n }\n \n //has this vertex been visited before? yes? then just return. if no, \n if (visited[start.getID()]) {\n return null;\n }\n \n //since it hasn't been visited before, mark it as visited\n visited[start.getID()] = true;\n \n //does it have kids? no? return.\n if (start.getDegree() == 0) {\n return null;\n }\n \n //create ArrayList of adjacent vertices to the given start\n ArrayList<Vertex> adjacents = start.getAdjacent();\n \n //go through its edges, for loop. to go through edges\n for (int i = 0; i < start.getDegree(); i++) {\n \n //(from testing)\n NavigateMaze.advance(start.getID(), adjacents.get(i).getID());\n \n //do the dfs; if it's not equal to null \n //(i.e. we found the target, then add it to path\n if (dfs(visited, adjacents.get(i), target) != null) {\n //then add to path\n solution.add(0, start); \n return solution;\n }\n \n //(from testing)\n else {\n NavigateMaze.backtrack(adjacents.get(i).getID(), start.getID());\n }\n \n } \n \n //return null\n return null;\n }", "public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "public double shortestPathDist(int src, int dest);", "List<V> getShortestPath(V vertex);", "public Station[] getPathStations(Position startPos, Position targetPos)\r\n {\r\n assert startPos != null;\r\n assert targetPos != null;\r\n assert startPos.column() < metro.numberOfColumns;\r\n assert startPos.line() < metro.numberOfLines;\r\n assert targetPos.column() < metro.numberOfColumns;\r\n assert targetPos.line() < metro.numberOfLines;\r\n\r\n Station[] stations = new Station[2];\r\n\r\n // get the station near to the target.\r\n Station getOffStation = null;\r\n Station getOnStation = null;\r\n Track tmpTrack = null;\r\n double dist = Double.MAX_VALUE;\r\n double distToFirst = Double.MAX_VALUE;\r\n\r\n for (Track track : tracks)\r\n {\r\n LinkedList<Station> stationList = track.getStations();\r\n\r\n for (Station station : stationList)\r\n {\r\n double tmpDist = distance(station.getLocation(), targetPos);\r\n if (tmpDist < dist)\r\n {\r\n dist = tmpDist;\r\n getOffStation = station;\r\n tmpTrack = track;\r\n }\r\n }\r\n }\r\n\r\n // get the fist station to get on\r\n LinkedList<Station> stationList = tmpTrack.getStations();\r\n\r\n for (Station station : stationList)\r\n {\r\n double tmpDist = distance(station.getLocation(), startPos);\r\n if (tmpDist < distToFirst)\r\n {\r\n distToFirst = tmpDist;\r\n getOnStation = station;\r\n }\r\n }\r\n\r\n stations[0] = getOnStation;\r\n stations[1] = getOffStation;\r\n\r\n return stations;\r\n }", "public String getShortestPath(int goal) throws Throwable {\n if (goal < 0) {\n return \"There is no path\";\n }\n Queue<Integer> stack = new Queue<>(new Integer[10]); \n int previous = path[goal];\n if (previous == -1) {\n return \"There is no path\";\n }\n while (previous != 0) {\n stack.push(previous);\n previous = path[previous];\n }\n String ret = \"0 > \";\n while (!stack.isEmpty()) {\n ret = ret + (stack.poll() + \" > \");\n }\n return \"\" + ret + goal;\n }", "@Override\n\tpublic List<node_data> TSP(List<Integer> targets) {\n\t\tList<Integer> targets1 = new ArrayList<>();\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tfor (Integer target: targets) {\n\t\t\tif(!targets1.contains(target)){\n\t\t\t\ttargets1.add(target);\n\t\t\t}\n\t\t}\n\t\tif(targets1.size()==1){\n\t\t\tans.add(this.GA.getNode(targets.get(0)));\n\t\t\treturn ans;\n\t\t}\n\t\tint help=targets1.get(0);\n\t\tint targetSize = targets1.size();\n\t\twhile(!targets1.isEmpty()) {\n\t\t\tdouble minWeight = Integer.MAX_VALUE;\n\t\t\tint geti=-1;\n\t\t\tfor (int j = 0; j <targetSize ; j++) {\n\t\t\t\tif(shortestPathDist(help,targets1.get(j)) !=0 &&shortestPathDist(help,targets1.get(j))<minWeight || targets1.size()==1 && shortestPathDist(help,targets1.get(j)) ==0) {\n\t\t\t\t\tminWeight = shortestPathDist(help, targets1.get(j));\n\t\t\t\t\tgeti = targets1.get(j);\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<node_data> ans2 = new ArrayList<>();\n\t\t\tif(geti==-1) return null;\n\t\t\tif(targets1.size()>1) {\n\t\t\t\tans2 = shortestPath(help, geti);\n\t\t\t\tans.addAll(ans2);\n\t\t\t\ttargets1.remove((Integer) help);\n\t\t\t\ttargetSize--;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttargets1.remove((Integer)geti);\n\t\t\t}\n\t\t\thelp=geti;\n\t\t}\n\t\tfor (int ii = 0; ii <ans.size()-1 ; ii++) {\n\t\t\tif(ans.get(ii)==ans.get(ii+1)){\n\t\t\t\tans.remove(ii);\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}", "@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }", "private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }", "public List<GeographicPoint> aStarSearch(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\t\t\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>(numVertices, new AStarComparator());\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setPredictedTime(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tstartNode.setPredictedDistance(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempPath = currNode.getDistanceToStart() + edge.getDistance();\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\n\t\t\t\t\t\tif (tempTime < addNode.getPredictedTime()) {\n\n\t\t\t\t\t\t\taddNode.setDistanceToStart(tempPath);\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble predict = tempPath + edge.getEnd().distance(goal);\n\n\t\t\t\t\t\t\taddNode.setPredictedDistance(predict);\n\t\t\t\t\t\t\taddNode.setPredictedTime(predict/edge.getSpeedLimit());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\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}\n\t\t}\n\t\tSystem.out.println(\"Astarsearch: \" + count);\n\t\treturn backTrack(path,goal);\n\t}", "static long dijkstras(State start, State goal) {\n\t\tPriorityQueue<State> pq = new PriorityQueue<State>(\n\t\t\tnew Comparator<State>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(State a, State b) {\n\t\t\t\t\treturn Long.compare(a.dist, b.dist);\n\t\t\t\t}\n\t\t\t});\n\n\t\tHashMap<State, Long> dist = new HashMap<>(); \n\n\t\tpq.offer(start);\n\t\tdist.put(start, start.dist);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\tState cur = pq.poll();\n\n\t\t\tif (cur.isDestination(goal)) // abort if target is reached\n\t\t\t\treturn cur.dist;\n\n\t\t\t// avoid relaxation if a shorter path to 'cur' is pending in queue\n\t\t\tif (Long.compare(dist.get(cur), cur.dist) < 0)\n\t\t\t\tcontinue;\n\n\t\t\tfor (State adj : cur.adj()) {\n\t\t\t\tLong bestSoFar = dist.get(adj);\n\t\t\t\tif (bestSoFar == null || Long.compare(adj.dist, bestSoFar) < 0) {\n\t\t\t\t\tpq.offer(adj);\n\t\t\t\t\tdist.put(adj, adj.dist);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no path to target\n\t\treturn -1;\n\t}", "public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}", "private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}", "@Nullable\n public VertexPath<V> findAnyVertexPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal) {\n Deque<V> vertices = new ArrayDeque<>();\n BackLinkWithArrow<V, A> current = breadthFirstSearch(graph, start, goal);\n if (current == null) {\n return null;\n }\n for (BackLinkWithArrow<V, A> i = current; i != null; i = i.parent) {\n vertices.addFirst(i.vertex);\n }\n return new VertexPath<>(vertices);\n }", "public KnightNode getPathByDFS(KnightNode startNode,\n\t\t\tKnightNode finishNode) {\n\t\tif (startNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"start node shouldn't be null!\");\n\t\t}\n\n\t\tif (finishNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"finish node shouldn't be null!\");\n\t\t}\n\n\t\tDeque<KnightNode> stack = new LinkedList<KnightNode>();\n\n\t\t// step 0\n\t\tstartNode.isUsed = true;\n\t\tstack.add(startNode);\n\n\t\tnodes.remove(startNode);\n\t\tnodes.add(startNode);\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\t// get next node from head of queue\n\t\t\tKnightNode tmpNode = stack.getLast();\n\t\t\tSet<KnightNode> childNodes = tmpNode.availableMoves;\n\t\t\tfor (KnightNode tmpChild : childNodes) {\n\t\t\t\ttmpChild = findNode(tmpChild.x, tmpChild.y);\n\t\t\t\t// check if we have already been here\n\t\t\t\tif (!tmpChild.isUsed) {\n\t\t\t\t\ttmpChild.root = tmpNode;\n\t\t\t\t\ttmpChild.isUsed = true;\n\t\t\t\t\tstack.add(tmpChild);\n\n\t\t\t\t\tif (tmpChild.equals(finishNode)) {\n\t\t\t\t\t\t// we have found our short path\n\t\t\t\t\t\treturn tmpChild;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// path is not exist\n\t\treturn null;\n\t}", "private LinkedList<Node> backtraceFromGoal(Node Target, Node Start) {\n LinkedList<Node> pathList = new LinkedList<>();\n\n pathList.add(Target);\n Node currentNode = null;\n /*ЕСЛИ финишная ячейка помечена\n ТО\n перейти в финишную ячейку\n ЦИКЛ\n выбрать среди соседних ячейку, помеченную числом на 1 меньше числа в текущей ячейке\n перейти в выбранную ячейку и добавить её к пути\n ПОКА текущая ячейка — не стартовая\n ВОЗВРАТ путь найден\n ИНАЧЕ\n ВОЗВРАТ путь не найден*/\n\n\n return pathList;\n }", "private List<BaseNode> findClosestNodes(BaseNode fromNode, List<BaseNode> toNodes,\n\t\t\tFloydWarshallShortestPaths<BaseNode, DefaultWeightedEdge> paths) {\n\t\t\n\t\tdouble shortestPath = 0;\n\t\tList<BaseNode> closestNodes = new ArrayList<>();\n\n\t\tfor (BaseNode toNode : toNodes) {\n\t\t\tGraphPath<BaseNode, DefaultWeightedEdge> path = paths.getPath(fromNode, toNode);\n\t\t\t// new closest found\n\t\t\tif ((shortestPath > path.getWeight() && path.getWeight() != 0) || shortestPath == 0) {\n\t\t\t\tshortestPath = path.getWeight();\n\t\t\t\tclosestNodes.clear();\n\t\t\t}\n\t\t\t// add closest to result list\n\t\t\tif (shortestPath != 0 && shortestPath == path.getWeight()) {\n\t\t\t\tclosestNodes.add(toNode);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn closestNodes;\n\t}", "public ArrayList<Grid> findShortestPath(int startIndex,int endIndex){\r\n resetFValue();\r\n _startIndex = startIndex;\r\n _endIndex = endIndex;\r\n // add the first node into the open set first\r\n int currentF = findF(_startIndex);\r\n _map.get_grid(_startIndex).set_Fnum(currentF);\r\n _openSet.add(_startIndex);\r\n // call this recursive method to get the whole path\r\n findPath(_startIndex);\r\n setPath();\r\n return _path;\r\n }", "private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }", "@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }", "@Nullable\n public EdgePath<A> findShortestEdgePath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n\n if (graph instanceof IntDirectedGraph) {\n @SuppressWarnings(\"unchecked\")\n AttributedIntDirectedGraph<V,A> intGraph = (AttributedIntDirectedGraph<V,A>) graph;\n int startIndex = -1, goalIndex = -1;\n {int i=0;\n for (V v:graph.getVertices()) {\n if (v == start) {\n startIndex = i;\n if (goalIndex != -1) {\n break;\n }\n }\n if (v == goal) {\n goalIndex = i;\n if (startIndex != -1) {\n break;\n }\n }\n i++;\n }}\n return findIntShortestEdgePath(intGraph, startIndex, goalIndex, costf);\n } else {\n return doFindShortestEdgePath(graph, start, goal, costf);\n }\n }", "protected void startBuilding(IVertex<String> source){\n\n for(int i =0 ; i < Constants.MAX_THREADS; i++){\n shortestThread[i] = new ShortestPathFinderThread(this.weightedGraph, source,\n this.settledNodes, this.unSettledNodes,\n this.predecessors, this.distance);\n shortestThread[i].start();\n }\n }", "private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }" ]
[ "0.73229575", "0.7298843", "0.72940296", "0.722239", "0.72221017", "0.7219845", "0.70856434", "0.70753473", "0.7074757", "0.7038299", "0.70036626", "0.69945216", "0.6946636", "0.68676764", "0.68609554", "0.68440866", "0.6753732", "0.67363715", "0.6680956", "0.6679004", "0.6650931", "0.6645559", "0.6633327", "0.66298556", "0.66235137", "0.66218626", "0.6613871", "0.66134566", "0.6612251", "0.66026807", "0.65771806", "0.65742034", "0.6574052", "0.65639454", "0.6559261", "0.652965", "0.6528569", "0.6514798", "0.65064806", "0.6502624", "0.64990073", "0.64755654", "0.64743054", "0.647408", "0.64667964", "0.6456408", "0.6452968", "0.64438355", "0.64402616", "0.64354944", "0.64330804", "0.6431299", "0.6428304", "0.64162564", "0.6410861", "0.6391625", "0.63764125", "0.6372889", "0.63679886", "0.63629985", "0.63619256", "0.63568074", "0.6341183", "0.63322604", "0.6298188", "0.62948203", "0.6292436", "0.6289311", "0.62866575", "0.62807906", "0.6271136", "0.6258978", "0.622417", "0.62193656", "0.62066966", "0.61892414", "0.6188746", "0.6188603", "0.61840713", "0.61835104", "0.6172927", "0.61694396", "0.6146827", "0.612309", "0.6119273", "0.61119765", "0.6111553", "0.6103401", "0.60976356", "0.6091517", "0.6082022", "0.607257", "0.60599786", "0.60526365", "0.60364634", "0.6034941", "0.6034175", "0.6032778", "0.6027239", "0.6025054", "0.602056" ]
0.0
-1
Constructor that accepts a message
public InvalidTokenException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(){}", "public Message() {}", "public Message() {}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Message() {\n }", "public Message() {\n }", "public Message() {\n }", "public Message() {\n\t\tsuper();\n\t}", "private Message(){\n // default constructor\n }", "public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }", "public Message(String message){\n\t\tthis(message, 5000);\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }", "private Message(MessageType handle) {\n this(handle, null, null);\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }", "public FlowMonMessage(){}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }", "public ChatRequest(String message)\r\n\t{\r\n\t\tthis.message = message;\r\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "public CallMessage() {\n\t}", "public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }", "public ServerMessage(String message) {\n this.message = message;\n }", "public DemoMessage(String message) {\n\t\tthis.message = message;\n\t}", "private Message(MessageType handle, String srcName) {\n this(handle, srcName, null);\n }", "public ProtocolWorker(String message){\n this.message = message;\n }", "public SystemMessage() {\r\n\t}", "public ImMessage() {\r\n }", "public Message(User author, String message) {\n this.author = author;\n this.message = message;\n this.date = new Date();\n }", "public MessageParseException() {\n }", "public AmqpMessage() {}", "private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }", "public MessageEvent(Message message) {\n super(message);\n this.message = message;\n }", "public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}", "public MessageInfo() { }", "public MessageFromServerCommand(String message) {\n this.message=message;\n }", "public MessageRecord() {\n super(Message.MESSAGE);\n }", "public Message(String text, Person person) {\n\t\tthis(text, person, null, null);\n\t}", "public MessageCommand(IMessage message, String action, String arg) {\n\t\tthis.message = requireNonNull(message);\n\t\tthis.action = requireNonNull(action).toLowerCase();\n\t\tthis.arg = arg;\n\t}", "public MessageParseException(String message) {\n super(message);\n }", "public TriggerMessage() {\n\t}", "public MessageRequest() {\n\t}", "public LCAmsg2 () { }", "public ServiceMessage() {\r\n\t}", "public Message(long msg) {\n m_msg = msg;\n m_type = getType(msg);\n parseMessage();\n }", "public PromoMessages() {\n }", "public messages() {\n }", "public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }", "public ParcelableMessage(Message message) {\n\t\tsuper(message);\n\t}", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "public CloudQueueMessage(String content) {\n\t\tthis(content.getBytes());\n\t}", "public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }", "public ValidationMessage() {\n }", "private Message(String message, long visibleTime, long creationTime, long id){\n\t\tthis(message, visibleTime);\n\t\tthis.creationTime = creationTime;\n\t\tthis.id = id;\n\t}", "public MessageHandler() {\n }", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public ServerMessage(String message, Player player) {\n this.message = message;\n this.player = player;\n }", "public CompilerMessage(MessageKind messageKind_) {\r\n this((SourceRange)null, messageKind_, null);\r\n }", "public MailMessage() {\n }", "public ChatMessage(MessageType type, Object message) {\n m_type = type;\n m_message = message;\n }", "public ServerMessage(String message, Board board) {\n this.message = message;\n this.board = board;\n }", "public CodeMessage(Integer code, T message) {\n this.code = code;\n this.message = message;\n }", "public Message(String s, String r){\n sender = s;\n reciever = r;\n }", "public MessageEntity() {\n }", "public ParseException(String message) {\n super(message);\n }", "public Message(String key) {\n this.key = key;\n }", "public Message(String type, String content, String status, Long date, String sender) {\n if (type == null || type.isEmpty()) {\n throw new IllegalArgumentException(\"Type cannot be null or empty\");\n }\n if (!type.equals(\"text\") && !type.equals(\"image\") && !type.equals(\"location\")) {\n throw new IllegalArgumentException(\"Message object needs type of text, image or location\");\n }\n if (content == null || content.isEmpty()) {\n throw new IllegalArgumentException(\"Content cannot be null or empty\");\n }\n if (status == null || status.isEmpty()) {\n throw new IllegalArgumentException(\"Status cannot be null or empty\");\n }\n if (!status.equals(\"read\") && !status.equals(\"unread\")){\n throw new IllegalArgumentException(\"Message object needs a status of read or unread\");\n }\n if (date == null) {\n throw new IllegalArgumentException(\"Date cannot be null\");\n }\n if (sender == null || sender.isEmpty()) {\n throw new IllegalArgumentException(\"Sender cannot be null or empty\");\n }\n\n this.type = type;\n this.content = content;\n this.status = status;\n this.date = date;\n this.sender = sender;\n }", "public MessageService()\n {\n messages.put(1L, new Message(1, \"Hello World!\", \"Marc\"));\n messages.put(2L, new Message(2, \"Hello Embarc!\", \"Kevin\"));\n messages.put(3L, new Message(3, \"Hello Luksusowa!\", \"Sid\"));\n messages.put(4L, new Message(4,\n \"I think Sid might have a bit too much blood in his alcohol-stream...\", \"Craig\"));\n }", "private SocketMessage() {\n initFields();\n }", "public Message(Socket s, Packet p) {\n // userName = \"\";\n socket = s;\n packet = p;\n }", "public User(Message message) {\n\t\tthis.message = message;\n\t\tlogger.info(\"Error has occured :(\");\n\t}", "protected abstract Message createMessage(Object object, MessageProperties messageProperties);", "public Message(String s,String r,String m){\n sender = s;\n reciever = r;\n message = m;\n }", "public HazelcastMQMessage() {\n this(new DefaultHeaders(), null);\n }", "private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }", "public MessageManager() {\n }", "public CloudQueueMessage(byte[] content) {\n\t\tthis(null, content, null, null, 0);\n\t}", "public TurtleMessage(int x, int y, String message) {\n this.x = x;\n this.y = y;\n this.message = message;\n }", "public StatusMessage(int code, String message) {\n _code = code;\n _message = message;\n }", "public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }", "public ServerMessage(String message, String status) {\n this.message = message;\n this.status = status;\n }", "public TrackedMessage(int messageType) {\n\tsuper(messageType);\n }", "public MessageClackData(String userName, String message, int type) {\n super(userName, type);\n this.message = message;\n }", "private Message(Builder builder) {\n super(builder);\n }", "public Message(Message m)\r\n\t{\r\n\t\t_msgBody = m._msgBody;\r\n\t\t_mID = m._mID;\r\n\t\t_fatherMessageID = m._fatherMessageID;\r\n\t\t_msgPosterID = m._msgPosterID;\r\n\t\t_msgPostTime = m._msgPostTime;\r\n\t}", "public MessageUser(String message, String user) {\n this.message = message;\n this.user = user;\n }", "public Message(Type type, Player messageSender, String messageContent) {\n\t\tif (type == null) {\n\t\t\tthrow new InvalidParameterException(\"Type cannot be null\");\n\t\t}\n\t\tif (messageSender == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageReceiver cannot be null\");\n\t\t}\n\t\tif (messageContent == null) {\n\t\t\tthrow new InvalidParameterException(\"MessageContent cannot be null\");\n\t\t}\n\t\tthis.type = type;\n\t\tthis.messageSender = messageSender;\n\t\tthis.messageReceiver = new Player(\"SERVER\", Player.Team.SERVER);\n\t\tthis.messageContent = messageContent;\n\t}", "public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}", "public CryptoSchemeMsg () { }", "private Messages() {\n\t}", "public messageList()\n {\n\n }", "public MessageTran() {\n\t}", "Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);", "public Message(String message, long visibleTime){\n\t\tthis.message = message;\n\t\tthis.creationTime = System.currentTimeMillis();\n\t\tthis.visibleTime = visibleTime;\n\t\tthis.id = this.hashCode();\n\t}", "public FeedbackMessages()\n\t{\n\t}", "private StatusMessage() {\n\n\t}" ]
[ "0.82400924", "0.81257176", "0.81257176", "0.8097193", "0.80188423", "0.7996016", "0.7996016", "0.78435993", "0.77688265", "0.7665793", "0.7596582", "0.75851864", "0.751165", "0.75062686", "0.7468476", "0.7455728", "0.7436177", "0.74213725", "0.74076504", "0.73968863", "0.7391595", "0.73525363", "0.73456556", "0.73239845", "0.73107463", "0.73036146", "0.73024136", "0.7271966", "0.7261986", "0.72595656", "0.72483414", "0.7243288", "0.72412485", "0.72192866", "0.7175158", "0.7131204", "0.71048653", "0.7099133", "0.7085269", "0.70697266", "0.70416063", "0.7033148", "0.7008607", "0.6984798", "0.69717854", "0.69525236", "0.693793", "0.6931832", "0.6917337", "0.68952423", "0.68687737", "0.6858714", "0.6840143", "0.6820173", "0.6813731", "0.6778308", "0.6777253", "0.6756708", "0.67544466", "0.674779", "0.67455626", "0.6743539", "0.6737312", "0.67250067", "0.6721305", "0.6710843", "0.6703392", "0.6701443", "0.6691102", "0.6690108", "0.6687071", "0.6686422", "0.66856456", "0.66765535", "0.66665184", "0.66486686", "0.6605998", "0.6602133", "0.6579765", "0.6561607", "0.6560572", "0.6556493", "0.65431666", "0.6528971", "0.65287846", "0.6519503", "0.65041757", "0.65023226", "0.64897966", "0.64673734", "0.6462181", "0.64603424", "0.64425737", "0.64410305", "0.6436905", "0.64359176", "0.64281183", "0.6427381", "0.642679", "0.6424892", "0.6418073" ]
0.0
-1